运行YOLOv5 6.1和yolor的时候,训练都没能正常运行,出现了如下错误:
RuntimeError: result type Float can't be cast to the desired output type __int64
在网络上搜索错误,没有找到解决方案,只能尝试自己分析错误原因。
由于学校的电脑可以正常运行,家中电脑就没办法运行,故怀疑是Pytorch 1.12版本的问题,将pytorch降级为1.11版本,问题解决.

运行YOLOv5 6.1和yolor的时候,训练都没能正常运行,出现了如下错误:
RuntimeError: result type Float can't be cast to the desired output type __int64
在网络上搜索错误,没有找到解决方案,只能尝试自己分析错误原因。
由于学校的电脑可以正常运行,家中电脑就没办法运行,故怀疑是Pytorch 1.12版本的问题,将pytorch降级为1.11版本,问题解决.