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
927ce73a
Commit
927ce73a
authored
Jul 17, 2025
by
wangshankun
Browse files
Adapt the audio model to the new interface
parent
5ec2b691
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
lightx2v/models/runners/wan/wan_audio_runner.py
lightx2v/models/runners/wan/wan_audio_runner.py
+1
-1
scripts/wan/run_wan_i2v_audio.sh
scripts/wan/run_wan_i2v_audio.sh
+1
-1
No files found.
lightx2v/models/runners/wan/wan_audio_runner.py
View file @
927ce73a
...
@@ -578,7 +578,7 @@ class WanAudioRunner(WanRunner):
...
@@ -578,7 +578,7 @@ class WanAudioRunner(WanRunner):
os
.
remove
(
out_path
)
os
.
remove
(
out_path
)
os
.
remove
(
audio_file
)
os
.
remove
(
audio_file
)
async
def
run_pipeline
(
self
):
def
run_pipeline
(
self
):
if
self
.
config
[
"use_prompt_enhancer"
]:
if
self
.
config
[
"use_prompt_enhancer"
]:
self
.
config
[
"prompt_enhanced"
]
=
self
.
post_prompt_enhancer
()
self
.
config
[
"prompt_enhanced"
]
=
self
.
post_prompt_enhancer
()
...
...
scripts/wan/run_wan_i2v_audio.sh
View file @
927ce73a
...
@@ -40,7 +40,7 @@ python -m lightx2v.infer \
...
@@ -40,7 +40,7 @@ python -m lightx2v.infer \
--task
i2v
\
--task
i2v
\
--model_path
$model_path
\
--model_path
$model_path
\
--config_json
${
lightx2v_path
}
/configs/audio_driven/wan_i2v_audio.json
\
--config_json
${
lightx2v_path
}
/configs/audio_driven/wan_i2v_audio.json
\
--prompt
_path
${
lightx2v_path
}
/assets/inputs/audio/15.txt
\
--prompt
"The video features a old lady is saying something and knitting a sweater."
\
--negative_prompt
色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走
\
--negative_prompt
色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走
\
--image_path
${
lightx2v_path
}
/assets/inputs/audio/15.png
\
--image_path
${
lightx2v_path
}
/assets/inputs/audio/15.png
\
--audio_path
${
lightx2v_path
}
/assets/inputs/audio/15.wav
\
--audio_path
${
lightx2v_path
}
/assets/inputs/audio/15.wav
\
...
...
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