FangSen9000
Claude
Update batch inference script to run parallel jobs with man/woman reference images
a4367be Download One-to-All-Animation/video-generation/run_batch.sh from SignerX/StableSigner: direct link, hf CLI and curl.
- Browser
- Download file 2.39 kB
-
https://huggingface.co/datasets/SignerX/StableSigner/resolve/main/One-to-All-Animation/video-generation/run_batch.sh
- Command line
-
hf download hf://datasets/SignerX/StableSigner/One-to-All-Animation/video-generation/run_batch.sh
-
curl -L -o run_batch.sh https://huggingface.co/datasets/SignerX/StableSigner/resolve/main/One-to-All-Animation/video-generation/run_batch.sh
2.39 kB
| set -euo pipefail | |
| source /research/cbim/vast/sf895/miniforge3/bin/activate one-to-all | |
| cd "$(dirname "$0")" | |
| #cd /research/cbim/vast/sf895/code/StableSigner/One-to-All-Animation/video-generation | |
| #conda activate one-to-all | |
| #CUDA_VISIBLE_DEVICES=0 python inference_1.3b.py --pose_video HELLO_GOOD_MORNING_20251215_142658_openpose_style.mp4 --ref_image square1.png & | |
| #CUDA_VISIBLE_DEVICES=1 python inference_1.3b.py --pose_video HELLO_WORLD_20251215_142017_openpose_style.mp4 --ref_image square2.png & | |
| #CUDA_VISIBLE_DEVICES=2 python inference_1.3b.py --pose_video I_GO_SCHOOL_LATER_20251215_142204_openpose_style.mp4 --ref_image square3.png & | |
| #CUDA_VISIBLE_DEVICES=3 python inference_1.3b.py --pose_video I_NEED_HELP_PLEASE_20251215_142045_openpose_style.mp4 --ref_image square4.png & | |
| #CUDA_VISIBLE_DEVICES=4 python inference_1.3b.py --pose_video TODAY_WEATHER_NICE_20251215_142126_openpose_style.mp4 --ref_image square5.png & | |
| #CUDA_VISIBLE_DEVICES=5 python inference_1.3b.py --pose_video WEHRE_IS_MY_CAT_20251215_142307_openpose_style.mp4 --ref_image square6.png & | |
| #CUDA_VISIBLE_DEVICES=6 python inference_1.3b.py --pose_video TODAY_WEATHER_NICE_20251215_142126_openpose_style.mp4 --ref_image square2.png & | |
| #CUDA_VISIBLE_DEVICES=7 python inference_1.3b.py --pose_video I_GO_SCHOOL_LATER_20251215_142204_openpose_style.mp4 --ref_image square8.png & | |
| CUDA_VISIBLE_DEVICES=1 python inference_1.3b.py --pose_video HELLO_GOOD_MORNING_20251215_142658_openpose_style.mp4 --ref_image man.jpg & | |
| CUDA_VISIBLE_DEVICES=2 python inference_1.3b.py --pose_video HELLO_WORLD_20251215_142017_openpose_style.mp4 --ref_image man.jpg & | |
| CUDA_VISIBLE_DEVICES=3 python inference_1.3b.py --pose_video I_GO_SCHOOL_LATER_20251215_142204_openpose_style.mp4 --ref_image man.jpg & | |
| CUDA_VISIBLE_DEVICES=4 python inference_1.3b.py --pose_video I_NEED_HELP_PLEASE_20251215_142045_openpose_style.mp4 --ref_image man.jpg & | |
| CUDA_VISIBLE_DEVICES=5 python inference_1.3b.py --pose_video TODAY_WEATHER_NICE_20251215_142126_openpose_style.mp4 --ref_image woman.jpg & | |
| CUDA_VISIBLE_DEVICES=6 python inference_1.3b.py --pose_video WEHRE_IS_MY_CAT_20251215_142307_openpose_style.mp4 --ref_image woman.jpg & | |
| CUDA_VISIBLE_DEVICES=7 python inference_1.3b.py --pose_video I_GO_SCHOOL_LATER_20251215_142204_openpose_style.mp4 --ref_image woman.jpg & | |
| # 等待所有后台任务完成 | |
| wait | |
| echo "✅ 所有任务完成!" | |