Spaces:
Running
Running
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +14 -5
src/streamlit_app.py
CHANGED
@@ -10,19 +10,28 @@ VIDEO_FOLDER = "./src/synthda_falling_realreal/"
|
|
10 |
st.set_page_config(layout="centered")
|
11 |
st.title("AutoSynthDa Pose Interpolation Viewer")
|
12 |
|
13 |
-
st.markdown("
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
|
15 |
# Slider for selecting weight
|
16 |
weight = st.slider("Interpolation Weight", 0.0, 1.0, step=0.1)
|
17 |
|
18 |
# Label logic
|
19 |
if weight == 0.0:
|
20 |
-
st.
|
21 |
elif weight == 1.0:
|
22 |
-
st.
|
23 |
else:
|
24 |
-
|
25 |
-
st.info(f"
|
|
|
26 |
|
27 |
# Construct filename based on weight (rounded to one decimal for file matching)
|
28 |
filename = f"videos_generated_{weight:.1f}.mp4"
|
|
|
10 |
st.set_page_config(layout="centered")
|
11 |
st.title("AutoSynthDa Pose Interpolation Viewer")
|
12 |
|
13 |
+
st.markdown("""
|
14 |
+
# AutoSynthDa Interpolation Viewer
|
15 |
+
|
16 |
+
AutoSynthDa blends two input motion videos to **generate kinematically coherent, synthetic action videos**.
|
17 |
+
|
18 |
+
Move the slider to explore how motion changes from one input to another.
|
19 |
+
|
20 |
+
View code and try the code on Colab at github.com/nvidia/synthda
|
21 |
+
""")
|
22 |
|
23 |
# Slider for selecting weight
|
24 |
weight = st.slider("Interpolation Weight", 0.0, 1.0, step=0.1)
|
25 |
|
26 |
# Label logic
|
27 |
if weight == 0.0:
|
28 |
+
st.success("Showing: Input Video 1 (No interpolation)")
|
29 |
elif weight == 1.0:
|
30 |
+
st.success("Showing: Input Video 2 (No interpolation)")
|
31 |
else:
|
32 |
+
w2 = round(1.0 - weight, 1)
|
33 |
+
st.info(f"Generating motion by blending {weight:.1f} of Input Video 1 and {w2:.1f} of Input Video 2")
|
34 |
+
|
35 |
|
36 |
# Construct filename based on weight (rounded to one decimal for file matching)
|
37 |
filename = f"videos_generated_{weight:.1f}.mp4"
|