Instructions to use Wan-AI/Wan2.2-Animate-2-14B-Distilled-Diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Wan-AI/Wan2.2-Animate-2-14B-Distilled-Diffusers with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Wan-AI/Wan2.2-Animate-2-14B-Distilled-Diffusers", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Use FlowMatchEulerDiscreteScheduler (the scheduler the release samples with)
Browse files- scheduler/scheduler_config.json +10 -22
scheduler/scheduler_config.json
CHANGED
|
@@ -1,30 +1,18 @@
|
|
| 1 |
{
|
| 2 |
-
"_class_name": "
|
| 3 |
-
"_diffusers_version": "0.
|
| 4 |
-
"
|
| 5 |
-
"
|
| 6 |
-
"
|
| 7 |
-
"
|
| 8 |
-
"
|
| 9 |
-
"final_sigmas_type": "zero",
|
| 10 |
-
"flow_shift": 5.0,
|
| 11 |
-
"lower_order_final": true,
|
| 12 |
"num_train_timesteps": 1000,
|
| 13 |
-
"
|
| 14 |
-
"
|
| 15 |
-
"
|
| 16 |
-
"sample_max_value": 1.0,
|
| 17 |
-
"solver_order": 2,
|
| 18 |
-
"solver_p": null,
|
| 19 |
-
"solver_type": "bh2",
|
| 20 |
-
"steps_offset": 0,
|
| 21 |
-
"thresholding": false,
|
| 22 |
"time_shift_type": "exponential",
|
| 23 |
-
"timestep_spacing": "linspace",
|
| 24 |
-
"trained_betas": null,
|
| 25 |
"use_beta_sigmas": false,
|
| 26 |
"use_dynamic_shifting": false,
|
| 27 |
"use_exponential_sigmas": false,
|
| 28 |
-
"use_flow_sigmas": true,
|
| 29 |
"use_karras_sigmas": false
|
| 30 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"_class_name": "FlowMatchEulerDiscreteScheduler",
|
| 3 |
+
"_diffusers_version": "0.40.0.dev0",
|
| 4 |
+
"base_image_seq_len": 256,
|
| 5 |
+
"base_shift": 0.5,
|
| 6 |
+
"invert_sigmas": false,
|
| 7 |
+
"max_image_seq_len": 4096,
|
| 8 |
+
"max_shift": 1.15,
|
|
|
|
|
|
|
|
|
|
| 9 |
"num_train_timesteps": 1000,
|
| 10 |
+
"shift": 5.0,
|
| 11 |
+
"shift_terminal": null,
|
| 12 |
+
"stochastic_sampling": false,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
"time_shift_type": "exponential",
|
|
|
|
|
|
|
| 14 |
"use_beta_sigmas": false,
|
| 15 |
"use_dynamic_shifting": false,
|
| 16 |
"use_exponential_sigmas": false,
|
|
|
|
| 17 |
"use_karras_sigmas": false
|
| 18 |
}
|