Download mind3d_trellis2/code/mapper/scripts/run_val.sh from jamie33/926: direct link, hf CLI and curl.
- Browser
- Download file 953 Bytes
-
https://huggingface.co/datasets/jamie33/926/resolve/main/mind3d_trellis2/code/mapper/scripts/run_val.sh
- Command line
-
hf download hf://datasets/jamie33/926/mind3d_trellis2/code/mapper/scripts/run_val.sh
-
curl -L -o run_val.sh https://huggingface.co/datasets/jamie33/926/resolve/main/mind3d_trellis2/code/mapper/scripts/run_val.sh
953 Bytes
| source /home/hubin/venvs/trellis/bin/activate | |
| cd /home/hubin/trellis_work | |
| O=/home/hubin/trellis_work/outputs/valsel | |
| VAL=$O/val_ids.txt | |
| D_ALL="" | |
| for C in 7.5 20 30 50; do | |
| D="" | |
| for v in ridge_k64_rescaled clsfirst_knn1_resid_k64_rescaled v2ens5_coef_rescaled v2ens5_clsmean_resid v2ens5_clsmean; do | |
| d=$O/val/${v}_cfg$C; mkdir -p $d; ln -sf $O/val/$v/tokens.npy $d/tokens.npy; D="$D $d" | |
| done | |
| D_ALL="$D_ALL $D" | |
| for w in 0 1; do | |
| CUDA_VISIBLE_DEVICES=$w python gen_from_tokens.py --test_ids $VAL --variant_dirs $D --cfg $C --shard $w --num_shards 2 > $O/gen_cfg${C}_w$w.log 2>&1 & | |
| done | |
| done | |
| wait | |
| echo GEN_DONE | |
| until grep -aq EXIT /tmp/pc15k_val.log; do sleep 60; done | |
| for d in $D_ALL; do | |
| OMP_NUM_THREADS=4 OPENBLAS_NUM_THREADS=4 MKL_NUM_THREADS=4 python eval_shape.py --gen_dir $d/meshes --test_list $VAL --no_emd --out $d/metrics.json > $d/eval.log 2>&1 & | |
| while [ $(jobs -r | wc -l) -ge 10 ]; do sleep 5; done | |
| done | |
| wait | |
| echo VAL_DONE | |