Spaces:
Running
on
Zero
Running
on
Zero
brandonsmart
commited on
Commit
•
12c2bcf
1
Parent(s):
49b3e3d
Tweaking demo to outline download times
Browse files
demo.py
CHANGED
@@ -25,11 +25,11 @@ import utils.export as export
|
|
25 |
|
26 |
def get_reconstructed_scene(outdir, model, device, silent, image_size, ios_mode, filelist):
|
27 |
|
|
|
28 |
if ios_mode:
|
29 |
filelist = [f[0] for f in filelist]
|
30 |
if len(filelist) == 1:
|
31 |
filelist = [filelist[0], filelist[0]]
|
32 |
-
assert len(filelist) == 2, "Please provide two images"
|
33 |
imgs = load_images(filelist, size=image_size, verbose=not silent)
|
34 |
|
35 |
for img in imgs:
|
@@ -110,9 +110,10 @@ if __name__ == '__main__':
|
|
110 |
gradio.Markdown('''
|
111 |
## Output
|
112 |
Below we show the generated 3D Gaussian Splat.
|
113 |
-
|
|
|
114 |
The arrow in the top right of the window below can be used to download the .ply for rendering with other viewers,
|
115 |
-
such as [here](https://projects.markkellogg.org/threejs/demo_gaussian_splats_3d.php?art=1&cu=0,-1,0&cp=0,1,0&cla=1,0,0&aa=false&2d=false&sh=0) or [here](https://playcanvas.com/supersplat/editor)
|
116 |
''')
|
117 |
outmodel = gradio.Model3D(
|
118 |
clear_color=[1.0, 1.0, 1.0, 0.0],
|
@@ -122,6 +123,8 @@ if __name__ == '__main__':
|
|
122 |
gradio.Markdown('''
|
123 |
## Examples
|
124 |
A gallery of examples generated from ScanNet++ and from 'in the wild' images taken with a mobile phone.
|
|
|
|
|
125 |
''')
|
126 |
|
127 |
snapshot_1 = gradio.Image(None, visible=False)
|
|
|
25 |
|
26 |
def get_reconstructed_scene(outdir, model, device, silent, image_size, ios_mode, filelist):
|
27 |
|
28 |
+
assert len(filelist) == 2, "Please provide two images"
|
29 |
if ios_mode:
|
30 |
filelist = [f[0] for f in filelist]
|
31 |
if len(filelist) == 1:
|
32 |
filelist = [filelist[0], filelist[0]]
|
|
|
33 |
imgs = load_images(filelist, size=image_size, verbose=not silent)
|
34 |
|
35 |
for img in imgs:
|
|
|
110 |
gradio.Markdown('''
|
111 |
## Output
|
112 |
Below we show the generated 3D Gaussian Splat.
|
113 |
+
The generated splats are 30-40MB, so please allow up to 30 seconds for them to be downloaded from Hugging Face before rendering.
|
114 |
+
In the mean time your previous generations may be visible.
|
115 |
The arrow in the top right of the window below can be used to download the .ply for rendering with other viewers,
|
116 |
+
such as [here](https://projects.markkellogg.org/threejs/demo_gaussian_splats_3d.php?art=1&cu=0,-1,0&cp=0,1,0&cla=1,0,0&aa=false&2d=false&sh=0) or [here](https://playcanvas.com/supersplat/editor).
|
117 |
''')
|
118 |
outmodel = gradio.Model3D(
|
119 |
clear_color=[1.0, 1.0, 1.0, 0.0],
|
|
|
123 |
gradio.Markdown('''
|
124 |
## Examples
|
125 |
A gallery of examples generated from ScanNet++ and from 'in the wild' images taken with a mobile phone.
|
126 |
+
These examples are 30-40MB, so please allow up to 30 seconds for them to be downloaded from Hugging Face before rendering.
|
127 |
+
In the mean time your previous generations may be visible.
|
128 |
''')
|
129 |
|
130 |
snapshot_1 = gradio.Image(None, visible=False)
|