"vscode:/vscode.git/clone" did not exist on "1785acffa60b128b9f415712ace693fc998dea96"
Commit 2a0b7c8f authored by helloyongyang's avatar helloyongyang Committed by Yang Yong(雍洋)
Browse files

update scripts

parent 86f7f033
...@@ -6,8 +6,8 @@ model_path="" ...@@ -6,8 +6,8 @@ model_path=""
# check section # check section
if [ -z "${CUDA_VISIBLE_DEVICES}" ]; then if [ -z "${CUDA_VISIBLE_DEVICES}" ]; then
echo "Warn: CUDA_VISIBLE_DEVICES is not set, using defalt value: 0, change at shell script or set env variable." cuda_devices=0
cuda_devices="0" echo "Warn: CUDA_VISIBLE_DEVICES is not set, using defalt value: ${cuda_devices}, change at shell script or set env variable."
export CUDA_VISIBLE_DEVICES=${cuda_devices} export CUDA_VISIBLE_DEVICES=${cuda_devices}
fi fi
......
...@@ -6,8 +6,8 @@ model_path="" ...@@ -6,8 +6,8 @@ model_path=""
# check section # check section
if [ -z "${CUDA_VISIBLE_DEVICES}" ]; then if [ -z "${CUDA_VISIBLE_DEVICES}" ]; then
echo "Warn: CUDA_VISIBLE_DEVICES is not set, using defalt value: 0, change at shell script or set env variable." cuda_devices=0
cuda_devices="0" echo "Warn: CUDA_VISIBLE_DEVICES is not set, using defalt value: ${cuda_devices}, change at shell script or set env variable."
export CUDA_VISIBLE_DEVICES=${cuda_devices} export CUDA_VISIBLE_DEVICES=${cuda_devices}
fi fi
...@@ -32,5 +32,5 @@ python ${lightx2v_path}/lightx2v/__main__.py \ ...@@ -32,5 +32,5 @@ python ${lightx2v_path}/lightx2v/__main__.py \
--target_height 720 \ --target_height 720 \
--target_width 1280 \ --target_width 1280 \
--attention_type flash_attn3 \ --attention_type flash_attn3 \
--save_video_path ./output_lightx2v_int8.mp4 \ --save_video_path ./output_lightx2v_hy_t2v.mp4 \
--mm_config '{"mm_type": "W-int8-channel-sym-A-int8-channel-sym-dynamic-Vllm", "weight_auto_quant": true}' --mm_config '{"mm_type": "W-int8-channel-sym-A-int8-channel-sym-dynamic-Vllm", "weight_auto_quant": true}'
...@@ -6,8 +6,8 @@ model_path="" ...@@ -6,8 +6,8 @@ model_path=""
# check section # check section
if [ -z "${CUDA_VISIBLE_DEVICES}" ]; then if [ -z "${CUDA_VISIBLE_DEVICES}" ]; then
echo "Warn: CUDA_VISIBLE_DEVICES is not set, using defalt value: 0,1,2,3, change at shell script or set env variable." cuda_devices=0,1,2,3
cuda_devices="0,1,2,3" echo "Warn: CUDA_VISIBLE_DEVICES is not set, using defalt value: ${cuda_devices}, change at shell script or set env variable."
export CUDA_VISIBLE_DEVICES=${cuda_devices} export CUDA_VISIBLE_DEVICES=${cuda_devices}
fi fi
......
...@@ -6,8 +6,8 @@ model_path="" ...@@ -6,8 +6,8 @@ model_path=""
# check section # check section
if [ -z "${CUDA_VISIBLE_DEVICES}" ]; then if [ -z "${CUDA_VISIBLE_DEVICES}" ]; then
echo "Warn: CUDA_VISIBLE_DEVICES is not set, using defalt value: 0, change at shell script or set env variable." cuda_devices=0
cuda_devices="0" echo "Warn: CUDA_VISIBLE_DEVICES is not set, using defalt value: ${cuda_devices}, change at shell script or set env variable."
export CUDA_VISIBLE_DEVICES=${cuda_devices} export CUDA_VISIBLE_DEVICES=${cuda_devices}
fi fi
...@@ -35,5 +35,5 @@ python ${lightx2v_path}/lightx2v/__main__.py \ ...@@ -35,5 +35,5 @@ python ${lightx2v_path}/lightx2v/__main__.py \
--attention_type flash_attn2 \ --attention_type flash_attn2 \
--cpu_offload \ --cpu_offload \
--feature_caching TaylorSeer \ --feature_caching TaylorSeer \
--save_video_path ./output_lightx2v_offload_TaylorSeer.mp4 \ --save_video_path ./output_lightx2v_hy_t2v.mp4 \
# --mm_config '{"mm_type": "W-int8-channel-sym-A-int8-channel-sym-dynamic-Vllm", "weight_auto_quant": true}' # --mm_config '{"mm_type": "W-int8-channel-sym-A-int8-channel-sym-dynamic-Vllm", "weight_auto_quant": true}'
...@@ -7,8 +7,8 @@ config_path="" ...@@ -7,8 +7,8 @@ config_path=""
# check section # check section
if [ -z "${CUDA_VISIBLE_DEVICES}" ]; then if [ -z "${CUDA_VISIBLE_DEVICES}" ]; then
echo "Warn: CUDA_VISIBLE_DEVICES is not set, using defalt value: 0, change at shell script or set env variable." cuda_devices=0
cuda_devices="0" echo "Warn: CUDA_VISIBLE_DEVICES is not set, using defalt value: ${cuda_devices}, change at shell script or set env variable."
export CUDA_VISIBLE_DEVICES=${cuda_devices} export CUDA_VISIBLE_DEVICES=${cuda_devices}
fi fi
...@@ -43,7 +43,7 @@ python ${lightx2v_path}/lightx2v/__main__.py \ ...@@ -43,7 +43,7 @@ python ${lightx2v_path}/lightx2v/__main__.py \
--seed 42 \ --seed 42 \
--sample_neg_promp 色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走 \ --sample_neg_promp 色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走 \
--config_path $config_path \ --config_path $config_path \
--save_video_path ./output_lightx2v_seed42_fp8_base.mp4 \ --save_video_path ./output_lightx2v_wan_i2v.mp4 \
--sample_guide_scale 5 \ --sample_guide_scale 5 \
--sample_shift 5 \ --sample_shift 5 \
--image_path ${lightx2v_path}/assets/inputs/imgs/img_0.jpg \ --image_path ${lightx2v_path}/assets/inputs/imgs/img_0.jpg \
......
...@@ -7,8 +7,8 @@ config_path="" ...@@ -7,8 +7,8 @@ config_path=""
# check section # check section
if [ -z "${CUDA_VISIBLE_DEVICES}" ]; then if [ -z "${CUDA_VISIBLE_DEVICES}" ]; then
echo "Warn: CUDA_VISIBLE_DEVICES is not set, using defalt value: 0, change at shell script or set env variable." cuda_devices=0
cuda_devices="0" echo "Warn: CUDA_VISIBLE_DEVICES is not set, using defalt value: ${cuda_devices}, change at shell script or set env variable."
export CUDA_VISIBLE_DEVICES=${cuda_devices} export CUDA_VISIBLE_DEVICES=${cuda_devices}
fi fi
...@@ -43,7 +43,7 @@ python ${lightx2v_path}/lightx2v/__main__.py \ ...@@ -43,7 +43,7 @@ python ${lightx2v_path}/lightx2v/__main__.py \
--seed 42 \ --seed 42 \
--sample_neg_promp 色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走 \ --sample_neg_promp 色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走 \
--config_path $config_path \ --config_path $config_path \
--save_video_path ./output_lightx2v_seed42_q8f1_teacache.mp4 \ --save_video_path ./output_lightx2v_wan_t2v.mp4 \
--sample_guide_scale 6 \ --sample_guide_scale 6 \
--sample_shift 8 \ --sample_shift 8 \
# --mm_config '{"mm_type": "W-int8-channel-sym-A-int8-channel-sym-dynamic-Q8F", "weight_auto_quant": true}' \ # --mm_config '{"mm_type": "W-int8-channel-sym-A-int8-channel-sym-dynamic-Q8F", "weight_auto_quant": true}' \
......
...@@ -7,8 +7,8 @@ config_path="" ...@@ -7,8 +7,8 @@ config_path=""
# check section # check section
if [ -z "${CUDA_VISIBLE_DEVICES}" ]; then if [ -z "${CUDA_VISIBLE_DEVICES}" ]; then
echo "Warn: CUDA_VISIBLE_DEVICES is not set, using defalt value: 0,1,2,3 , change at shell script or set env variable." cuda_devices=0,1,2,3
cuda_devices="0,1,2,3" echo "Warn: CUDA_VISIBLE_DEVICES is not set, using defalt value: ${cuda_devices}, change at shell script or set env variable."
export CUDA_VISIBLE_DEVICES=${cuda_devices} export CUDA_VISIBLE_DEVICES=${cuda_devices}
fi fi
...@@ -43,7 +43,6 @@ torchrun --nproc_per_node=4 ${lightx2v_path}/lightx2v/__main__.py \ ...@@ -43,7 +43,6 @@ torchrun --nproc_per_node=4 ${lightx2v_path}/lightx2v/__main__.py \
--seed 42 \ --seed 42 \
--sample_neg_promp 色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走 \ --sample_neg_promp 色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走 \
--config_path $config_path \ --config_path $config_path \
--save_video_path ./output_lightx2v_seed42.mp4 \
--sample_guide_scale 6 \ --sample_guide_scale 6 \
--sample_shift 8 \ --sample_shift 8 \
--parallel_attn_type ring \ --parallel_attn_type ring \
...@@ -63,7 +62,6 @@ torchrun --nproc_per_node=4 ${lightx2v_path}/lightx2v/__main__.py \ ...@@ -63,7 +62,6 @@ torchrun --nproc_per_node=4 ${lightx2v_path}/lightx2v/__main__.py \
--seed 42 \ --seed 42 \
--sample_neg_promp 色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走 \ --sample_neg_promp 色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走 \
--config_path $config_path \ --config_path $config_path \
--save_video_path ./output_lightx2v_seed42.mp4 \
--sample_guide_scale 6 \ --sample_guide_scale 6 \
--sample_shift 8 \ --sample_shift 8 \
--parallel_attn_type ulysses \ --parallel_attn_type ulysses \
......
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