How to train model on specific classes from dataset for object detection?
You need to change xml or csv files of bounding boxes and from there you need to remove the all classes other then your 5 classes.