ritwikraha commited on
Commit
aa33259
1 Parent(s): bef7a3a
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -246,25 +246,25 @@ def show_rendered_image(r,theta,phi):
246
  # app.py text matter starts here
247
  st.title('NeRF:Neural Radiance Fields')
248
  # set the values of r theta phi
249
-
250
-
251
-
 
252
 
253
  col1, col2= st.columns([4,4])
254
 
255
  with col1:
256
- r = 4.0
257
- theta = st.slider('Enter a value for theta',min_value = 0.0,max_value = 360.0)
258
- phi = -30.0
259
 
260
 
261
  with col2:
262
- color,depth = show_rendered_image(r,theta,phi)
263
- color = tf.keras.utils.array_to_img(color)
264
- #depth = tf.keras.utils.array_to_img(depth)
 
265
 
266
- st.image(color, caption = "Color",clamp = True, width = 400)
267
- #st.image(depth, caption = "Depth",clamp = True, width = 200)
268
 
269
 
270
 
 
246
  # app.py text matter starts here
247
  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
+ phi = -30.0
252
+ color, depth = show_rendered_image(r, theta, phi)
253
 
254
  col1, col2= st.columns([4,4])
255
 
256
  with col1:
257
+ color = tf.keras.utils.array_to_img(color)
258
+
259
+ st.image(color, caption = "Color",clamp = True, width = 400)
260
 
261
 
262
  with col2:
263
+ depth = tf.keras.utils.array_to_img(depth[..., None])
264
+ st.image(depth, caption = "Depth",clamp = True, width = 200)
265
+
266
+
267
 
 
 
268
 
269
 
270