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

Method random

mmdet/core/mask/structures.py:512–530  ·  view source on GitHub ↗

Generate random bitmap masks for demo / testing purposes. Example: >>> from mmdet.core.mask.structures import BitmapMasks >>> self = BitmapMasks.random() >>> print('self = {}'.format(self)) self = BitmapMasks(num_masks=3, height=32, width=32)

(cls,
               num_masks=3,
               height=32,
               width=32,
               dtype=np.uint8,
               rng=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 10

__call__Method · 0.45
test_general_dataFunction · 0.45
test_instance_dataFunction · 0.45
test_imshow_det_bboxesFunction · 0.45
test_flip_tensorFunction · 0.45
test_avoidoomFunction · 0.45
score_samplesMethod · 0.45
score_samplesMethod · 0.45

Calls 1

ensure_rngFunction · 0.90

Tested by 9

test_general_dataFunction · 0.36
test_instance_dataFunction · 0.36
test_imshow_det_bboxesFunction · 0.36
test_flip_tensorFunction · 0.36
test_avoidoomFunction · 0.36
score_samplesMethod · 0.36
score_samplesMethod · 0.36