| conda activate /mnt/5T_nas/cwl/env/Qwen-Edit | |
| cd /mnt/prev_nas/qhy_1/datasets/unedit_image_prompts/Qwen-Image-2509-MultipleAngles | |
| SCRIPT=/mnt/prev_nas/qhy/MagicMotion/trajectory_construction/qwen_fix.py | |
| IN_DIR=/mnt/prev_nas/qhy_1/datasets/flux_gen_images_size_change | |
| OUT_DIR=/mnt/prev_nas/qhy_1/datasets/flux_gen_images_size_change_fixed | |
| for RANK in 0 1 2 3 4 5 6 7; do | |
| echo "launch rank ${RANK} on GPU ${RANK}" | |
| CUDA_VISIBLE_DEVICES=${RANK} \ | |
| python $SCRIPT \ | |
| --in_dir "${IN_DIR}" \ | |
| --out_dir "${OUT_DIR}" \ | |
| --rank "${RANK}" \ | |
| --world_size 8 & | |
| done | |
| wait | |
| echo "all done" | |