Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xuwx1
LightX2V
Commits
8b230da5
Commit
8b230da5
authored
Jul 03, 2025
by
wangshankun
Browse files
update config attention type
parent
fad005dd
Changes
49
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
22 additions
and
10 deletions
+22
-10
configs/skyreels/wan_skyreels_v2_i2v.json
configs/skyreels/wan_skyreels_v2_i2v.json
+3
-1
configs/skyreels/wan_skyreels_v2_t2v.json
configs/skyreels/wan_skyreels_v2_t2v.json
+3
-1
configs/wan/wan_i2v.json
configs/wan/wan_i2v.json
+3
-1
configs/wan/wan_i2v_dist.json
configs/wan/wan_i2v_dist.json
+3
-1
configs/wan/wan_t2v.json
configs/wan/wan_t2v.json
+3
-1
configs/wan/wan_t2v_dist.json
configs/wan/wan_t2v_dist.json
+3
-1
configs/wan/wan_t2v_enhancer.json
configs/wan/wan_t2v_enhancer.json
+3
-1
lightx2v/models/networks/wan/lora_adapter.py
lightx2v/models/networks/wan/lora_adapter.py
+0
-2
scripts/wan/run_wan_i2v_audio.sh
scripts/wan/run_wan_i2v_audio.sh
+1
-1
No files found.
configs/skyreels/wan_skyreels_v2_i2v.json
View file @
8b230da5
...
...
@@ -4,7 +4,9 @@
"text_len"
:
512
,
"target_height"
:
544
,
"target_width"
:
960
,
"attention_type"
:
"flash_attn3"
,
"self_attn_1_type"
:
"flash_attn3"
,
"cross_attn_1_type"
:
"flash_attn3"
,
"cross_attn_2_type"
:
"flash_attn3"
,
"seed"
:
42
,
"sample_guide_scale"
:
5
,
"sample_shift"
:
3
...
...
configs/skyreels/wan_skyreels_v2_t2v.json
View file @
8b230da5
...
...
@@ -4,7 +4,9 @@
"text_len"
:
512
,
"target_height"
:
544
,
"target_width"
:
960
,
"attention_type"
:
"flash_attn3"
,
"self_attn_1_type"
:
"flash_attn3"
,
"cross_attn_1_type"
:
"flash_attn3"
,
"cross_attn_2_type"
:
"flash_attn3"
,
"seed"
:
42
,
"sample_guide_scale"
:
6
,
"sample_shift"
:
8
...
...
configs/wan/wan_i2v.json
View file @
8b230da5
...
...
@@ -3,7 +3,9 @@
"target_video_length"
:
81
,
"target_height"
:
480
,
"target_width"
:
832
,
"attention_type"
:
"flash_attn3"
,
"self_attn_1_type"
:
"flash_attn3"
,
"cross_attn_1_type"
:
"flash_attn3"
,
"cross_attn_2_type"
:
"flash_attn3"
,
"seed"
:
442
,
"sample_guide_scale"
:
5
,
"sample_shift"
:
3
,
...
...
configs/wan/wan_i2v_dist.json
View file @
8b230da5
...
...
@@ -3,7 +3,9 @@
"target_video_length"
:
81
,
"target_height"
:
480
,
"target_width"
:
832
,
"attention_type"
:
"flash_attn3"
,
"self_attn_1_type"
:
"flash_attn3"
,
"cross_attn_1_type"
:
"flash_attn3"
,
"cross_attn_2_type"
:
"flash_attn3"
,
"seed"
:
42
,
"sample_guide_scale"
:
5
,
"sample_shift"
:
5
,
...
...
configs/wan/wan_t2v.json
View file @
8b230da5
...
...
@@ -4,7 +4,9 @@
"text_len"
:
512
,
"target_height"
:
480
,
"target_width"
:
832
,
"attention_type"
:
"flash_attn3"
,
"self_attn_1_type"
:
"flash_attn3"
,
"cross_attn_1_type"
:
"flash_attn3"
,
"cross_attn_2_type"
:
"flash_attn3"
,
"seed"
:
42
,
"sample_guide_scale"
:
6
,
"sample_shift"
:
8
,
...
...
configs/wan/wan_t2v_dist.json
View file @
8b230da5
...
...
@@ -4,7 +4,9 @@
"text_len"
:
512
,
"target_height"
:
480
,
"target_width"
:
832
,
"attention_type"
:
"flash_attn3"
,
"self_attn_1_type"
:
"flash_attn3"
,
"cross_attn_1_type"
:
"flash_attn3"
,
"cross_attn_2_type"
:
"flash_attn3"
,
"seed"
:
42
,
"sample_guide_scale"
:
6
,
"sample_shift"
:
8
,
...
...
configs/wan/wan_t2v_enhancer.json
View file @
8b230da5
...
...
@@ -4,7 +4,9 @@
"text_len"
:
512
,
"target_height"
:
480
,
"target_width"
:
832
,
"attention_type"
:
"flash_attn3"
,
"self_attn_1_type"
:
"flash_attn3"
,
"cross_attn_1_type"
:
"flash_attn3"
,
"cross_attn_2_type"
:
"flash_attn3"
,
"seed"
:
42
,
"sample_guide_scale"
:
6
,
"sample_shift"
:
8
,
...
...
lightx2v/models/networks/wan/lora_adapter.py
View file @
8b230da5
...
...
@@ -85,8 +85,6 @@ class WanLoraWrapper:
if
name
in
lora_pairs
:
if
name
not
in
self
.
override_dict
:
self
.
override_dict
[
name
]
=
param
.
clone
().
cpu
()
# import pdb
# pdb.set_trace()
name_lora_A
,
name_lora_B
=
lora_pairs
[
name
]
lora_A
=
lora_weights
[
name_lora_A
].
to
(
param
.
device
,
param
.
dtype
)
lora_B
=
lora_weights
[
name_lora_B
].
to
(
param
.
device
,
param
.
dtype
)
...
...
scripts/run_wan_i2v_audio.sh
→
scripts/
wan/
run_wan_i2v_audio.sh
View file @
8b230da5
...
...
@@ -33,7 +33,7 @@ python -m lightx2v.infer \
--model_cls
wan2.1_audio
\
--task
i2v
\
--model_path
$model_path
\
--config_json
${
lightx2v_path
}
/configs/wan_i2v_audio.json
\
--config_json
${
lightx2v_path
}
/configs/
audio_driven/
wan_i2v_audio.json
\
--prompt_path
${
lightx2v_path
}
/assets/inputs/audio/15.txt
\
--negative_prompt
色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走
\
--image_path
${
lightx2v_path
}
/assets/inputs/audio/15.png
\
...
...
Prev
1
2
3
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment