Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
@@ -123,7 +123,7 @@ def preprocess_video_in(video_path):
|
|
123 |
gr.update(open=False) # video_in_drawer
|
124 |
]
|
125 |
|
126 |
-
def get_point(point_type, tracking_points, trackings_input_label,
|
127 |
print(f"You selected {evt.value} at {evt.index} from {evt.target}")
|
128 |
|
129 |
tracking_points.value.append(evt.index)
|
@@ -136,7 +136,7 @@ def get_point(point_type, tracking_points, trackings_input_label, input_first_fr
|
|
136 |
print(f"TRACKING INPUT LABEL: {trackings_input_label.value}")
|
137 |
|
138 |
# Open the image and get its dimensions
|
139 |
-
transparent_background = Image.open(
|
140 |
w, h = transparent_background.size
|
141 |
|
142 |
# Define the circle radius as a fraction of the smaller dimension
|
|
|
123 |
gr.update(open=False) # video_in_drawer
|
124 |
]
|
125 |
|
126 |
+
def get_point(point_type, tracking_points, trackings_input_label, input_first_frame_image, evt: gr.SelectData):
|
127 |
print(f"You selected {evt.value} at {evt.index} from {evt.target}")
|
128 |
|
129 |
tracking_points.value.append(evt.index)
|
|
|
136 |
print(f"TRACKING INPUT LABEL: {trackings_input_label.value}")
|
137 |
|
138 |
# Open the image and get its dimensions
|
139 |
+
transparent_background = Image.open(input_first_frame_image).convert('RGBA')
|
140 |
w, h = transparent_background.size
|
141 |
|
142 |
# Define the circle radius as a fraction of the smaller dimension
|