KeyError: 'polyp'

Experts, ‘polyp’ is my category, and only this category, and I’m running on a network called ‘RefineDet.’ how can I fix this?

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.

Thank you for your valuable advice. The problem has been solved