-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
23 lines (19 loc) · 933 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from dataclasses import dataclass
# +-------------------------------------------------------------------------------------+ #
# | | #
# | CONFIG | #
# | | #
# +-------------------------------------------------------------------------------------+ #
@dataclass
class TrainConfig:
rootdir: str = './data/'
train_batch_size: int = 32
val_batch_size: int = 32
num_workers: int = 4
patch_size: int = 4
dim: int = 1024
depth: int = 6
heads: int = 8
mlp_dim: int = 2048
dropout_rate: int = 0.1
emb_dropout_rate: int = 0.1