Downloads · 30 days
10
7% of all-time downloads
callumtilbury/bobnet-yolov26n
bobnet-yolov26n is a object detection model from callumtilbury. Use it when you need objects located in an image. It is set up for ultralytics. The card lists the license as mit.
Single-class detection model for microbubbles in optical microscopy images, distilled from a Cellpose-SAM teacher via pseudolabels.
Downloads · 30 days
10
7% of all-time downloads
All-time downloads
147
Public
Repo size
5.4 MB
Likes
1
Public
Click a slice to open those files.
.pt5.4 MB · 100%
From the Hugging Face model README
Single-class detection model for microbubbles in optical microscopy images, distilled from a Cellpose-SAM teacher via pseudolabels.
from ultralytics import YOLO
import math
model = YOLO("callumtilbury/bobnet-yolov26n/best.pt")
results = model.predict("image.png", conf=0.34, max_det=300)
# Convert bbox to diameter
PIXEL_SIZE_UM = 0.0825
for r in results:
for box in r.boxes.xywh.cpu().numpy():
w, h = box[2], box[3]
d_px = (min(w, h) + math.sqrt(w * h)) / 2
d_um = d_px * PIXEL_SIZE_UM
print(f"diameter = {d_um:.2f} um")
| Metric | Value |
|---|---|
| diameter_mape | 1.10% |
| count_pct_diff | 4.25% |
| best_conf | 0.34 |
| model | yolo26n |
| n_train_images | 81 |
| epochs | 200 |
Blended bbox-to-circle: d_px = (min(w,h) + sqrt(w*h)) / 2, then d_um = d_px * 0.0825.
This formula was empirically shown to outperform mask-based equivalent diameters because rectangular mask artifacts inflate the equivalent diameter.
This model is trained on pseudolabels from a specific optical microscope setup. Do not expect generalisation to other microscopes, magnifications, or imaging modalities without retraining or domain adaptation.
callumtilbury/bobnet-bubbles (81 train images, 20 val images)