-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Fix track interpolation in tasks with deleted frames #9059
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #9059 +/- ##
==========================================
Coverage ? 73.74%
==========================================
Files ? 428
Lines ? 44515
Branches ? 3881
==========================================
Hits ? 32828
Misses ? 11687
Partials ? 0
|
@@ -1307,8 +1308,9 @@ def get_frame(task_id: int, idx: int) -> ProjectData.Frame: | |||
anno_manager.to_shapes( | |||
task.data.size, | |||
included_frames=task_included_frames, | |||
deleted_frames=set(f for t_id, f in self.deleted_frames if t_id == task.id), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not task_data.deleted_frames.keys()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the same. But there is an extra check below, which can be removed now.
|
Motivation and context
Follow-up for #8834.
If a task or a job contains deleted frames that contain track keyframes, these keyframes should be excluded from the interpolation. However, in jobs having specific frames included (e.g. GT jobs), deleted frames should not be confused with included frames during track interpolation. Deleted frames should affect existing shapes in tracks, while included frames should only filter the resulting annotations after interpolation. This PR implements this approach.
How has this been tested?
Checklist
develop
branchLicense
Feel free to contact the maintainers if that's a concern.