-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
在torch >= 2.0中移除了名为“torch._six”的模块 coco_eval.py文件可能需要一些修改 #788
Comments
leocn3
changed the title
在torch >= 2.0中移除了
在torch >= 2.0中移除了名为“torch._six”的模块 coco_eval.py文件可能需要一些修改
Jan 25, 2024
Y老师在深度学习给了我非常大的帮助,这是我第一次提交issue,希望能有用 |
确实是的,谢谢。等有空了再重新适配下 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
System information
Describe the current behavior
在torch >= 2.0的环境中运行faster-RCNN等其他分支中运行coco_eval.py的会出现以下错误:
ModuleNotFoundError: No module named 'torch._six'
可以将coco_eval.py文件中
Line245
if isinstance(resFile, torch._six.string_classes):
修改为
if isinstance(resFile, str):
即可避免使用'torch._six'模块
参考链接:https://blog.csdn.net/m0_72676510/article/details/134068860
https://www.cnblogs.com/emanlee/p/17658162.html (我认为这里降级torch并不是个好方法)
Error info / logs
ModuleNotFoundError: No module named 'torch._six'
The text was updated successfully, but these errors were encountered: