VicFonch commited on
Commit
870001d
·
unverified ·
1 Parent(s): 17c3fdf

app.py: Adding usage

Browse files
Files changed (1) hide show
  1. app.py +15 -5
app.py CHANGED
@@ -57,12 +57,13 @@ def interpolate(img0_pil: Image.Image,
57
  # Lo integras en Blocks y le agregas HTML arriba
58
  def build_demo() -> gr.Blocks:
59
  header = """
60
- <div style="text-align: center; padding: 1rem 0;">
61
- <h1 style="font-size: 2.2rem; margin-bottom: 0.4rem;">🎞️ Multi-Input ResShift Diffusion VFI</h1>
62
- <p style="font-size: 1.1rem; color: #555; margin-bottom: 1rem;">
63
- Efficient and stochastic video frame interpolation for hand-drawn animation
64
  </p>
65
- <div style="display: flex; justify-content: center; flex-wrap: wrap; gap: 10px;">
 
66
  <a href="https://arxiv.org/pdf/2504.05402">
67
  <img src="https://img.shields.io/badge/arXiv-Paper-A42C25.svg" alt="arXiv">
68
  </a>
@@ -76,6 +77,15 @@ def build_demo() -> gr.Blocks:
76
  <img src="https://img.shields.io/badge/GitHub-Code-blue.svg?logo=github" alt="GitHub">
77
  </a>
78
  </div>
 
 
 
 
 
 
 
 
 
79
  </div>
80
  """
81
 
 
57
  # Lo integras en Blocks y le agregas HTML arriba
58
  def build_demo() -> gr.Blocks:
59
  header = """
60
+ <div style="text-align: center; padding: 1.5rem 0;">
61
+ <h1 style="font-size: 2.4rem; margin-bottom: 0.5rem;">🎞️ Multi-Input ResShift Diffusion VFI</h1>
62
+ <p style="font-size: 1.1rem; color: #444;">
63
+ Efficient and stochastic video frame interpolation for hand-drawn animation.
64
  </p>
65
+
66
+ <div style="display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 1rem 0;">
67
  <a href="https://arxiv.org/pdf/2504.05402">
68
  <img src="https://img.shields.io/badge/arXiv-Paper-A42C25.svg" alt="arXiv">
69
  </a>
 
77
  <img src="https://img.shields.io/badge/GitHub-Code-blue.svg?logo=github" alt="GitHub">
78
  </a>
79
  </div>
80
+
81
+ <div style="max-width: 700px; margin: 0 auto; font-size: 0.96rem; color: #333;">
82
+ <p style="margin-bottom: 0.5rem;"><strong>Usage:</strong></p>
83
+ <ul style="list-style-type: none; padding: 0; line-height: 1.6;">
84
+ <li>All images are resized to <strong>256×448</strong>.</li>
85
+ <li>If <code>Number of Samples = 1</code>, generates a single interpolated frame using Tau.</li>
86
+ <li>If <code>Number of Samples > 1</code>, Tau is ignored and a full interpolation sequence is generated.</li>
87
+ </ul>
88
+ </div>
89
  </div>
90
  """
91