forked from Zhuanglong2/T-RODNet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathslurm_UNETR2
57 lines (47 loc) · 1.89 KB
/
slurm_UNETR2
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
50
51
52
53
54
55
56
#!/bin/bash
#SBATCH --job-name=yayayaya # Job name
#SBATCH --output=output.%A.txt # Standard output and error log
#SBATCH --nodes=1 # Run all processes on a single node
#SBATCH --ntasks=1 # Run on a single CPU
#SBATCH --mem=40G # Total RAM to be used
#SBATCH --cpus-per-task=64 # Number of CPU cores
#SBATCH --gres=gpu:1 # Number of GPUs (per node)
#SBATCH -p gpu # Use the gpu partition
#SBATCH --time=12:00:00 # Specify the time needed for your experiment
#SBATCH --qos=gpu-8 # To enable the use of up to 8 GPUs
hostname
if [ -d "/tmp/yahia.dalbah/Pickle0" ]
then
echo "Directory exists"
else
mkdir /tmp/yahia.dalbah
cd /tmp/yahia.dalbah
mkdir /tmp/yahia.dalbah/data_root0
cp /l/users/yahia.dalbah/DATA_ROOT_TMP/* /tmp/yahia.dalbah/data_root0
# download all zip files and unzip
cd data_root0
unzip TRAIN_RAD_H.zip
unzip TRAIN_CAM_0.zip
unzip TEST_RAD_H.zip
unzip TRAIN_RAD_H_ANNO.zip
unzip CAM_CALIB.zip
# make folders for data and annotations
mkdir sequences
mkdir annotations
# rename unzipped folders
mv TRAIN_RAD_H sequences/train
mv TRAIN_CAM_0 train
mv TEST_RAD_H sequences/test
mv TRAIN_RAD_H_ANNO annotations/train
# merge folders and remove redundant
rsync -av train/ sequences/train/
rm -r train
python /home/yahia.dalbah/T-RODNet/tools/prepare_dataset/prepare_data.py \
--config /home/yahia.dalbah/T-RODNet/configs/config_rodnet_hg1v2_win16_mnet.py \
--data_root /tmp/yahia.dalbah/data_root0/ --split train,test --out_data_dir /tmp/yahia.dalbah/Pickle0
fi
python /home/yahia.dalbah/T-RODNet/tools/train.py \
--config /home/yahia.dalbah/T-RODNet/configs/config_T_Rodnet_win16.py \
--data_dir /tmp/yahia.dalbah/Pickle0 \
--log_dir /l/users/yahia.dalbah/store/
EOL