-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig_example.yaml
More file actions
40 lines (36 loc) · 919 Bytes
/
config_example.yaml
File metadata and controls
40 lines (36 loc) · 919 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
33
34
35
36
37
38
39
40
# Example configuration file for HierarchialViT
# Model Configuration
model:
name: "hvt_xl" # Model variant (base, large, xl)
patch_size: 16 # Size of image patches
embed_dim: 768 # Initial embedding dimension
depth: [2, 2, 6, 2] # Number of transformer blocks per stage
num_heads: [3, 6, 12, 24] # Number of attention heads per stage
mlp_ratio: 4 # MLP expansion ratio
drop_path: 0.1 # Stochastic depth rate
# Training Configuration
training:
batch_size: 64
epochs: 100
optimizer:
name: "adamw"
lr: 1e-4
weight_decay: 0.05
scheduler:
name: "cosine"
warmup_epochs: 5
# Data Configuration
data:
train_path: "path/to/train/data"
val_path: "path/to/val/data"
input_size: 224
augmentation:
random_crop: true
random_flip: true
color_jitter: 0.4
auto_augment: true
# Logging Configuration
logging:
log_dir: "logs/"
save_freq: 10
eval_freq: 5