ritwikraha
commited on
Commit
·
88880a2
1
Parent(s):
954ad8e
check
Browse files
app.py
CHANGED
|
@@ -241,7 +241,7 @@ def show_rendered_image(r,theta,phi):
|
|
| 241 |
rgb, depth = render_rgb_depth(
|
| 242 |
nerf_loaded, rays_flat[None, ...], t_vals[None, ...], rand=False, train=False
|
| 243 |
)
|
| 244 |
-
return(rgb[0]
|
| 245 |
|
| 246 |
# app.py text matter starts here
|
| 247 |
st.title('NeRF:Neural Radiance Fields')
|
|
@@ -256,7 +256,7 @@ color,depth = show_rendered_image(r,theta,phi)
|
|
| 256 |
|
| 257 |
fig, ax = plt.subplots()
|
| 258 |
im = ax.imshow(color)
|
| 259 |
-
st.pyplot()
|
| 260 |
|
| 261 |
# st.image(color, caption = "Color")
|
| 262 |
# st.image(depth, caption = "Depth")
|
|
|
|
| 241 |
rgb, depth = render_rgb_depth(
|
| 242 |
nerf_loaded, rays_flat[None, ...], t_vals[None, ...], rand=False, train=False
|
| 243 |
)
|
| 244 |
+
return(rgb[0], depth[0])
|
| 245 |
|
| 246 |
# app.py text matter starts here
|
| 247 |
st.title('NeRF:Neural Radiance Fields')
|
|
|
|
| 256 |
|
| 257 |
fig, ax = plt.subplots()
|
| 258 |
im = ax.imshow(color)
|
| 259 |
+
st.pyplot(im)
|
| 260 |
|
| 261 |
# st.image(color, caption = "Color")
|
| 262 |
# st.image(depth, caption = "Depth")
|