The decision of whether to add images to the validation or training set is made when an annotation is saved. This however happens for each class and so images may be in the training set for one class and validation set for another class. The model could therefore potentially overfit to the validation set.
A simple fix could be to check if the file is already in the training or validation set for another class before choosing the set.
The decision of whether to add images to the validation or training set is made when an annotation is saved. This however happens for each class and so images may be in the training set for one class and validation set for another class. The model could therefore potentially overfit to the validation set.
A simple fix could be to check if the file is already in the training or validation set for another class before choosing the set.