Datasets:
[Community Model] Add flax_capsule_det
Browse files## 🌿 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)` |
<sub>*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.*</sub>
### 🖼️ Visual Reproduction & Detection Preview
| 📷 Original Raw Image | 🎯 Model Detections/Segmentation |
| :---: | :---: |
| <a href="https://huggingface.co/datasets/NEPEM-UFSC/dl_models/resolve/main/assets/flax_capsule_det_sample.jpg"><img src="https://huggingface.co/datasets/NEPEM-UFSC/dl_models/resolve/main/assets/flax_capsule_det_sample.jpg" width="700" alt="Original Raw Image"/></a> | <a href="https://huggingface.co/datasets/NEPEM-UFSC/dl_models/resolve/main/assets/flax_capsule_det_preview.jpg"><img src="https://huggingface.co/datasets/NEPEM-UFSC/dl_models/resolve/main/assets/flax_capsule_det_preview.jpg" width="700" alt="Model Detections"/></a> |
### 🔬 Quick Test & Reproducibility
Run an immediate verification directly in R:
```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/main/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/main/assets/flax_capsule_det_sample.jpg"
res <- image_detect_dl(sample_url, model = "flax_capsule_det")
```
### 🚀 How to use on your own images
```r
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.
Files changed (5)
12345678910111213141516171819202122232425262728293031323334353637383940{
"model_name": "flax_capsule_det",
"filename": "flax_capsule_det.onnx",
"pt_filename": "flax_capsule_det.pt",
"architecture": "YOLO26l",
"sample_image": "assets/flax_capsule_det_sample.jpg",
"preview_image": "assets/flax_capsule_det_preview.jpg",
"task": "detect",
"classes": "capsula",
"num_classes": 1,
"size_mb": 77.92,
"pt_size_mb": 42,
"species": "Linum usitassimum",
"organ": "capsule",
"description": "Model for flax capsule detection",
"author": "Tiago Olivoto & Mateus Zunino",
"institution": "NEPEM - UFSC",
"email": null,
"orcid": null,
"date_shared": "2026-10-31",
"framework": "pliman / ONNX Runtime (YOLO26l)",
"license": "CC-BY-4.0",
"metrics": {
"test_images": 295,
"total_gt_objects": 5718,
"total_predicted": 5721,
"precision": 0.989,
"recall": 0.9895,
"f1_score": 0.9892,
"mean_iou": 0.8702,
"map50": 0.9796,
"map75": 0.9487,
"map50_95": 0.749,
"mae": 0.247,
"rmse": 0.955,
"r2": 0.9993,
"slope": 0.999,
"intercept": 0.02
}
}123version https://git-lfs.github.com/spec/v1oid sha256:7dd952b60cf31774f3d08db57d49bfd4a23e0cc7eef18dc60d172257ae9c639csize 81706666123version https://git-lfs.github.com/spec/v1oid sha256:659e5b38c1efe311b2d39efffc136ed781028c81a18f0489c2f1eb2f01bb761asize 44036313
Large File Pointer Details
- SHA256: dd4c3ae6d04bdfd7aea1561b27a1ad48da4b9d2de9dbf3dce01632f8b0aefec4
- Pointer size: 132 Bytes
- Size of remote file: 1.95 MB

Large File Pointer Details
- SHA256: fe896480a94cb27a9b189f19a347a92e134571f101b686f897b02959bd4089f5
- Pointer size: 132 Bytes
- Size of remote file: 2.42 MB