Skip to content

Commit 99e8da1

Browse files
committed
make fix-copies
1 parent 6e8bab2 commit 99e8da1

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ def __init__(
213213
self.vae_scale_factor_spatial = self.vae.spatial_compression_ratio if getattr(self, "vae", None) else 8
214214
self.video_processor = VideoProcessor(vae_scale_factor=self.vae_scale_factor_spatial)
215215

216+
# Copied from diffusers.pipelines.hunyuan_video.pipeline_hunyuan_video.HunyuanVideoPipeline._get_llama_prompt_embeds
216217
def _get_llama_prompt_embeds(
217218
self,
218219
prompt: Union[str, List[str]],
@@ -279,6 +280,7 @@ def _get_llama_prompt_embeds(
279280

280281
return prompt_embeds, prompt_attention_mask
281282

283+
# Copied from diffusers.pipelines.hunyuan_video.pipeline_hunyuan_video.HunyuanVideoPipeline._get_clip_prompt_embeds
282284
def _get_clip_prompt_embeds(
283285
self,
284286
prompt: Union[str, List[str]],
@@ -318,6 +320,7 @@ def _get_clip_prompt_embeds(
318320

319321
return prompt_embeds
320322

323+
# Copied from diffusers.pipelines.hunyuan_video.pipeline_hunyuan_video.HunyuanVideoPipeline.encode_prompt
321324
def encode_prompt(
322325
self,
323326
prompt: Union[str, List[str]],
@@ -354,6 +357,7 @@ def encode_prompt(
354357

355358
return prompt_embeds, pooled_prompt_embeds, prompt_attention_mask
356359

360+
# Copied from diffusers.pipelines.hunyuan_video.pipeline_hunyuan_video.HunyuanVideoPipeline.check_inputs
357361
def check_inputs(
358362
self,
359363
prompt,

src/diffusers/utils/dummy_torch_and_transformers_objects.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,21 @@ def from_pretrained(cls, *args, **kwargs):
617617
requires_backends(cls, ["torch", "transformers"])
618618

619619

620+
class HunyuanSkyreelsImageToVideoPipeline(metaclass=DummyObject):
621+
_backends = ["torch", "transformers"]
622+
623+
def __init__(self, *args, **kwargs):
624+
requires_backends(self, ["torch", "transformers"])
625+
626+
@classmethod
627+
def from_config(cls, *args, **kwargs):
628+
requires_backends(cls, ["torch", "transformers"])
629+
630+
@classmethod
631+
def from_pretrained(cls, *args, **kwargs):
632+
requires_backends(cls, ["torch", "transformers"])
633+
634+
620635
class HunyuanVideoPipeline(metaclass=DummyObject):
621636
_backends = ["torch", "transformers"]
622637

0 commit comments

Comments
 (0)