In [1]예측기 준비 (GPU · FP16)
from ultralytics.models.sam import SAM3SemanticPredictor
overrides = {"conf": 0.25, "task": "segment", "mode": "predict",
"model": "models/sam3.pt", "quantize": 16, "save": True}
predictor = SAM3SemanticPredictor(overrides=overrides)
predictor.set_image("images/test_image.jpg")
Out[1] 출력 보기
Ultralytics 8.4.171 Python-3.11.15 torch-2.14.1+cu126 CUDA:0 (NVIDIA GeForce RTX 4070 Laptop GPU, 8188MiB) WARNING imgsz=[640] must be multiple of max stride 14, updating to [644]
