hassiahk commited on
Commit
b6c08b0
β€’
1 Parent(s): bcc3336

Added warning for downsampled view

Browse files
Files changed (1) hide show
  1. app.py +12 -5
app.py CHANGED
@@ -70,12 +70,16 @@ caption = (
70
  "**outperforming** original [NeRF](https://www.matthewtancik.com/nerf)!"
71
  )
72
  st.markdown(caption)
73
- st.markdown("")
74
  st.markdown(
75
  "> πŸ“’ NOTE: Look at the "
76
  "[Experimental Results](https://www.notion.so/DietNeRF-Putting-NeRF-on-a-Diet-4aeddae95d054f1d91686f02bdb74745#0f6bc8f1008d4765b9b4635999626d4b) "
77
  "section in our report to get a detailed comparison of differences between `DietNeRF` and `NeRF`."
78
  )
 
 
 
 
 
79
  obj_select = st.selectbox("Select a Scene", SCENES_LIST, index=0)
80
  DIET_NERF_MODEL_NAME, DIET_NERF_FILE_ID, NERF_MODEL_NAME, NERF_FILE_ID = select_model(obj_select)
81
 
@@ -137,11 +141,14 @@ with st.spinner("Rendering view..."):
137
  # n_new_w = int(2 * n_w)
138
  # n_im = n_im.resize(size=(n_new_w, n_new_w))
139
 
140
- diet_nerf_col, nerf_col = st.beta_columns([1, 1])
141
- diet_nerf_col.markdown(
142
- f"""<h4 style='text-align: center'>Rendered view for {obj_select}</h4>""", unsafe_allow_html=True
 
 
 
 
143
  )
144
- diet_nerf_col.image(dn_im, use_column_width=True)
145
 
146
  # nerf_col.markdown("""<h4 style='text-align: center'>NeRF</h4>""", unsafe_allow_html=True)
147
  # nerf_col.image(n_im, use_column_width=True)
 
70
  "**outperforming** original [NeRF](https://www.matthewtancik.com/nerf)!"
71
  )
72
  st.markdown(caption)
 
73
  st.markdown(
74
  "> πŸ“’ NOTE: Look at the "
75
  "[Experimental Results](https://www.notion.so/DietNeRF-Putting-NeRF-on-a-Diet-4aeddae95d054f1d91686f02bdb74745#0f6bc8f1008d4765b9b4635999626d4b) "
76
  "section in our report to get a detailed comparison of differences between `DietNeRF` and `NeRF`."
77
  )
78
+
79
+ st.markdown(
80
+ "> :bomb: WARNING: The rendered view does not fully reflect the true quality of the view generated by the model "
81
+ "because it has been downsampled to speedup the process."
82
+ )
83
  obj_select = st.selectbox("Select a Scene", SCENES_LIST, index=0)
84
  DIET_NERF_MODEL_NAME, DIET_NERF_FILE_ID, NERF_MODEL_NAME, NERF_FILE_ID = select_model(obj_select)
85
 
 
141
  # n_new_w = int(2 * n_w)
142
  # n_im = n_im.resize(size=(n_new_w, n_new_w))
143
 
144
+ # diet_nerf_col, nerf_col = st.beta_columns([1, 1])
145
+ st.markdown(f"""<h4 style='text-align: center'>Rendered view for {obj_select}</h4>""", unsafe_allow_html=True)
146
+ st.image(dn_im, use_column_width=True)
147
+
148
+ st.markdown(
149
+ "> :bomb: WARNING: The rendered view does not fully reflect the true quality of the view generated by the model "
150
+ "because it has been downsampled to speedup the process."
151
  )
 
152
 
153
  # nerf_col.markdown("""<h4 style='text-align: center'>NeRF</h4>""", unsafe_allow_html=True)
154
  # nerf_col.image(n_im, use_column_width=True)