Object Detection
ultralytics
yolov11-seg
yolov11
instance-segmentation
computer-vision
deep-learning
port-detection
Instructions to use Sunix2026/Port-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use Sunix2026/Port-model with ultralytics:
from ultralytics import YOLOvv11 model = YOLOvv11.from_pretrained("Sunix2026/Port-model") source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
| # Sample inference script | |
| from ultralytics import YOLO | |
| import json | |
| # Load configuration | |
| with open('config.json', 'r') as f: | |
| config = json.load(f) | |
| # Load model | |
| model = YOLO('model.pt') | |
| # Run inference with config parameters | |
| results = model( | |
| 'your_image.jpg', | |
| conf=config['confidence_threshold'], | |
| iou=config['iou_threshold'], | |
| imgsz=config['input_size'] | |
| ) | |
| # Process results | |
| for result in results: | |
| for box in result.boxes: | |
| class_id = int(box.cls) | |
| class_name = config['id2label'][str(class_id)] | |
| confidence = float(box.conf) | |
| print(f"Detected: {class_name} ({confidence:.2%})") | |