Here is my code in python :
`
from ultralytics import YOLO
model = YOLO(‘best.pt’)
results = model.predict(
source = ‘/Users/sereentaleb/Desktop/download.jpg’,
save=True,
conf=0.25
)
`
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.
Sereen Taleb is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.