Spaces:
Running
on
Zero
Running
on
Zero
xinjie.wang
commited on
Commit
·
5aae6b8
1
Parent(s):
97a9cce
update
Browse files- app.py +12 -11
- requirements.txt +2 -2
app.py
CHANGED
@@ -64,7 +64,7 @@ def end_session(req: gr.Request) -> None:
|
|
64 |
|
65 |
|
66 |
with gr.Blocks(
|
67 |
-
delete_cache=(43200, 43200)
|
68 |
) as demo:
|
69 |
gr.Markdown(
|
70 |
f"""
|
@@ -269,16 +269,17 @@ with gr.Blocks(
|
|
269 |
loop=True,
|
270 |
height=300,
|
271 |
)
|
272 |
-
model_output_gs =
|
273 |
label="Gaussian Representation", height=300, interactive=False
|
274 |
)
|
275 |
aligned_gs = gr.Textbox(visible=False)
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
|
|
282 |
gr.Markdown(
|
283 |
""" The rendering of `Gaussian Representation` takes additional 10s. """ # noqa
|
284 |
)
|
@@ -334,7 +335,7 @@ with gr.Blocks(
|
|
334 |
download_urdf,
|
335 |
model_output_gs,
|
336 |
aligned_gs,
|
337 |
-
|
338 |
video_output,
|
339 |
asset_cat_text,
|
340 |
height_range_text,
|
@@ -385,7 +386,7 @@ with gr.Blocks(
|
|
385 |
extract_urdf_btn,
|
386 |
download_urdf,
|
387 |
model_output_gs,
|
388 |
-
|
389 |
video_output,
|
390 |
asset_cat_text,
|
391 |
height_range_text,
|
@@ -451,7 +452,7 @@ with gr.Blocks(
|
|
451 |
# gr.State(lambda: IMAGESR_MODEL),
|
452 |
],
|
453 |
outputs=[
|
454 |
-
|
455 |
model_output_gs,
|
456 |
model_output_obj,
|
457 |
aligned_gs,
|
|
|
64 |
|
65 |
|
66 |
with gr.Blocks(
|
67 |
+
delete_cache=(43200, 43200)
|
68 |
) as demo:
|
69 |
gr.Markdown(
|
70 |
f"""
|
|
|
269 |
loop=True,
|
270 |
height=300,
|
271 |
)
|
272 |
+
model_output_gs = gr.Model3D(
|
273 |
label="Gaussian Representation", height=300, interactive=False
|
274 |
)
|
275 |
aligned_gs = gr.Textbox(visible=False)
|
276 |
+
with gr.Row():
|
277 |
+
model_output_mesh = LitModel3D(
|
278 |
+
label="Mesh Representation",
|
279 |
+
height=300,
|
280 |
+
exposure=10,
|
281 |
+
interactive=False
|
282 |
+
)
|
283 |
gr.Markdown(
|
284 |
""" The rendering of `Gaussian Representation` takes additional 10s. """ # noqa
|
285 |
)
|
|
|
335 |
download_urdf,
|
336 |
model_output_gs,
|
337 |
aligned_gs,
|
338 |
+
model_output_mesh,
|
339 |
video_output,
|
340 |
asset_cat_text,
|
341 |
height_range_text,
|
|
|
386 |
extract_urdf_btn,
|
387 |
download_urdf,
|
388 |
model_output_gs,
|
389 |
+
model_output_mesh,
|
390 |
video_output,
|
391 |
asset_cat_text,
|
392 |
height_range_text,
|
|
|
452 |
# gr.State(lambda: IMAGESR_MODEL),
|
453 |
],
|
454 |
outputs=[
|
455 |
+
model_output_mesh,
|
456 |
model_output_gs,
|
457 |
model_output_obj,
|
458 |
aligned_gs,
|
requirements.txt
CHANGED
@@ -21,8 +21,8 @@ pyvista==0.36.1
|
|
21 |
openai==1.58.1
|
22 |
spconv-cu118==2.3.8
|
23 |
transformers==4.42.4
|
24 |
-
|
25 |
-
gradio==5.12.0
|
26 |
sentencepiece==0.2.0
|
27 |
diffusers==0.31.0
|
28 |
xatlas==0.0.9
|
|
|
21 |
openai==1.58.1
|
22 |
spconv-cu118==2.3.8
|
23 |
transformers==4.42.4
|
24 |
+
gradio_litmodel3d==0.0.1
|
25 |
+
# gradio==5.12.0
|
26 |
sentencepiece==0.2.0
|
27 |
diffusers==0.31.0
|
28 |
xatlas==0.0.9
|