ritianyu commited on
Commit
e1959a2
·
1 Parent(s): c7af552
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -57,7 +57,7 @@ from InfiniDepth.utils.sampling_utils import SAMPLING_METHODS
57
 
58
 
59
  APP_ROOT = Path(__file__).resolve().parent
60
- EXAMPLES_DIR = APP_ROOT / "example_data"
61
  INPUT_SIZE = (768, 1024)
62
  APP_NAME = "infinidepth-hf-demo"
63
  MODEL_CHOICES = ["InfiniDepth", "InfiniDepth_DC"]
@@ -379,7 +379,7 @@ def _clear_outputs():
379
  return "", None, None, None, None, None
380
 
381
 
382
- with gr.Blocks() as demo:
383
  gr.Markdown("# InfiniDepth Demo")
384
  gr.Markdown(
385
  "Infer depth with `InfiniDepth` or `InfiniDepth_DC`, preview the exported point cloud with a Pixel-Perfect-Depth style `Model3D` viewer, and download all generated assets."
@@ -496,4 +496,4 @@ with gr.Blocks() as demo:
496
 
497
  if __name__ == "__main__":
498
  _preload_depth_checkpoints()
499
- demo.queue().launch(css=CSS, theme=gr.themes.Soft())
 
57
 
58
 
59
  APP_ROOT = Path(__file__).resolve().parent
60
+ EXAMPLES_DIR = APP_ROOT / "examples_huggingface"
61
  INPUT_SIZE = (768, 1024)
62
  APP_NAME = "infinidepth-hf-demo"
63
  MODEL_CHOICES = ["InfiniDepth", "InfiniDepth_DC"]
 
379
  return "", None, None, None, None, None
380
 
381
 
382
+ with gr.Blocks(css=CSS, theme=gr.themes.Soft()) as demo:
383
  gr.Markdown("# InfiniDepth Demo")
384
  gr.Markdown(
385
  "Infer depth with `InfiniDepth` or `InfiniDepth_DC`, preview the exported point cloud with a Pixel-Perfect-Depth style `Model3D` viewer, and download all generated assets."
 
496
 
497
  if __name__ == "__main__":
498
  _preload_depth_checkpoints()
499
+ demo.queue().launch()