Shortcuts

VOCAveragePrecision

class mmpretrain.evaluation.VOCAveragePrecision(*arg, difficult_as_positive=None, **kwarg)[source]

Calculate the average precision with respect of classes for VOC dataset.

Parameters:
  • difficult_as_postive (Optional[bool]) – Whether to map the difficult labels as positive in one-hot ground truth for evaluation. If it set to True, map difficult gt labels to positive ones(1), If it set to False, map difficult gt labels to negative ones(0). Defaults to None, the difficult labels will be set to ‘-1’.

  • **kwarg – Refers to AveragePrecision for detailed docstrings.