Update README.md
Browse files
README.md
CHANGED
|
@@ -7,4 +7,26 @@ metrics:
|
|
| 7 |
- f1
|
| 8 |
- precision
|
| 9 |
---
|
| 10 |
-
Dataset: https://www.kaggle.com/datasets/jarricgentletail/mobilenetv3-preprocessed-orange-disease-fruit-dset
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
- f1
|
| 8 |
- precision
|
| 9 |
---
|
| 10 |
+
Dataset: https://www.kaggle.com/datasets/jarricgentletail/mobilenetv3-preprocessed-orange-disease-fruit-dset
|
| 11 |
+
|
| 12 |
+
Download model and to run use the following code:
|
| 13 |
+
```Python
|
| 14 |
+
torch.serialization.add_safe_globals([MobileNetV3])
|
| 15 |
+
torch.serialization.add_safe_globals([Sequential])
|
| 16 |
+
torch.serialization.add_safe_globals([Conv2dNormActivation])
|
| 17 |
+
torch.serialization.add_safe_globals([Conv2d])
|
| 18 |
+
torch.serialization.add_safe_globals([BatchNorm2d])
|
| 19 |
+
torch.serialization.add_safe_globals([Hardswish])
|
| 20 |
+
torch.serialization.add_safe_globals([InvertedResidual])
|
| 21 |
+
torch.serialization.add_safe_globals([ReLU])
|
| 22 |
+
torch.serialization.add_safe_globals([SqueezeExcitation])
|
| 23 |
+
torch.serialization.add_safe_globals([AdaptiveAvgPool2d])
|
| 24 |
+
torch.serialization.add_safe_globals([Hardsigmoid])
|
| 25 |
+
torch.serialization.add_safe_globals([Linear])
|
| 26 |
+
torch.serialization.add_safe_globals([Dropout])
|
| 27 |
+
|
| 28 |
+
mobilenetv3 = torch.load("/home/jarric/PycharmProjects/OrangeRecognizer/outputs/2025-04-21 12:08:02.020215/model_99_finetuned.pt")
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
+
I kept saving whole class instead of just the state dict.
|
| 32 |
+
The model was finetuned, based on IMAGENETV1 dataset. I just finetuned the classification head.
|