ritwikraha commited on
Commit
22bc445
·
1 Parent(s): ea234eb
Files changed (1) hide show
  1. app.py +5 -6
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
- st.write('Phi:', phi)
254
 
255
  color,depth = show_rendered_image(r,theta,phi)
256
 
257
- # fig, ax = plt.subplots()
258
- # im = ax.imshow(color)
259
- # st.pyplot(fig)
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