Spaces:
Build error
Build error
UI fix for the warning message
Browse files
app.py
CHANGED
@@ -126,10 +126,6 @@ with st.spinner("Rendering view..."):
|
|
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
|
@@ -143,6 +139,10 @@ with st.spinner("Rendering view..."):
|
|
143 |
# n_im = n_im.resize(size=(n_new_w, n_new_w))
|
144 |
|
145 |
# diet_nerf_col, nerf_col = st.beta_columns([1, 1])
|
|
|
|
|
|
|
|
|
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 |
|
|
|
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 |
dn_pred_color, _ = render_predict_from_pose(diet_nerf_state, theta, phi, radius)
|
130 |
dn_im = predict_to_image(dn_pred_color)
|
131 |
dn_w, _ = dn_im.size
|
|
|
139 |
# n_im = n_im.resize(size=(n_new_w, n_new_w))
|
140 |
|
141 |
# diet_nerf_col, nerf_col = st.beta_columns([1, 1])
|
142 |
+
st.markdown(
|
143 |
+
"> :bomb: WARNING: The rendered view does not fully reflect the true quality of the view generated by the model "
|
144 |
+
"because it has been downsampled to speedup the process."
|
145 |
+
)
|
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 |
|