evelynsaltt commited on
Commit
2c05a4a
·
verified ·
1 Parent(s): 937c9e0

adding 1 row for lighting demo

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +47 -0
src/streamlit_app.py CHANGED
@@ -4,6 +4,7 @@ import os
4
  # Video directories
5
  VIDEO_FOLDER_1 = "./src/synthda_falling_realreal/"
6
  VIDEO_FOLDER_2 = "./src/synthda_demo_fall_2/"
 
7
 
8
  # Set page layout
9
  st.set_page_config(layout="wide")
@@ -110,3 +111,49 @@ with col6:
110
  st.video(video_input2_2)
111
  else:
112
  st.error("Video 2 not found")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  # Video directories
5
  VIDEO_FOLDER_1 = "./src/synthda_falling_realreal/"
6
  VIDEO_FOLDER_2 = "./src/synthda_demo_fall_2/"
7
+ VIDEO_FOLDER_3 = "./src/synthda_demo_fall_3/" # NEW
8
 
9
  # Set page layout
10
  st.set_page_config(layout="wide")
 
111
  st.video(video_input2_2)
112
  else:
113
  st.error("Video 2 not found")
114
+
115
+ # ---------- Row 3: synthda_demo_fall_3 (NEW) ----------
116
+ st.markdown("## Demo Set 3: Real-Real Interpolation [Fall]")
117
+
118
+ weight3 = st.slider("Interpolation Weight (Set 3)", 0.0, 1.0, 0.5, step=0.1)
119
+
120
+ if weight3 == 0.0:
121
+ interp_text3 = "Showing Input Video 1 (no interpolation)"
122
+ elif weight3 == 1.0:
123
+ interp_text3 = "Showing Input Video 2 (no interpolation)"
124
+ else:
125
+ w2 = round(1.0 - weight3, 1)
126
+ interp_text3 = f"Generated motion: {weight3:.1f} from Input Video 1 + {w2:.1f} from Input Video 2"
127
+
128
+ st.markdown(f"**{interp_text3}**")
129
+
130
+ filename_interp3 = f"videos_generated_{weight3:.1f}.mp4"
131
+ filename_input1_3 = "videos_generated_0.0.mp4"
132
+ filename_input2_3 = "videos_generated_1.0.mp4"
133
+
134
+ video_interp3 = os.path.join(VIDEO_FOLDER_3, filename_interp3)
135
+ video_input1_3 = os.path.join(VIDEO_FOLDER_3, filename_input1_3)
136
+ video_input2_3 = os.path.join(VIDEO_FOLDER_3, filename_input2_3)
137
+
138
+ col7, col8, col9 = st.columns(3)
139
+
140
+ with col7:
141
+ st.markdown("**Input Video 1 (Generated)**")
142
+ if os.path.exists(video_input1_3):
143
+ st.video(video_input1_3)
144
+ else:
145
+ st.error("Video 1 not found")
146
+
147
+ with col8:
148
+ st.markdown("**Interpolated Video**")
149
+ if os.path.exists(video_interp3):
150
+ st.video(video_interp3)
151
+ else:
152
+ st.error("Interpolated video not found")
153
+
154
+ with col9:
155
+ st.markdown("**Input Video 2 (Real)**")
156
+ if os.path.exists(video_input2_3):
157
+ st.video(video_input2_3)
158
+ else:
159
+ st.error("Video 2 not found")