Update model with improved regularization and data augmentation
Browse files- README.md +3 -4
- confusion_matrix.png +0 -0
- per_class_metrics.csv +6 -6
- resnet18_beans.pth +1 -1
README.md
CHANGED
|
@@ -30,7 +30,7 @@ This model was trained in Google Colab using a T4 GPU and tracked with MLflow.
|
|
| 30 |
- Bean Rust
|
| 31 |
- Angular Leaf Spot
|
| 32 |
|
| 33 |
-
**Validation Accuracy:** 0.
|
| 34 |
|
| 35 |
## Training Configuration
|
| 36 |
|
|
@@ -42,11 +42,11 @@ This model was trained in Google Colab using a T4 GPU and tracked with MLflow.
|
|
| 42 |
- Best model selection based on validation accuracy
|
| 43 |
|
| 44 |
**Hyperparameters:**
|
| 45 |
-
- Learning Rate: 5e-
|
| 46 |
- Epochs: 5
|
| 47 |
- Batch Size: 32
|
| 48 |
- Weight Decay: 0.0001
|
| 49 |
-
- Dropout: 0.
|
| 50 |
- Optimizer: Adam
|
| 51 |
|
| 52 |
## Artifacts
|
|
@@ -77,6 +77,5 @@ Download and load the model:
|
|
| 77 |
model.load_state_dict(torch.load(model_path, map_location="cpu"))
|
| 78 |
model.eval()
|
| 79 |
|
| 80 |
-
## License
|
| 81 |
|
| 82 |
Apache 2.0
|
|
|
|
| 30 |
- Bean Rust
|
| 31 |
- Angular Leaf Spot
|
| 32 |
|
| 33 |
+
**Validation Accuracy:** 0.8947
|
| 34 |
|
| 35 |
## Training Configuration
|
| 36 |
|
|
|
|
| 42 |
- Best model selection based on validation accuracy
|
| 43 |
|
| 44 |
**Hyperparameters:**
|
| 45 |
+
- Learning Rate: 5e-05
|
| 46 |
- Epochs: 5
|
| 47 |
- Batch Size: 32
|
| 48 |
- Weight Decay: 0.0001
|
| 49 |
+
- Dropout: 0.25
|
| 50 |
- Optimizer: Adam
|
| 51 |
|
| 52 |
## Artifacts
|
|
|
|
| 77 |
model.load_state_dict(torch.load(model_path, map_location="cpu"))
|
| 78 |
model.eval()
|
| 79 |
|
|
|
|
| 80 |
|
| 81 |
Apache 2.0
|
confusion_matrix.png
CHANGED
|
|
per_class_metrics.csv
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
,precision,recall,f1-score,support
|
| 2 |
-
Healthy,0
|
| 3 |
-
Bean Rust,0.
|
| 4 |
-
Angular Leaf Spot,1.0,0.
|
| 5 |
-
accuracy,0.
|
| 6 |
-
macro avg,0.
|
| 7 |
-
weighted avg,0.
|
|
|
|
| 1 |
,precision,recall,f1-score,support
|
| 2 |
+
Healthy,1.0,0.7272727272727273,0.8421052631578947,44.0
|
| 3 |
+
Bean Rust,0.7627118644067796,1.0,0.8653846153846154,45.0
|
| 4 |
+
Angular Leaf Spot,1.0,0.9545454545454546,0.9767441860465116,44.0
|
| 5 |
+
accuracy,0.8947368421052632,0.8947368421052632,0.8947368421052632,0.8947368421052632
|
| 6 |
+
macro avg,0.9209039548022598,0.8939393939393939,0.8947446881963406,133.0
|
| 7 |
+
weighted avg,0.91971454058876,0.8947368421052632,0.8945239357691847,133.0
|
resnet18_beans.pth
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 44792395
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8169530c0d8f06452114833a14a50fdc8c020d3157d0696473a782a3c3cc0f31
|
| 3 |
size 44792395
|