解决办法:  pip install -U 'git+https://github.com/facebookresearch/fvcore'.

Traceback (most recent call last):
  File "demo/demo.py", line 16, in <module>
    from predictor import VisualizationDemo
  File "/home/amax/iKang/dsr/Project/det2/demo/predictor.py", line 10, in <module>
    from detectron2.engine.defaults import DefaultPredictor
  File "/home/amax/iKang/dsr/Project/det2/detectron2/engine/__init__.py", line 12, in <module>
    from .defaults import *
  File "/home/amax/iKang/dsr/Project/det2/detectron2/engine/defaults.py", line 34, in <module>
    from detectron2.modeling import build_model
  File "/home/amax/iKang/dsr/Project/det2/detectron2/modeling/__init__.py", line 6, in <module>
    from .anchor_generator import build_anchor_generator, ANCHOR_GENERATOR_REGISTRY
  File "/home/amax/iKang/dsr/Project/det2/detectron2/modeling/anchor_generator.py", line 10, in <module>
    from detectron2.utils.registry import Registry
  File "/home/amax/iKang/dsr/Project/det2/detectron2/utils/registry.py", line 6, in <module>
    from fvcore.common.registry import Registry  # noqa
ModuleNotFoundError: No module named 'fvcore.common.registry'
Logo

开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!

更多推荐