-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: ModuleNotFoundError: No module named 'fvcore.common' #24
Comments
有原始输出的报错信息吗?可能是fvcore版本不对,用下面命令升级版本试试: pip install -U 'git+https://github.com/facebookresearch/fvcore' |
Traceback (most recent call last): |
升级fvcore版本后问题还存在吗?我是用的fvcore版本是
|
还是不行,用你的版本也不行,我下来再找找原因吧 谢谢 |
我单独把fvcore.common相关的部分摘出来了,你可以用下面的代码替换 import atexit
import functools
import logging
import os
import re
import sys
from accelerate.logging import get_logger
from iopath.common.file_io import HTTPURLHandler, OneDrivePathHandler
from iopath.common.file_io import PathManager as PathManagerBase
from termcolor import colored
PathManager = PathManagerBase()
PathManager.register_handler(HTTPURLHandler())
PathManager.register_handler(OneDrivePathHandler()) |
按照你的方法修改后,还是原来的问题,util.misc.py中import部分报错 |
代码中有两处用到了fvcore.common,现在我都改过来了,请用最新版仓库代码试一试。 |
Bug
配置好环境后报错ModuleNotFoundError: No module named 'fvcore.common'
misc.py文件报错在'init_.py'中找不到引用'common':16未解析的引用'PathManager' :16未解析的引用'pygments' :113未解析的引用'Terminal256Formatter' :113未解析的引用'pygments':114未解析的引用'Python3Lexer':114未解析的引用'YamlLexer' :114
环境信息
环境按照官方引导配置在RTX4060 Windows系统上
补充信息
No response
The text was updated successfully, but these errors were encountered: