我是靠谱客的博主 美满哑铃,最近开发中收集的这篇文章主要介绍MMdetection目标检测框架安装报错:ModuleNotFoundError: No module named ‘fvcore.nn.distributed‘解决办法,觉得挺不错的,现在分享给大家,希望可以做个参考。
概述
解决办法:
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'
最后
以上就是美满哑铃为你收集整理的MMdetection目标检测框架安装报错:ModuleNotFoundError: No module named ‘fvcore.nn.distributed‘解决办法的全部内容,希望文章能够帮你解决MMdetection目标检测框架安装报错:ModuleNotFoundError: No module named ‘fvcore.nn.distributed‘解决办法所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复