Views
No views yet
89633left_* и right_* деталиpip install -U ultralytics huggingface_hub1from huggingface_hub import hf_hub_download
2from ultralytics import YOLO
3
4repo_id = "mitbersh/car-parts-segmentation"
5
6weights_path = hf_hub_download(
7 repo_id=repo_id,
8 filename="parts_segmentation.pt"
9)
10
11model = YOLO(weights_path)
12
13results = model.predict(
14 source="path/to/car_image.jpg",
15 imgsz=896,
16 conf=0.25,
17 iou=0.7,
18 save=True
19)
20
21print(results)1yolo segment predict \
2 model=parts_segmentation.pt \
3 source=path/to/car_image.jpg \
4 imgsz=896 \
5 conf=0.25 \
6 iou=0.7 \
7 save=True