README changes
Browse files
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 |
-
|
|
|
32 |
|
33 |
-
|
34 |
-
|
|
|
|
|
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)
|