Instructions to use faiz206/polyp-detection-realcolon with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use faiz206/polyp-detection-realcolon with ultralytics:
from huggingface_hub import hf_hub_download from ultralytics import YOLO # pick the weights file from this repo's "Files and versions" tab weights = hf_hub_download("faiz206/polyp-detection-realcolon", "<weights>.pt") model = YOLO(weights) source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
Polyp detection checkpoints (REAL-Colon official split)
Weights and results only. Code, split file and evaluation commands are in the GitHub repo.
Ultralytics checkpoints, 640 px, official REAL-Colon split (40 train / 8 val / 12 test videos). The test videos were never used for training or for choosing anything.
Main models: *_full_s{0,1,2} (all 40 train videos, 3 seeds)
Trained on all 40 train videos (34 lesion + 6 lesion-free), checkpoint picked on the 8-video dense val set.
| Folder | Seed | REAL-Colon test AP50 | AP50:95 |
|---|---|---|---|
rtdetr-l_full_s0/ |
0 | 0.418 | 0.271 |
rtdetr-l_full_s1/ |
1 | 0.385 | 0.244 |
rtdetr-l_full_s2/ |
2 | 0.395 | 0.255 |
yolo11s_full_s0/ |
0 | 0.374 | 0.244 |
yolo11s_full_s1/ |
1 | 0.382 | 0.245 |
yolo11s_full_s2/ |
2 | 0.383 | 0.248 |
Earlier models: *_official (34 lesion-only train videos)
rtdetr-l_official/ (test AP50 0.418, AP50:95 0.280) and yolo11s_official/ (0.373, 0.245) were trained on the
34 lesion-only train videos only, with the checkpoint picked on the 4 lesion videos of val.
Each folder has best.pt and metrics.json (full results). No dataset images are included; follow the
REAL-Colon and PolypGen licences.
Use
Clone the GitHub repo, build the REAL-Colon caches, then run
python -m polyp.baselines.cross --official --model rtdetr-l.pt --hf-repo faiz206/polyp-detection-realcolon --hf-file rtdetr-l_full_s0/best.pt --root data/processed/realcolon_full_640 --eval-root data/processed/realcolon_full_denseval_640 --out runs/rtdetr-l_full_s0
(--model yolo11s.pt for YOLO11s; drop --hf-file, --root, --eval-root and --out for the *_official models).
Full steps are in the GitHub README, section "Pretrained weights (Hugging Face)".
- Downloads last month
- -