Update README.md
Browse files
README.md
CHANGED
|
@@ -11,4 +11,27 @@ pipeline_tag: text-to-video
|
|
| 11 |
---
|
| 12 |
|
| 13 |
convert TurboWan2.1-T2V-1.3B-480P(https://modelscope.cn/models/TurboDiffusion/TurboWan2.1-T2V-1.3B-480P/summary) to TurboWan2.1-T2V-1.3B-Diffusers<br>
|
| 14 |
-
convert script
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
convert TurboWan2.1-T2V-1.3B-480P(https://modelscope.cn/models/TurboDiffusion/TurboWan2.1-T2V-1.3B-480P/summary) to TurboWan2.1-T2V-1.3B-Diffusers<br>
|
| 14 |
+
convert script https://github.com/IPostYellow/TurboWan_to_Diffusers/blob/main/convert_turbowan21_to_diffusers.py
|
| 15 |
+
|
| 16 |
+
To use in sglang<br>
|
| 17 |
+
bash server:
|
| 18 |
+
```bash
|
| 19 |
+
sglang serve \
|
| 20 |
+
--model-path /path/TurboWan2.1-T2V-1.3B-Diffusers \
|
| 21 |
+
--dit-cpu-offload false \
|
| 22 |
+
--text-encoder-cpu-offload false \
|
| 23 |
+
--image-encoder-cpu-offload false \
|
| 24 |
+
--vae-cpu-offload false \
|
| 25 |
+
--pin-cpu-memory false \
|
| 26 |
+
--num-gpus 1
|
| 27 |
+
```
|
| 28 |
+
|
| 29 |
+
send request:
|
| 30 |
+
```python
|
| 31 |
+
import requests
|
| 32 |
+
prompt="A stylish woman walks down a Tokyo street filled with warm glowing neon and animated city signage. She wears a black leather jacket, a long red dress, and black boots, and carries a black purse. She wears sunglasses and red lipstick. She walks confidently and casually. The street is damp and reflective, creating a mirror effect of the colorful lights. Many pedestrians walk about."
|
| 33 |
+
headers = {
|
| 34 |
+
"Content-Type": "application/json",
|
| 35 |
+
}
|
| 36 |
+
requests.post("http://localhost:3000/v1/videos",headers=headers,json={'prompt': prompt, 'size': '832x480','num_inference_steps':4,'fps':16,'num_frames':81,'negative_prompt':None,'seed':0,})
|
| 37 |
+
```
|