Commit a3d0f2d9 authored by helloyongyang's avatar helloyongyang
Browse files

update scripts

parent 26105692
...@@ -4,29 +4,10 @@ ...@@ -4,29 +4,10 @@
lightx2v_path= lightx2v_path=
model_path= model_path=
# check section export CUDA_VISIBLE_DEVICES=0
if [ -z "${CUDA_VISIBLE_DEVICES}" ]; then
cuda_devices=1
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 # set environment variables
echo "Error: lightx2v_path is not set. Please set this variable first." source ${lightx2v_path}/scripts/base/base.sh
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 \ python -m lightx2v.infer \
--model_cls wan2.2 \ --model_cls wan2.2 \
......
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