wbhu-tc commited on
Commit
202e81a
·
1 Parent(s): 634bcb1
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -22,7 +22,6 @@ examples = [
22
 
23
  unet = DiffusersUNetSpatioTemporalConditionModelDepthCrafter.from_pretrained(
24
  "tencent/DepthCrafter",
25
- subfolder="unet",
26
  low_cpu_mem_usage=True,
27
  torch_dtype=torch.float16,
28
  )
@@ -35,7 +34,7 @@ pipe = DepthCrafterPipeline.from_pretrained(
35
  pipe.to("cuda")
36
 
37
 
38
- @spaces.GPU()
39
  def infer_depth(
40
  video: str,
41
  num_denoising_steps: int,
 
22
 
23
  unet = DiffusersUNetSpatioTemporalConditionModelDepthCrafter.from_pretrained(
24
  "tencent/DepthCrafter",
 
25
  low_cpu_mem_usage=True,
26
  torch_dtype=torch.float16,
27
  )
 
34
  pipe.to("cuda")
35
 
36
 
37
+ @spaces.GPU(duration=120)
38
  def infer_depth(
39
  video: str,
40
  num_denoising_steps: int,