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

Function ensure_rng

mmdet/utils/util_random.py:6–34  ·  view source on GitHub ↗

Coerces input into a random number generator. If the input is None, then a global random state is returned. If the input is a numeric value, then that is used as a seed to construct a random state. Otherwise the input is returned as-is. Adapted from [1]_. Args: rng (i

(rng=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

random_boxesFunction · 0.90
randomMethod · 0.90
randomMethod · 0.90
_demodata_refine_boxesFunction · 0.85

Calls

no outgoing calls

Tested by 1

_demodata_refine_boxesFunction · 0.68