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

(3->2) Add method to update Instances across views in RecordingSession #1279

Open
wants to merge 45 commits into
base: liezl/ars-add-sessions-to-cache
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 34 commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
190b82c
Update `Instance`s across views in `RecordingSession`
roomrys Apr 18, 2023
4aa285b
Fix-up implementation while manually testing
roomrys Apr 19, 2023
7754a66
Only update incomplete points
roomrys Apr 19, 2023
4dca8be
Lint
roomrys Apr 19, 2023
f5d41b3
Merge branch 'liezl/ars-add-sessions-to-cache' into liezl/asc-initial…
roomrys Apr 27, 2023
619d584
Merge branch 'liezl/ars-add-sessions-to-cache' into liezl/asc-initial…
roomrys Jul 20, 2023
96df7f4
Merge branch 'liezl/ars-add-sessions-to-cache' of https://github.com/…
roomrys Sep 29, 2023
280d48e
Modularize the `RecordingSessions.update_views` function
roomrys Sep 29, 2023
9559da7
Add more informative message to `RecordingSession.update_views`
roomrys Sep 29, 2023
45b8475
Add `require_multiple_views` parameter to `RecordingSession.get_insta…
roomrys Sep 29, 2023
ba2df88
(4->3) Fix (de)serialization of `RecordingSession` and add Multiview …
roomrys Sep 29, 2023
35c1521
Add test for
Oct 4, 2023
8098ae1
Fix spelling
Oct 4, 2023
addc8be
Add debugging messages and raise ValueError
Oct 4, 2023
74a8f83
Add test for `get_instances_accross_views`
Oct 4, 2023
4f65679
Lint
Oct 4, 2023
243ad3c
Modularize
Oct 4, 2023
bb0fda1
Modularize RecordingSession.update_views
Oct 4, 2023
f203953
Add comments on expected array size
Oct 4, 2023
2bc5c47
Breakout recording session tests and test reprojection
Oct 4, 2023
e0a57f2
Add test for RecordingSession.update_instances
Oct 4, 2023
a1965e9
Add keyword arguments to `update_views` call
roomrys Oct 9, 2023
62f4f7f
Add docstring to update_instances
roomrys Oct 9, 2023
9b67128
Fix update_instances test
roomrys Oct 9, 2023
99ef17e
Update debug/warning messages
roomrys Oct 9, 2023
38599f4
Add test for remove_video and labels cache
roomrys Oct 9, 2023
df1bc72
Add test for update_views
roomrys Oct 10, 2023
e85e4fb
Pass in excluded views to triangulate and reproject
roomrys Oct 10, 2023
7105656
Small fix in test_recording_session
roomrys Oct 10, 2023
bffeca8
Ensure instances are always passed in with correct order
roomrys Oct 10, 2023
c293d73
Add `TriangulateSession` command
roomrys Oct 13, 2023
001c849
Add tests for `TriangulateSession`
roomrys Oct 13, 2023
06dff9f
Handover call to triangulate to `TriangulateSession`
roomrys Oct 13, 2023
4706fb2
Remove triangulate functionality from `RecordingSession`
roomrys Oct 13, 2023
4994f04
Merge branch 'liezl/ars-add-sessions-to-cache' of https://github.com/…
roomrys Oct 19, 2023
7cc7a5a
Fix verify instances bug via typo
roomrys Dec 5, 2023
a2326d3
Better warning messages (w/o dialog pop-ups!)
roomrys Dec 6, 2023
2f56a1c
(3a -> 3) Add method to match instances across views (#1579)
roomrys Apr 18, 2024
712fc70
Remove unused imports
Apr 18, 2024
b1d2372
(3a -> 3) Serialize `FrameGroup` and `InstanceGroup` (update `Recordi…
roomrys Apr 23, 2024
0d26728
(3a -> 3) Add `FrameGroup` fixture (#1753)
roomrys Apr 23, 2024
8d3e232
(3a -> 3) Debug `TriangulateSession` command (#1755)
roomrys Apr 25, 2024
507eefa
(3a -> 3) Debug missing `PredictedInstance`s (not displaying in GUI) …
roomrys Apr 25, 2024
55c6fd4
Test `InstanceGroup` and `FrameGroup` (#1759)
roomrys Apr 30, 2024
07ea17b
Handle case when upserting_instances with no instances in at least on…
May 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion sleap/gui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1224,8 +1224,16 @@ def plotFrame(self, *args, **kwargs):

def _after_plot_update(self, frame_idx):
"""Run after plot is updated, but stay on same frame."""

video = self.state["video"]
roomrys marked this conversation as resolved.
Show resolved Hide resolved

# Redraw trails
overlay: TrackTrailOverlay = self.overlays["trails"]
overlay.redraw(self.state["video"], frame_idx)
overlay.redraw(video, frame_idx)

# Replot connected views for multi-camera projects
cams_to_include = None # TODO: make this configurable via GUI
self.commands.triangulateSession(cams_to_include=cams_to_include)

def _after_plot_change(self, player, frame_idx, selected_inst):
"""Called each time a new frame is drawn."""
Expand Down
Loading
Loading