AlekseyKorshuk commited on
Commit
7a163bb
1 Parent(s): 059efa5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +59 -0
app.py CHANGED
@@ -39,3 +39,62 @@ st.sidebar.markdown(
39
  """,
40
  unsafe_allow_html=True,
41
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  """,
40
  unsafe_allow_html=True,
41
  )
42
+
43
+
44
+ st.sidebar.header("SELECT YOUR VIEW DIRECTION")
45
+ num_sequences = st.sidebar.number_input(
46
+ "Number of sequences to generate",
47
+ min_value=1,
48
+ value=5,
49
+ help="Amount of generated texts",
50
+ )
51
+ min_length = st.sidebar.number_input(
52
+ "Minimum length of the sequence",
53
+ min_value=1,
54
+ value=100,
55
+ help="Minimum length of the sequence",
56
+ )
57
+ max_length= st.sidebar.number_input(
58
+ "Maximum length of the sequence",
59
+ min_value=1,
60
+ value=160,
61
+ help="Maximum length of the sequence",
62
+ )
63
+ temperature = st.sidebar.slider(
64
+ "Temperature",
65
+ min_value=0.0,
66
+ max_value=3.0,
67
+ step=0.01,
68
+ value=1.0,
69
+ help="Temperature",
70
+ )
71
+ top_p = st.sidebar.slider(
72
+ "Top P",
73
+ min_value=0.0,
74
+ max_value=1.0,
75
+ step=0.01,
76
+ value=0.95,
77
+ help="Top P",
78
+ )
79
+
80
+ top_k= st.sidebar.number_input(
81
+ "Top K",
82
+ min_value=0,
83
+ value=50,
84
+ step=1.,
85
+ format="%.2f",
86
+ help="Top K",
87
+ )
88
+
89
+ caption = (
90
+ "`DietNeRF` achieves state-of-the-art few-shot learning capacity in 3D model reconstruction. "
91
+ "Thanks to the 2D supervision by `CLIP (aka. Semantic Consisteny Loss)`, "
92
+ "it can render novel and challenging views with `ONLY 8 training images`, "
93
+ "**outperforming** original [NeRF](https://www.matthewtancik.com/nerf)!"
94
+ )
95
+ st.markdown(caption)
96
+ st.markdown(
97
+ "> 📒 **NOTE**: To get a detailed comparison of differences in results between `DietNeRF` and `NeRF`, you can take a look at the "
98
+ "[Experimental Results](https://www.notion.so/DietNeRF-Putting-NeRF-on-a-Diet-4aeddae95d054f1d91686f02bdb74745#0f6bc8f1008d4765b9b4635999626d4b) "
99
+ "section in our project report."
100
+ )