Yolov5训练时报错:UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the ind

如图Yolov5训练时报错:

解决办法:找到自己所安装的anaconda环境,找见‘anaconda3\envs\tweek\Lib\site-packages\torch\functional.py’文件,修改478行左右的代码。

修改后如图所示:

 

原理暂时不详,

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