Skip to content

Commit 1232088

Browse files
committed
Add configs and start scripts
1 parent d63d003 commit 1232088

File tree

4 files changed

+34
-0
lines changed

4 files changed

+34
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"infer_steps": 50,
3+
"target_video_length": 81,
4+
"text_len": 512,
5+
"target_height": 480,
6+
"target_width": 832,
7+
"self_attn_1_type": "draft_attn",
8+
"draft_attn_sparsity_ratio": 0.75,
9+
"cross_attn_1_type": "flash_attn3",
10+
"cross_attn_2_type": "flash_attn3",
11+
"sample_guide_scale": 5,
12+
"sample_shift": 5,
13+
"enable_cfg": true,
14+
"cpu_offload": false
15+
}
File renamed without changes.
File renamed without changes.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
# set path and first
4+
lightx2v_path=
5+
model_path=
6+
7+
export CUDA_VISIBLE_DEVICES=0
8+
9+
# set environment variables
10+
source ${lightx2v_path}/scripts/base/base.sh
11+
12+
python -m lightx2v.infer \
13+
--model_cls wan2.1 \
14+
--task t2v \
15+
--model_path $model_path \
16+
--config_json ${lightx2v_path}/configs/attentions/wan_t2v_draft.json \
17+
--prompt "Two anthropomorphic cats in comfy boxing gear and bright gloves fight intensely on a spotlighted stage." \
18+
--negative_prompt "镜头晃动,色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走" \
19+
--save_result_path ${lightx2v_path}/save_results/output_lightx2v_wan_t2v_draft_attn.mp4

0 commit comments

Comments
 (0)