-1 map in some classes for MeanAveragePrecision metric

Hi! I´m using the MeanAveragePrecision metric from torch metrics to check the performance of my model. Despite working well for some classes, there are two of them that returns -1 mAP, does anyone know the reason of that? How can I fix it?

Thanks in advance