Download infer.sh from Tinghong-Ye22/code-Psi0-yth-v21: direct link, hf CLI and curl.
- Browser
- Download file 3.11 kB
-
https://huggingface.co/Tinghong-Ye22/code-Psi0-yth-v21/resolve/main/infer.sh
- Command line
-
hf download hf://Tinghong-Ye22/code-Psi0-yth-v21/infer.sh
-
curl -L -o infer.sh https://huggingface.co/Tinghong-Ye22/code-Psi0-yth-v21/resolve/main/infer.sh
3.11 kB
| # <modify_textop_repr> infer脚本固定到v4仓库。 | |
| # 原逻辑: | |
| # cd /cpfs01/thscc/sharestorage/AIGC-06-01/Hithink_VideoGen_Group/user_workspace/yetinghong/code/Psi0-yth | |
| cd /cpfs01/thscc/sharestorage/AIGC-06-01/Hithink_VideoGen_Group/user_workspace/yetinghong/code/Psi0-yth-v18 | |
| export PYTHONPATH=/cpfs01/thscc/sharestorage/AIGC-06-01/Hithink_VideoGen_Group/user_workspace/yetinghong/code/Psi0-yth-v18/src | |
| export CUDA_VISIBLE_DEVICES=0 | |
| pkill -f monitor.py | |
| # prompt | |
| # PYTHONPATH=src /cpfs01/thscc/sharestorage/AIGC-06-01/Hithink_VideoGen_Group/user_workspace/yetinghong/envs/Psi0/bin/python scripts/infer/seed_text_to_motion.py \ | |
| # --run-dir /cpfs01/thscc/sharestorage/AIGC-06-01/Hithink_VideoGen_Group/user_workspace/yetinghong/code/Psi0-yth/runs/posttrain_v1/posttrain.sg.flow1000.consta.lr1.0e-04.b512.gpus8.2604160750 \ | |
| # --ckpt-step 1300 \ | |
| # --output-dir /cpfs01/thscc/sharestorage/AIGC-06-01/Hithink_VideoGen_Group/user_workspace/yetinghong/code/Psi0-yth/runs/posttrain_v1/2604160750_v2 \ | |
| # --prompt "walk backward naturally and stop smoothly" \ | |
| # --prompt-motion-name walk_backward_stop \ | |
| # --num-output-frames 400 \ | |
| # --num-inference-steps 10 \ | |
| # --device cuda:0 | |
| # metadata | |
| # RUN_DIR="/cpfs01/thscc/sharestorage/AIGC-06-01/Hithink_VideoGen_Group/user_workspace/yetinghong/envs/.psi-home/runs/posttrain_v1/posttrain.sg.flow1000.consta.lr1.0e-04.b512.gpus8.2604161308" | |
| # OUTPUT_DIR="/cpfs01/thscc/sharestorage/AIGC-06-01/Hithink_VideoGen_Group/user_workspace/yetinghong/code/Psi0-yth/runs/posttrain_v1/2604161306" | |
| # RUN_DIR="/cpfs01/thscc/sharestorage/AIGC-06-01/Hithink_VideoGen_Group/user_workspace/yetinghong/envs/.psi-home/runs/posttrain_v1/posttrain.sg.flow1000.consta.lr1.0e-04.b512.gpus8.2604161308" | |
| # OUTPUT_DIR="/cpfs01/thscc/sharestorage/AIGC-06-01/Hithink_VideoGen_Group/user_workspace/yetinghong/code/Psi0-yth/runs/posttrain_v1/2604161308" | |
| RUN_DIR="/cpfs01/thscc/sharestorage/AIGC-06-01/Hithink_VideoGen_Group/user_workspace/yetinghong/envs/.psi-home/runs/posttrain_v1/posttrain.sg.flow1000.consta.lr1.0e-04.b512.gpus8.2604170218" | |
| # <modify_states> 默认infer输出改到v2仓库。 | |
| # 原逻辑: | |
| # OUTPUT_DIR="/cpfs01/thscc/sharestorage/AIGC-06-01/Hithink_VideoGen_Group/user_workspace/yetinghong/code/Psi0-yth/runs/posttrain_v1/2604170218" | |
| OUTPUT_DIR="/cpfs01/thscc/sharestorage/AIGC-06-01/Hithink_VideoGen_Group/user_workspace/yetinghong/code/Psi0-yth-v18/runs/posttrain_v1/2604170218" | |
| # RUN_DIR="/cpfs01/thscc/sharestorage/AIGC-06-01/Hithink_VideoGen_Group/user_workspace/yetinghong/envs/.psi-home/runs/posttrain_v1/posttrain.sg.flow1000.consta.lr1.0e-04.b512.gpus8.2604170323" | |
| # OUTPUT_DIR="/cpfs01/thscc/sharestorage/AIGC-06-01/Hithink_VideoGen_Group/user_workspace/yetinghong/code/Psi0-yth/runs/posttrain_v1/2604170323" | |
| /cpfs01/thscc/sharestorage/AIGC-06-01/Hithink_VideoGen_Group/user_workspace/yetinghong/envs/Psi0/bin/python scripts/infer/seed_text_to_motion.py \ | |
| --run-dir $RUN_DIR \ | |
| --ckpt-step 55000 \ | |
| --output-dir $OUTPUT_DIR \ | |
| --num-samples 1 \ | |
| --start-index 8 \ | |
| --num-inference-steps 10 \ | |
| --device cuda:0 | |