Skip to content

Commit 39a1ce8

Browse files
committed
fix defaults
1 parent f6a07e5 commit 39a1ce8

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,7 @@
6969
... "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/guitar-man.png"
7070
... )
7171
72-
>>> output = pipe(
73-
... image=image,
74-
... height=720,
75-
... width=1280,
76-
... num_frames=129,
77-
... prompt=prompt,
78-
... true_cfg_scale=1.0,
79-
... guidance_scale=1.0,
80-
... ).frames[0]
72+
>>> output = pipe(image=image, prompt=prompt).frames[0]
8173
>>> export_to_video(output, "output.mp4", fps=15)
8274
```
8375
"""
@@ -587,7 +579,7 @@ def __call__(
587579
num_inference_steps: int = 50,
588580
sigmas: List[float] = None,
589581
true_cfg_scale: float = 1.0,
590-
guidance_scale: float = 6.0,
582+
guidance_scale: float = 1.0,
591583
num_videos_per_prompt: Optional[int] = 1,
592584
generator: Optional[Union[torch.Generator, List[torch.Generator]]] = None,
593585
latents: Optional[torch.Tensor] = None,
@@ -639,7 +631,7 @@ def __call__(
639631
will be used.
640632
true_cfg_scale (`float`, *optional*, defaults to 1.0):
641633
When > 1.0 and a provided `negative_prompt`, enables true classifier-free guidance.
642-
guidance_scale (`float`, defaults to `6.0`):
634+
guidance_scale (`float`, defaults to `1.0`):
643635
Guidance scale as defined in [Classifier-Free Diffusion Guidance](https://arxiv.org/abs/2207.12598).
644636
`guidance_scale` is defined as `w` of equation 2. of [Imagen
645637
Paper](https://arxiv.org/pdf/2205.11487.pdf). Guidance scale is enabled by setting `guidance_scale >

0 commit comments

Comments
 (0)