Instructions to use lightx2v/Wan2.1-T2V-14B-StepDistill-CfgDistill-Lightx2v with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use lightx2v/Wan2.1-T2V-14B-StepDistill-CfgDistill-Lightx2v with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image, export_to_video # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("lightx2v/Wan2.1-T2V-14B-StepDistill-CfgDistill-Lightx2v", dtype=torch.bfloat16, device_map="cuda") pipe.to("cuda") prompt = "A man with short gray hair plays a red electric guitar." image = load_image( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/guitar-man.png" ) output = pipe(image=image, prompt=prompt).frames[0] export_to_video(output, "output.mp4") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -30,7 +30,7 @@ In this version, we added the following features:
|
|
| 30 |
|
| 31 |
## Training
|
| 32 |
|
| 33 |
-
Our training code is modified based on the [Self-Forcing](https://github.com/guandeh17/Self-Forcing) repository. We extended support for the Wan2.1-14B-
|
| 34 |
|
| 35 |
## Inference
|
| 36 |
|
|
|
|
| 30 |
|
| 31 |
## Training
|
| 32 |
|
| 33 |
+
Our training code is modified based on the [Self-Forcing](https://github.com/guandeh17/Self-Forcing) repository. We extended support for the Wan2.1-14B-T2V model and performed a 4-step bidirectional distillation process. The modified code is available at [Self-Forcing-Plus](https://github.com/GoatWu/Self-Forcing-Plus).
|
| 34 |
|
| 35 |
## Inference
|
| 36 |
|