Skip to content

Commit c865eca

Browse files
committed
Minor webui layout improvements, add it to the Readme
1 parent a4117d8 commit c865eca

File tree

2 files changed

+30
-20
lines changed

2 files changed

+30
-20
lines changed

β€ŽDepthFlow/Webui.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ class DepthGradio:
4242
}
4343

4444
upscalers = {
45-
"No upscaler": NoUpscaler,
4645
"Real-ESRGAN": Realesr,
4746
"Waifu2x": Waifu2x,
4847
}
@@ -174,7 +173,7 @@ def launch(self,
174173
value=list(self.upscalers.keys())[0],
175174
label="Upscaler", scale=10
176175
)
177-
self.fields.upscale = gradio.Button(value="Upscale", scale=1)
176+
self.fields.upscale = gradio.Button(value="πŸš€ Upscale", scale=1)
178177

179178
with gradio.Column(variant="panel"):
180179
self.fields.depth = gradio.Image(scale=1,
@@ -187,7 +186,7 @@ def launch(self,
187186
value=list(self.estimators.keys())[0],
188187
label="Depth Estimator", scale=10
189188
)
190-
self.fields.estimate = gradio.Button(value="Estimate", scale=1)
189+
self.fields.estimate = gradio.Button(value="πŸ”Ž Estimate", scale=1)
191190

192191
with gradio.Column(variant="panel"):
193192
self.fields.video = gradio.Video(scale=1,
@@ -233,12 +232,12 @@ def launch(self,
233232
with gradio.Row(variant="panel"):
234233
self.fields.width = gradio.Number(label="Width",
235234
minimum=1, precision=0, scale=10, value=1920)
236-
self.fields.fit_height = gradio.Button(value="Fit height", scale=1)
235+
self.fields.fit_height = gradio.Button(value="➑️ Fit height", scale=1)
237236

238237
with gradio.Row(variant="panel"):
239238
self.fields.height = gradio.Number(label="Height",
240239
minimum=1, precision=0, scale=10, value=1080)
241-
self.fields.fit_width = gradio.Button(value="Fit width", scale=1)
240+
self.fields.fit_width = gradio.Button(value="⬅️ Fit width", scale=1)
242241

243242
with gradio.Row(variant="panel"):
244243
self.fields.ssaa = gradio.Slider(label="Super sampling anti-aliasing",
@@ -255,10 +254,13 @@ def launch(self,
255254

256255
with gradio.Row(variant="panel"):
257256
self.fields.time = gradio.Slider(label="Duration (seconds)",
257+
info="How long the animation or its loop are",
258258
minimum=0, maximum=30, step=0.5, value=5)
259-
self.fields.fps = gradio.Slider(label="Framerate",
259+
self.fields.fps = gradio.Slider(label="Framerate (fps)",
260+
info="Defines the animation smoothness",
260261
minimum=1, maximum=120, step=1, value=60)
261-
self.fields.loop = gradio.Slider(label="Number of loops",
262+
self.fields.loop = gradio.Slider(label="Loop count",
263+
info="Repeat the final video this many times",
262264
minimum=1, maximum=10, step=1, value=1)
263265

264266
# Update depth map and resolution on image change

β€ŽReadme.md

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,22 @@
2020

2121
## πŸ”₯ Description
2222

23-
> **DepthFlow** is a heavily customizable **parallax shader** for animating your images.
23+
**DepthFlow** is a heavily customizable **parallax shader** for animating your images.
2424

25-
- **πŸ›‘οΈ Open source:** trust and transparency, cross platform, configurable
26-
- **πŸš€ Fast:** heavily optimized shader, render at 8k50 with an RTX 3060
27-
- **🎨 Post processing:** easy vignette, depth of field, lens distortion
28-
- **βš™οΈ Flexible:** multiple parameters to tweak and create movement
29-
- **πŸŽ₯ Presets:** quality built-in extensively configurable animations
30-
- **πŸ“ˆ Upscaler:** built-in pipeline, powered by [**RealESR**](https://github.com/xinntao/Real-ESRGAN) `(optional)`
31-
- **♻️ Seamless loops:** perfect for backgrounds, wallpapers, fillers
32-
- **πŸ“” Video codecs:** easily export to H264, HEVC, AV1, (+NVENC)
33-
- **πŸ”± High quality:** any resolution, framerate, bitrate, SSAA
34-
- **⭐️ Smooth borders:** no artifacts, _petite_ step size
35-
- **🎨 No watermarks:** user first experience
36-
- **🌡 Fastest** rendering times in the west
25+
- **🌐 Web interface** made with [**Gradio**](https://gradio.app), get quick feedback on animations.
26+
- **πŸš€ Fast:** heavily optimized shader, render at 8k50 with an RTX 3060.
27+
- **🎨 Post processing:** easy vignette, depth of field, lens distortion.
28+
- **βš™οΈ Flexible:** multiple parameters to tweak and create movement.
29+
- **πŸŽ₯ Presets:** quality built-in extensively configurable animations.
30+
- **πŸ“ˆ Upscaler:** built-in pipeline, powered by [**RealESR**](https://github.com/xinntao/Real-ESRGAN) `(optional)`.
31+
- **♻️ Seamless loops:** perfect for backgrounds, wallpapers, fillers.
32+
- **πŸ“” Video codecs:** easily export to H264, HEVC, AV1, (+NVENC).
33+
- **πŸ“¦ Executables:** double click and run, automated complexity.
34+
- **πŸ”± High quality:** any resolution, framerate, bitrate, ssaa.
35+
- **⭐️ Smooth borders:** no artifacts, _petite_ step size.
36+
- **🎨 No watermarks:** user first experience.
37+
- **🌡 Fastest** rendering times in the west.
38+
- **πŸŒ€ Self hosted:** Unlimited usage.
3739

3840
<br>
3941

@@ -67,6 +69,12 @@
6769
<br>
6870
</details>
6971

72+
<br>
73+
74+
🌐 Powerfull **WebUI** built with [**Gradio**](https://gradio.app)
75+
76+
<img src="https://github.com/user-attachments/assets/05b81504-d736-4c95-8e6f-9b4901c9eebd">
77+
7078
<!-- Website end -->
7179
<br><br><div align="center">
7280
<h2>🍁 Learn More 🍁</h2>

0 commit comments

Comments
Β (0)