social-distancing-monitoring icon indicating copy to clipboard operation
social-distancing-monitoring copied to clipboard

too many indices for array: array is 1-dimensional, but 2 were indexed

Open fxd126 opened this issue 2 years ago • 0 comments

..\torch\csrc\utils\python_arg_parser.cpp:756: UserWarning: This overload of nonzero is deprecated: nonzero(Tensor input, *, Tensor out) Consider using one of the following signatures instead: nonzero(Tensor input, *, bool as_tuple) Traceback (most recent call last): File "C:/Users/fengxd/Desktop/code/social-distancing-monitoring-master/detect.py", line 170, in main(dataset=dataset, data_time=data_time, detector=detector) File "C:/Users/fengxd/Desktop/code/social-distancing-monitoring-master/detect.py", line 113, in main pts_world[:, [0, 1]] = pts_world[:, [1, 0]] IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed

fxd126 avatar Feb 12 '22 08:02 fxd126