Created
February 18, 2023 23:55
-
-
Save nateraw/abaf9f6359ca90e3c95f2e1006011bd6 to your computer and use it in GitHub Desktop.
sdv-SD2-1-example.ipynb
Hey there, glad ya like it :)
There are a number of ways to make the video longer. Your video is generated with num_frames = num_interpolation_steps * (len(prompts) - 1)
frames, and the video duration is num_frames / fps
seconds long.
So...
- can add more prompts/seeds
- can increase num_interpolation steps
- can decrease FPS (this is really just making the video slower but longer in duration as its same number of frames
For example, the following would produce num_frames = 30 * 4
(120) frames at 30fps, so 4 seconds long with decent quality.
prompts=['a cat', 'a dog', 'a bird', 'a horse', 'a camel']
seeds = [0, 1, 2, 3, 4] # Set to anything you want, or random numbers. must be same len as prompts
pipe.walk(prompts=prompts, seeds=seeds, num_interpolation_steps=30, num_inference_steps=50, fps=30)
Super clear information!
I'm just not completely sure I understand the concept of the seeds.
I need x amount of seeds for x amount of prompts in one pipe.walk, correct?
But what are the random numbers?
Kind regards!
…On Tue, 21 Feb 2023 at 19:35, Nathan Raw ***@***.***> wrote:
***@***.**** commented on this gist.
------------------------------
Hey there, glad ya like it :)
There are a number of ways to make the video longer. Your video is
generated with num_frames = num_interpolation_steps * (len(prompts) - 1)
frames, and the video duration is num_frames / fps seconds long.
So...
- can add more prompts/seeds
- can increase num_interpolation steps
- can decrease FPS (this is really just making the video slower but
longer in duration as its same number of frames
For example, the following would produce num_frames = 30 * 4 (120) frames
at 30fps, so 4 seconds long with decent quality.
prompts=['a cat', 'a dog', 'a bird', 'a horse', 'a camel']seeds = [0, 1, 2, 3, 4] # Set to anything you want, or random numbers. must be same len as promptspipe.walk(prompts=prompts, seeds=seeds, num_interpolation_steps=30, num_inference_steps=50, fps=30)
—
Reply to this email directly, view it on GitHub
<https://gist.github.com/abaf9f6359ca90e3c95f2e1006011bd6#gistcomment-4478529>
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABOARUOTE3YELLF3KFPNF2LWYUDGRBFKMF2HI4TJMJ2XIZLTSKBKK5TBNR2WLJDHNFZXJJDOMFWWLK3UNBZGKYLEL52HS4DFQKSXMYLMOVS2I5DSOVS2I3TBNVS3W5DIOJSWCZC7OBQXE5DJMNUXAYLOORPWCY3UNF3GS5DZVRZXKYTKMVRXIX3UPFYGLK2HNFZXIQ3PNVWWK3TUUZ2G64DJMNZZDAVEOR4XAZNEM5UXG5FFOZQWY5LFVEYTEMBZHAZTAMRSU52HE2LHM5SXFJTDOJSWC5DF>
.
You are receiving this email because you commented on the thread.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>
.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Love this!
Question how would I make my video's longer?
Kind regards!!