Skip to content

Commit a7821be

Browse files
committed
Update EXAMPLE_DOC_STRING
1 parent 19fcc7d commit a7821be

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

src/diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
```python
5757
>>> import torch
5858
>>> from diffusers import EasyAnimateControlPipeline
59-
>>> from diffusers.easyanimate.pipeline_easyanimate_control import get_video_to_video_latent
59+
>>> from diffusers.pipelines.easyanimate.pipeline_easyanimate_control import get_video_to_video_latent
6060
>>> from diffusers.utils import export_to_video, load_video
6161
6262
>>> pipe = EasyAnimateControlPipeline.from_pretrained(
@@ -65,15 +65,18 @@
6565
>>> pipe.to("cuda")
6666
6767
>>> control_video = load_video(
68-
... "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/hiker.mp4"
68+
... "https://huggingface.co/alibaba-pai/EasyAnimateV5.1-12b-zh-Control/blob/main/asset/pose.mp4"
6969
... )
7070
>>> prompt = (
71-
... "An astronaut stands triumphantly at the peak of a towering mountain. Panorama of rugged peaks and "
72-
... "valleys. Very futuristic vibe and animated aesthetic. Highlights of purple and golden colors in "
73-
... "the scene. The sky is looks like an animated/cartoonish dream of galaxies, nebulae, stars, planets, "
74-
... "moons, but the remainder of the scene is mostly realistic."
71+
... "In this sunlit outdoor garden, a beautiful woman is dressed in a knee-length, sleeveless white dress. "
72+
... "The hem of her dress gently sways with her graceful dance, much like a butterfly fluttering in the breeze. "
73+
... "Sunlight filters through the leaves, casting dappled shadows that highlight her soft features and clear eyes, "
74+
... "making her appear exceptionally elegant. It seems as if every movement she makes speaks of youth and vitality. "
75+
... "As she twirls on the grass, her dress flutters, as if the entire garden is rejoicing in her dance. "
76+
... "The colorful flowers around her sway in the gentle breeze, with roses, chrysanthemums, and lilies each "
77+
... "releasing their fragrances, creating a relaxed and joyful atmosphere."
7578
... )
76-
>>> sample_size = (576, 448)
79+
>>> sample_size = (672, 384)
7780
>>> num_frames = 49
7881
7982
>>> input_video, _, _ = get_video_to_video_latent(control_video, num_frames, sample_size)

src/diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
```py
5757
>>> import torch
5858
>>> from diffusers import EasyAnimateInpaintPipeline
59-
>>> from diffusers.easyanimate.pipeline_easyanimate_inpaint import get_image_to_video_latent
59+
>>> from diffusers.pipelines.easyanimate.pipeline_easyanimate_inpaint import get_image_to_video_latent
6060
>>> from diffusers.utils import export_to_video, load_image
6161
6262
>>> pipe = EasyAnimateInpaintPipeline.from_pretrained("alibaba-pai/EasyAnimateV5.1-12b-zh-InP", torch_dtype=torch.bfloat16)
@@ -67,10 +67,10 @@
6767
... "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/astronaut.jpg"
6868
... )
6969
>>> validation_image_end = None
70-
>>> sample_size = (576, 448)
70+
>>> sample_size = (448, 576)
7171
>>> num_frames = 49
72-
>>> input_video, input_video_mask, _ = get_image_to_video_latent(validation_image_start, validation_image_end, num_frames, sample_size)
73-
>>> video = pipe(prompt, num_frames=num_frames, negative_prompt="bad detailed", height=sample_size[0], width=sample_size[1], input_video=input_video, mask_video=input_video_mask)
72+
>>> input_video, input_video_mask, _ = get_image_to_video_latent([validation_image_start], validation_image_end, num_frames, sample_size)
73+
>>> video = pipe(prompt, num_frames=num_frames, negative_prompt="bad detailed", height=sample_size[0], width=sample_size[1], video=input_video, mask_video=input_video_mask)
7474
>>> export_to_video(video.frames[0], "output.mp4", fps=8)
7575
```
7676
"""

0 commit comments

Comments
 (0)