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

An Error implement about nms #25

Open
leftthomas opened this issue Nov 1, 2021 · 3 comments
Open

An Error implement about nms #25

leftthomas opened this issue Nov 1, 2021 · 3 comments

Comments

@leftthomas
Copy link

These two lines should not add 1 for compute areas:

areas = x2 - x1 + 1

inter = np.maximum(0.0, xx2 - xx1 + 1)

Reference the implement of temporal nms in mmaction2
https://mmaction2.readthedocs.io/en/latest/api.html#id26

@Pilhyeon
Copy link
Owner

The implementation of mmaction2 might be slightly different from ours.
In ours, the temporal intervals are determined in an inclusive way, so we need to add 1 to compute areas (e.g., the interval [1, 1] has its area of 1.)

@leftthomas
Copy link
Author

yeah, I have noticed that, and I think if we want to compute the real temporal area, for example, [1, 2], the time lasted 1 second maybe more intuitive, and such as [1, 1], the time lasted 0 second.

@Pilhyeon
Copy link
Owner

Yes, I agree with you: it is more intuitive as the temporal slicing in python also works in that way.
I will consider representing the intervals in that way in future work.
Thanks for the suggestion.

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