berkeley-hipie / HIPIE

[NeurIPS2023] Code release for "Hierarchical Open-vocabulary Universal Image Segmentation"
https://people.eecs.berkeley.edu/~xdwang/projects/HIPIE/
MIT License
269 stars 20 forks source link

AssertionError: An object named 'MaskDINOEncoder' was already registered in 'SEM_SEG_HEADS' registry! #16

Open haixiongli opened 7 months ago

haixiongli commented 7 months ago

code: from detectron2.projects.hipie.demo_lib.part_segm_demo import PartSegmDemo

found: AssertionError: An object named 'MaskDINOEncoder' was already registered in 'SEM_SEG_HEADS' registry!

KKallidromitis commented 6 months ago

Hi testing on a new environment I am not able to reproduce the error. This is likely a problem with the detectron2 installation folder. Please ensure you are using a clean environment as multiple detectron2 versions from different projects can cause such an error. You can try pip3 install -e . without the --user flag.

I would be happy to try to reproduce the error if you have the installation steps you used.