python|RuntimeError: result type Float can‘t be cast to the desired output type __int64 yolov5 V6.x

根据yolov5的requirements.txt配置环境
python|RuntimeError: result type Float can‘t be cast to the desired output type __int64 yolov5 V6.x
文章图片

结果安装了最高版本的torch
python|RuntimeError: result type Float can‘t be cast to the desired output type __int64 yolov5 V6.x
文章图片

删除最高版本
pip uninstall torch
pip uninstall torchvision
降低版本就解决问题了
python|RuntimeError: result type Float can‘t be cast to the desired output type __int64 yolov5 V6.x
文章图片

【python|RuntimeError: result type Float can‘t be cast to the desired output type __int64 yolov5 V6.x】

    推荐阅读