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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_name": "lbp_svm",
|
| 3 |
+
"model_type": "classical",
|
| 4 |
+
"feature_type": "lbp",
|
| 5 |
+
"class_names": [
|
| 6 |
+
"Not Damaged",
|
| 7 |
+
"Damaged"
|
| 8 |
+
],
|
| 9 |
+
"positive_class": "Damaged",
|
| 10 |
+
"created_at": "20260411-034028",
|
| 11 |
+
"image_size": 224,
|
| 12 |
+
"best_validation": {
|
| 13 |
+
"params": {
|
| 14 |
+
"kernel": "rbf",
|
| 15 |
+
"C": 3.0,
|
| 16 |
+
"gamma": "scale",
|
| 17 |
+
"class_weight": "balanced"
|
| 18 |
+
},
|
| 19 |
+
"val_f1": 0.907103825136612,
|
| 20 |
+
"val_roc_auc": 0.9298245614035087
|
| 21 |
+
},
|
| 22 |
+
"train_rows": 555,
|
| 23 |
+
"train_rows_after_balancing": 884,
|
| 24 |
+
"validation_rows": 119,
|
| 25 |
+
"config": {
|
| 26 |
+
"project": {
|
| 27 |
+
"name": "egg-damage-classification-docker"
|
| 28 |
+
},
|
| 29 |
+
"paths": {
|
| 30 |
+
"data_dir": "/data/eggs",
|
| 31 |
+
"output_dir": "/workspace/outputs",
|
| 32 |
+
"model_dir": "/workspace/models",
|
| 33 |
+
"split_csv": "/workspace/outputs/splits.csv"
|
| 34 |
+
},
|
| 35 |
+
"kaggle": {
|
| 36 |
+
"enabled": false,
|
| 37 |
+
"dataset": "abdullahkhanuet22/eggs-images-classification-damaged-or-not",
|
| 38 |
+
"download_dir": "/workspace/data/raw"
|
| 39 |
+
},
|
| 40 |
+
"seed": 42,
|
| 41 |
+
"data": {
|
| 42 |
+
"image_extensions": [
|
| 43 |
+
".jpg",
|
| 44 |
+
".jpeg",
|
| 45 |
+
".png",
|
| 46 |
+
".bmp",
|
| 47 |
+
".webp"
|
| 48 |
+
],
|
| 49 |
+
"train_size": 0.7,
|
| 50 |
+
"val_size": 0.15,
|
| 51 |
+
"test_size": 0.15,
|
| 52 |
+
"class_names": [
|
| 53 |
+
"Not Damaged",
|
| 54 |
+
"Damaged"
|
| 55 |
+
],
|
| 56 |
+
"positive_class": "Damaged",
|
| 57 |
+
"imbalance_threshold": 1.2
|
| 58 |
+
},
|
| 59 |
+
"preprocessing": {
|
| 60 |
+
"image_size": 224
|
| 61 |
+
},
|
| 62 |
+
"balance": {
|
| 63 |
+
"enabled": true,
|
| 64 |
+
"strategy": "augment_minority",
|
| 65 |
+
"max_augmented_train_samples": 3000
|
| 66 |
+
},
|
| 67 |
+
"features": {
|
| 68 |
+
"hog": {
|
| 69 |
+
"orientations": 9,
|
| 70 |
+
"pixels_per_cell": [
|
| 71 |
+
16,
|
| 72 |
+
16
|
| 73 |
+
],
|
| 74 |
+
"cells_per_block": [
|
| 75 |
+
2,
|
| 76 |
+
2
|
| 77 |
+
],
|
| 78 |
+
"block_norm": "L2-Hys"
|
| 79 |
+
},
|
| 80 |
+
"lbp": {
|
| 81 |
+
"radius": 2,
|
| 82 |
+
"n_points": 16,
|
| 83 |
+
"method": "uniform"
|
| 84 |
+
}
|
| 85 |
+
},
|
| 86 |
+
"classical": {
|
| 87 |
+
"svm": {
|
| 88 |
+
"kernel": [
|
| 89 |
+
"rbf"
|
| 90 |
+
],
|
| 91 |
+
"C": [
|
| 92 |
+
1.0,
|
| 93 |
+
3.0
|
| 94 |
+
],
|
| 95 |
+
"gamma": [
|
| 96 |
+
"scale"
|
| 97 |
+
],
|
| 98 |
+
"class_weight": "balanced"
|
| 99 |
+
}
|
| 100 |
+
},
|
| 101 |
+
"models": {
|
| 102 |
+
"enabled": {
|
| 103 |
+
"hog_svm": true,
|
| 104 |
+
"lbp_svm": true,
|
| 105 |
+
"mobilenet_v3": true,
|
| 106 |
+
"resnet50": true,
|
| 107 |
+
"efficientnet_b0": true,
|
| 108 |
+
"densenet121": false,
|
| 109 |
+
"xception": false,
|
| 110 |
+
"vit_small": false
|
| 111 |
+
},
|
| 112 |
+
"pretrained": true
|
| 113 |
+
},
|
| 114 |
+
"training": {
|
| 115 |
+
"batch_size": 16,
|
| 116 |
+
"epochs": 3,
|
| 117 |
+
"learning_rate": 0.0003,
|
| 118 |
+
"weight_decay": 0.0001,
|
| 119 |
+
"optimizer": "adamw",
|
| 120 |
+
"scheduler_patience": 1,
|
| 121 |
+
"early_stopping_patience": 2,
|
| 122 |
+
"num_workers": 2,
|
| 123 |
+
"freeze_backbone": true,
|
| 124 |
+
"mixed_precision": true,
|
| 125 |
+
"pin_memory": true,
|
| 126 |
+
"max_grad_norm": 5.0
|
| 127 |
+
},
|
| 128 |
+
"augmentation": {
|
| 129 |
+
"enabled": true,
|
| 130 |
+
"horizontal_flip": true,
|
| 131 |
+
"rotation_degrees": 10,
|
| 132 |
+
"translate": 0.03,
|
| 133 |
+
"scale_min": 0.95,
|
| 134 |
+
"scale_max": 1.05,
|
| 135 |
+
"color_jitter": {
|
| 136 |
+
"enabled": true,
|
| 137 |
+
"brightness": 0.12,
|
| 138 |
+
"contrast": 0.12,
|
| 139 |
+
"saturation": 0.08,
|
| 140 |
+
"hue": 0.02
|
| 141 |
+
}
|
| 142 |
+
},
|
| 143 |
+
"evaluation": {
|
| 144 |
+
"threshold": 0.5,
|
| 145 |
+
"save_precision_recall_curve": true,
|
| 146 |
+
"save_calibration_plot": false,
|
| 147 |
+
"sample_grid_count": 12
|
| 148 |
+
},
|
| 149 |
+
"explainability": {
|
| 150 |
+
"enabled": true,
|
| 151 |
+
"max_images": 8
|
| 152 |
+
},
|
| 153 |
+
"gradio": {
|
| 154 |
+
"host": "0.0.0.0",
|
| 155 |
+
"port": 7860,
|
| 156 |
+
"share": false,
|
| 157 |
+
"low_confidence_threshold": 0.65
|
| 158 |
+
},
|
| 159 |
+
"_config_path": "/workspace/configs/docker.yaml",
|
| 160 |
+
"_project_root": "/workspace"
|
| 161 |
+
}
|
| 162 |
+
}
|