facebookresearch / Mask2Former

Code release for "Masked-attention Mask Transformer for Universal Image Segmentation"
MIT License
2.59k stars 388 forks source link

KeyError: "No object named 'VideoMaskFormer' found in 'META_ARCH' registry!" #252

Open jiyuwangbupt opened 1 week ago

jiyuwangbupt commented 1 week ago

Traceback (most recent call last): File "/home/wm/Mask2Former/demo/demo.py", line 109, in demo = VisualizationDemo(cfg) File "/home/wm/Mask2Former/demo/predictor.py", line 37, in init self.predictor = DefaultPredictor(cfg) File "/home/wm/detectron2/detectron2/engine/defaults.py", line 314, in init self.model = build_model(self.cfg) File "/home/wm/detectron2/detectron2/modeling/meta_arch/build.py", line 24, in build_model model = META_ARCH_REGISTRY.get(meta_arch)(cfg) File "/home/wm/.local/lib/python3.10/site-packages/fvcore/common/registry.py", line 71, in get raise KeyError( KeyError: "No object named 'VideoMaskFormer' found in 'META_ARCH' registry!"