Spaces:
Running
on
Zero
Running
on
Zero
xinjie.wang
commited on
Commit
·
3951aae
1
Parent(s):
5801428
update
Browse files
app.py
CHANGED
@@ -3,10 +3,10 @@ import shutil
|
|
3 |
import spaces
|
4 |
import gradio as gr
|
5 |
from gradio_litmodel3d import LitModel3D
|
6 |
-
TMP_DIR = os.path.join(
|
7 |
-
|
8 |
-
)
|
9 |
-
os.makedirs(TMP_DIR, exist_ok=True)
|
10 |
|
11 |
# RBG_REMOVER = RembgRemover()
|
12 |
# SAM_PREDICTOR = SAMPredictor(model_type="vit_h")
|
@@ -30,7 +30,6 @@ def greet(n):
|
|
30 |
return f"Hello {zero + n} Tensor"
|
31 |
|
32 |
with gr.Blocks(
|
33 |
-
delete_cache=(43200, 43200)
|
34 |
) as demo:
|
35 |
with gr.Column():
|
36 |
# video_output = gr.Video(
|
@@ -52,9 +51,9 @@ with gr.Blocks(
|
|
52 |
# # interactive=False
|
53 |
# )
|
54 |
model_output_mesh = LitModel3D(label="Extracted GLB/Gaussian", exposure=10.0, height=300)
|
55 |
-
gr.Markdown(
|
56 |
-
|
57 |
-
)
|
58 |
|
59 |
|
60 |
if __name__ == "__main__":
|
|
|
3 |
import spaces
|
4 |
import gradio as gr
|
5 |
from gradio_litmodel3d import LitModel3D
|
6 |
+
# TMP_DIR = os.path.join(
|
7 |
+
# os.path.dirname(os.path.abspath(__file__)), "sessions/imageto3d"
|
8 |
+
# )
|
9 |
+
# os.makedirs(TMP_DIR, exist_ok=True)
|
10 |
|
11 |
# RBG_REMOVER = RembgRemover()
|
12 |
# SAM_PREDICTOR = SAMPredictor(model_type="vit_h")
|
|
|
30 |
return f"Hello {zero + n} Tensor"
|
31 |
|
32 |
with gr.Blocks(
|
|
|
33 |
) as demo:
|
34 |
with gr.Column():
|
35 |
# video_output = gr.Video(
|
|
|
51 |
# # interactive=False
|
52 |
# )
|
53 |
model_output_mesh = LitModel3D(label="Extracted GLB/Gaussian", exposure=10.0, height=300)
|
54 |
+
# gr.Markdown(
|
55 |
+
# """ The rendering of `Gaussian Representation` takes additional 10s. """ # noqa
|
56 |
+
# )
|
57 |
|
58 |
|
59 |
if __name__ == "__main__":
|