hassiahk commited on
Commit
5272de4
1 Parent(s): fd209d1

Add GitHub repo and Notion report

Browse files
app.py CHANGED
@@ -15,7 +15,7 @@ st.set_page_config(page_title="DietNeRF")
15
 
16
 
17
  def select_model():
18
- obj_select = st.selectbox("Select an object to render", ("Chair", "Lego", "Ship", "Hotdog"))
19
  if obj_select == "Chair":
20
  FILE_ID = "17dj0pQieo94TozFv-noSBkXebduij1aM"
21
  MODEL_DIR = "models"
@@ -71,7 +71,11 @@ if not os.path.isfile(model_path):
71
 
72
  model, state = fetch_model()
73
  pi = math.pi
74
- st.sidebar.image("images/diet-nerf.png", width=310)
 
 
 
 
75
  st.sidebar.header("SELECT YOUR VIEW DIRECTION")
76
  theta = st.sidebar.slider(
77
  "Theta", min_value=-pi, max_value=pi, step=0.5, value=0.0, help="Rotational angle in Horizontal direction"
 
15
 
16
 
17
  def select_model():
18
+ obj_select = st.selectbox("Select a scene", ("Chair", "Lego", "Ship", "Hotdog"))
19
  if obj_select == "Chair":
20
  FILE_ID = "17dj0pQieo94TozFv-noSBkXebduij1aM"
21
  MODEL_DIR = "models"
 
71
 
72
  model, state = fetch_model()
73
  pi = math.pi
74
+ st.sidebar.image("images/diet-nerf-logo.png", width=310)
75
+ st.sidebar.markdown(
76
+ "<a href="https://github.com/codestella/putting-nerf-on-a-diet" target="_blank">GitHub</a> | <a href="https://www.notion.so/DietNeRF-Putting-NeRF-on-a-Diet-4aeddae95d054f1d91686f02bdb74745" target="_blank">Project Report</a>",
77
+ unsafe_allow_html=True,
78
+ )
79
  st.sidebar.header("SELECT YOUR VIEW DIRECTION")
80
  theta = st.sidebar.slider(
81
  "Theta", min_value=-pi, max_value=pi, step=0.5, value=0.0, help="Rotational angle in Horizontal direction"
config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "Chair": {
3
+ "FILE_ID": "17dj0pQieo94TozFv-noSBkXebduij1aM",
4
+ "DIET_NERF_MODEL_NAME": "diet_nerf_chair",
5
+ "NERF_MODEL_NAME": "nerf_chair"
6
+ },
7
+ "Lego": {
8
+ "FILE_ID": "1D9I-qIVMPaxuCHfUWPWMHaoLYtAmCjwI",
9
+ "DIET_NERF_MODEL_NAME": "diet_nerf_lego",
10
+ "NERF_MODEL_NAME": "nerf_lego"
11
+ },
12
+ "Ship": {
13
+ "FILE_ID": "14ZeJ86ETQr8dtu6CFoxU-ifvniHKo_Dt",
14
+ "DIET_NERF_MODEL_NAME": "diet_nerf_ship",
15
+ "NERF_MODEL_NAME": "nerf_ship"
16
+ },
17
+ "Hotdog": {
18
+ "FILE_ID": "11vNlR4lMvV_AVFgVjZmKMrMWGVG7qhNu",
19
+ "DIET_NERF_MODEL_NAME": "diet_nerf_hotdog",
20
+ "NERF_MODEL_NAME": "nerf_hotdog"
21
+ }
22
+ }
images/{diet-nerf.png → diet-nerf-logo.png} RENAMED
File without changes