Downloads · 30 days
0
iamcode6/dinov2-l-ccmt-mi300x
dinov2-l-ccmt-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 DINOv2-Large (304M params) on the CCMT crop-pest-and-disease dataset (22 classes across cashew, cassava, maize, tomato).
Downloads · 30 days
0
Access
Public
Updated May 9, 2026
Repo size
1.2 GB
Likes
1
Public
Click a slice to open those files.
.pt1.2 GB · 100%
From the Hugging Face model README
Fine-tuned DINOv2-Large (304M params) on the CCMT crop-pest-and-disease dataset (22 classes across cashew, cassava, maize, tomato).
Trained on a single AMD Instinct MI300X using PyTorch + ROCm, as a submission to the lablab.ai AMD hackathon Track 2 — Fine-Tuning on AMD GPUs.
This model is deployed as an interactive Gradio Space — upload a leaf photo and get an instant diagnosis with treatment guidance:
👉 https://huggingface.co/spaces/iamcode6/merolav-space
| Metric | This model (DINOv2-L / MI300X) | Baseline (EfficientNetB0 / P100) |
|---|---|---|
| Test accuracy | 0.9706 (TTA) | 0.9316 (TTA) |
| Macro F1 | 0.9713 | 0.9348 |
| Standard acc (no TTA) | 0.9705 | — |
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=22,
img_size=224,
)
ckpt = torch.load("best.pt", map_location="cpu", weights_only=False)
model.load_state_dict(ckpt["state_dict"])
model.eval()
Class index map is embedded inside the checkpoint under cfg; see the training repo
for splits.json which defines the class_to_idx mapping.
best.pt — model weights + training configconfig.yaml — hyperparameters used for this runclassification_report.txt — per-class precision / recall / F1confusion_matrix.csv — 22×22 confusion matrixmetrics.json — standard + TTA scoresTraining code: https://github.com/genyarko/amd-merolav/tree/main/track2_finetuning