File size: 2,099 Bytes
0b7a51b 0b032ed |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
---
license: apache-2.0
base_model: TurboDiffusion/TurboWan2.1-T2V-14B-720P
tags:
- text-to-video
- diffusion
- video-generation
- turbodiffusion
- wan2.1
pipeline_tag: text-to-video
---
convert TurboWan2.2-I2V-A14B-720P(https://modelscope.cn/models/TurboDiffusion/TurboWan2.2-I2V-A14B-720P/summary) to TurboWan2.2-I2V-A14B-Diffusers
convert script https://github.com/IPostYellow/TurboWan_to_Diffusers/blob/main/convert_turbowan_to_diffusers.py
To use in sglang<br>
bash server:
```bash
sglang serve \
--model-path /home/admin/TurboWan2.2-I2V-A14B-Diffusers \
--dit-cpu-offload false \
--text-encoder-cpu-offload false \
--image-encoder-cpu-offload false \
--vae-cpu-offload false \
--pin-cpu-memory false \
--num-gpus 2 \
--tp-size 2
```
send request:
```python
import requests
prompt = "POV selfie video, ultra-messy and extremely fast. A white cat in sunglasses stands on a surfboard with a neutral look when the board suddenly whips sideways, throwing cat and camera into the water; the frame dives sharply downward, swallowed by violent bursts of bubbles, spinning turbulence, and smeared water streaks as the camera sinks. Shadows thicken, pressure ripples distort the edges, and loose bubbles rush upward past the lens, showing the camera is still sinking. Then the cat kicks upward with explosive speed, dragging the view through churning bubbles and rapidly brightening water as sunlight floods back in; the camera races upward, water streaming off the lens, and finally breaks the surface in a sudden blast of light and spray, snapping back into a crooked, frantic selfie as the cat resurfaces."
response = requests.post("http://localhost:30000/v1/videos",
files={'prompt': (None,prompt), 'size': (None,'720x1280'),'reference_url':(None,"https://raw.githubusercontent.com/IPostYellow/TurboWan_to_Diffusers/refs/heads/main/input_image/i2v_input_0.jpg"),'num_inference_steps':(None,"4"),'fps':(None,"16"),'num_frames':(None,"81"),'seed':(None,"0")})
print("Status Code:", response.status_code)
print("Response Body:", response.text)
```
|