问题遇到的现象和发生背景
代码?%ra=link
https://github.com/ultralytics/yolov5
return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
问题相关代码,请勿粘贴截图
我下载的是第五版代码,由于之前的报错,修改了两处位置
然后就直接运行detect.py,出现了下面的报错。
运行结果及报错内容
报错如下
C:\app\Anaconda\envs\pytorch\lib\site-packages\torch\functional.py:445: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at ..\aten\src\ATen\native\TensorShape.cpp:2157.)
我的解答思路和尝试过的方法
我想要达到的结果
希望有巨佬帮忙解决一下