yolov5_obb
yolov5_obb copied to clipboard
RuntimeError: Not compiled with GPU support
Logging results to runs\train\exp35 Starting training for 300 epochs...
Epoch gpu_mem box obj cls theta labels img_size
0/299 8.5G 0.1637 0.03505 0 10.14 33 1024: 100%|██████████| 39/39 [00:33<00:00, 1.15it/s]
Class Images Labels P R [email protected] [email protected]:.95: 0%| | 0/20 [00:00<?, ?it/s]
Traceback (most recent call last):
File "train.py", line 640, in
Hi, I have the same issue. Any solution?
嗨,我有同样的问题。任何解决方案?
Not yet~
把这个步骤生成的.so文件删除,然后再编译一次。

Had the same issue @wangyansenhub , sometimes it is better to compile without cache, see my reply here #402
把这个步骤生成的.so文件删除,然后再编译一次。
LINK : fatal error LNK1181: 无法打开输入文件“D:\Tian\yolov5_obb-master\utils\nms_rotated\build\temp.win-amd64-cpython-39\Release\src\nms_rotated_cpu.obj” error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\bin\HostX86\x64\link.exe' failed with exit code 1181 我重新安装以后 编译一直报错。这是什么问题呢? cuda:10.2 pytorch:1.10.0+cu102
把这个步骤生成的.so文件删除,然后再编译一次。
LINK : fatal error LNK1181: 无法打开输入文件“D:\Tian\yolov5_obb-master\utils\nms_rotated\build\temp.win-amd64-cpython-39\Release\src\nms_rotated_cpu.obj” error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\bin\HostX86\x64\link.exe' failed with exit code 1181 我重新安装以后 编译一直报错。这是什么问题呢? cuda:10.2 pytorch:1.10.0+cu102
windows 下吧?可能是MSVC环境变量没有配好。
如果删除.so文件重新编译的方法不行,重新配置环境装pytorch,torchvision, torchaudio注意一定要与cuda版本对应
I finally solve it by this solution: https://github.com/hukaixuan19970627/yolov5_obb/issues/402#issuecomment-1189014923