Views
No views yet
| Metric | Value |
|---|---|
| Test Accuracy | 97.51% |
| ROC AUC | 0.0054 |
| Architecture | EfficientNet-B3 |
| Training Images | 19,292 |
| Test Images | 4,135 |
| Severity | Parasitemia | Recommendation |
|---|---|---|
| ✅ Negative | 0% | No treatment |
| 🟡 Mild | < 10% | ACT, outpatient |
| 🟠 Moderate | 10–25% | Hospital observation |
| 🔴 Severe | > 25% | Urgent: IV artesunate |
1import torch
2import timm
3import json
4from huggingface_hub import hf_hub_download
5from PIL import Image
6import albumentations as A
7from albumentations.pytorch import ToTensorV2
8import numpy as np
9
10# Download model weights
11model_path = hf_hub_download(
12 repo_id="YOUR_HF_USERNAME/malaria-blood-smear-detector",
13 filename="best_model.pth"
14)
15
16# Load model
17backbone = timm.create_model('efficientnet_b3', pretrained=False, num_classes=0, global_pool='avg')
18# ... (see full example in the Gradio Space)