Taking another look at the source code, it looks like it is intended for classification. However, I’m not sure COCO is really a classification dataset but really a detection dataset. Do you have a link to the dataset you are using or can you describe the organization of the images/folders?