Commit bd21f14f authored by gushiqiao's avatar gushiqiao Committed by GitHub
Browse files

[Fix] Fix oom bug (#307)

parent e120838b
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
File mode changed from 100755 to 100644
#!/bin/bash #!/bin/bash
lightx2v_path=/path/to/Lightx2v lightx2v_path=/path/to/LightX2V
model_path=/path/to/SekoTalk-Distill-fp8 model_path=/path/to/SekoTalk-Distill-fp8/
export CUDA_VISIBLE_DEVICES=0 export CUDA_VISIBLE_DEVICES=0
......
#!/bin/bash #!/bin/bash
lightx2v_path=/path/to/Lightx2v lightx2v_path=/mtc/gushiqiao/llmc_workspace/lightx2v_latest2/LightX2V
model_path=/path/to/SekoTalk-Distill-fp8 model_path=/data/nvme0/gushiqiao/models/Lightx2v_models/seko-new/SekoTalk-Distill-fp8/
export CUDA_VISIBLE_DEVICES=0 export CUDA_VISIBLE_DEVICES=0
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
# set path and first # set path and first
lightx2v_path= lightx2v_path=
model_path= model_path=
export CUDA_VISIBLE_DEVICES=0 export CUDA_VISIBLE_DEVICES=0
# set environment variables # set environment variables
...@@ -13,7 +14,7 @@ python -m lightx2v.infer \ ...@@ -13,7 +14,7 @@ python -m lightx2v.infer \
--model_cls wan2.2_moe_distill \ --model_cls wan2.2_moe_distill \
--task flf2v \ --task flf2v \
--model_path $model_path \ --model_path $model_path \
--config_json ${lightx2v_path}/configs/wan22/wan_distill_moe_flf2v_fp8.json \ --config_json ${lightx2v_path}/configs/wan22/wan_distill_moe_flf2v.json \
--prompt "A bearded man with red facial hair wearing a yellow straw hat and dark coat in Van Gogh's self-portrait style, slowly and continuously transforms into a space astronaut. The transformation flows like liquid paint - his beard fades away strand by strand, the yellow hat melts and reforms smoothly into a silver space helmet, dark coat gradually lightens and restructures into a white spacesuit. The background swirling brushstrokes slowly organize and clarify into realistic stars and space, with Earth appearing gradually in the distance. Every change happens in seamless waves, maintaining visual continuity throughout the metamorphosis.\n\nConsistent soft lighting throughout, medium close-up maintaining same framing, central composition stays fixed, gentle color temperature shift from warm to cool, gradual contrast increase, smooth style transition from painterly to photorealistic. Static camera with subtle slow zoom, emphasizing the flowing transformation process without abrupt changes." \ --prompt "A bearded man with red facial hair wearing a yellow straw hat and dark coat in Van Gogh's self-portrait style, slowly and continuously transforms into a space astronaut. The transformation flows like liquid paint - his beard fades away strand by strand, the yellow hat melts and reforms smoothly into a silver space helmet, dark coat gradually lightens and restructures into a white spacesuit. The background swirling brushstrokes slowly organize and clarify into realistic stars and space, with Earth appearing gradually in the distance. Every change happens in seamless waves, maintaining visual continuity throughout the metamorphosis.\n\nConsistent soft lighting throughout, medium close-up maintaining same framing, central composition stays fixed, gentle color temperature shift from warm to cool, gradual contrast increase, smooth style transition from painterly to photorealistic. Static camera with subtle slow zoom, emphasizing the flowing transformation process without abrupt changes." \
--negative_prompt "镜头晃动,色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走" \ --negative_prompt "镜头晃动,色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走" \
--image_path /mtc/gushiqiao/llmc_workspace/wan22_14B_flf2v_start_image.png \ --image_path /mtc/gushiqiao/llmc_workspace/wan22_14B_flf2v_start_image.png \
......
...@@ -10,7 +10,7 @@ export CUDA_VISIBLE_DEVICES=0 ...@@ -10,7 +10,7 @@ export CUDA_VISIBLE_DEVICES=0
source ${lightx2v_path}/scripts/base/base.sh source ${lightx2v_path}/scripts/base/base.sh
python -m lightx2v.infer \ python -m lightx2v.infer \
--model_cls wan2.1 \ --model_cls wan2.2_moe \
--task flf2v \ --task flf2v \
--model_path $model_path \ --model_path $model_path \
--config_json ${lightx2v_path}/configs/wan22/wan_moe_flf2v.json \ --config_json ${lightx2v_path}/configs/wan22/wan_moe_flf2v.json \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment