Download mind3d_trellis2/code/run_abl.sh from jamie33/926: direct link, hf CLI and curl.
- Browser
- Download file 1.19 kB
-
https://huggingface.co/datasets/jamie33/926/resolve/main/mind3d_trellis2/code/run_abl.sh
- Command line
-
hf download hf://datasets/jamie33/926/mind3d_trellis2/code/run_abl.sh
-
curl -L -o run_abl.sh https://huggingface.co/datasets/jamie33/926/resolve/main/mind3d_trellis2/code/run_abl.sh
1.19 kB
| # Core ablations on validation (CFG 50): (a) no coefficient rescaling, (b) no InfoNCE loss (lambda = 0). | |
| source /home/hubin/venvs/trellis/bin/activate | |
| cd /home/hubin/trellis_work | |
| O=/home/hubin/trellis_work/outputs/supp/abl | |
| VAL=/home/hubin/trellis_work/outputs/valsel/val_ids.txt | |
| F=/home/hubin/trellis_work/outputs/ft/frozen_0001/sub0001 | |
| mkdir -p $O/val_norescale_cfg50 $O/val_nonce_cfg50 | |
| ln -sf $F/val/coef/tokens.npy $O/val_norescale_cfg50/tokens.npy | |
| CUDA_VISIBLE_DEVICES=0 python gen_from_tokens.py --test_ids $VAL --variant_dirs $O/val_norescale_cfg50 --cfg 50 \ | |
| > $O/gen_norescale.log 2>&1 & | |
| (CUDA_VISIBLE_DEVICES=1 python mapper/train_ft.py --k 16 --subjects 0001 --n_train_blocks 0 --freeze_patch --w_nce 0 \ | |
| --out_dir $O/nonce > $O/nonce.log 2>&1 | |
| ln -sf $O/nonce/sub0001/val/coef_rescaled/tokens.npy $O/val_nonce_cfg50/tokens.npy | |
| CUDA_VISIBLE_DEVICES=1 python gen_from_tokens.py --test_ids $VAL --variant_dirs $O/val_nonce_cfg50 --cfg 50 \ | |
| > $O/gen_nonce.log 2>&1) & | |
| wait | |
| for v in norescale nonce; do | |
| d=$O/val_${v}_cfg50 | |
| OMP_NUM_THREADS=16 python eval_shape.py --gen_dir $d/meshes --test_list $VAL --out $d/metrics.json > $d/eval.log 2>&1 & | |
| done | |
| wait | |
| echo ABL_DONE | |