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

Error in running with flag_nms= True #45

Open
Atishaysjain opened this issue Feb 16, 2021 · 1 comment
Open

Error in running with flag_nms= True #45

Atishaysjain opened this issue Feb 16, 2021 · 1 comment

Comments

@Atishaysjain
Copy link

Atishaysjain commented Feb 16, 2021

When I run demo_video_mobile.py after setting flag_nms = True I get the following error :-
TypeError: list indices must be integers or slices, not tuple

For the following code inside the function def apply_nms :-
keep = np.where((cls_dets[:, 4] >= min_scores) &
((cls_dets[:, 3] - cls_dets[:, 1]) * (cls_dets[:, 2] - cls_dets[:, 0]) >= min_box_size))[0]

When I first convert cls_dets into numpy array by cls_dets = np.array(cls_dets) and then execute, the following error is shown :-
IndexError: too many indices for array

This is because the shape of cls_dets is (4,) while the code written is for a 2 dimensional array.

Please suggest a solution so that I can apply non max suppresion with this code.

@JosePeeterson
Copy link

Hi Atishaysjain,
could you please share your env dependencies file with all the version numbers? and the cuda toolkit version.

When you first ran demo_video_mobile.py did you see the following error?

Traceback (most recent call last): File "demo_video_mobile.py", line 28, in <module> from nms.gpu_nms import gpu_nms ImportError: /home/peeterson/Desktop/lighttrack/HPE/../lib/nms/gpu_nms.cpython-36m-x86_64-linux-gnu.so: undefined symbol: __cudaPopCallConfiguration

If you did could you share how you solved it? thanks.

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

2 participants