Instructions to use erayyapagci/yolo11m-question-segmentation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use erayyapagci/yolo11m-question-segmentation with ultralytics:
# Couldn't find a valid YOLO version tag. # Replace XX with the correct version. from ultralytics import YOLOvXX model = YOLOvXX.from_pretrained("erayyapagci/yolo11m-question-segmentation") source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
Add README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: ultralytics
|
| 3 |
+
tags:
|
| 4 |
+
- yolo
|
| 5 |
+
- detection
|
| 6 |
+
- document-analysis
|
| 7 |
+
- pdf
|
| 8 |
+
- question-segmentation
|
| 9 |
+
datasets:
|
| 10 |
+
- custom
|
| 11 |
+
metrics:
|
| 12 |
+
- mAP@50: 0.716
|
| 13 |
+
- precision: 0.971
|
| 14 |
+
pipeline_tag: object-detection
|
| 15 |
+
license: mit
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# YOLOv11m - Question Segmentation for PDFs
|
| 19 |
+
|
| 20 |
+
A fine-tuned **YOLOv11m** model designed to detect and segment questions in Turkish educational documents (PDFs).
|
| 21 |
+
|
| 22 |
+
- **Task**: Object Detection
|
| 23 |
+
- **Classes**: `question` (Single class)
|
| 24 |
+
- **Resolution**: `1280` x `1280`
|
| 25 |
+
|
| 26 |
+
## Model Details
|
| 27 |
+
- **Base Model**: `yolo11m` (Ultralytics)
|
| 28 |
+
- **Parameters**: ~20M
|
| 29 |
+
- **Training Epochs**: 44
|
| 30 |
+
- **Precision**: 0.971 (Very Low False Positives)
|
| 31 |
+
- **mAP@50**: 0.716
|
| 32 |
+
|
| 33 |
+
## Intended Use
|
| 34 |
+
This model is optimized for extracting question blocks from dense test papers, worksheets, and exam booklets. It is robust to "background noise" (headers, isolated paragraphs) due to strict negative sampling during training.
|
| 35 |
+
|
| 36 |
+
## Usage
|
| 37 |
+
|
| 38 |
+
```python
|
| 39 |
+
from ultralytics import YOLO
|
| 40 |
+
|
| 41 |
+
# Load the model
|
| 42 |
+
model = YOLO("hf://erayyapagci/yolo11m-question-segmentation")
|
| 43 |
+
|
| 44 |
+
# Run Inference
|
| 45 |
+
results = model("page_image.jpg", imgsz=1280, conf=0.25)
|
| 46 |
+
|
| 47 |
+
# Show results
|
| 48 |
+
results[0].show()
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
+
## Training Data
|
| 52 |
+
Trained on a dataset of **14,693 images** (after strict filtering) sourced from 10 public Roboflow datasets. The data was split using **Document-Aware Splitting** to ensure no data leakage between training and validation sets.
|