It seems the error is raised, since 'polyp'  isn’t defined in the self.class_to_ind dict.
Also it seems your data loading pipeline is implemented in RefineDet.PyTorch-master/data, so you might get a better answer from the maintainers of the used repository.