Closed Woolverine94 closed 11 months ago
Following advices of @TonyLianLong in PR 5993, I confirm that the following modifications seems to solve the initial problem.
diff --git a/src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero.py b/src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero.py
index 0f9ffbeb..08a0136d 100644
--- a/src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero.py
+++ b/src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero.py
@@ -9,3 +9,3 @@ import torch.nn.functional as F
from torch.nn.functional import grid_sample
-from transformers import CLIPImageProcessor, CLIPTextModel, CLIPTokenizer
+from transformers import CLIPImageProcessor, CLIPTextModel, CLIPTokenizer, CLIPVisionModelWithProjection
@@ -311,2 +311,3 @@ class TextToVideoZeroPipeline(StableDiffusionPipeline):
feature_extractor: CLIPImageProcessor,
+ image_encoder: CLIPVisionModelWithProjection = None,
requires_safety_checker: bool = True,
@@ -314,3 +315,11 @@ class TextToVideoZeroPipeline(StableDiffusionPipeline):
super().__init__(
- vae, text_encoder, tokenizer, unet, scheduler, safety_checker, feature_extractor, requires_safety_checker
+ vae,
+ text_encoder,
+ tokenizer,
+ unet,
+ scheduler,
+ safety_checker=safety_checker,
+ feature_extractor=feature_extractor,
+ image_encoder=image_encoder,
+ requires_safety_checker=requires_safety_checker
)
Initial issue solved by PR #6213
Describe the bug
Hello diffusers team,
First of all, thanks for your awesome work !
Here's my problem : after upgrading to diffusers 0.24, i can't succeed loading a model into the TextToVideoZeroPipeline.
.from_pretrained fails with AttributeError: 'bool' object has no attribute 'module'. Did you mean: 'mod'?
Downgrading to diffusers 0.23.1 and peft 0.7.0 to 0.6.2 make the following snippet work again.
Seems to looks like 5992, but with the TextToVideoZeroPipeline.
Am I the only one encountering this behavior ?
Reproduction
Logs
System Info
Os : Debian 12 (VirtualBox virtual machine) Python version : Python 3.11.2 Diffusers : 0.24 PyTorch : 2.1.0+cpu
Who can help?
No response