ChenDY commited on
Commit
5a5aac1
·
1 Parent(s): ebaa517
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -60,7 +60,7 @@ pipe.transformer.__class__.forward = NagWanTransformer3DModel.forward
60
 
61
  examples = [
62
  ["A ginger cat passionately plays a violin with intensity and emotion on a classical concert stage. The background is shrouded in deep darkness. Soft spotlights casts dramatic shadows.", DEFAULT_NAG_NEGATIVE_PROMPT, 11],
63
- ["A red Porsche speeding along a rugged coastal cliff, with powerful waves crashing below. Realistic lighting, high dynamic range (HDR), film-grade depth of field.", DEFAULT_NAG_NEGATIVE_PROMPT, 11],
64
  ["Enormous glowing jellyfish float slowly across a sky filled with soft clouds. Their tentacles shimmer with iridescent light as they drift above a peaceful mountain landscape. Magical and dreamlike, captured in a wide shot. Surreal realism style with detailed textures.", DEFAULT_NAG_NEGATIVE_PROMPT, 11],
65
  ]
66
 
@@ -90,7 +90,7 @@ def generate_video(
90
  target_h = max(MOD_VALUE, (int(height) // MOD_VALUE) * MOD_VALUE)
91
  target_w = max(MOD_VALUE, (int(width) // MOD_VALUE) * MOD_VALUE)
92
 
93
- num_frames = np.clip(int(round(duration_seconds * FIXED_FPS) + 1), MIN_FRAMES_MODEL, MAX_FRAMES_MODEL)
94
 
95
  current_seed = random.randint(0, MAX_SEED) if randomize_seed else int(seed)
96
 
 
60
 
61
  examples = [
62
  ["A ginger cat passionately plays a violin with intensity and emotion on a classical concert stage. The background is shrouded in deep darkness. Soft spotlights casts dramatic shadows.", DEFAULT_NAG_NEGATIVE_PROMPT, 11],
63
+ ["A red vintage Porsche convertible flying over a rugged coastal cliff. Monstrous waves violently crashing against the rocks below. A lighthouse stands tall atop the cliff.", DEFAULT_NAG_NEGATIVE_PROMPT, 11],
64
  ["Enormous glowing jellyfish float slowly across a sky filled with soft clouds. Their tentacles shimmer with iridescent light as they drift above a peaceful mountain landscape. Magical and dreamlike, captured in a wide shot. Surreal realism style with detailed textures.", DEFAULT_NAG_NEGATIVE_PROMPT, 11],
65
  ]
66
 
 
90
  target_h = max(MOD_VALUE, (int(height) // MOD_VALUE) * MOD_VALUE)
91
  target_w = max(MOD_VALUE, (int(width) // MOD_VALUE) * MOD_VALUE)
92
 
93
+ num_frames = np.clip(int(round(int(duration_seconds) * FIXED_FPS) + 1), MIN_FRAMES_MODEL, MAX_FRAMES_MODEL)
94
 
95
  current_seed = random.randint(0, MAX_SEED) if randomize_seed else int(seed)
96