-
Notifications
You must be signed in to change notification settings - Fork 7
/
2_eval.sh
43 lines (35 loc) · 1.86 KB
/
2_eval.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
#!/bin/bash
#SBATCH -J eval
#SBATCH --gpus 1
#SBATCH -t 01:00:00
#SBATCH --mail-type=END,FAIL
#SBATCH [email protected]
#SBATCH --output /proj/berzelius-2023-154/users/x_qinzh/deflow/logs/slurm/%J_eval.out
#SBATCH --error /proj/berzelius-2023-154/users/x_qinzh/deflow/logs/slurm/%J_eval.err
cd /proj/berzelius-2023-154/users/x_qinzh/deflow
SOURCE="/proj/berzelius-2023-154/users/x_qinzh/av2/deflow_preprocess"
DEST="/scratch/local/av2"
SUBDIRS=("sensor/val")
start_time=$(date +%s)
for dir in "${SUBDIRS[@]}"; do
mkdir -p "${DEST}/${dir}"
find "${SOURCE}/${dir}" -type f -print0 | xargs -0 -n1 -P16 cp -t "${DEST}/${dir}" &
done
wait
end_time=$(date +%s)
elapsed=$((end_time - start_time))
echo "Copy ${SOURCE} to ${DEST} Total time: ${elapsed} seconds"
echo "Start training..."
# ====> leaderboard model = [fastflow3d, deflow]
# /proj/berzelius-2023-154/users/x_qinzh/mambaforge/envs/deflow/bin/python 2_eval.py \
# wandb_mode=online dataset_path=/scratch/local/av2/sensor \
# av2_mode=test save_res=True
/proj/berzelius-2023-154/users/x_qinzh/mambaforge/envs/deflow/bin/python eval.py \
wandb_mode=online dataset_path=/scratch/local/av2/sensor av2_mode=val \
checkpoint=/proj/berzelius-2023-154/users/x_qinzh/deflow/logs/wandb/fastflow3d-10086990/checkpoints/epoch_49_fastflow3d.ckpt
/proj/berzelius-2023-154/users/x_qinzh/mambaforge/envs/deflow/bin/python eval.py \
wandb_mode=online dataset_path=/scratch/local/av2/sensor av2_mode=val \
checkpoint=/proj/berzelius-2023-154/users/x_qinzh/deflow/logs/wandb/fastflow3d-10088873/checkpoints/epoch_49_fastflow3d.ckpt
/proj/berzelius-2023-154/users/x_qinzh/mambaforge/envs/deflow/bin/python eval.py \
wandb_mode=online dataset_path=/scratch/local/av2/sensor av2_mode=val \
checkpoint=/proj/berzelius-2023-154/users/x_qinzh/deflow/logs/wandb/fastflow3d-10088874/checkpoints/epoch_49_fastflow3d.ckpt