In Google Colab when I run model.val()
after running model.train()
the results get saved in the /content/runs/detect/train2
folder in the Colab notebook. I expected the validation results would get saved in a folder named val*
, for example /content/runs/detect/val2
.
Here’s my code:
!uv pip install ultralytics
!pip install roboflow
from roboflow import Roboflow
rf = Roboflow(api_key=[api_key_goes_here])
project = rf.workspace("conveyor-550m0").project("conveyor-hhrzw")
version = project.version(3)
dataset = version.download("yolov11")
from ultralytics import YOLO
model = YOLO("yolo11n.pt")
results = model.val(data="/content/conveyor-3/data.yaml", plots=True) # Results get saved in /content/runs/detect/val, as expected
train_results = model.train(data="/content/conveyor-3/data.yaml", epochs=1) # Results get saved in /content/runs/detect/train, as expected
results = model.val() # Results get saved in /content/runs/detect/train2
Is it expected that the results of the second model.val()
call would get saved in a train*
folder?