forked from ShahabBakht/Dual-Pathway-Model
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbatch.sh
44 lines (31 loc) · 1.91 KB
/
batch.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
#!/bin/bash
#SBATCH --cpus-per-task=8 # Ask for 8 CPUs
#SBATCH --gres=gpu:2 # Ask for 2 GPU
#SBATCH --mem=48 # Ask for 48 GB of RAM
#SBATCH --time=24:00:00 # The job will run for 24 hours
#SBATCH -o /network/tmp1/bakhtias/slurm-%j.out # Write the log on tmp1 (change it to your tmp1 directory)
# 1. load modules
module load anaconda/3
module load pytorch/1.6
#module load cuda/11
# 2. Load your environment
source $CONDA_ACTIVATE
conda activate DeepMouse_new
echo $PATH
python -V
# 3. Copy your dataset on the compute node (change the source diectory to the location of your dataset)
# cp /network/tmp1/bakhtias/UCF101_full/UCF101_full.zip $SLURM_TMPDIR
# unzip -q $SLURM_TMPDIR/UCF101_full.zip -d $SLURM_TMPDIR
cp /network/tmp1/bakhtias/airsim.zip $SLURM_TMPDIR
unzip -q $SLURM_TMPDIR/airsim.zip -d $SLURM_TMPDIR
#cp /network/tmp1/bakhtias/Shahab/UCF101catcam.zip $SLURM_TMPDIR
#unzip -q $SLURM_TMPDIR/UCF101catcam.zip -d $SLURM_TMPDIR
# 4. Launch your job
#cd ./process_data/src/
#python write_csv.py
#cd ../../dpc
cd ./dpc
python main.py --gpu 0,1 --net monkeynet --dataset airsim --batch_size 30 --img_dim 64 --epochs 100 --lr 1e-3 --save_checkpoint_freq 25 --hyperparameter_file /home/mila/b/bakhtias/Project-Codes/CPC/backbone/SimMouseNet_hyperparams.yaml --prefix 'monkeynet_airsim_5'
#python main.py --gpu 0,1 --net simmousenet --dataset ucf101 --batch_size 30 --img_dim 64 --epochs 100 --prefix 'simmousenet_seed20_h1p4_largeRF_wmaxpool' --resume '/network/tmp1/bakhtias/Results/log_simmousenet_seed20_h1p4_largeRF_wmaxpool/ucf101-64_rsenet_dpc-rnn_bs30_lr0.001_seq8_pred3_len5_ds3_train-all/model/epoch84.pth.tar' --lr 1e-3 --save_checkpoint_freq 25
# 5. Copy whatever you want to save on $SCRATCH (change the destination directory to your Results folder)
cp -r $SLURM_TMPDIR/log_monkeynet_airsim_5 /network/tmp1/bakhtias/Results