Agmiyas commited on
Commit
25858a9
1 Parent(s): 8e96920

README changes

Browse files
Files changed (1) hide show
  1. README.md +6 -3
README.md CHANGED
@@ -28,10 +28,13 @@ pip install ultralytics
28
  You can do the predictions with the following code snippet:
29
  ```
30
  import ultralytics
31
- from ultralytics import YOLO
 
32
 
33
- # Load weights for YOLO from our repository
34
- model = YOLO('best.pt')
 
 
35
 
36
  # Do the predictions
37
  model.predict(source="path_to_your_image", save=True, show=True, show_labels=False, show_conf=False, conf=0.3)
 
28
  You can do the predictions with the following code snippet:
29
  ```
30
  import ultralytics
31
+ import detector
32
+ from huggingface_hub import hf_hub_download
33
 
34
+ model_path = hf_hub_download(local_dir=".",
35
+ repo_id="armvectores/yolov5_handwritten_text_detection",
36
+ filename="best.pt")
37
+ model = detector.load_model(model_path)
38
 
39
  # Do the predictions
40
  model.predict(source="path_to_your_image", save=True, show=True, show_labels=False, show_conf=False, conf=0.3)