Instructions to use jgasienica/afo-yolo11m-640-2cat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use jgasienica/afo-yolo11m-640-2cat 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("jgasienica/afo-yolo11m-640-2cat", "<weights>.pt") model = YOLO(weights) source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
AFO — yolo11m @ 640 (2-class)
yolo11m fine-tuned from COCO-pretrained weights on AFO, a maritime search-and-rescue dataset of 3,641 drone images with 39,991 hand-annotated objects. Two merged classes, following Table 2 of the original AFO paper.
Produced by the reproducible benchmark at github.com/Panicum/afo-benchmark under the protocol in BENCHMARK.md. Every number below is measured on the official test split with one shared pycocotools evaluator, so it is comparable to every other row of that leaderboard — and to nothing else.
Results on the AFO test split
| metric | value |
|---|---|
| mAP50-95 | 0.3349 |
| mAP50 | 0.7297 |
| mAP50-95 @ maxDets=100 | 0.3345 |
Per-class AP (test)
| class | AP50-95 | AP50 | test objects |
|---|---|---|---|
small_obj |
0.1674 | 0.5487 | 6,570 |
large_obj |
0.5024 | 0.9107 | 1,069 |
AP by object size
| bucket | √area at reference scale | AP50-95 | test objects |
|---|---|---|---|
| tiny | < 16² | 0.2592 | 4,424 |
| small | 16²–32² | 0.3516 | 2,930 |
| medium | 32²–96² | 0.5237 | 285 |
| large | > 96² | — (no objects) | 0 |
Every image is rescaled to a fixed 640 px longest side before bucketing, because AFO images are 2.5K–4K and in native pixels the tiny bucket would hold 15 objects in the whole dataset. The scale is deliberately independent of the training resolution, so these rows are comparable across runs at different imgsz.
Training
| data | official AFO train split (2,787 images, 26,960 objects), coordinates clipped to [0,1] |
| labels | 2categories |
| selection | best val mAP50-95; test touched once, after training |
| epochs | 100 budget, patience 20 |
| batch | 16 |
| seed | 0 |
| image size | 640 |
| augmentation | framework defaults, unmodified |
| hardware | NVIDIA GeForce RTX 4090 Laptop GPU |
| wall-clock | 2.507 h |
python scripts/train_ultralytics.py --model yolo11m --imgsz 640 --categories 2categories
Usage
from ultralytics import YOLO
model = YOLO("afo-yolo11m-640-2cat.pt")
results = model("drone_frame.jpg", imgsz=640)
Classes, in index order: small_obj, large_obj.
The two classes are the semantic merge from Table 2 of the original paper — small_obj = human + buoy, large_obj = board + boat + sailboat + kayak — so this model's numbers are directly comparable to the published ones. It is a merge by object kind, not by box area, so small_obj is not COCO's AP-small.
Limitations
- The dataset is heavily imbalanced. Treat the per-class table as the real result; mAP averages over classes with very different support.
- One run, one seed. No variance estimate — differences under roughly 1 mAP point against another row should not be read as real.
- Val-to-test gap is large by design. The test split is drawn from videos absent from train and val, so these numbers describe generalisation to unseen scenes, not unseen frames.
- Trained on imagery resized to a 1280 px longest side; see BENCHMARK.md §1.
License
CC BY-NC-SA 3.0, inherited from the training data. AFO is released under CC BY-NC-SA 3.0, so these weights are non-commercial use only and derivatives must carry the same licence.
Citation
@article{gasienica2021afo,
title = {An ensemble deep learning method with optimized weights
for drone-based water rescue and surveillance},
author = {G{\k{a}}sienica-J{\'o}zkowy, Jan and Knapik, Mateusz and Cyganek, Bogus{\l}aw},
journal = {Integrated Computer-Aided Engineering},
volume = {28},
number = {3},
pages = {221--235},
year = {2021},
doi = {10.3233/ICA-210649}
}
- Downloads last month
- 134
Dataset used to train jgasienica/afo-yolo11m-640-2cat
Evaluation results
- mAP50-95 on AFO (Aerial dataset of Floating Objects)test set self-reported0.335
- mAP50 on AFO (Aerial dataset of Floating Objects)test set self-reported0.730