Download yolo11-test.py from WaveMatrix/YOLO11: direct link, hf CLI and curl.
- Browser
- Download file 295 Bytes
-
https://huggingface.co/WaveMatrix/YOLO11/resolve/main/yolo11-test.py
- Command line
-
hf download hf://WaveMatrix/YOLO11/yolo11-test.py
-
curl -L -o yolo11-test.py https://huggingface.co/WaveMatrix/YOLO11/resolve/main/yolo11-test.py
295 Bytes
| from ultralytics import YOLO | |
| # Load a model | |
| model = YOLO("yolo11s.pt") | |
| model.info() | |
| # Use the model | |
| results = model("./images/ssd_horse.jpg") | |
| # Save the results | |
| results[0].save("yolo11s-result.jpg") | |
| # Export to onnx with simplify | |
| model.export(format='onnx', simplify=True) | |