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

Method random

mmdet/core/mask/structures.py:920–1037  ·  view source on GitHub ↗

Generate random polygon masks for demo / testing purposes. Adapted from [1]_ References: .. [1] https://gitlab.kitware.com/computer-vision/kwimage/-/blob/928cae35ca8/kwimage/structs/polygon.py#L379 # noqa: E501 Example: >>> from mmdet.core.mask.str

(cls,
               num_masks=3,
               height=32,
               width=32,
               n_verts=5,
               dtype=np.float32,
               rng=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

ensure_rngFunction · 0.90

Tested by

no test coverage detected