mmrotate
mmrotate copied to clipboard
[Bug] if device.type == "cpu":
Prerequisite
- [X] I have searched Issues and Discussions but cannot get the expected help.
- [X] I have read the FAQ documentation but cannot get the expected help.
- [X] The bug has not been fixed in the latest version (master) or latest version (1.x).
Task
I'm using the official example scripts/configs for the officially supported tasks/models/datasets.
Branch
master branch https://github.com/open-mmlab/mmrotate
Environment
torch 2.1.2 torchvision 0.16.2 cuda 12.1 mmcv-full 1.7.1
Reproduces the problem - code sample
.
Reproduces the problem - command or script
python tools/train.py configs/redet/redet_re50_refpn_3x_hrsc_le90.py --work-dir result --gpu-ids 0
Reproduces the problem - error message
2023-12-27 17:05:25,231 - mmrotate - INFO - workflow: [('train', 1)], max: 36 epochs
2023-12-27 17:05:25,231 - mmrotate - INFO - Checkpoints will be saved to D:\workSpace\pycharm\mmrotate-main\result by HardDiskBackend.
D:\software\anoconda\envs\mmrotate\lib\site-packages\mmcv_init_.py:20: UserWarning: On January 1, 2023, MMCV will release v2.0.0, in whi
ch it will remove components related to the training process and add a data transformation module. In addition, it will rename the package
names mmcv to mmcv-lite and mmcv-full to mmcv. See https://github.com/open-mmlab/mmcv/blob/master/docs/en/compatibility.md for more details.
warnings.warn(
D:\software\anoconda\envs\mmrotate\lib\site-packages\mmcv_init_.py:20: UserWarning: On January 1, 2023, MMCV will release v2.0.0, in whi
ch it will remove components related to the training process and add a data transformation module. In addition, it will rename the package
names mmcv to mmcv-lite and mmcv-full to mmcv. See https://github.com/open-mmlab/mmcv/blob/master/docs/en/compatibility.md for more details.
warnings.warn(
Traceback (most recent call last):
File "tools/train.py", line 194, in
Additional information
我是新配置的环境第一次使用mmrotate,可能某个地方配置错误。 I'm using mmrotate for the first time in a newly configured environment, and there may be a misconfiguration somewhere.
same issue, but cuda 11.8 works.
same issue in latest version (master) ,but latest version (1.x) works
same issue,have you solved this problem?or just the problem about version?
same issue,have you solved this problem?or just the problem about version?
cuda111/116: mmcv-1.6.1 mmdet-2.x mmrotate 0.x cuda118/120:mmcv-2 mmdet-3 mmrotate-1
same issue,have you solved this problem?or just the problem about version?
cuda111/116: mmcv-1.6.1 mmdet-2.x mmrotate 0.x cuda118/120:mmcv-2 mmdet-3 mmrotate-1
i did't solve the issue in the version you gived,but i finally solve this in https://zhuanlan.zhihu.com/p/674887894 Thanks for your help
same issue,have you solved this problem?or just the problem about version?同样的问题,你解决这个问题了吗?或者只是版本的问题?
cuda111/116: mmcv-1.6.1 mmdet-2.x mmrotate 0.x cuda118/120:mmcv-2 mmdet-3 mmrotate-1Cuda111/116: mmcv-1.6.1 mmdet-2X毫米旋转0。X cuda118/120:mmcv-2 mmdet-3 mmrotate-1
i did't solve the issue in the version you gived,but i finally solve this in https://zhuanlan.zhihu.com/p/674887894我没有在你给的版本中解决问题,但我终于在https://zhuanlan.zhihu.com/p/674887894中解决了这个问题 Thanks for your help 谢谢你的帮助
I have encountered the same problem as you,May I ask if you can provide me with a contact information so that I can communicate with you,我的邮箱是[email protected]
same issue,have you solved this problem?or just the problem about version?
cuda111/116: mmcv-1.6.1 mmdet-2.x mmrotate 0.x cuda118/120:mmcv-2 mmdet-3 mmrotate-1
i did't solve the issue in the version you gived,but i finally solve this in https://zhuanlan.zhihu.com/p/674887894 Thanks for your help
Thank you for your sharing. I successfully completed the environment configuration according to the post you shared. My system environment is windows11+cuda11.8/12.2, and the configuration can be successfully completed by following the post operation