Spaces:
Runtime error
Runtime error
David Krajewski
commited on
Commit
·
f479f5b
1
Parent(s):
1b332d2
Debugging
Browse files
app.py
CHANGED
|
@@ -764,11 +764,12 @@ with gr.Blocks() as demo:
|
|
| 764 |
return motion_brush_mask, transparent_layer, motion_map, viz_flow
|
| 765 |
|
| 766 |
def add_tracking_points(tracking_points, first_frame_path, motion_brush_mask, evt: gr.SelectData):
|
| 767 |
-
print(evt)
|
| 768 |
print(f"You selected {evt.value} at {evt.index} from {evt.target}")
|
|
|
|
|
|
|
|
|
|
| 769 |
tracking_points.constructor_args['value'][-1].append(evt.index)
|
| 770 |
|
| 771 |
-
# print(tracking_points.constructor_args['value'])
|
| 772 |
|
| 773 |
transparent_background = Image.open(first_frame_path).convert('RGBA')
|
| 774 |
w, h = transparent_background.size
|
|
|
|
| 764 |
return motion_brush_mask, transparent_layer, motion_map, viz_flow
|
| 765 |
|
| 766 |
def add_tracking_points(tracking_points, first_frame_path, motion_brush_mask, evt: gr.SelectData):
|
|
|
|
| 767 |
print(f"You selected {evt.value} at {evt.index} from {evt.target}")
|
| 768 |
+
|
| 769 |
+
print(tracking_points.constructor_args, tracking_points.constructor_args['value'])
|
| 770 |
+
|
| 771 |
tracking_points.constructor_args['value'][-1].append(evt.index)
|
| 772 |
|
|
|
|
| 773 |
|
| 774 |
transparent_background = Image.open(first_frame_path).convert('RGBA')
|
| 775 |
w, h = transparent_background.size
|