/ Модель

Характеристики

Лицензия
AGPL 3.0
Библиотека
ultralytics
Опубликована
27 окт 2026

oil-palm-crown-detector

Поиск объектовИзображение → bounding_boxes3 профессии
128скачиваний за 30 дней1лайквеса обновлены12 ноя 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Детектор YOLOv8s находит и размечает кроны масличных пальм на RGB-ортофотопланах с БПЛА для подсчёта и картирования плантаций.

YOLOv8s — детектор кроны масличной пальмы, разработанный Oluwasola Oyinloye. Модель находит отдельные кроны одного класса на RGB-ортофотопланах, полученных с БПЛА, и предназначена для подсчёта и картирования пальм на плантациях. В связке с конвейером обработки геопривязанных снимков результаты можно преобразовать в инвентарь с точкой и рамкой для каждой обнаруженной пальмы. Модель применялась в производстве для подсчёта 718 751 пальмы на площади 12 166,6 га в Западной Африке.

Модель принимает изображения размером 1280 × 1280 пикселей; для лучших результатов разрешение снимков должно быть близко к обучающему — примерно 2 см на пиксель. На отложенной выборке из 79 тайлов и 716 размеченных крон достигнуты precision 0,845, recall 0,774 и mAP@0.5 0,844. Модель подходит также для предварительной разметки снимков и дообучения под другие плантации.

Обучение проводилось на данных одной плантации в Западной Африке, изображения и разметка не опубликованы. Для спутниковых снимков, наклонных фотографий, других видов деревьев и крупных планов зрелых пальм модель не предназначена; перенос на другие плантации не проверен. Возможны пропуски мелких пальм и крон в плотном зрелом пологе, а соприкасающиеся кроны иногда объединяются в одну рамку, поэтому результаты подсчёта следует проверять на выборке. Лицензия — AGPL-3.0.

Сценарии применения

  • подсчёт пальм на ортофотопланах плантаций
  • создание карты расположения отдельных пальм
  • формирование инвентаря пальм с географическими координатами
  • предварительная разметка снимков для проверки аннотаторами
  • дообучение детектора под снимки другой плантации

Ограничения

Обучена на снимках одной плантации в Западной Африке и чувствительна к разрешению; перенос на другие плантации и виды пальм не проверен, а плотные зрелые кроны и мелкие пальмы могут пропускаться или сливаться в одну рамку. Перед использованием подсчётов следует проверить выборку вручную.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Oil palm crown detector (YOLOv8s)

Finds individual oil palm crowns in drone (UAV) RGB orthomosaic tiles. Paired with the open-source pipeline, it turns a georeferenced orthomosaic into a palm inventory: one point and one crown box per palm. Used in production to count 718,751 palms over 12,166.6 ha of a commercial plantation in West Africa.

Files

FileUse it for
oil_palm_crown.ptPython / Ultralytics (inference, fine-tuning)
oil_palm_crown.onnxQGIS via the Deepness plugin, ONNX Runtime, or any ONNX tool. Input 1×3×1280×1280, RGB scaled 0–1; output 1×5×33600 (box centre x, y, width, height, palm score) before non-max suppression
oil_palm_crown_joint.ptNew in v1.2.0: the model trained on both sites (West Africa and Peru), for Python / Ultralytics. See below

oil_palm_crown.pt and oil_palm_crown.onnx are the same model (training run 9). The ONNX export was checked against the PyTorch model: box coordinates agree within 0.001 px and scores are identical.

Intended use

  • Counting and mapping oil palms in nadir UAV RGB orthomosaics of plantations, at a resolution close to the training imagery (~2 cm/px).
  • A starting point for fine-tuning on other plantations, or for pre-labelling new imagery so annotators correct boxes instead of drawing them from scratch.

Not intended for: satellite imagery, oblique photos, other tree species, or counts that will be used without checking a sample against a manual count.

How to use

In QGIS, no code (Deepness plugin)

  1. In QGIS: Plugins → Manage and Install Plugins, install Deepness. On first use it offers to install its Python dependencies (ONNX Runtime) — accept.
  2. Open your RGB orthomosaic. It should be in a projected CRS (metres), ideally ~2 cm/px.
  3. In the Deepness panel, choose Detector, select oil_palm_crown.onnx, and load the model's default parameters — the file carries them (2.13 cm/px, 1280 px tiles, 20% overlap, confidence 0.25, IoU 0.45). If asked for a batch size, use 1.
  4. Pick the area to process and run. Each detected palm comes back as a vector feature.

In Python, single tile

from ultralytics import YOLO

model = YOLO("oil_palm_crown.pt")          # or "oil_palm_crown.onnx"
result = model.predict("tile.png", imgsz=1280, conf=0.25)[0]
print(len(result.boxes), "palms")

For an 800 × 600 close-up photo like the Peru set, with the model trained on both sites:

model = YOLO("oil_palm_crown_joint.pt")
result = model.predict("photo.jpg", imgsz=320, conf=0.25)[0]

Whole orthomosaics

Use the pipeline: it tiles the GeoTIFF, runs the model, converts detections to map coordinates, removes duplicates where tiles overlap, and writes a GeoPackage/CSV inventory.

python scripts/process_block.py --block <block_id> --weights path/to/oil_palm_crown.pt

Training data

  • UAV RGB orthomosaics from one commercial oil palm plantation in West Africa. The imagery and labels are proprietary and are not released.

  • 1280 × 1280 px tiles (256 px overlap), hand-annotated with one box per visible crown:

    SourceAnnotated tilesCrown boxes
    Pilot block (~85 ha, 2.13 cm/px), two stratified annotation batches covering dense/sparse palms, weeds, roads and bare soil2862,541
    Second block, targeted dense mature canopy and newly planted palms, added after those were under-detected in production1491,500
    Total4354,041
  • Split: 70/15/15 by spatial sector (a deterministic hash of each tile's map sector), not by random tiles, so validation and test tiles come from ground the model did not train on:

    SplitTilesCrown boxes
    Train3132,898
    Validation43427
    Test79716
  • The plantation is young: canopy height at 1,226 crowns from the first pilot annotation batch has a median of 2.33 m (5th–95th percentile 0.92–3.81 m).

Training procedure

  • Started from COCO-pretrained YOLOv8s and refined over successive runs; the released checkpoint (run 9) was fine-tuned from run 4.
  • Run 9: image size 1280, batch 6, AdamW, initial learning rate 0.0002, up to 150 epochs with early-stopping patience 30 (stopped at epoch 92, best at epoch 62).
  • Augmentation: rotation up to ±180°, horizontal and vertical flips, mosaic. Perspective and shear off (not physical for nadir imagery).
  • Hardware: one NVIDIA RTX 4070 Laptop GPU (8 GB).

Evaluation

Held-out test split (79 tiles, 716 labelled crowns, never used for training or for picking the checkpoint):

ModelPrecisionRecallmAP@0.5mAP@0.5:0.95
This model (run 9)0.8450.7740.8440.350
Earlier baseline (run 4)0.7270.6370.6980.279
  • About 85% of detections are real palms, and the model finds about 77 of every 100 labelled palms. Precision and recall both rose over the baseline.
  • Precision and recall are at the confidence that maximises F1 (Ultralytics val), not at the pipeline's 0.25.
  • The low mAP@0.5:0.95 mostly reflects how tightly boxes fit crown edges, which matters less for counting.

Counting accuracy — model count vs. hand count on the same test tiles, at confidence 0.25:

Counted regionHand countModel countDifference
Tile interior (box centre more than 128 px from the border)518519+0.2%
Whole tile, including palms cut off by the border716894+24.9%
  • The interior is the fair comparison for a whole orthomosaic: tiles overlap by 256 px, so a palm cut off at one tile's border is seen whole in the next, and duplicates are merged.
  • The whole-tile overcount comes from partial crowns at borders, which the annotators mostly did not box: 206 of the 301 unmatched detections touch the tile edge.
  • The interior total is close partly because errors cancel: roughly 100 labelled palms away from the edges are missed, and a similar number of detections there have no matching label.
  • By block (interior): first block 321 vs 311 by hand (+3.2%), second block 198 vs 207 (−4.3%); mean absolute error 0.57 palms per tile.
  • The earlier baseline counted 454 interior palms against 518 (−12.4%), missing about 31% on the second block's dense canopy and young palms. Retraining on those cases fixed most of it.
  • On the 43 validation tiles the interior count was 304 against 317 by hand (−4.1%).
  • These are tile-level checks on held-out ground, not a field count over a whole block. Per-tile numbers: evaluation/.

Precision-recall curve

Precision-recall curve from the validation split (mAP@0.5 = 0.834).

Training curves

Production run: 26 blocks, 12,166.6 ha net, 718,751 palms after removing cross-block double counts. Per-block results: RESULTS.md.

Second model: trained on both sites (v1.2.0)

oil_palm_crown_joint.pt is run 9 retrained on the West African training tiles together with public drone photos of mature palms from Peru (Oil Palm Tree Detection for Anomaly Identification, Dominguez Meza & Rituay, Mendeley Data, doi:10.17632/nh7d23dgnw.1, CC BY 4.0). The released model finds about half the palms in those photos. Fine-tuning on the Peru photos alone fixed that but broke the model on West Africa (test mAP@0.5 0.844 → 0.004), because the two datasets box palms differently: Peru labels cover the full frond spread, West African labels the crown. Training on both at once keeps both.

  • Peru data: 800 × 600 px photos; 276 for training (354 palms), 64 for validation (80) and 84 for testing (115). Whole blocks of 20 consecutive photo numbers go to one split, so neighbouring photos of the same palm stay together. Healthy and anomalous palms count as one class.
  • Training: from run 9 with its recipe (1280 px, AdamW, rotations up to ±180°, flips, mosaic), batch 8, initial learning rate 0.001 (0.0002 also tried), up to 150 epochs with patience 30 (stopped at epoch 92, best at 62). Each Peru photo was shrunk to 320 × 240 px, so its palms appear about 196 px wide like the West African crowns, and 16 were packed into each 1280 × 960 training picture. One Kaggle T4 GPU, 35 minutes. Notebook.
Held-out test setReleased model (run 9)Trained on both sites
West Africa, 79 tiles: precision / recall / mAP@0.50.845 / 0.774 / 0.8440.817 / 0.785 / 0.852
West Africa: tile-interior count vs. 518 by hand519 (+0.2%)522 (+0.8%)
Peru, 84 photos: precision / recall / mAP@0.50.142 / 0.200 / 0.0610.952 / 0.965 / 0.978
Peru: labelled palms found (a detection centred on the palm)47.0%98.3%
  • On the West African tiles the two models are equal within the noise of 79 tiles.
  • On the Peru photos the whole-photo count runs high (180 against 115 by hand): the model boxes palms cut off by the photo edge, which the Peru labels mostly leave out. 66 of its 67 extra detections touch the edge. For per-photo counts, confidence 0.7 (picked on the validation photos) gives +12.2% with 97.4% of palms found.
  • The Peru test photos come from the same plantation as the training photos, so this shows the model can adapt to a site from a few hundred labelled photos, not that it works on new plantations without labels. The results come from one training run.
  • Input size: palms should appear roughly 200 px across, as in training: 1280 px tiles for orthomosaics at about 2 cm/px, and a 320 px input for 800 × 600 photos like the Peru set.
  • Which model to use: run 9 for imagery like the West African orthomosaics; it produced the production count. The model trained on both sites for imagery closer to the Peru photos. It has also seen two kinds of imagery, which makes it a reasonable starting point for fine-tuning on a new plantation (not yet tested).
  • No ONNX version yet: the browser demo and the QGIS file use run 9.
  • Full results.

Limitations

  • Trained on one plantation in West Africa, with mostly young palms. The released model does not transfer to close-up drone photos of mature palms with overlapping crowns: on an independent dataset from Peru (Dominguez Meza & Rituay, doi:10.17632/nh7d23dgnw.1; 424 photos, 549 palms) it found at best about half the palms, and strict mAP@0.5 stayed below 0.05 (details). The model trained on both sites handles those photos, after training on labelled photos from the same plantation. Other plantations remain untested for both models.
  • Sensitive to resolution: resample imagery far from ~2 cm/px, or fine-tune.
  • Known weak spots during rollout were dense mature canopy and very small, newly planted palms. Run 9 was trained to reduce both, but they remain the most likely sources of missed palms.
  • Count accuracy relies partly on misses and false detections cancelling out. Check a sample visually before relying on counts for a small area.
  • Other palm species and similar-looking vegetation were not specifically tested.
  • Boxes, not crown outlines: touching crowns can occasionally merge into one detection.

Collaborate

Next steps for this work: validating on more plantations and regions, testing on plantations the model has never seen, an open benchmark of labelled palm crowns, and missing-palm maps from repeat flights (roadmap).

I welcome collaboration with research institutes, universities, NGOs, government agencies, companies and startups. The most useful contributions are imagery and field counts, GPU compute or cloud credits, and joint research and publications. In return I can offer palm inventories, a model tuned to your imagery, pilot projects and training. Contact: o.oyin1115@gmail.com.

Citation

@software{oyinloye_oil_palm_crown_detection,
  author  = {Oyinloye, Oluwasola},
  title   = {Oil Palm Crown Detection \& Counting from UAV RGB Orthomosaics},
  year    = {2026},
  version = {1.2.0},
  doi     = {10.5281/zenodo.23704654},
  url     = {https://github.com/Dexsholex/oil-palm-crown-detection},
  license = {AGPL-3.0}
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · ultralytics

Нельзя запустить

Модели Ultralytics YOLO требуют отдельного рантайма.

Ревизия весов
01ed937

0 моделей