Downloads · 30 days
0
f4m1/plant-classifier-39
plant-classifier-39 is a image classification model from f4m1. Use it when you need a label for an image. It is set up for pytorch.
Frozen PyTorch checkpoint for plant/crop classification. The model was trained with supervised contrastive pretraining, cross-entropy fine-tuning, and TrivialAugment.
Downloads · 30 days
0
Access
Public
Updated Aug 15, 2026
Repo size
43.6 MB
Likes
0
Public
Click a slice to open those files.
.pt43.6 MB · 100%
From the Hugging Face model README
Frozen PyTorch checkpoint for plant/crop classification. The model was trained with supervised contrastive pretraining, cross-entropy fine-tuning, and TrivialAugment.
The model predicts the plant identity before a crop-specific disease detector and recommendation system. It is a plant classifier, not a disease classifier.
(0.485, 0.456, 0.406) and standard deviation (0.229, 0.224, 0.225).The checkpoint contains model and class_to_idx. Reconstruct torchvision.models.efficientnet_b3(weights=None), replace the final classifier with a 39-output linear layer, and load checkpoint["model"].
For confidence scores, apply softmax directly to the logits. The deployed API intentionally uses raw, uncalibrated probabilities.
| Metric | Result |
|---|---|
| Validation macro F1 | 0.933455 |
| Test macro F1 | 0.929491 |
| Test macro recall | 0.930658 |
| Test accuracy | 0.931547 |
| Test top-3 accuracy | 0.981436 |
model.pt: frozen EfficientNet-B3 checkpoint.class_to_idx.json: authoritative output-index mapping.model_config.json: architecture and preprocessing contract.SHA256SUMS: checkpoint integrity checksum.FROZEN_MODEL.md: frozen-run provenance and metrics.