Views
No views yet
| Metric | Value |
|---|---|
| Test Accuracy (with TTA) | 97.93% |
| Test Accuracy (without TTA) | 98.01% |
| Sensitivity | 97.19% |
| Specificity | 98.65% |
| Precision | 98.57% |
| F1 Score | 97.88% |
| Parameters | 2,107,094 (~8 MB) |
1import torch
2from plasmosenet import PlasmoSENet
3from torchvision import transforms
4from PIL import Image
5
6model = PlasmoSENet(num_classes=2)
7model.load_state_dict(torch.load("model.pth", map_location="cpu"))
8model.eval()
9
10transform = transforms.Compose([
11 transforms.Resize((224, 224)),
12 transforms.ToTensor(),
13 transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]),
14])
15
16image = Image.open("cell_image.png").convert("RGB")
17input_tensor = transform(image).unsqueeze(0)
18
19with torch.no_grad():
20 output = model(input_tensor)
21 prediction = output.argmax(dim=1).item()
22
23classes = ["Parasitized", "Uninfected"]
24print(f"Prediction: {classes[prediction]}")1git clone https://github.com/Svetozar-Technologies/LocalMedScan-Models.git
2cd LocalMedScan-Models
3pip install -r requirements.txt
4python scripts/train_plasmosenet.py --data-dir test_data/malaria/cell_images@software{plasmosenet2026,
title={PlasmoSENet: A Multi-Scale Squeeze-and-Excitation Residual Network for Malaria Detection},
author={Svetozar Technologies},
year={2026},
url={https://github.com/Svetozar-Technologies/LocalMedScan-Models}
}