(deepsort) C:\Users\zhang\Desktop\Yolov5_DeepSort_Pytorch-3.0>python track.py --source test.mp4 --show-vid
D:\Anaconda\envs\deepsort\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.)
return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
video 1/1 (1/49789) C:\Users\zhang\Desktop\Yolov5_DeepSort_Pytorch-3.0\test.mp4: Traceback (most recent call last):
File "track.py", line 277, in
detect(args)
File "track.py", line 219, in detect
print('%sDone. (%.3fs)' % (s, t2 - t1))
TypeError: unsupported operand type(s) for -: 'NoneType' and 'NoneType'
UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at C:\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\TensorShape.cpp:2228.)
return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
修改为return _VF.meshgrid(tensors, **kwargs, indexing = 'ij') # type: ignore[attr-defined],警告解除
V6.0好像都存在这个问题
报错那行里面有哪个数据为空,也就是None