Improve number of iterations over tracks by popping instead of None filling
Description
Suggested an alternative to using None objects as placeholders for missing detection. At each detection update, we remove the oldest detection for a tracker and when that queue is empty simply remove it. This way we don't need to filter and check the presence of None.
Type of change
Please delete options that are not relevant.
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] This change requires a documentation update
Hi, @DACUS1995 👋🏻! Thanks for your interest in supervision. Looks like the right move. I will need to test out the code. I can't do it now - I am working on a roadmap for the upcoming months. However, we will remember this PR in the context of supervision-0.19.0.
Sorry, closed it by mistake, let me know if there is anything I should change.
Hi @DACUS1995 👋🏻 No worries. I was looking at this PR today. I think this is not an equal solution.