hassiahk commited on
Commit
4b03ae2
1 Parent(s): b6c08b0

UI changes for the warning message

Browse files
Files changed (1) hide show
  1. app.py +5 -9
app.py CHANGED
@@ -76,10 +76,7 @@ st.markdown(
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
 
@@ -129,6 +126,10 @@ with st.spinner("Rendering view..."):
129
  with st.spinner(
130
  "It may take around 1-2 mins. In the meantime, why don't you take a look at our report if you haven't already :)"
131
  ):
 
 
 
 
132
  dn_pred_color, _ = render_predict_from_pose(diet_nerf_state, theta, phi, radius)
133
  dn_im = predict_to_image(dn_pred_color)
134
  dn_w, _ = dn_im.size
@@ -145,11 +146,6 @@ with st.spinner("Rendering view..."):
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)
155
 
 
76
  "section in our report to get a detailed comparison of differences between `DietNeRF` and `NeRF`."
77
  )
78
 
79
+
 
 
 
80
  obj_select = st.selectbox("Select a Scene", SCENES_LIST, index=0)
81
  DIET_NERF_MODEL_NAME, DIET_NERF_FILE_ID, NERF_MODEL_NAME, NERF_FILE_ID = select_model(obj_select)
82
 
 
126
  with st.spinner(
127
  "It may take around 1-2 mins. In the meantime, why don't you take a look at our report if you haven't already :)"
128
  ):
129
+ st.markdown(
130
+ "> :bomb: WARNING: The rendered view does not fully reflect the true quality of the view generated by the model "
131
+ "because it has been downsampled to speedup the process."
132
+ )
133
  dn_pred_color, _ = render_predict_from_pose(diet_nerf_state, theta, phi, radius)
134
  dn_im = predict_to_image(dn_pred_color)
135
  dn_w, _ = dn_im.size
 
146
  st.markdown(f"""<h4 style='text-align: center'>Rendered view for {obj_select}</h4>""", unsafe_allow_html=True)
147
  st.image(dn_im, use_column_width=True)
148
 
 
 
 
 
 
149
  # nerf_col.markdown("""<h4 style='text-align: center'>NeRF</h4>""", unsafe_allow_html=True)
150
  # nerf_col.image(n_im, use_column_width=True)
151