erayyapagci commited on
Commit
2a315b3
·
verified ·
1 Parent(s): 4c3dcd7

Upload model card, weights, and evaluation artifacts

Browse files
Files changed (1) hide show
  1. README.md +12 -1
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
- model = YOLO("hf://erayyapagci/yolo26n-question-segmentation")
 
 
 
 
 
 
 
 
 
 
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