ritwikraha
commited on
Commit
·
22bc445
1
Parent(s):
ea234eb
check
Browse files
app.py
CHANGED
@@ -248,17 +248,16 @@ st.title('NeRF:Neural Radiance Fields')
|
|
248 |
# set the values of r theta phi
|
249 |
r = 4.0
|
250 |
theta = st.slider('Enter a value for theta',min_value = 0.0,max_value = 360.0)
|
251 |
-
st.write('Theta:', theta)
|
252 |
phi = st.slider('Enter a value for phi',min_value = 0.0,max_value = 360.0)
|
253 |
-
|
254 |
|
255 |
color,depth = show_rendered_image(r,theta,phi)
|
256 |
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
|
261 |
-
st.image(color.astype('int32'), caption = "Color",clamp = True)
|
262 |
# st.image(depth, caption = "Depth")
|
263 |
|
264 |
|
|
|
248 |
# set the values of r theta phi
|
249 |
r = 4.0
|
250 |
theta = st.slider('Enter a value for theta',min_value = 0.0,max_value = 360.0)
|
|
|
251 |
phi = st.slider('Enter a value for phi',min_value = 0.0,max_value = 360.0)
|
252 |
+
|
253 |
|
254 |
color,depth = show_rendered_image(r,theta,phi)
|
255 |
|
256 |
+
fig, ax = plt.subplots()
|
257 |
+
im = ax.imshow(color)
|
258 |
+
st.pyplot(fig)
|
259 |
|
260 |
+
#st.image(color.astype('int32'), caption = "Color",clamp = True)
|
261 |
# st.image(depth, caption = "Depth")
|
262 |
|
263 |
|