Views
No views yet
| Metric | Value |
|---|---|
| Validation Accuracy | 98.48% |
| Macro F1-Score | 97.99% |
| Macro AUC | 99.98% |
huggingface_hub library:1from huggingface_hub import hf_hub_download
2import torch
3
4# Download the model weights
5model_path = hf_hub_download(repo_id="Abouba1810/AgriMali-EfficientNetV2", filename="agrimali_best.pth")
6
7# Initialize the model architecture (AgriMaliNet)
8model = AgriMaliNet(num_classes=38)
9
10# Load the weights
11model.load_state_dict(torch.load(model_path, map_location='cpu'))
12model.eval()