Download mind3d_trellis2/code/mapper/scripts/run_final.sh from jamie33/926: direct link, hf CLI and curl.
- Browser
- Download file 724 Bytes
-
https://huggingface.co/datasets/jamie33/926/resolve/main/mind3d_trellis2/code/mapper/scripts/run_final.sh
- Command line
-
hf download hf://datasets/jamie33/926/mind3d_trellis2/code/mapper/scripts/run_final.sh
-
curl -L -o run_final.sh https://huggingface.co/datasets/jamie33/926/resolve/main/mind3d_trellis2/code/mapper/scripts/run_final.sh
724 Bytes
| source /home/hubin/venvs/trellis/bin/activate | |
| cd /home/hubin/trellis_work | |
| O=/home/hubin/trellis_work/outputs | |
| C=${CFG:-20} | |
| D="" | |
| for src in v2/ens5/clsmean_resid v2/ens5/coef_rescaled v2/ens5/clsmean clsfirst/clsfirst_knn_resid_k64_rescaled; do | |
| d=$O/final/$(echo $src | tr / _)_cfg$C; mkdir -p $d; ln -sf $O/$src/tokens.npy $d/tokens.npy; D="$D $d" | |
| done | |
| for w in 0 1 2 3; do | |
| CUDA_VISIBLE_DEVICES=$((w%2)) python gen_from_tokens.py --variant_dirs $D --cfg $C --shard $w --num_shards 4 > $O/final/gen_cfg${C}_w$w.log 2>&1 & | |
| done | |
| wait | |
| for d in $D; do | |
| OMP_NUM_THREADS=8 OPENBLAS_NUM_THREADS=8 MKL_NUM_THREADS=8 python eval_shape.py --gen_dir $d/meshes --out $d/metrics.json > $d/eval.log 2>&1 & | |
| done | |
| wait | |
| echo FINAL_DONE_$C | |