generated from nhtlongcs/pytorch-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathresnext.yaml
61 lines (59 loc) · 1.74 KB
/
resnext.yaml
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
50
51
52
53
54
55
56
57
58
59
60
61
id: resnext50
pretrained: Null
model:
name: BaseTimmModel
args:
name: resnext50_32x4d
num_classes: 5
freeze_backbone: False
from_pretrained: True
optimizer:
name: Adam
args:
lr: 0.0001
loss:
name: FocalLoss
args: Null
metric:
- name: Accuracy
args: Null
scheduler:
name: StepLR
args:
step_size: 3
gamma: 0.2
last_epoch: -1
dataset:
num_folds:
folds_train_dir: lists/folds/train/
folds_test_dir: lists/folds/val/
train:
name: LeafDatasetAdvance
args:
data_dir: data/train_images/
csv_path: lists/train.csv
IMG_SIZE: 512
is_train: True
loader:
name: DataLoader
args:
batch_size: 16
shuffle: True
drop_last: True
val:
name: LeafDatasetAdvance
args:
data_dir: data/train_images/
csv_path: lists/val.csv
IMG_SIZE: 512
is_train: False
loader:
name: DataLoader
args:
batch_size: 16
shuffle: True
trainer:
TTA_times: 5
nepochs: 20
val_step: 1
log_step: 1