How to control the video length ? #136
Replies: 2 comments 2 replies
-
@SIFOR-GAMES to change the video length you need to increase the num_interpolation_steps so if your num_interpolation_steps=5 then your video length will be 1 sec and you can increase it in the multiples of 5. This is how I discovered by changing num_interpolation_steps=30 the video length gets changed to 6secs. |
Beta Was this translation helpful? Give feedback.
-
@honeybansal9 is on the right track but here's a more in depth explaination...
the If you were to divide the sum of Now that we know that, and we have some desired duration (in this case 5 seconds) and fps (using the default of 30), you could do something like this... prompts = ['a cat', 'a dog', 'a horse']
seeds = [42, 1234, 5321]
desired_duration = 5.0
fps = 30
total_frames_to_generate = desired_duration * fps
# >>> 150.0
num_interpolation_steps = int(total_frames_to_generate // (len(prompts) - 1))
# >>> 75
# this means 75 frames between 'a cat' and 'a dog'
# then 75 frames between 'a dog' and 'a horse'
# Then use the computed value to generate your video
pipe.walk(prompts, seeds, num_interpolation_steps=num_interpolation_steps, fps=fps) hope this helps 😄 |
Beta Was this translation helpful? Give feedback.
-
Hello everyone sorry for the noob question may I know how is it possible to control the video length of the prompt result?
Beta Was this translation helpful? Give feedback.
All reactions