Downloads · 30 days
10
14% of all-time downloads
LongGrainRice/cultureqc-qc-effnetb0-v1
cultureqc-qc-effnetb0-v1 is a image classification model from LongGrainRice. Use it when you need a label for an image. The card lists the license as mit.
EfficientNet-B0 classifier for brightfield cell-culture QC: distinguishes normal culture from contamination, detachment, and image-quality artifacts. Part of the cultureQC project.
Downloads · 30 days
10
14% of all-time downloads
All-time downloads
71
Public
Repo size
18 MB
Likes
0
Public
Click a slice to open those files.
.pt16.3 MB · 90%
From the Hugging Face model README
EfficientNet-B0 classifier for brightfield cell-culture QC: distinguishes normal culture from contamination, detachment, and image-quality artifacts. Part of the cultureQC project.
Trained entirely on synthetic data (bacterial sprites composited onto LIVECell images; detachment via mask-erosion + floaters). No real contaminated-culture images were used — no open dataset of these exists. Real-world transfer is unvalidated. See Limitations.
['normal', 'contamination_suspected', 'detachment', 'image_quality']
Per-severity recall (contamination_suspected) — early is the hard case and the headline number:
| severity | recall | n |
|---|---|---|
| early | 1 | 56 |
| late | 1 | 56 |
| mid | 1 | 56 |
False-positive rate on image_quality (weird-negatives called contamination): 0.0000
Full classification report and confusion matrix in metrics.md / confusion_matrix.png.
import torch, timm, numpy as np, cv2
from huggingface_hub import hf_hub_download
ckpt_path = hf_hub_download('LongGrainRice/cultureqc-qc-effnetb0-v1', 'best.pt')
ckpt = torch.load(ckpt_path, map_location='cpu')
model = timm.create_model('efficientnet_b0', pretrained=False, num_classes=4)
model.load_state_dict(ckpt['model_state'])
model.eval()
# preprocess: grayscale -> 3ch -> ImageNet normalize -> see config.json