Spaces:
Runtime error
Runtime error
Update
Browse files- .gitattributes +1 -0
- app.py +21 -1
- assets/a_cat_dressed_as_the_pope.splat +3 -0
- assets/a_purple_winter_jacket.splat +3 -0
- assets/an_otter_wearing_sunglasses.splat +3 -0
- assets/green_parrot.splat +3 -0
- requirements.txt +2 -0
.gitattributes
CHANGED
|
@@ -32,3 +32,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 32 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 32 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*.splat filter=lfs diff=lfs merge=lfs -text
|
app.py
CHANGED
|
@@ -2,8 +2,28 @@
|
|
| 2 |
|
| 3 |
import gradio as gr
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
with gr.Blocks() as demo:
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
if __name__ == "__main__":
|
| 9 |
demo.queue().launch()
|
|
|
|
| 2 |
|
| 3 |
import gradio as gr
|
| 4 |
|
| 5 |
+
from gradio_model3dgs import Model3DGS
|
| 6 |
+
|
| 7 |
+
DESCRIPTION = """
|
| 8 |
+
- [GitHub](https://github.com/dylanebert/gradio-splatting)
|
| 9 |
+
- [PyPI](https://pypi.org/project/gradio-model3dgs/)
|
| 10 |
+
- Examples were made with [this Space](https://huggingface.co/spaces/vast-ai/TriplaneGaussian).
|
| 11 |
+
"""
|
| 12 |
+
|
| 13 |
with gr.Blocks() as demo:
|
| 14 |
+
model3d = Model3DGS()
|
| 15 |
+
gr.Examples(
|
| 16 |
+
examples=[
|
| 17 |
+
"assets/green_parrot.splat",
|
| 18 |
+
"assets/a_cat_dressed_as_the_pope.splat",
|
| 19 |
+
"assets/a_purple_winter_jacket.splat",
|
| 20 |
+
"assets/an_otter_wearing_sunglasses.splat",
|
| 21 |
+
],
|
| 22 |
+
inputs=model3d,
|
| 23 |
+
)
|
| 24 |
+
|
| 25 |
+
gr.Markdown(DESCRIPTION)
|
| 26 |
+
|
| 27 |
|
| 28 |
if __name__ == "__main__":
|
| 29 |
demo.queue().launch()
|
assets/a_cat_dressed_as_the_pope.splat
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:10439138074d1d7e8530ea42245b887016734b52091b26585aeb5231659c832f
|
| 3 |
+
size 524288
|
assets/a_purple_winter_jacket.splat
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cfbeb65dcfaff06c14267ae20e9a10ab262fcf96d6c054381135b73e3ac35537
|
| 3 |
+
size 524288
|
assets/an_otter_wearing_sunglasses.splat
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f14779419ef7962fcc8001395250daf547f0134a784f110bfd958cb528e042d2
|
| 3 |
+
size 524288
|
assets/green_parrot.splat
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:10289644f09151bbccfee90b3bad61d3b4a0a786a3f49321fbc1e4ceb6e8deae
|
| 3 |
+
size 524288
|
requirements.txt
CHANGED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
gradio==4.13.0
|
| 2 |
+
gradio_model3dgs==0.2.3
|