Spaces:
Sleeping
Sleeping
Upload configs/config.yaml
Browse files- configs/config.yaml +30 -0
configs/config.yaml
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
data:
|
| 2 |
+
dataset_name: "hf-vision/chest-xray-pneumonia"
|
| 3 |
+
dataset_config: "default"
|
| 4 |
+
data_dir: "data/cache"
|
| 5 |
+
image_size: 224
|
| 6 |
+
batch_size: 32
|
| 7 |
+
num_workers: 0 # 0 for Windows compatibility
|
| 8 |
+
|
| 9 |
+
model:
|
| 10 |
+
name: "mobilenet_v2" # "simple_cnn" or "mobilenet_v2"
|
| 11 |
+
num_classes: 2
|
| 12 |
+
pretrained: true
|
| 13 |
+
freeze_backbone: true
|
| 14 |
+
unfreeze_after_epoch: 5
|
| 15 |
+
|
| 16 |
+
training:
|
| 17 |
+
epochs: 15
|
| 18 |
+
learning_rate: 0.001
|
| 19 |
+
weight_decay: 1.0e-4
|
| 20 |
+
scheduler: "reduce_on_plateau"
|
| 21 |
+
patience: 3
|
| 22 |
+
checkpoint_dir: "checkpoints"
|
| 23 |
+
seed: 42
|
| 24 |
+
|
| 25 |
+
evaluation:
|
| 26 |
+
output_dir: "results"
|
| 27 |
+
|
| 28 |
+
inference:
|
| 29 |
+
model_path: "checkpoints/best_mobilenet_v2.pth"
|
| 30 |
+
threshold: 0.5
|