myniu commited on
Commit
421da8b
·
1 Parent(s): b4d6fd1
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -89,7 +89,6 @@ def get_sparseflow_and_mask_forward(
89
  return s_flow, mask
90
 
91
 
92
- @spaces.GPU(duration=200)
93
  def init_models(pretrained_model_name_or_path, resume_from_checkpoint, weight_dtype, device='cuda', enable_xformers_memory_efficient_attention=False, allow_tf32=False):
94
 
95
  from models.unet_spatio_temporal_condition_controlnet import UNetSpatioTemporalConditionControlNetModel
@@ -216,7 +215,7 @@ def visualize_drag_v2(background_image_path, splited_tracks, width, height):
216
 
217
 
218
  class Drag:
219
- @spaces.GPU(duration=200)
220
  def __init__(self, device, height, width, model_length):
221
  self.device = device
222
 
@@ -488,7 +487,7 @@ class Drag:
488
 
489
  return viz_esti_flows
490
 
491
- @spaces.GPU(duration=200)
492
  def run(self, first_frame_path, tracking_points, inference_batch_size, motion_brush_mask, motion_brush_viz, ctrl_scale):
493
 
494
  original_width, original_height = self.width, self.height
 
89
  return s_flow, mask
90
 
91
 
 
92
  def init_models(pretrained_model_name_or_path, resume_from_checkpoint, weight_dtype, device='cuda', enable_xformers_memory_efficient_attention=False, allow_tf32=False):
93
 
94
  from models.unet_spatio_temporal_condition_controlnet import UNetSpatioTemporalConditionControlNetModel
 
215
 
216
 
217
  class Drag:
218
+ @spaces.GPU(duration=300)
219
  def __init__(self, device, height, width, model_length):
220
  self.device = device
221
 
 
487
 
488
  return viz_esti_flows
489
 
490
+ @spaces.GPU(duration=300)
491
  def run(self, first_frame_path, tracking_points, inference_batch_size, motion_brush_mask, motion_brush_viz, ctrl_scale):
492
 
493
  original_width, original_height = self.width, self.height