spatial-semanticist-L-migration / code /train_spatial_l_phase2.sh
a12s12's picture
add level-drop (25% uniform-over-levels)
b779bab verified
Raw
History Blame Contribute Delete
816 Bytes
#!/bin/bash
# SpatialDiffuseSlot Phase-2: DiT UNFROZEN, encoder์™€ ๋™์ผ warmup lr๋กœ ํ•จ๊ป˜ ํ•™์Šต.
# step380000 ๊ฐ€์ค‘์น˜(encoder+pool+DiT+cond) ๋กœ๋“œ -> fresh optimizer/scheduler(๊ณต๋™ warmup).
# Usage: GPUS=0,1,2,3 bash train_spatial_l_phase2.sh
set -e
cd "$(dirname "$0")"
VENV=/NHNHOME/WORKSPACE/0226010398_A/sr_diffusion/clevr_sudoku/MNIST_debug/venv
[ -d "$VENV" ] && source "$VENV/bin/activate"
export CUDA_VISIBLE_DEVICES="${GPUS:-0,1,2,3}"
export TORCH_HOME=/NHNHOME/WORKSPACE/0226010398_A/torch_cache
export PHASE2_RESUME_STEP="${PHASE2_RESUME_STEP:-390000}" # LR ์Šค์ผ€์ค„์„ step380000 ์ง€์ ๋ถ€ํ„ฐ (์›๋ž˜ warmup ์ด์–ด๊ฐ)
NG=$(echo "$CUDA_VISIBLE_DEVICES" | tr ',' '\n' | wc -l)
accelerate launch --num_processes "$NG" --multi_gpu \
train_net.py --cfg configs/tokenizer_l_spatial_phase2.yaml