Instructions to use erayyapagci/yolo26n-question-segmentation-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use erayyapagci/yolo26n-question-segmentation-v2 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/yolo26n-question-segmentation-v2") source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
Upload model card, weights, and evaluation artifacts
Browse files
README.md
CHANGED
|
@@ -73,9 +73,20 @@ Additional side-by-side examples are included in `comparison_examples/`.
|
|
| 73 |
## Usage
|
| 74 |
|
| 75 |
```python
|
|
|
|
| 76 |
from ultralytics import YOLO
|
| 77 |
|
| 78 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
results = model("page.png", imgsz=1280, conf=0.25)
|
| 80 |
```
|
| 81 |
|
|
|
|
| 73 |
## Usage
|
| 74 |
|
| 75 |
```python
|
| 76 |
+
from huggingface_hub import hf_hub_download
|
| 77 |
from ultralytics import YOLO
|
| 78 |
|
| 79 |
+
weights = hf_hub_download(repo_id="erayyapagci/yolo26n-question-segmentation", filename="best.pt")
|
| 80 |
+
model = YOLO(weights)
|
| 81 |
+
results = model("page.png", imgsz=1280, conf=0.25)
|
| 82 |
+
```
|
| 83 |
+
|
| 84 |
+
Direct URL loading also works:
|
| 85 |
+
|
| 86 |
+
```python
|
| 87 |
+
from ultralytics import YOLO
|
| 88 |
+
|
| 89 |
+
model = YOLO("https://huggingface.co/erayyapagci/yolo26n-question-segmentation/resolve/main/best.pt")
|
| 90 |
results = model("page.png", imgsz=1280, conf=0.25)
|
| 91 |
```
|
| 92 |
|