2019-12-02 00:53:38 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#SBATCH --job-name=vel2vel-test
|
|
|
|
#SBATCH --output=%x-%j.out
|
|
|
|
#SBATCH --error=%x-%j.err
|
|
|
|
|
|
|
|
#SBATCH --partition=ccm
|
|
|
|
|
|
|
|
#SBATCH --exclusive
|
|
|
|
#SBATCH --nodes=1
|
|
|
|
#SBATCH --mem=0
|
|
|
|
#SBATCH --time=1-00:00:00
|
|
|
|
|
|
|
|
|
|
|
|
hostname; pwd; date
|
|
|
|
|
|
|
|
|
2019-12-09 03:02:08 +01:00
|
|
|
module load gcc python3
|
2019-12-02 00:53:38 +01:00
|
|
|
|
|
|
|
|
|
|
|
export OMP_NUM_THREADS=$SLURM_CPUS_ON_NODE
|
|
|
|
echo OMP_NUM_THREADS = $OMP_NUM_THREADS
|
|
|
|
|
|
|
|
|
|
|
|
data_root_dir="/mnt/ceph/users/yinli/Quijote"
|
|
|
|
|
|
|
|
in_dir="linear"
|
|
|
|
tgt_dir="nonlin"
|
|
|
|
|
|
|
|
test_dirs="0" # FIXME
|
|
|
|
|
|
|
|
files="vel/128x???.npy"
|
|
|
|
in_files="$files"
|
|
|
|
tgt_files="$files"
|
|
|
|
|
|
|
|
|
2019-12-09 03:02:08 +01:00
|
|
|
m2m.py test \
|
2019-12-02 00:53:38 +01:00
|
|
|
--test-in-patterns "$data_root_dir/$in_dir/$test_dirs/$in_files" \
|
|
|
|
--test-tgt-patterns "$data_root_dir/$tgt_dir/$test_dirs/$tgt_files" \
|
2019-12-10 03:53:27 +01:00
|
|
|
--norms cosmology.vel --model VNet \
|
2019-12-02 00:53:38 +01:00
|
|
|
--batches 1 --loader-workers 0 --pad-or-crop 40 \
|
|
|
|
--load-state best_model.pth
|
|
|
|
|
|
|
|
|
|
|
|
date
|