File size: 635 Bytes
7c61ee6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
source /home/hubin/venvs/trellis/bin/activate
cd /home/hubin/trellis_work
O=outputs/cfg
for c in 3 12 20; do
  d=$O/ridge_k64_rescaled_cfg$c; mkdir -p $d
  ln -sf /home/hubin/trellis_work/outputs/ridge/ridge_k64_rescaled/tokens.npy $d/tokens.npy
  for w in 0 1; do
    CUDA_VISIBLE_DEVICES=$w python gen_from_tokens.py --variant_dirs $d --cfg $c --shard $w --num_shards 2 > $d/gen_w$w.log 2>&1 &
  done
done
wait
for c in 3 12 20; do
  d=$O/ridge_k64_rescaled_cfg$c
  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 CFG_DONE