You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a few questions about the use of train, test, and validation sets during my model training process that remain unclear. I’ll describe my situation below to provide more context:
I split my dataset into two folders: train and test.
In the rgb.yaml file, I set the test folder as the validation set.
path: '/home/user/my_datasets/'train: 'dataset_1/train/rgb/'val: 'dataset_1/test/rgb/'# class namesnames:
0: 'human'
In the main code, I disabled early stopping by setting patience=0 and trained the model for 50 epochs.
I used the low-scratch.yaml hyperparameter profile to enhance data augmentation.
My main code:
fromultralyticsimportYOLOdatasets= ['rgb.yaml']
yolo_models= ['yolov6s.yaml','yolov5s.yaml','yolov8s.yaml','yolov9s.yaml','yolov10s.yaml','yolo11s.yaml']
epochs=50fordatasetindatasets:
foryolo_modelinyolo_models:
model=YOLO(yolo_model,task='detect') # Create a new model to trainmodel.train(
epochs=epochs, #NUMBER EPOCHS TO TRAINbatch=0.9, #TO USE 90% GPU MEMORYsingle_cls=True, #TO TRAIN WITH ONLY ONE CLASSimgsz=640, # TO REZISE IMAGES, DEFAULT 640data=dataset, #TO DEFINE YAML DATASET FILEpatience=0, #TO AVOID EARLY STOPsave=True, #TO SAVE CHECKPOINTS AND FINAL MODEL WEIGHTSproject=yolo_model.split('.')[0], #NAME OF PROJECTname=dataset.split('.')[0], #SUB-NAME OF PROJECT or MODALITYplots=True#TO SHOW PLOTS OF TRAINNING AND VALIDATION METRICS
)
Based on the details above, I have the following questions:
When is data augmentation applied?
Is data augmentation performed on the train set, the validation set, or both?
At what stage is validation conducted?
Can my test (used as validation) folder be considered "unseen" data, given that I have disabled early stopping?
Can I consider given metrics (P, R, mAP50 and mAP50:95) at end training as test evaluation, given that I have disabled early stopping?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello everyone!
I have a few questions about the use of train, test, and validation sets during my model training process that remain unclear. I’ll describe my situation below to provide more context:
train
andtest
.rgb.yaml
file, I set the test folder as thevalidation
set.patience=0
and trained the model for 50 epochs.low-scratch.yaml
hyperparameter profile to enhance data augmentation.My main code:
Based on the details above, I have the following questions:
test
(used as validation) folder be considered "unseen" data, given that I have disabled early stopping?Beta Was this translation helpful? Give feedback.
All reactions