MCPcopy Create free account
hub / github.com/VincentHancoder/SSGD / _poly2mask

Method _poly2mask

mmdet/datasets/pipelines/loading.py:290–315  ·  view source on GitHub ↗

Private function to convert masks represented with polygon to bitmaps. Args: mask_ann (list | dict): Polygon mask annotation input. img_h (int): The height of output mask. img_w (int): The width of output mask. Returns: numpy.

(self, mask_ann, img_h, img_w)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

_load_masksMethod · 0.95

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected