Spaces:
Running on Zero
Running on Zero
fix bug
Browse files
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 / "
|
| 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(
|
|
|
|
| 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()
|