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
2a0b7c8f
Commit
2a0b7c8f
authored
Apr 08, 2025
by
helloyongyang
Committed by
Yang Yong(雍洋)
Apr 08, 2025
Browse files
update scripts
parent
86f7f033
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
18 additions
and
20 deletions
+18
-20
scripts/run_hunyuan_i2v.sh
scripts/run_hunyuan_i2v.sh
+2
-2
scripts/run_hunyuan_t2v.sh
scripts/run_hunyuan_t2v.sh
+3
-3
scripts/run_hunyuan_t2v_dist.sh
scripts/run_hunyuan_t2v_dist.sh
+2
-2
scripts/run_hunyuan_t2v_taylorseer.sh
scripts/run_hunyuan_t2v_taylorseer.sh
+3
-3
scripts/run_wan_i2v.sh
scripts/run_wan_i2v.sh
+3
-3
scripts/run_wan_t2v.sh
scripts/run_wan_t2v.sh
+3
-3
scripts/run_wan_t2v_dist.sh
scripts/run_wan_t2v_dist.sh
+2
-4
No files found.
scripts/run_hunyuan_i2v.sh
View file @
2a0b7c8f
...
...
@@ -6,8 +6,8 @@ model_path=""
# check section
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
}
fi
...
...
scripts/run_hunyuan_t2v.sh
View file @
2a0b7c8f
...
...
@@ -6,8 +6,8 @@ model_path=""
# check section
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
}
fi
...
...
@@ -32,5 +32,5 @@ python ${lightx2v_path}/lightx2v/__main__.py \
--target_height
720
\
--target_width
1280
\
--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}'
scripts/run_hunyuan_t2v_dist.sh
View file @
2a0b7c8f
...
...
@@ -6,8 +6,8 @@ model_path=""
# check section
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
}
fi
...
...
scripts/run_hunyuan_t2v_taylorseer.sh
View file @
2a0b7c8f
...
...
@@ -6,8 +6,8 @@ model_path=""
# check section
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
}
fi
...
...
@@ -35,5 +35,5 @@ python ${lightx2v_path}/lightx2v/__main__.py \
--attention_type
flash_attn2
\
--cpu_offload
\
--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}'
scripts/run_wan_i2v.sh
View file @
2a0b7c8f
...
...
@@ -7,8 +7,8 @@ config_path=""
# check section
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
}
fi
...
...
@@ -43,7 +43,7 @@ python ${lightx2v_path}/lightx2v/__main__.py \
--seed
42
\
--sample_neg_promp
色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走
\
--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_shift
5
\
--image_path
${
lightx2v_path
}
/assets/inputs/imgs/img_0.jpg
\
...
...
scripts/run_wan_t2v.sh
View file @
2a0b7c8f
...
...
@@ -7,8 +7,8 @@ config_path=""
# check section
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
}
fi
...
...
@@ -43,7 +43,7 @@ python ${lightx2v_path}/lightx2v/__main__.py \
--seed
42
\
--sample_neg_promp
色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走
\
--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_shift
8
\
# --mm_config '{"mm_type": "W-int8-channel-sym-A-int8-channel-sym-dynamic-Q8F", "weight_auto_quant": true}' \
...
...
scripts/run_wan_t2v_dist.sh
View file @
2a0b7c8f
...
...
@@ -7,8 +7,8 @@ config_path=""
# check section
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
}
fi
...
...
@@ -43,7 +43,6 @@ torchrun --nproc_per_node=4 ${lightx2v_path}/lightx2v/__main__.py \
--seed
42
\
--sample_neg_promp
色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走
\
--config_path
$config_path
\
--save_video_path
./output_lightx2v_seed42.mp4
\
--sample_guide_scale
6
\
--sample_shift
8
\
--parallel_attn_type
ring
\
...
...
@@ -63,7 +62,6 @@ torchrun --nproc_per_node=4 ${lightx2v_path}/lightx2v/__main__.py \
--seed
42
\
--sample_neg_promp
色调艳丽,过曝,静态,细节模糊不清,字幕,风格,作品,画作,画面,静止,整体发灰,最差质量,低质量,JPEG压缩残留,丑陋的,残缺的,多余的手指,画得不好的手部,画得不好的脸部,畸形的,毁容的,形态畸形的肢体,手指融合,静止不动的画面,杂乱的背景,三条腿,背景人很多,倒着走
\
--config_path
$config_path
\
--save_video_path
./output_lightx2v_seed42.mp4
\
--sample_guide_scale
6
\
--sample_shift
8
\
--parallel_attn_type
ulysses
\
...
...
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