Initialize visual components such as SAM for assistance

This commit is contained in:
Timothyxxx
2023-11-29 20:22:48 +08:00
parent 3d0d9d7758
commit 80b148793d
3 changed files with 160 additions and 0 deletions

View File

@@ -63,6 +63,8 @@ class DuckTrackEventActionConverter:
def scroll_event_to_action(self, event: dict):
# TODO: need to confirm if df < 0 means scroll up or down
# TODO: NEED to be test to match the scroll up and down with our action, e.g. scroll here once is equal to scroll 10 or scroll 20?
if event["dy"] < 0:
down = False
else: