-
Notifications
You must be signed in to change notification settings - Fork 122
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
测试MMDet+SAM存在问题 #42
Comments
We recommend using English or English & Chinese for issues so that we could have broader discussion. |
Hi, can you check what version of MMDet you are using?? It should be mmdet 3.0. |
Thanks, I was able to get the MMDet up and running, but it came up during code check: Traceback (most recent call last):
File "detector_sam_demo.py", line 509, in <module>
main()
File "detector_sam_demo.py", line 436, in main
det_model = build_detecter(args)
File "detector_sam_demo.py", line 166, in build_detecter
config.model.roi_head.mask_head = None
File "/home/gcbm/workspace/anaconda3/envs/segment/lib/python3.8/site-packages/mmengine/config/config.py", line 53, in __getattr__
raise AttributeError(f"'{self.__class__.__name__}' object has no "
AttributeError: 'ConfigDict' object has no attribute 'roi_head' This is a new problem, I didn't find a solution,my environment mmcv=2.0.0,mmdet=3.0.0,mmengine=0.7.2 |
can you share your test command?? |
The test code I use is the Dino test code provided in the example python detector_sam_demo.py ../images/cat_remote.jpg \
../mmdetection/configs/dino/dino-5scale_swin-l_8xb2-12e_coco.py \
dino-5scale_swin-l_8xb2-12e_coco_20230228_072924-a654145f.pth \
--sam-device cpu |
Seems this is an existing issue. We will look into this. Thanks. |
@xin-li-67 Hi. Did you fix it? |
I did a quick fix on this, would you like to try like this #50? |
After installing the dependence, in accordance with the routine test code, displays an error
安装完依赖后,按照例程代码进行测试,显示报错
I changed the version to 1.7.1 with error reporting
我将版本更换成1.7.1后报错显示
The text was updated successfully, but these errors were encountered: