Instructions to use Aleton/Zebra_crossing with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use Aleton/Zebra_crossing with ultralytics:
from huggingface_hub import hf_hub_download from ultralytics import YOLO # pick the weights file from this repo's "Files and versions" tab weights = hf_hub_download("Aleton/Zebra_crossing", "<weights>.pt") model = YOLO(weights) source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -37,4 +37,5 @@ model = YOLO("zebra.pt") # путь к модели
|
|
| 37 |
image = cv2.imread("img/input.jpg")
|
| 38 |
results = model(image)
|
| 39 |
|
| 40 |
-
results[0].save(filename="out.jpg") # сохранение с масками
|
|
|
|
|
|
| 37 |
image = cv2.imread("img/input.jpg")
|
| 38 |
results = model(image)
|
| 39 |
|
| 40 |
+
results[0].save(filename="out.jpg") # сохранение с масками
|
| 41 |
+
```
|