-
Notifications
You must be signed in to change notification settings - Fork 6.5k
[Pipeline] Add TextToVideoZeroSDXLPipeline #4695
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
patrickvonplaten
merged 61 commits into
huggingface:main
from
vahramtadevosyan:text2video-zero-sdxl
Nov 29, 2023
Merged
Changes from 13 commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
42d49af
integrated sdxl for the text2video-zero pipeline
7221015
Merge branch 'main' of https://github.com/huggingface/diffusers into …
4469455
make fix-copies
e00f93e
Merge branch 'main' of https://github.com/huggingface/diffusers into …
0591367
fixed CI issues
14479ad
make fix-copies
fe50922
Merge branch 'main' of https://github.com/huggingface/diffusers into …
b19d32d
added docs and `copied from` statements
vahramtadevosyan cf7aa3b
added fast tests
vahramtadevosyan 97aa3d2
synced with original code
vahramtadevosyan c1e86e8
Merge branch 'main' into text2video-zero-sdxl
vahramtadevosyan c8e2838
Merge branch 'text2video-zero-sdxl' of github.com:vahramtadevosyan/di…
vahramtadevosyan 71fe6cc
made a small change in docs
vahramtadevosyan 898f42e
quality+style check fix
vahramtadevosyan 20bb7aa
updated docs. added controlnet inference with sdxl
vahramtadevosyan 40d9ad3
Merge branch 'main' of https://github.com/huggingface/diffusers into …
vahramtadevosyan 1794494
added device compatibility for fast tests
vahramtadevosyan dc08a70
Merge branch 'main' of https://github.com/huggingface/diffusers into …
vahramtadevosyan 6aa65f1
fixed docstrings
vahramtadevosyan 94ffc44
Merge branch 'main' of https://github.com/huggingface/diffusers into …
vahramtadevosyan d3288b0
changing vae upcasting
vahramtadevosyan 804d9f0
remove torch.empty_cache to speed up inference
vahramtadevosyan f8ae9aa
Merge branch 'main' into text2video-zero-sdxl
vahramtadevosyan 8350c85
Merge branch 'main' into text2video-zero-sdxl
vahramtadevosyan 9698d16
made fast tests to run on dummy models only, fixed copied from statem…
vahramtadevosyan 357e87f
fixed testing utils imports
vahramtadevosyan 1de7d55
Added bullet points for SDXL support
vahramtadevosyan 03c9178
Merge branch 'main' of https://github.com/huggingface/diffusers into …
vahramtadevosyan 2159e73
fixed formatting & quality
vahramtadevosyan 2e73398
Update tests/pipelines/text_to_video/test_text_to_video_zero_sdxl.py
vahramtadevosyan ec99303
Update tests/pipelines/text_to_video/test_text_to_video_zero_sdxl.py
vahramtadevosyan 972b172
Merge branch 'main' into text2video-zero-sdxl
vahramtadevosyan 0c59ff9
Merge branch 'main' into text2video-zero-sdxl
patrickvonplaten 3804a64
fixed minor error for merging
vahramtadevosyan d9737aa
Merge branch 'main' of https://github.com/huggingface/diffusers into …
vahramtadevosyan b552865
fixed updates of sdxl
vahramtadevosyan eddf8a8
made fast tests inherit from `PipelineTesterMixin` and run in 3-4secs…
vahramtadevosyan 0304d75
Merge branch 'main' of https://github.com/huggingface/diffusers into …
vahramtadevosyan 2635868
make style && make quality
vahramtadevosyan 9f4c8cd
reimplemented fast tests w/o default attn processor
vahramtadevosyan ba65002
make style & make quality
vahramtadevosyan a32641d
Merge branch 'main' of github.com:huggingface/diffusers into text2vid…
vahramtadevosyan 0a919f9
make fix-copies
vahramtadevosyan deae67c
make fix-copies
vahramtadevosyan 3167053
fixed docs
vahramtadevosyan fdc3ee8
make style & make quality & make fix-copies
vahramtadevosyan 371093d
Merge branch 'main' into text2video-zero-sdxl
DN6 fa14652
bug fix in cross attention
vahramtadevosyan 028d1f5
Merge branch 'main' into text2video-zero-sdxl
DN6 de7c207
make style && make quality
vahramtadevosyan 78e8a44
make fix-copies
vahramtadevosyan b22091e
Merge branch 'main' into text2video-zero-sdxl
patrickvonplaten 9ee0304
Merge branch 'main' of github.com:huggingface/diffusers into text2vid…
vahramtadevosyan d395fa0
Merge branch 'text2video-zero-sdxl' of github.com:vahramtadevosyan/di…
vahramtadevosyan 52461ae
Merge branch 'main' of github.com:huggingface/diffusers into text2vid…
vahramtadevosyan 2ae9893
fix gpu issues
vahramtadevosyan ed78680
make fix-copies
vahramtadevosyan 3890c34
Merge branch 'main' into text2video-zero-sdxl
patrickvonplaten 46ac35e
Merge branch 'main' of github.com:huggingface/diffusers into text2vid…
vahramtadevosyan 0f2c69e
Merge branch 'main' of github.com:huggingface/diffusers into text2vid…
vahramtadevosyan f60409c
updated pipeline signature
vahramtadevosyan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -99,6 +99,19 @@ imageio.mimsave("video.mp4", result, fps=4) | |
| ``` | ||
|
|
||
|
|
||
| #### SDXL Support | ||
| In order to use the SDXL model when generating a video from prompt, use the `TextToVideoZeroSDXLPipeline` pipeline: | ||
|
|
||
| ```python | ||
| import torch | ||
| from diffusers import TextToVideoZeroSDXLPipeline | ||
|
|
||
| model_id = "stabilityai/stable-diffusion-xl-base-1.0" | ||
| pipe = TextToVideoZeroSDXLPipeline.from_pretrained( | ||
| model_id, torch_dtype=torch.float16, variant="fp16", use_safetensors=True | ||
| ).to("cuda") | ||
| ``` | ||
vahramtadevosyan marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ### Text-To-Video with Pose Control | ||
| To generate a video from prompt with additional pose control | ||
|
|
||
|
|
@@ -257,4 +270,4 @@ You can filter out some available DreamBooth-trained models with [this link](htt | |
| - __call__ | ||
|
|
||
| ## TextToVideoPipelineOutput | ||
| [[autodoc]] pipelines.text_to_video_synthesis.pipeline_text_to_video_zero.TextToVideoPipelineOutput | ||
| [[autodoc]] pipelines.text_to_video_synthesis.pipeline_text_to_video_zero.TextToVideoPipelineOutput | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We need to add |
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this work out of the box?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm good catch. @vahramtadevosyan Can you confirm this works out of the box with SDXL base?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DN6 @patrickvonplaten can you explain what do you mean by
working out of the box?