Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fxd126 opened this issue Feb 12, 2022 · 0 comments
Open

Comments

@fxd126
Copy link

fxd126 commented Feb 12, 2022

..\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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant