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

What happens if there are no detections in a frame #39

Closed
towardsautonomy opened this issue Jun 12, 2020 · 2 comments
Closed

What happens if there are no detections in a frame #39

towardsautonomy opened this issue Jun 12, 2020 · 2 comments

Comments

@towardsautonomy
Copy link

I am wondering what happens if there are no detections in a frame. In that case I will be calling the update function with the following:

dets_all = {'dets': [], 'info': []}

It throws an error because it is trying to extract info from an empty list: dets = dets[:, self.reorder]

How should empty detection be handled?

@dmatos2012
Copy link

That should never happen, as its only reading the detections from the text file, so if there are no detections in a frame, it wont just never read it.

@xinshuoweng
Copy link
Owner

It is weird that, on my side, my code can handle the empty list when executing dets = dets[:, self.reorder].

Could you please provide the detailed error message so that I can help.

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

3 participants