Downloads · 30 days
0
iamcode6/amini-cocoa-dinov2-l-mi300x
amini-cocoa-dinov2-l-mi300x is a image classification model from iamcode6. Use it when you need a label for an image. It is set up for timm. The card lists the license as apache-2.0.
Fine-tuned vitlargepatch14dinov2.lvd142m on the Amini cocoa contamination dataset (3 classes: anthracnose, cssvd, healthy).
Downloads · 30 days
0
Access
Public
Updated Apr 30, 2026
Repo size
1.2 GB
Likes
0
Public
Click a slice to open those files.
.pt1.2 GB · 100%
From the Hugging Face model README
Fine-tuned vit_large_patch14_dinov2.lvd142m on the Amini cocoa contamination dataset (3 classes: anthracnose, cssvd, healthy).
Trained on a single AMD Instinct MI300X using PyTorch + ROCm, as part of the AMD hackathon. This model uses on-the-fly bbox cropping with randomized context-padding to improve robustness against detector imprecision.
| Metric | This model (ViT-L / MI300X) |
|---|---|
| Test accuracy (TTA) | 0.9284 |
| Macro F1 (TTA) | 0.9265 |
| Standard acc | 0.9274 |
TTA rounds: 10.
See config.yaml for the full hyperparameter set.
import timm, torch
model = timm.create_model(
"vit_large_patch14_dinov2.lvd142m",
pretrained=False,
num_classes=3,
img_size=224,
)
ckpt = torch.load("best.pt", map_location="cpu", weights_only=False)
model.load_state_dict(ckpt["state_dict"])
model.eval()
best.pt — model weights + training configconfig.yaml — hyperparameters used for this runclassification_report.txt — per-class precision / recall / F1confusion_matrix.csv — 3x3 confusion matrixmetrics.json — standard + TTA scoresTraining code: https://github.com/genyarko/amd-merolav/tree/main/cocoa_amini_finetuning