-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtrain_cdd.sh
More file actions
49 lines (40 loc) · 1.2 KB
/
Copy pathtrain_cdd.sh
File metadata and controls
49 lines (40 loc) · 1.2 KB
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
#!/bin/bash
#SBATCH --job-name=space_cdd
#SBATCH --partition=batch
#SBATCH --constraint=type-gpu
#SBATCH --nodelist=gcp-us2-h200-c37g
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --gres=gpu:h200:1
#SBATCH --time=96:00:00
#SBATCH --mem=32G
#SBATCH --output=./joblogs/space_cdd11.log
#SBATCH --error=./joblogs/space_cdd11.error
### ===== [1] Environment Setup =====
# CUDA
export LD_LIBRARY_PATH=/opt/modules/nvidia-cuda-11.8.0/lib64:$LD_LIBRARY_PATH
export PATH=/opt/modules/nvidia-cuda-11.8.0/bin:$PATH
# micromamba environment
source ~/.bashrc
micromamba activate anyir
# Project directory
cd /home/bin_ren/projects/low-level/AnyIR_MM25/repre_learning/anyir_cdd11
### ===== [2] Configurations =====
CKPT_DIR="train_ckpt/cdd11"
CDD_DIR="/work/bin_ren/datasets/low-level/cdd11/"
DE_TYPES="denoise_15 denoise_25 denoise_50 derain dehaze"
NUM_GPUS=1
BATCH_SIZE=32
EPOCHS=200
FFT_LOSS_WEIGHT=0.1
### ===== [3] Launch Training =====
python train.py \
--trainset CDD11_all \
--ckpt_dir "$CKPT_DIR" \
--de_type $DE_TYPES \
--cdd11_path "$CDD_DIR" \
--num_gpus $NUM_GPUS \
--batch_size $BATCH_SIZE \
--epochs $EPOCHS \
--fft_loss_weight $FFT_LOSS_WEIGHT \
--resume_from epoch=19-step=48780.ckpt