Spaces:
Runtime error
Runtime error
add ckpt & examples
Browse files- .gitignore +2 -2
- app.py +13 -41
- submodules/dust3r/checkpoints/DUSt3R_ViTLarge_BaseDecoder_512_dpt.pth +3 -0
.gitignore
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
.vscode/
|
| 4 |
/tmp
|
| 5 |
/data
|
| 6 |
-
/checkpoints
|
| 7 |
*.so
|
| 8 |
*.patch
|
| 9 |
__pycache__/
|
|
@@ -14,7 +14,7 @@ build/
|
|
| 14 |
*.pyd
|
| 15 |
/cache*
|
| 16 |
*.stl
|
| 17 |
-
*.pth
|
| 18 |
/venv/
|
| 19 |
.nk8s
|
| 20 |
*.mp4
|
|
|
|
| 3 |
.vscode/
|
| 4 |
/tmp
|
| 5 |
/data
|
| 6 |
+
# /checkpoints
|
| 7 |
*.so
|
| 8 |
*.patch
|
| 9 |
__pycache__/
|
|
|
|
| 14 |
*.pyd
|
| 15 |
/cache*
|
| 16 |
*.stl
|
| 17 |
+
# *.pth
|
| 18 |
/venv/
|
| 19 |
.nk8s
|
| 20 |
*.mp4
|
app.py
CHANGED
|
@@ -234,44 +234,16 @@ with block:
|
|
| 234 |
|
| 235 |
button_gen.click(process, inputs=[inputfiles], outputs=[ output_video, output_file, output_model])
|
| 236 |
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
|
| 245 |
-
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
block.launch(server_name="0.0.0.0", share=False)
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
# block = gr.Blocks(title=_TITLE).queue()
|
| 253 |
-
# with block:
|
| 254 |
-
# with gr.Row():
|
| 255 |
-
# with gr.Column(scale=1):
|
| 256 |
-
# gr.Markdown('# ' + _TITLE)
|
| 257 |
-
# # gr.Markdown(_DESCRIPTION)
|
| 258 |
-
|
| 259 |
-
# with gr.Row(variant='panel'):
|
| 260 |
-
# with gr.Column(scale=1):
|
| 261 |
-
# with gr.Tab("Input"):
|
| 262 |
-
# inputfiles = gr.File(file_count="multiple", label="images")
|
| 263 |
-
# button_gen = gr.Button("RUN")
|
| 264 |
-
|
| 265 |
-
# with gr.Column(scale=2):
|
| 266 |
-
# with gr.Tab("Output"):
|
| 267 |
-
# output_video = gr.Video(label="video")
|
| 268 |
-
# output_model = gr.Model3D(
|
| 269 |
-
# label="3D Model (Gaussian)",
|
| 270 |
-
# height=300,
|
| 271 |
-
# interactive=False,
|
| 272 |
-
# )
|
| 273 |
-
# output_file = gr.File(label="ply")
|
| 274 |
-
|
| 275 |
-
# button_gen.click(process, inputs=[inputfiles], outputs=[ output_video, output_file, output_model])
|
| 276 |
-
|
| 277 |
-
# block.launch(server_name="0.0.0.0", share=False)
|
|
|
|
| 234 |
|
| 235 |
button_gen.click(process, inputs=[inputfiles], outputs=[ output_video, output_file, output_model])
|
| 236 |
|
| 237 |
+
gr.Examples(
|
| 238 |
+
examples=[
|
| 239 |
+
"sora-santorini-3-views",
|
| 240 |
+
"TT-family-3-views",
|
| 241 |
+
"dl3dv-ba55-3-views",
|
| 242 |
+
],
|
| 243 |
+
inputs=[input_path],
|
| 244 |
+
outputs=[output_video, output_file, output_model],
|
| 245 |
+
fn=lambda x: process(inputfiles=None, input_path=x),
|
| 246 |
+
cache_examples=True,
|
| 247 |
+
label='Sparse-view Examples'
|
| 248 |
+
)
|
| 249 |
+
block.launch(server_name="0.0.0.0", share=False)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
submodules/dust3r/checkpoints/DUSt3R_ViTLarge_BaseDecoder_512_dpt.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5e8bbf0c4d1d6007f5343f3f45814b956ddc5bbb4d00cb66beaf73afe5c53b34
|
| 3 |
+
size 2285019929
|