erayyapagci fcakyon commited on
Commit
a973403
·
verified ·
1 Parent(s): cec3d58

Update model download & load with safe_download function (#1)

Browse files

- Update model download & load with safe_download function (406fd392f1b0e9f95b97b26335612183df34e9db)


Co-authored-by: Fatih C. Akyon <[email protected]>

Files changed (1) hide show
  1. README.md +3 -1
README.md CHANGED
@@ -49,9 +49,11 @@ This model is optimized for extracting question blocks from dense test papers, w
49
 
50
  ```python
51
  from ultralytics import YOLO
 
52
 
53
  # Load the model
54
- model = YOLO("hf://erayyapagci/yolo11m-question-segmentation")
 
55
 
56
  # Run Inference
57
  # Recommended conf: 0.3 - 0.4
 
49
 
50
  ```python
51
  from ultralytics import YOLO
52
+ from ultralytics.utils.downloads import safe_download
53
 
54
  # Load the model
55
+ model_url = "https://huggingface.co/erayyapagci/yolo11m-question-segmentation/resolve/main/yolov11m-question-seg.pt"
56
+ model = YOLO(safe_download(model_url))
57
 
58
  # Run Inference
59
  # Recommended conf: 0.3 - 0.4