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
259085cc
"vscode:/vscode.git/clone" did not exist on "4fd8980a72fe66954186a784ac594429ca85165c"
Commit
259085cc
authored
Jul 11, 2025
by
helloyongyang
Browse files
update scripts
parent
adfe6cdd
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
0 additions
and
381 deletions
+0
-381
scripts/cogvideox/readme.md
scripts/cogvideox/readme.md
+0
-1
scripts/cogvideox/run_cogvideox_t2v.sh
scripts/cogvideox/run_cogvideox_t2v.sh
+0
-39
scripts/deploy/readme.md
scripts/deploy/readme.md
+0
-1
scripts/deploy/start_dit_server.sh
scripts/deploy/start_dit_server.sh
+0
-36
scripts/deploy/start_image_encoder_server.sh
scripts/deploy/start_image_encoder_server.sh
+0
-36
scripts/deploy/start_prompt_enhancer.sh
scripts/deploy/start_prompt_enhancer.sh
+0
-33
scripts/deploy/start_server.sh
scripts/deploy/start_server.sh
+0
-37
scripts/deploy/start_text_encoder_server.sh
scripts/deploy/start_text_encoder_server.sh
+0
-36
scripts/deploy/start_vae_server.sh
scripts/deploy/start_vae_server.sh
+0
-36
scripts/hunyuan/readme.md
scripts/hunyuan/readme.md
+0
-1
scripts/hunyuan/run_hunyuan_i2v.sh
scripts/hunyuan/run_hunyuan_i2v.sh
+0
-38
scripts/hunyuan/run_hunyuan_t2v.sh
scripts/hunyuan/run_hunyuan_t2v.sh
+0
-37
scripts/hunyuan/run_hunyuan_t2v_dist.sh
scripts/hunyuan/run_hunyuan_t2v_dist.sh
+0
-44
scripts/readme.md
scripts/readme.md
+0
-6
No files found.
scripts/cogvideox/readme.md
deleted
100644 → 0
View file @
adfe6cdd
## todo
scripts/cogvideox/run_cogvideox_t2v.sh
deleted
100755 → 0
View file @
adfe6cdd
#!/bin/bash
# set path and first
lightx2v_path
=
model_path
=
# check section
if
[
-z
"
${
CUDA_VISIBLE_DEVICES
}
"
]
;
then
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
if
[
-z
"
${
lightx2v_path
}
"
]
;
then
echo
"Error: lightx2v_path is not set. Please set this variable first."
exit
1
fi
if
[
-z
"
${
model_path
}
"
]
;
then
echo
"Error: model_path is not set. Please set this variable first."
exit
1
fi
export
TOKENIZERS_PARALLELISM
=
false
export
PYTHONPATH
=
${
lightx2v_path
}
:
$PYTHONPATH
export
ENABLE_PROFILING_DEBUG
=
true
export
ENABLE_GRAPH_MODE
=
false
export
DTYPE
=
BF16
export
PYTHONPATH
=
/mtc/wushuo/VideoGen/diffusers:
$PYTHONPATH
python
-m
lightx2v.infer
\
--model_cls
cogvideox
\
--task
t2v
\
--model_path
$model_path
\
--config_json
${
lightx2v_path
}
/configs/cogvideox/cogvideox_t2v.json
\
--prompt
"A little girl smile."
\
--save_video_path
${
lightx2v_path
}
/save_results/output_lightx2v_cogvideox_t2v.mp4
scripts/deploy/readme.md
deleted
100644 → 0
View file @
adfe6cdd
## todo
scripts/deploy/start_dit_server.sh
deleted
100755 → 0
View file @
adfe6cdd
#!/bin/bash
# set path and first
lightx2v_path
=
model_path
=
# check section
if
[
-z
"
${
CUDA_VISIBLE_DEVICES
}
"
]
;
then
cuda_devices
=
0
echo
"Warn: CUDA_VISIBLE_DEVICES is not set, using default value:
${
cuda_devices
}
, change at shell script or set env variable."
export
CUDA_VISIBLE_DEVICES
=
${
cuda_devices
}
fi
if
[
-z
"
${
lightx2v_path
}
"
]
;
then
echo
"Error: lightx2v_path is not set. Please set this variable first."
exit
1
fi
if
[
-z
"
${
model_path
}
"
]
;
then
echo
"Error: model_path is not set. Please set this variable first."
exit
1
fi
export
TOKENIZERS_PARALLELISM
=
false
export
PYTHONPATH
=
${
lightx2v_path
}
:
$PYTHONPATH
export
ENABLE_PROFILING_DEBUG
=
true
export
ENABLE_GRAPH_MODE
=
false
python
-m
lightx2v.common.apis.dit
\
--model_cls
wan2.1
\
--task
i2v
\
--model_path
$model_path
\
--config_json
${
lightx2v_path
}
/configs/deploy/wan_i2v.json
\
--port
9000
scripts/deploy/start_image_encoder_server.sh
deleted
100755 → 0
View file @
adfe6cdd
#!/bin/bash
# set path and first
lightx2v_path
=
model_path
=
# check section
if
[
-z
"
${
CUDA_VISIBLE_DEVICES
}
"
]
;
then
cuda_devices
=
0
echo
"Warn: CUDA_VISIBLE_DEVICES is not set, using default value:
${
cuda_devices
}
, change at shell script or set env variable."
export
CUDA_VISIBLE_DEVICES
=
${
cuda_devices
}
fi
if
[
-z
"
${
lightx2v_path
}
"
]
;
then
echo
"Error: lightx2v_path is not set. Please set this variable first."
exit
1
fi
if
[
-z
"
${
model_path
}
"
]
;
then
echo
"Error: model_path is not set. Please set this variable first."
exit
1
fi
export
TOKENIZERS_PARALLELISM
=
false
export
PYTHONPATH
=
${
lightx2v_path
}
:
$PYTHONPATH
export
ENABLE_PROFILING_DEBUG
=
true
export
ENABLE_GRAPH_MODE
=
false
python
-m
lightx2v.common.apis.image_encoder
\
--model_cls
wan2.1
\
--task
i2v
\
--model_path
$model_path
\
--config_json
${
lightx2v_path
}
/configs/deploy/wan_i2v.json
\
--port
9003
scripts/deploy/start_prompt_enhancer.sh
deleted
100755 → 0
View file @
adfe6cdd
#!/bin/bash
# set path and first
lightx2v_path
=
model_path
=
# check section
if
[
-z
"
${
CUDA_VISIBLE_DEVICES
}
"
]
;
then
cuda_devices
=
0
echo
"Warn: CUDA_VISIBLE_DEVICES is not set, using default value:
${
cuda_devices
}
, change at shell script or set env variable."
export
CUDA_VISIBLE_DEVICES
=
${
cuda_devices
}
fi
if
[
-z
"
${
lightx2v_path
}
"
]
;
then
echo
"Error: lightx2v_path is not set. Please set this variable first."
exit
1
fi
if
[
-z
"
${
model_path
}
"
]
;
then
echo
"Error: model_path is not set. Please set this variable first."
exit
1
fi
export
TOKENIZERS_PARALLELISM
=
false
export
PYTHONPATH
=
${
lightx2v_path
}
:
$PYTHONPATH
export
ENABLE_PROFILING_DEBUG
=
true
export
ENABLE_GRAPH_MODE
=
false
python
-m
lightx2v.common.apis.prompt_enhancer
\
--model_path
$model_path
\
--port
9001
scripts/deploy/start_server.sh
deleted
100755 → 0
View file @
adfe6cdd
#!/bin/bash
# set path and first
lightx2v_path
=
model_path
=
# check section
if
[
-z
"
${
CUDA_VISIBLE_DEVICES
}
"
]
;
then
cuda_devices
=
0
echo
"Warn: CUDA_VISIBLE_DEVICES is not set, using default value:
${
cuda_devices
}
, change at shell script or set env variable."
export
CUDA_VISIBLE_DEVICES
=
${
cuda_devices
}
fi
if
[
-z
"
${
lightx2v_path
}
"
]
;
then
echo
"Error: lightx2v_path is not set. Please set this variable first."
exit
1
fi
if
[
-z
"
${
model_path
}
"
]
;
then
echo
"Error: model_path is not set. Please set this variable first."
exit
1
fi
export
TOKENIZERS_PARALLELISM
=
false
export
PYTHONPATH
=
${
lightx2v_path
}
:
$PYTHONPATH
export
ENABLE_PROFILING_DEBUG
=
true
export
ENABLE_GRAPH_MODE
=
false
python
-m
lightx2v.api_server
\
--model_cls
wan2.1
\
--task
i2v
\
--split
\
--model_path
$model_path
\
--config_json
${
lightx2v_path
}
/configs/deploy/wan_i2v.json
\
--port
8000
scripts/deploy/start_text_encoder_server.sh
deleted
100755 → 0
View file @
adfe6cdd
#!/bin/bash
# set path and first
lightx2v_path
=
model_path
=
# check section
if
[
-z
"
${
CUDA_VISIBLE_DEVICES
}
"
]
;
then
cuda_devices
=
0
echo
"Warn: CUDA_VISIBLE_DEVICES is not set, using default value:
${
cuda_devices
}
, change at shell script or set env variable."
export
CUDA_VISIBLE_DEVICES
=
${
cuda_devices
}
fi
if
[
-z
"
${
lightx2v_path
}
"
]
;
then
echo
"Error: lightx2v_path is not set. Please set this variable first."
exit
1
fi
if
[
-z
"
${
model_path
}
"
]
;
then
echo
"Error: model_path is not set. Please set this variable first."
exit
1
fi
export
TOKENIZERS_PARALLELISM
=
false
export
PYTHONPATH
=
${
lightx2v_path
}
:
$PYTHONPATH
export
ENABLE_PROFILING_DEBUG
=
true
export
ENABLE_GRAPH_MODE
=
false
python
-m
lightx2v.common.apis.text_encoder
\
--model_cls
wan2.1
\
--task
i2v
\
--model_path
$model_path
\
--config_json
${
lightx2v_path
}
/configs/deploy/wan_i2v.json
\
--port
9002
scripts/deploy/start_vae_server.sh
deleted
100755 → 0
View file @
adfe6cdd
#!/bin/bash
# set path and first
lightx2v_path
=
model_path
=
# check section
if
[
-z
"
${
CUDA_VISIBLE_DEVICES
}
"
]
;
then
cuda_devices
=
0
echo
"Warn: CUDA_VISIBLE_DEVICES is not set, using default value:
${
cuda_devices
}
, change at shell script or set env variable."
export
CUDA_VISIBLE_DEVICES
=
${
cuda_devices
}
fi
if
[
-z
"
${
lightx2v_path
}
"
]
;
then
echo
"Error: lightx2v_path is not set. Please set this variable first."
exit
1
fi
if
[
-z
"
${
model_path
}
"
]
;
then
echo
"Error: model_path is not set. Please set this variable first."
exit
1
fi
export
TOKENIZERS_PARALLELISM
=
false
export
PYTHONPATH
=
${
lightx2v_path
}
:
$PYTHONPATH
export
ENABLE_PROFILING_DEBUG
=
true
export
ENABLE_GRAPH_MODE
=
false
python
-m
lightx2v.common.apis.vae
\
--model_cls
wan2.1
\
--task
i2v
\
--model_path
$model_path
\
--config_json
${
lightx2v_path
}
/configs/deploy/wan_i2v.json
\
--port
9004
scripts/hunyuan/readme.md
deleted
100644 → 0
View file @
adfe6cdd
## todo
scripts/hunyuan/run_hunyuan_i2v.sh
deleted
100755 → 0
View file @
adfe6cdd
#!/bin/bash
# set path and first
lightx2v_path
=
model_path
=
# check section
if
[
-z
"
${
CUDA_VISIBLE_DEVICES
}
"
]
;
then
cuda_devices
=
0
echo
"Warn: CUDA_VISIBLE_DEVICES is not set, using default value:
${
cuda_devices
}
, change at shell script or set env variable."
export
CUDA_VISIBLE_DEVICES
=
${
cuda_devices
}
fi
if
[
-z
"
${
lightx2v_path
}
"
]
;
then
echo
"Error: lightx2v_path is not set. Please set this variable first."
exit
1
fi
if
[
-z
"
${
model_path
}
"
]
;
then
echo
"Error: model_path is not set. Please set this variable first."
exit
1
fi
export
TOKENIZERS_PARALLELISM
=
false
export
PYTHONPATH
=
${
lightx2v_path
}
:
$PYTHONPATH
export
ENABLE_PROFILING_DEBUG
=
true
export
ENABLE_GRAPH_MODE
=
false
export
DTYPE
=
BF16
python
-m
lightx2v.infer
\
--model_cls
hunyuan
\
--task
i2v
\
--model_path
$model_path
\
--config_json
${
lightx2v_path
}
/configs/hunyuan/hunyuan_i2v.json
\
--prompt
"An Asian man with short hair in black tactical uniform and white clothes waves a firework stick."
\
--image_path
${
lightx2v_path
}
/assets/inputs/imgs/img_1.jpg
\
--save_video_path
${
lightx2v_path
}
/save_results/output_lightx2v_hy_i2v.mp4
scripts/hunyuan/run_hunyuan_t2v.sh
deleted
100755 → 0
View file @
adfe6cdd
#!/bin/bash
# set path and first
lightx2v_path
=
model_path
=
# check section
if
[
-z
"
${
CUDA_VISIBLE_DEVICES
}
"
]
;
then
cuda_devices
=
0
echo
"Warn: CUDA_VISIBLE_DEVICES is not set, using default value:
${
cuda_devices
}
, change at shell script or set env variable."
export
CUDA_VISIBLE_DEVICES
=
${
cuda_devices
}
fi
if
[
-z
"
${
lightx2v_path
}
"
]
;
then
echo
"Error: lightx2v_path is not set. Please set this variable first."
exit
1
fi
if
[
-z
"
${
model_path
}
"
]
;
then
echo
"Error: model_path is not set. Please set this variable first."
exit
1
fi
export
TOKENIZERS_PARALLELISM
=
false
export
PYTHONPATH
=
${
lightx2v_path
}
:
$PYTHONPATH
export
DTYPE
=
BF16
export
ENABLE_PROFILING_DEBUG
=
true
export
ENABLE_GRAPH_MODE
=
false
python
-m
lightx2v.infer
\
--model_cls
hunyuan
\
--task
t2v
\
--model_path
$model_path
\
--config_json
${
lightx2v_path
}
/configs/hunyuan/hunyuan_t2v.json
\
--prompt
"A cat walks on the grass, realistic style."
\
--save_video_path
${
lightx2v_path
}
/save_results/output_lightx2v_hy_t2v.mp4
scripts/hunyuan/run_hunyuan_t2v_dist.sh
deleted
100755 → 0
View file @
adfe6cdd
#!/bin/bash
# set path and first
lightx2v_path
=
model_path
=
# check section
if
[
-z
"
${
CUDA_VISIBLE_DEVICES
}
"
]
;
then
cuda_devices
=
0,1,2,3
echo
"Warn: CUDA_VISIBLE_DEVICES is not set, using default value:
${
cuda_devices
}
, change at shell script or set env variable."
export
CUDA_VISIBLE_DEVICES
=
${
cuda_devices
}
fi
if
[
-z
"
${
lightx2v_path
}
"
]
;
then
echo
"Error: lightx2v_path is not set. Please set this variable first."
exit
1
fi
if
[
-z
"
${
model_path
}
"
]
;
then
echo
"Error: model_path is not set. Please set this variable first."
exit
1
fi
export
TOKENIZERS_PARALLELISM
=
false
export
PYTHONPATH
=
${
lightx2v_path
}
:
$PYTHONPATH
export
DTYPE
=
BF16
export
ENABLE_PROFILING_DEBUG
=
true
torchrun
--nproc_per_node
=
4
${
lightx2v_path
}
/lightx2v/infer.py
\
--model_cls
hunyuan
\
--task
t2v
\
--model_path
$model_path
\
--config_json
${
lightx2v_path
}
/configs/hunyuan/hunyuan_t2v_dist_ulysses.json
\
--prompt
"A cat walks on the grass, realistic style."
\
--save_video_path
${
lightx2v_path
}
/save_results/output_lightx2v_hunyuan_t2v_dist_ulysses.mp4
torchrun
--nproc_per_node
=
4
${
lightx2v_path
}
/lightx2v/infer.py
\
--model_cls
hunyuan
\
--task
t2v
\
--model_path
$model_path
\
--config_json
${
lightx2v_path
}
/configs/hunyuan/hunyuan_t2v_dist_ring.json
\
--prompt
"A cat walks on the grass, realistic style."
\
--save_video_path
${
lightx2v_path
}
/save_results/output_lightx2v_hunyuan_t2v_dist_ring.mp4
scripts/readme.md
deleted
100644 → 0
View file @
adfe6cdd
## TODO
#### Server
#### prompt_enhancer
#### export ENABLE_GRAPH_MODE=false
#### export DTYPE=BF16
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