More training scripts

This commit is contained in:
Zhengyi Chen 2024-03-06 01:38:21 +00:00
parent 733b3c5387
commit 208091ce8a
5 changed files with 43 additions and 6 deletions

View file

@ -29,5 +29,6 @@ python train.py \
--save_path ./save/ShanghaiA-base-$(date -Iminutes) \ --save_path ./save/ShanghaiA-base-$(date -Iminutes) \
--batch_size 4 \ --batch_size 4 \
--gpus 0,1,2,3 \ --gpus 0,1,2,3 \
--print_freq 100 --print_freq 100 \
--epochs 1000

35
_ShA-fb-train.sh Normal file
View file

@ -0,0 +1,35 @@
#!/bin/sh
#SBATCH -N 1
#SBATCH -n 1
#SBATCH --partition=Teach-Standard
#SBATCH --gres=gpu:4
#SBATCH --mem=24000
#SBATCH --time=3-00:00:00
set -e
export CUDA_HOME=/opt/cuda-9.0.176.1/
export CUDNN_HOME=/opt/cuDNN-7.0/
export STUDENT_ID=$(whoami)
export LD_LIBRARY_PATH=${CUDNN_HOME}/lib64:${CUDA_HOME}/lib64:${LD_LIBRARY_PATH}
export LIBRARY_PATH=${CUDNN_HOME}/lib64:${LIBRARY_PATH}
export CPATH=${CUDNN_HOME}/include:$CPATH
export PATH=${CUDA_HOME}/bin:${PATH}
export PYTHON_PATH=$PATH
mkdir -p /disk/scratch/${STUDENT_ID}
export TMPDIR=/disk/scratch/${STUDENT_ID}/
export TMP=/disk/scratch/${STUDENT_ID}/
source /home/${STUDENT_ID}/miniconda3/bin/activate mlp-cuda
python train.py \
--pth_tar './pretrained/deit-base-patch16-384/pytorch_model.bin' \
--model 'stn' \
--save_path ./save/ShanghaiA-fb-stn-$(date -Iminutes) \
--batch_size 4 \
--gpus 0,1,2,3 \
--print_freq 100 \
--epochs 1000

View file

@ -30,5 +30,6 @@ python train.py \
--save_path ./save/ShanghaiA-stn-$(date -Iminutes) \ --save_path ./save/ShanghaiA-stn-$(date -Iminutes) \
--batch_size 4 \ --batch_size 4 \
--gpus 0,1,2,3 \ --gpus 0,1,2,3 \
--print_freq 100 --print_freq 100 \
--epochs 1000

View file

@ -30,5 +30,5 @@ python train.py \
--save_path ./save/ShanghaiB-base-$(date -Iminutes) \ --save_path ./save/ShanghaiB-base-$(date -Iminutes) \
--batch_size 4 \ --batch_size 4 \
--gpus 0,1,2,3 \ --gpus 0,1,2,3 \
--print_freq 100 --print_freq 100 \
--epochs 1000

View file

@ -31,5 +31,5 @@ python train.py \
--save_path ./save/ShanghaiB-stn-$(date -Iminutes) \ --save_path ./save/ShanghaiB-stn-$(date -Iminutes) \
--batch_size 4 \ --batch_size 4 \
--gpus 0,1,2,3 \ --gpus 0,1,2,3 \
--print_freq 100 --print_freq 100 \
--epochs 1000