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

根据yolov5的requirements.txt配置环境

RuntimeError: result type Float can‘t be cast to the desired output type __int64 yolov5 V6.x_第1张图片

 结果安装了最高版本的torch

RuntimeError: result type Float can‘t be cast to the desired output type __int64 yolov5 V6.x_第2张图片

删除最高版本

pip uninstall torch

pip uninstall torchvision

降低版本就解决问题了

RuntimeError: result type Float can‘t be cast to the desired output type __int64 yolov5 V6.x_第3张图片

你可能感兴趣的:(python,深度学习,人工智能,pytorch)