File size: 3,107 Bytes
d8aa1ac | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | # <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
|