Skip to content
Merged
Show file tree
Hide file tree
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
Aug 21, 2023
7221015
Merge branch 'main' of https://github.com/huggingface/diffusers into …
Aug 21, 2023
4469455
make fix-copies
Aug 23, 2023
e00f93e
Merge branch 'main' of https://github.com/huggingface/diffusers into …
Aug 25, 2023
0591367
fixed CI issues
Aug 25, 2023
14479ad
make fix-copies
Aug 25, 2023
fe50922
Merge branch 'main' of https://github.com/huggingface/diffusers into …
Aug 25, 2023
b19d32d
added docs and `copied from` statements
vahramtadevosyan Aug 28, 2023
cf7aa3b
added fast tests
vahramtadevosyan Aug 29, 2023
97aa3d2
synced with original code
vahramtadevosyan Aug 29, 2023
c1e86e8
Merge branch 'main' into text2video-zero-sdxl
vahramtadevosyan Aug 29, 2023
c8e2838
Merge branch 'text2video-zero-sdxl' of github.com:vahramtadevosyan/di…
vahramtadevosyan Aug 29, 2023
71fe6cc
made a small change in docs
vahramtadevosyan Aug 29, 2023
898f42e
quality+style check fix
vahramtadevosyan Aug 29, 2023
20bb7aa
updated docs. added controlnet inference with sdxl
vahramtadevosyan Aug 30, 2023
40d9ad3
Merge branch 'main' of https://github.com/huggingface/diffusers into …
vahramtadevosyan Aug 30, 2023
1794494
added device compatibility for fast tests
vahramtadevosyan Aug 30, 2023
dc08a70
Merge branch 'main' of https://github.com/huggingface/diffusers into …
vahramtadevosyan Aug 30, 2023
6aa65f1
fixed docstrings
vahramtadevosyan Aug 31, 2023
94ffc44
Merge branch 'main' of https://github.com/huggingface/diffusers into …
vahramtadevosyan Aug 31, 2023
d3288b0
changing vae upcasting
vahramtadevosyan Aug 31, 2023
804d9f0
remove torch.empty_cache to speed up inference
vahramtadevosyan Aug 31, 2023
f8ae9aa
Merge branch 'main' into text2video-zero-sdxl
vahramtadevosyan Aug 31, 2023
8350c85
Merge branch 'main' into text2video-zero-sdxl
vahramtadevosyan Sep 11, 2023
9698d16
made fast tests to run on dummy models only, fixed copied from statem…
vahramtadevosyan Sep 11, 2023
357e87f
fixed testing utils imports
vahramtadevosyan Sep 11, 2023
1de7d55
Added bullet points for SDXL support
vahramtadevosyan Sep 12, 2023
03c9178
Merge branch 'main' of https://github.com/huggingface/diffusers into …
vahramtadevosyan Sep 12, 2023
2159e73
fixed formatting & quality
vahramtadevosyan Sep 12, 2023
2e73398
Update tests/pipelines/text_to_video/test_text_to_video_zero_sdxl.py
vahramtadevosyan Sep 18, 2023
ec99303
Update tests/pipelines/text_to_video/test_text_to_video_zero_sdxl.py
vahramtadevosyan Sep 18, 2023
972b172
Merge branch 'main' into text2video-zero-sdxl
vahramtadevosyan Sep 18, 2023
0c59ff9
Merge branch 'main' into text2video-zero-sdxl
patrickvonplaten Sep 19, 2023
3804a64
fixed minor error for merging
vahramtadevosyan Oct 17, 2023
d9737aa
Merge branch 'main' of https://github.com/huggingface/diffusers into …
vahramtadevosyan Oct 17, 2023
b552865
fixed updates of sdxl
vahramtadevosyan Oct 17, 2023
eddf8a8
made fast tests inherit from `PipelineTesterMixin` and run in 3-4secs…
vahramtadevosyan Oct 18, 2023
0304d75
Merge branch 'main' of https://github.com/huggingface/diffusers into …
vahramtadevosyan Oct 18, 2023
2635868
make style && make quality
vahramtadevosyan Oct 18, 2023
9f4c8cd
reimplemented fast tests w/o default attn processor
vahramtadevosyan Oct 27, 2023
ba65002
make style & make quality
vahramtadevosyan Oct 27, 2023
a32641d
Merge branch 'main' of github.com:huggingface/diffusers into text2vid…
vahramtadevosyan Oct 27, 2023
0a919f9
make fix-copies
vahramtadevosyan Oct 27, 2023
deae67c
make fix-copies
vahramtadevosyan Oct 27, 2023
3167053
fixed docs
vahramtadevosyan Oct 27, 2023
fdc3ee8
make style & make quality & make fix-copies
vahramtadevosyan Oct 27, 2023
371093d
Merge branch 'main' into text2video-zero-sdxl
DN6 Oct 30, 2023
fa14652
bug fix in cross attention
vahramtadevosyan Oct 30, 2023
028d1f5
Merge branch 'main' into text2video-zero-sdxl
DN6 Nov 10, 2023
de7c207
make style && make quality
vahramtadevosyan Nov 10, 2023
78e8a44
make fix-copies
vahramtadevosyan Nov 10, 2023
b22091e
Merge branch 'main' into text2video-zero-sdxl
patrickvonplaten Nov 20, 2023
9ee0304
Merge branch 'main' of github.com:huggingface/diffusers into text2vid…
vahramtadevosyan Nov 21, 2023
d395fa0
Merge branch 'text2video-zero-sdxl' of github.com:vahramtadevosyan/di…
vahramtadevosyan Nov 21, 2023
52461ae
Merge branch 'main' of github.com:huggingface/diffusers into text2vid…
vahramtadevosyan Nov 21, 2023
2ae9893
fix gpu issues
vahramtadevosyan Nov 22, 2023
ed78680
make fix-copies
vahramtadevosyan Nov 22, 2023
3890c34
Merge branch 'main' into text2video-zero-sdxl
patrickvonplaten Nov 27, 2023
46ac35e
Merge branch 'main' of github.com:huggingface/diffusers into text2vid…
vahramtadevosyan Nov 27, 2023
0f2c69e
Merge branch 'main' of github.com:huggingface/diffusers into text2vid…
vahramtadevosyan Nov 28, 2023
f60409c
updated pipeline signature
vahramtadevosyan Nov 28, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion docs/source/en/api/pipelines/text_to_video_zero.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Contributor

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?

Copy link
Collaborator

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?

Copy link
Contributor Author

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?

).to("cuda")
```

### Text-To-Video with Pose Control
To generate a video from prompt with additional pose control

Expand Down Expand Up @@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to add TextToVideoZeroSDXLPipeline in the docs too otherwise they won't reflect :-).

1 change: 1 addition & 0 deletions src/diffusers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@
StableUnCLIPPipeline,
TextToVideoSDPipeline,
TextToVideoZeroPipeline,
TextToVideoZeroSDXLPipeline,
UnCLIPImageVariationPipeline,
UnCLIPPipeline,
UniDiffuserModel,
Expand Down
7 changes: 6 additions & 1 deletion src/diffusers/pipelines/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,12 @@
StableDiffusionXLPipeline,
)
from .t2i_adapter import StableDiffusionAdapterPipeline, StableDiffusionXLAdapterPipeline
from .text_to_video_synthesis import TextToVideoSDPipeline, TextToVideoZeroPipeline, VideoToVideoSDPipeline
from .text_to_video_synthesis import (
TextToVideoSDPipeline,
TextToVideoZeroPipeline,
TextToVideoZeroSDXLPipeline,
VideoToVideoSDPipeline,
)
from .unclip import UnCLIPImageVariationPipeline, UnCLIPPipeline
from .unidiffuser import ImageTextPipelineOutput, UniDiffuserModel, UniDiffuserPipeline, UniDiffuserTextDecoder
from .versatile_diffusion import (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -425,10 +425,8 @@ def run_safety_checker(self, image, device, dtype):

def decode_latents(self, latents):
warnings.warn(
(
"The decode_latents method is deprecated and will be removed in a future version. Please"
" use VaeImageProcessor instead"
),
"The decode_latents method is deprecated and will be removed in a future version. Please"
" use VaeImageProcessor instead",
FutureWarning,
)
latents = 1 / self.vae.config.scaling_factor * latents
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -426,10 +426,8 @@ def run_safety_checker(self, image, device, dtype):

def decode_latents(self, latents):
warnings.warn(
(
"The decode_latents method is deprecated and will be removed in a future version. Please"
" use VaeImageProcessor instead"
),
"The decode_latents method is deprecated and will be removed in a future version. Please"
" use VaeImageProcessor instead",
FutureWarning,
)
latents = 1 / self.vae.config.scaling_factor * latents
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,8 @@
# Copied from diffusers.pipelines.stable_diffusion.pipeline_stable_diffusion_img2img.preprocess with 8->64
def preprocess(image):
warnings.warn(
(
"The preprocess method is deprecated and will be removed in a future version. Please"
" use VaeImageProcessor.preprocess instead"
),
"The preprocess method is deprecated and will be removed in a future version. Please"
" use VaeImageProcessor.preprocess instead",
FutureWarning,
)
if isinstance(image, torch.Tensor):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ class TextToVideoSDPipelineOutput(BaseOutput):
from .pipeline_text_to_video_synth import TextToVideoSDPipeline
from .pipeline_text_to_video_synth_img2img import VideoToVideoSDPipeline # noqa: F401
from .pipeline_text_to_video_zero import TextToVideoZeroPipeline
from .pipeline_text_to_video_zero_sdxl import TextToVideoZeroSDXLPipeline
Loading