-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't run demo code #3
Comments
Thanks for your interest in our work. |
Same issue here. I tried PYTHONPATH='.' python demo/image_demo.py demo.jpg configs/fashionformer/fashionpedia/fashionformer_r50_mlvl_feat_3x.py fashionformer_r50_3x.pth Same error. |
I was able to solve this error by installing depedencies that are missing in the readme. pip install git+https://github.com/cocodataset/panopticapi.git
pip install sklearn
pip install scikit-image However, another issue came to its place:
UPDATE: downgraded to
|
Thanks for your interest and sorry for the late reply. |
hello,when I run the demo. ALL the coordinate of BBOX is zero.like this: [array([[0. , 0. , 0. , 0. , 0.79686284]], |
Spent whole day can't setup the environment, Better to add a colab notebook or a docker image |
The following setup worked for me on colab. |
This seems to work, atleast with cpu mode:
|
hello when i run demo code there was some error
python demo/image_demo.py ../dataset/test/03fc99c4deaf14724ef6277dec16b8e8.jpg work_dirs/attribute_mask_rcnn_swin_b_3x/attribute_mask_rcnn_swin_b_3x.py work_dirs/attribute_mask_rcnn_swin_b_3x/latest.pth
how can i solve this error?
Traceback (most recent call last):
File "/home/kshan/anaconda3/envs/fashionformer/lib/python3.8/site-packages/mmcv/utils/misc.py", line 73, in import_modules_from_strings
imported_tmp = import_module(imp)
File "/home/kshan/anaconda3/envs/fashionformer/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'datasets'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "demo/image_demo.py", line 69, in
main(args)
File "demo/image_demo.py", line 35, in main
model = init_detector(args.config, args.checkpoint, device=args.device)
File "/home/kshan/taehyung/mmdetection/mmdet/apis/inference.py", line 33, in init_detector
config = mmcv.Config.fromfile(config)
File "/home/kshan/anaconda3/envs/fashionformer/lib/python3.8/site-packages/mmcv/utils/config.py", line 343, in fromfile
import_modules_from_strings(**cfg_dict['custom_imports'])
File "/home/kshan/anaconda3/envs/fashionformer/lib/python3.8/site-packages/mmcv/utils/misc.py", line 80, in import_modules_from_strings
raise ImportError
ImportError
The text was updated successfully, but these errors were encountered: