You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# FastVideo will automatically use the optimal default arguments for the
6
+
# model.
7
+
# If a local path is provided, FastVideo will make a best effort
8
+
# attempt to identify the optimal arguments.
9
+
model_name="Wan-AI/Wan2.2-TI2V-5B-Diffusers"
10
+
generator=VideoGenerator.from_pretrained(
11
+
model_name,
12
+
# FastVideo will automatically handle distributed setup
13
+
num_gpus=1,
14
+
use_fsdp_inference=True,
15
+
dit_cpu_offload=True,
16
+
vae_cpu_offload=False,
17
+
text_encoder_cpu_offload=True,
18
+
pin_cpu_memory=True, # set to false if low CPU RAM or hit obscure "CUDA error: Invalid argument"
19
+
# image_encoder_cpu_offload=False,
20
+
)
21
+
22
+
# I2V is triggered just by passing in an image_path argument
23
+
prompt="Summer beach vacation style, a white cat wearing sunglasses sits on a surfboard. The fluffy-furred feline gazes directly at the camera with a relaxed expression. Blurred beach scenery forms the background featuring crystal-clear waters, distant green hills, and a blue sky dotted with white clouds. The cat assumes a naturally relaxed posture, as if savoring the sea breeze and warm sunlight. A close-up shot highlights the feline's intricate details and the refreshing atmosphere of the seaside."
0 commit comments