-
Notifications
You must be signed in to change notification settings - Fork 0
/
spine_seg.sh
23 lines (19 loc) · 1.11 KB
/
spine_seg.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
#SBATCH --ntasks=1 ### How many CPU cores do you need?
#SBATCH --mem=14G ### How much RAM memory do you need?
#SBATCH -p short ### The queue to submit to: express, short, long, interactive
#SBATCH --gres=gpu:1 ### How many GPUs do you need?
#SBATCH -t 0-48:00:00 ### The time limit in D-hh:mm:ss format
#SBATCH -o /trinity/home/r094879/repositories/SAM2_vertebra_segmentation/output/out_%j.log ### Where to store the console output (%j is the job number)
#SBATCH -e /trinity/home/r094879/repositories/SAM2_vertebra_segmentation/error/error_%j.log ### Where to store the error output
#SBATCH --job-name=sp_lm_model ### Name your job so you can distinguish between jobs
# ----- Load the modules -----
module purge
module load Python/3.9.5-GCCcore-10.3.0
# If you need to read/write many files quickly in tmp directory use:
source "/tmp/${SLURM_JOB_USER}.${SLURM_JOB_ID}/prolog.env"
# ----- Activate virtual environment -----
# Do this after loading python module
source /trinity/home/r094879/vertebra-detection/bin/activate
# ----- Your tasks -----
python spine_seg.py