jhaoshao commited on
Commit
7ef68e2
·
1 Parent(s): 9a11597

release v1 demo

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -43,7 +43,7 @@ from chronodepth.unet_chronodepth import DiffusersUNetSpatioTemporalConditionMod
43
  from chronodepth.chronodepth_pipeline import ChronoDepthPipeline
44
  from chronodepth.video_utils import resize_max_res, colorize_video_depth
45
 
46
- MAX_FRAME=100
47
 
48
  default_seed = 2024
49
 
@@ -175,7 +175,7 @@ def process_video(
175
 
176
  def run_demo_server(pipe):
177
  process_pipe_video = spaces.GPU(
178
- functools.partial(process_video, pipe), duration=150
179
  )
180
  os.environ["GRADIO_ALLOW_FLAGGING"] = "never"
181
 
@@ -225,7 +225,7 @@ def run_demo_server(pipe):
225
  ChronoDepth is the state-of-the-art video depth estimator for streaming videos in the wild.
226
  </p>
227
  <p style="margin-top: 20px; text-align: justify;">
228
- PS: The maximum video length is limited to 100 frames for the demo. To process longer videos, please use the ChronoDepth on github.
229
  </p>
230
  """
231
  )
 
43
  from chronodepth.chronodepth_pipeline import ChronoDepthPipeline
44
  from chronodepth.video_utils import resize_max_res, colorize_video_depth
45
 
46
+ MAX_FRAME=60
47
 
48
  default_seed = 2024
49
 
 
175
 
176
  def run_demo_server(pipe):
177
  process_pipe_video = spaces.GPU(
178
+ functools.partial(process_video, pipe), duration=70
179
  )
180
  os.environ["GRADIO_ALLOW_FLAGGING"] = "never"
181
 
 
225
  ChronoDepth is the state-of-the-art video depth estimator for streaming videos in the wild.
226
  </p>
227
  <p style="margin-top: 20px; text-align: justify;">
228
+ PS: The maximum video length is limited to 60 frames for the demo. To process longer videos, please use the ChronoDepth on github.
229
  </p>
230
  """
231
  )