An image classifier assigns a label to a whole image. To tell whether it learned the class rather than a background or a near-duplicate, decide how to split the dataset before fitting the model.
Start with a small labelled dataset
Use one folder per class and a consistent image size. In TensorFlow, image_dataset_from_directory can load the folders as labelled batches. For a first experiment use a small pretrained model or a basic baseline, and keep the class-name order with the model.
Prevent data leakage across the splits
Keep photos from the same burst, person, object, or recording together in one split. For example, near-identical photos of the same bicycle should not be divided randomly across training and validation. Fit preprocessing on training data, and use augmentation only on the training split.
Inspect mistakes as well as accuracy
Use a confusion matrix and check sample predictions for underrepresented classes. Keep a separate test split for the final evaluation. If the task needs a box around every object, use object detection instead of whole-image classification.
