Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -133,14 +133,17 @@ def preprocess_video_in(video_path):
|
|
133 |
def get_point(point_type, tracking_points, trackings_input_label, input_first_frame_image, evt: gr.SelectData):
|
134 |
print(f"You selected {evt.value} at {evt.index} from {evt.target}")
|
135 |
|
136 |
-
tracking_points.
|
137 |
-
|
|
|
138 |
|
139 |
if point_type == "include":
|
140 |
-
trackings_input_label.
|
|
|
141 |
elif point_type == "exclude":
|
142 |
-
trackings_input_label.
|
143 |
-
|
|
|
144 |
|
145 |
# Open the image and get its dimensions
|
146 |
transparent_background = Image.open(input_first_frame_image).convert('RGBA')
|
|
|
133 |
def get_point(point_type, tracking_points, trackings_input_label, input_first_frame_image, evt: gr.SelectData):
|
134 |
print(f"You selected {evt.value} at {evt.index} from {evt.target}")
|
135 |
|
136 |
+
tracking_points.append(evt.index)
|
137 |
+
# tracking_points.value.append(evt.index)
|
138 |
+
print(f"TRACKING POINT: {tracking_points}")
|
139 |
|
140 |
if point_type == "include":
|
141 |
+
trackings_input_label.append(1)
|
142 |
+
# trackings_input_label.value.append(1)
|
143 |
elif point_type == "exclude":
|
144 |
+
trackings_input_label.append(0)
|
145 |
+
# trackings_input_label.value.append(0)
|
146 |
+
print(f"TRACKING INPUT LABEL: {trackings_input_label}")
|
147 |
|
148 |
# Open the image and get its dimensions
|
149 |
transparent_background = Image.open(input_first_frame_image).convert('RGBA')
|