Maximofn commited on
Commit
d1cf1a0
·
1 Parent(s): 7cd9249

Update default video generation parameters to higher resolution and inference steps

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -143,7 +143,7 @@ def create_interface():
143
  num_frames = gr.Slider(
144
  minimum=8,
145
  maximum=128,
146
- value=30,
147
  step=1,
148
  label="Number of Frames",
149
  info="Number of frames in the video"
@@ -151,7 +151,7 @@ def create_interface():
151
  height = gr.Slider(
152
  minimum=32,
153
  maximum=1024,
154
- value=224,
155
  step=64,
156
  label="Height",
157
  info="Video height in pixels"
@@ -159,7 +159,7 @@ def create_interface():
159
  width = gr.Slider(
160
  minimum=32,
161
  maximum=1024,
162
- value=224,
163
  step=64,
164
  label="Width",
165
  info="Video width in pixels"
@@ -167,7 +167,7 @@ def create_interface():
167
  num_inference_steps = gr.Slider(
168
  minimum=10,
169
  maximum=100,
170
- value=40,
171
  step=1,
172
  label="Inference Steps",
173
  info="Higher number = better quality but slower"
@@ -186,25 +186,25 @@ def create_interface():
186
  "sayakpaul/pika-dissolve-v0",
187
  "PIKA_DISSOLVE A slender glass vase, brimming with tiny white pebbles, stands centered on a polished ebony dais. Without warning, the glass begins to dissolve from the edges inward. Wisps of translucent dust swirl upward in an elegant spiral, illuminating each pebble as they drop onto the dais. The gently drifting dust eventually settles, leaving only the scattered stones and faint traces of shimmering powder on the stage.",
188
  "inconsistent motion, blurry motion, worse quality, degenerate outputs, deformed outputs",
189
- 30, 224, 224, 40
190
  ],
191
  [
192
  "finetrainers/crush-smol-v0",
193
  "DIFF_crush A thick burger is placed on a dining table, and a large metal cylinder descends from above, crushing the burger as if it were under a hydraulic press. The bulb is crushed, leaving a pile of debris around it.",
194
  "inconsistent motion, blurry motion, worse quality, degenerate outputs, deformed outputs",
195
- 30, 224, 224, 40
196
  ],
197
  [
198
  "finetrainers/3dgs-v0",
199
  "3D_dissolve In a 3D appearance, a bookshelf filled with books is surrounded by a burst of red sparks, creating a dramatic and explosive effect against a black background.",
200
  "inconsistent motion, blurry motion, worse quality, degenerate outputs, deformed outputs",
201
- 30, 224, 224, 40
202
  ],
203
  [
204
  "finetrainers/cakeify-v0",
205
  "PIKA_CAKEIFY On a gleaming glass display stand, a sleek black purse quietly commands attention. Suddenly, a knife appears and slices through the shoe, revealing a fluffy vanilla sponge at its core. Immediately, it turns into a hyper-realistic prop cake, delighting the senses with its playful juxtaposition of the everyday and the extraordinary.",
206
  "inconsistent motion, blurry motion, worse quality, degenerate outputs, deformed outputs",
207
- 30, 224, 224, 40
208
  ]
209
  ],
210
  inputs=[
 
143
  num_frames = gr.Slider(
144
  minimum=8,
145
  maximum=128,
146
+ value=50,
147
  step=1,
148
  label="Number of Frames",
149
  info="Number of frames in the video"
 
151
  height = gr.Slider(
152
  minimum=32,
153
  maximum=1024,
154
+ value=512,
155
  step=64,
156
  label="Height",
157
  info="Video height in pixels"
 
159
  width = gr.Slider(
160
  minimum=32,
161
  maximum=1024,
162
+ value=512,
163
  step=64,
164
  label="Width",
165
  info="Video width in pixels"
 
167
  num_inference_steps = gr.Slider(
168
  minimum=10,
169
  maximum=100,
170
+ value=50,
171
  step=1,
172
  label="Inference Steps",
173
  info="Higher number = better quality but slower"
 
186
  "sayakpaul/pika-dissolve-v0",
187
  "PIKA_DISSOLVE A slender glass vase, brimming with tiny white pebbles, stands centered on a polished ebony dais. Without warning, the glass begins to dissolve from the edges inward. Wisps of translucent dust swirl upward in an elegant spiral, illuminating each pebble as they drop onto the dais. The gently drifting dust eventually settles, leaving only the scattered stones and faint traces of shimmering powder on the stage.",
188
  "inconsistent motion, blurry motion, worse quality, degenerate outputs, deformed outputs",
189
+ 50, 512, 512, 50
190
  ],
191
  [
192
  "finetrainers/crush-smol-v0",
193
  "DIFF_crush A thick burger is placed on a dining table, and a large metal cylinder descends from above, crushing the burger as if it were under a hydraulic press. The bulb is crushed, leaving a pile of debris around it.",
194
  "inconsistent motion, blurry motion, worse quality, degenerate outputs, deformed outputs",
195
+ 50, 512, 512, 50
196
  ],
197
  [
198
  "finetrainers/3dgs-v0",
199
  "3D_dissolve In a 3D appearance, a bookshelf filled with books is surrounded by a burst of red sparks, creating a dramatic and explosive effect against a black background.",
200
  "inconsistent motion, blurry motion, worse quality, degenerate outputs, deformed outputs",
201
+ 50, 512, 512, 50
202
  ],
203
  [
204
  "finetrainers/cakeify-v0",
205
  "PIKA_CAKEIFY On a gleaming glass display stand, a sleek black purse quietly commands attention. Suddenly, a knife appears and slices through the shoe, revealing a fluffy vanilla sponge at its core. Immediately, it turns into a hyper-realistic prop cake, delighting the senses with its playful juxtaposition of the everyday and the extraordinary.",
206
  "inconsistent motion, blurry motion, worse quality, degenerate outputs, deformed outputs",
207
+ 50, 512, 512, 50
208
  ]
209
  ],
210
  inputs=[