Yw22 commited on
Commit
adbf393
1 Parent(s): 2f95554
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -388,7 +388,7 @@ class ImageConductor:
388
 
389
  outputs_path = os.path.join(output_dir, f'output_{i}_{id}.gif')
390
  save_videos_grid(sample[0][None], outputs_path)
391
-
392
  return {output_image: visualized_drag, output_video: outputs_path}
393
 
394
 
@@ -459,9 +459,9 @@ def add_tracking_points(tracking_points, first_frame_path, drag_mode, evt: gr.Se
459
 
460
  def add_drag(tracking_points):
461
  if not isinstance(tracking_points ,list):
462
- print("before", tracking_points.value)
463
  tracking_points.value.append([])
464
- print(tracking_points.value)
465
  else:
466
  tracking_points.append([])
467
  return {tracking_points_var: tracking_points}
 
388
 
389
  outputs_path = os.path.join(output_dir, f'output_{i}_{id}.gif')
390
  save_videos_grid(sample[0][None], outputs_path)
391
+ print("Done!")
392
  return {output_image: visualized_drag, output_video: outputs_path}
393
 
394
 
 
459
 
460
  def add_drag(tracking_points):
461
  if not isinstance(tracking_points ,list):
462
+ # print("before", tracking_points.value)
463
  tracking_points.value.append([])
464
+ # print(tracking_points.value)
465
  else:
466
  tracking_points.append([])
467
  return {tracking_points_var: tracking_points}