Spaces:
Build error
Build error
UI Changes
Browse files
app.py
CHANGED
@@ -28,6 +28,7 @@ def select_model(obj_select):
|
|
28 |
|
29 |
return DIET_NERF_MODEL_NAME, DIET_NERF_FILE_ID, NERF_MODEL_NAME, NERF_FILE_ID
|
30 |
|
|
|
31 |
pi = math.pi
|
32 |
|
33 |
st.title("DietNeRF")
|
@@ -70,6 +71,11 @@ caption = (
|
|
70 |
)
|
71 |
st.markdown(caption)
|
72 |
st.markdown("")
|
|
|
|
|
|
|
|
|
|
|
73 |
obj_select = st.selectbox("Select a Scene", SCENES_LIST, index=0)
|
74 |
DIET_NERF_MODEL_NAME, DIET_NERF_FILE_ID, NERF_MODEL_NAME, NERF_FILE_ID = select_model(obj_select)
|
75 |
|
@@ -131,9 +137,11 @@ with st.spinner("Rendering view..."):
|
|
131 |
# n_new_w = int(2 * n_w)
|
132 |
# n_im = n_im.resize(size=(n_new_w, n_new_w))
|
133 |
|
134 |
-
|
135 |
-
|
136 |
-
|
|
|
|
|
137 |
|
138 |
# nerf_col.markdown("""<h4 style='text-align: center'>NeRF</h4>""", unsafe_allow_html=True)
|
139 |
# nerf_col.image(n_im, use_column_width=True)
|
|
|
28 |
|
29 |
return DIET_NERF_MODEL_NAME, DIET_NERF_FILE_ID, NERF_MODEL_NAME, NERF_FILE_ID
|
30 |
|
31 |
+
|
32 |
pi = math.pi
|
33 |
|
34 |
st.title("DietNeRF")
|
|
|
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 |
# 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)
|