|
56 | 56 | ```python |
57 | 57 | >>> import torch |
58 | 58 | >>> 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 |
60 | 60 | >>> from diffusers.utils import export_to_video, load_video |
61 | 61 |
|
62 | 62 | >>> pipe = EasyAnimateControlPipeline.from_pretrained( |
|
65 | 65 | >>> pipe.to("cuda") |
66 | 66 |
|
67 | 67 | >>> 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" |
69 | 69 | ... ) |
70 | 70 | >>> 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." |
75 | 78 | ... ) |
76 | | - >>> sample_size = (576, 448) |
| 79 | + >>> sample_size = (672, 384) |
77 | 80 | >>> num_frames = 49 |
78 | 81 |
|
79 | 82 | >>> input_video, _, _ = get_video_to_video_latent(control_video, num_frames, sample_size) |
|
0 commit comments