-
Notifications
You must be signed in to change notification settings - Fork 258
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
new_event_dataframe_with_data(indices, events) fails if arguments are empty #23
Comments
I think you can fix this as such:
although, I think some computations fails in this case. I got some divide by zero errors, but didn't track them `down.``` |
Could you provide a minimal reproducable example, so I can have an in depth look? |
The failure mode is simple to understand. If there are no objects or predictions for a frame, which can happen, e.g., when you are processing videos, then there are no events when this function is called. While creating an example, I found an even simpler failure mode, at the same point.
|
Sorry I might have misunderstood. Are you saying it fails in adding empty frames to the accumulator, or when computing the metrics with an empty accumulator? |
The following line:
raw_type = pd.Categorical(tevents[0], categories=['RAW', 'FP', 'MISS', 'SWITCH', 'MATCH'], ordered=False)
fails with:
IndexError: list index out of range
tevents[0] fails.
The text was updated successfully, but these errors were encountered: