Spaces:
Build error
Build error
Fix MODEL_DIR error
Browse files
app.py
CHANGED
|
@@ -35,6 +35,18 @@ def select_model():
|
|
| 35 |
return MODEL_DIR, MODEL_NAME, FILE_ID
|
| 36 |
|
| 37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
@st.cache
|
| 39 |
def download_model():
|
| 40 |
os.makedirs(MODEL_DIR, exist_ok=True)
|
|
@@ -71,17 +83,6 @@ radius = st.sidebar.slider(
|
|
| 71 |
"Radius", min_value=2.0, max_value=6.0, step=1.0, value=3.0, help="Distance between object and the viewer"
|
| 72 |
)
|
| 73 |
|
| 74 |
-
st.title("DietNeRF")
|
| 75 |
-
caption = (
|
| 76 |
-
"Diet-NeRF achieves SoTA few-shot learning capacity in 3D model reconstruction. "
|
| 77 |
-
"Thanks to the 2D supervision by CLIP (aka semantic loss), "
|
| 78 |
-
"it can render novel and challenging views with ONLY 8 training images, "
|
| 79 |
-
"outperforming original NeRF!"
|
| 80 |
-
)
|
| 81 |
-
st.markdown(caption)
|
| 82 |
-
st.markdown("")
|
| 83 |
-
MODEL_DIR, MODEL_NAME, FILE_ID = select_model()
|
| 84 |
-
|
| 85 |
st.markdown("")
|
| 86 |
|
| 87 |
with st.spinner("Rendering Image, it may take 2-3 mins. So, why don't you read our report in the meantime"):
|
|
|
|
| 35 |
return MODEL_DIR, MODEL_NAME, FILE_ID
|
| 36 |
|
| 37 |
|
| 38 |
+
st.title("DietNeRF")
|
| 39 |
+
caption = (
|
| 40 |
+
"Diet-NeRF achieves SoTA few-shot learning capacity in 3D model reconstruction. "
|
| 41 |
+
"Thanks to the 2D supervision by CLIP (aka semantic loss), "
|
| 42 |
+
"it can render novel and challenging views with ONLY 8 training images, "
|
| 43 |
+
"outperforming original NeRF!"
|
| 44 |
+
)
|
| 45 |
+
st.markdown(caption)
|
| 46 |
+
st.markdown("")
|
| 47 |
+
MODEL_DIR, MODEL_NAME, FILE_ID = select_model()
|
| 48 |
+
|
| 49 |
+
|
| 50 |
@st.cache
|
| 51 |
def download_model():
|
| 52 |
os.makedirs(MODEL_DIR, exist_ok=True)
|
|
|
|
| 83 |
"Radius", min_value=2.0, max_value=6.0, step=1.0, value=3.0, help="Distance between object and the viewer"
|
| 84 |
)
|
| 85 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 86 |
st.markdown("")
|
| 87 |
|
| 88 |
with st.spinner("Rendering Image, it may take 2-3 mins. So, why don't you read our report in the meantime"):
|