Datasets:

Modalities:
Text
Formats:
text
ArXiv:
Libraries:
Datasets
License:

[Community Model] Add flax_capsule_det

#9
Núcleo de Estudos e Pesquisas em Experimentação e Melhoramento Vegetal org
•
edited Oct 31

🌿 Model Contribution: flax_capsule_det

This community model was submitted automatically via pliman::pliman_model_share().

📌 Model Metadata

  • Model Name: flax_capsule_det
  • Architecture: YOLO26l
  • Vision Task: DETECT
  • Target Classes: capsula
  • Species / Crop: Linum usitassimum
  • Organ / Target: capsule
  • Author(s): Tiago Olivoto & Mateus Zunino (NEPEM - UFSC)
  • Date: 2026-10-31
  • Model Size: 77.92 MB (ONNX format) | 42 MB (PyTorch .pt format)

📝 Description

Model for flax capsule detection

📊 Test Benchmark Results

| Precision | Recall | F1-Score | mAP@50 | mAP@50-95 | Mean IoU | Counting R² | MAE | RMSE | Test Scale |
| :---: | :---: :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| 98.90% | 98.95% | 0.9892 | 0.9796 | 0.7490 | 0.8702 | 0.9993 | 0.25 | 0.95 | 295 imgs (5,718 objs) |

Note: Precision (P): Correctness of detections. Recall (R): Proportion of targets detected. F1-Score: Harmonic mean of P and R. mAP@50 / mAP@50-95: Mean Average Precision at IoU 0.50 and 0.50–0.95. Mean IoU: Average overlap quality for True Positives. Counting R² / MAE / RMSE: Correlation and error in object counting per image. Test Scale: Number of test images and ground-truth objects evaluated.

🖼️ Visual Reproduction & Detection Preview

📷 Original Raw Image 🎯 Model Detections/Segmentation
Original Raw Image Model Detections

🔬 Quick Test & Reproducibility

Run an immediate verification directly in R:

library(pliman)

# 1. Download model weights:
# During PR review, download directly from this PR branch:
pliman_download_model("https://huggingface.co/datasets/NEPEM-UFSC/dl_models/resolve/refs%2Fpr%2F9/flax_capsule_det.onnx", model_name = "flax_capsule_det")
# (Once merged into main, you can simply run: pliman_download_model("flax_capsule_det"))

# 2. Run inference using the sample image:
sample_url <- "https://huggingface.co/datasets/NEPEM-UFSC/dl_models/resolve/refs%2Fpr%2F9/assets/flax_capsule_det_sample.jpg"
res <- image_detect_dl(sample_url, model = "flax_capsule_det")

🚀 How to use on your own images

library(pliman)

# 1. Download the model (if not already downloaded):
pliman_download_model("flax_capsule_det")

# 2. Run inference on any local image:
res <- image_detect_dl("my_image.jpg", model = "flax_capsule_det")

💡 Tip: Both ONNX (flax_capsule_det.onnx) and PyTorch (flax_capsule_det.pt) weights are available in this repository.

tiagoolivoto changed pull request status to closed
tiagoolivoto deleted the refs/pr/9 ref

Sign up or log in to comment