forked from zhejz/HPTR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpack_h5.sh
49 lines (39 loc) · 1.22 KB
/
pack_h5.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
#SBATCH --output=./logs/%j.out
#SBATCH --error=./logs/%j.out
#SBATCH --time=120:00:00
#SBATCH -n 1
#SBATCH --cpus-per-task=12
#SBATCH --mem-per-cpu=5000
#SBATCH --tmp=200000
#SBATCH --open-mode=truncate
trap "echo sigterm recieved, exiting!" SIGTERM
run () {
python -u src/pack_h5_womd.py --dataset=training \
--out-dir=/cluster/scratch/zhejzhan/h5_womd_hptr \
--data-dir=/cluster/scratch/zhejzhan/womd_scenario_v_1_2_0
}
# ! for validation and testing
# python -u scripts/pack_h5_womd.py --dataset=validation --rand-pos=-1 --rand-yaw=-1 \
# python -u scripts/pack_h5_womd.py --dataset=testing --rand-pos=-1 --rand-yaw=-1 \
# ! for packing av2
# conda activate hptr_av2
# run () {
# python -u src/pack_h5_av2.py --dataset=training \
# --out-dir=/cluster/scratch/zhejzhan/h5_av2_hptr \
# --data-dir=/cluster/scratch/zhejzhan/av2_motion
# }
source /cluster/project/cvl/zhejzhan/apps/miniconda3/etc/profile.d/conda.sh
conda activate hptr # for av2: conda activate hptr_av2
echo Running on host: `hostname`
echo In directory: `pwd`
echo Starting on: `date`
type run
echo START: `date`
run &
wait
echo DONE: `date`
mkdir -p ./logs/slurm
mv ./logs/$SLURM_JOB_ID.out ./logs/slurm/$SLURM_JOB_ID.out
echo finished at: `date`
exit 0;