Instructions to use Davidsv/CourtSide-Computer-Vision-v0.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use Davidsv/CourtSide-Computer-Vision-v0.1 with ultralytics:
from ultralytics import YOLOvv11 model = YOLOvv11.from_pretrained("Davidsv/CourtSide-Computer-Vision-v0.1") source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
| #!/usr/bin/env python | |
| # Example usage for tennis-ball-yolov11 | |
| from ultralytics import YOLO | |
| # Load model from local file | |
| model = YOLO('model.pt') | |
| # Or download from Hugging Face (after upload) | |
| # model = YOLO('hf://YOUR_USERNAME/tennis-ball-yolov11/model.pt') | |
| # Predict on image | |
| results = model.predict('image.jpg', conf=0.3) | |
| results[0].show() | |
| # Predict on video | |
| results = model.predict('video.mp4', conf=0.3, save=True) | |