My dataset is a coco-style one, containing the hdd surfaces only. The dataset has 2 classes: screw and lid, annotations are done properly and they are stored in the folder structure given in the file. However when I want to display some random samples,here is the image I am getting:

Is there something wrong with the library, or? Resolution of the images are seen in the picture as well.