How to specify where to save the file in model.predict(), ultralytics + YOLO?

  Kiến thức lập trình

Here is my code in python :
from ultralytics import YOLO
model = YOLO(‘’)
results = model.predict(
source = ‘/Users/sereentaleb/Desktop/download.jpg’,

This script will save my file in ‘runs/detect/predict’. However, I don’t want it saved there. Is there a way to tell the function to save the file somewhere else? And is there a way to give the file (the file that I did the detection on) a name of my choosing?

I searched the ultralytics documentation for an answer and I couldn’t find anything that helped.

New contributor

Sereen Taleb is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website