lxtGH / OMG-Seg

OMG-LLaVA and OMG-Seg codebase [CVPR-24 and NeurIPS-24]
Other
1.32k stars 50 forks source link

Demo Error #47

Closed SecretMG closed 2 months ago

SecretMG commented 2 months ago

Thanks for your excellent work!

I‘ve installed the env with mmcv==2.0.0 and mmdet==3.1.0, but I got an TypeError when I run the command "PYTHONPATH=. python demo/image_demo.py"

The TypeError is "TypeError: The key argument of Registry.get must be a str, got <class 'type'>".

Is the version of mmcv I installed incorrect?

HarborYuan commented 2 months ago

Yes, you need to update your mmcv to support using the python type rather than str in the config file.

Please let me know if you have any other questions.