-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtrain.sh
More file actions
32 lines (28 loc) · 878 Bytes
/
train.sh
File metadata and controls
32 lines (28 loc) · 878 Bytes
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
# Training Stage 1 for classification model
python train_swath_distilling.py \
--eppoch 200 \
--batch_size 32 \
--mask_ratio 0.25 \
--load_teacher PRE-demo/checkpoints/cls_teacher.pth \
--classes 2 \
# Training Stage 1 for regression model
python train_swath_distilling.py \
--eppoch 200 \
--batch_size 32 \
--mask_ratio 0.25 \
--load_teacher PRE-demo/checkpoints/reg_teacher.pth \
--classes 1 \
# Training Stage 2 for classification model
torchrun --nproc_per_node=4 train_full_disc_adaptation.py \
--eppoch 100 \
--mask-strategy self-masktune \
--mask_ratio 0.25 \
--fe-path cls_checkpoint_best.pth \
--classes 2 \
# Training Stage 2 for regression model
torchrun --nproc_per_node=4 train_full_disc_adaptation.py \
--eppoch 100 \
--mask-strategy self-masktune \
--mask_ratio 0.25 \
--fe-path reg_checkpoint_best.pth \
--classes 1 \