MCPcopy Index your code
hub / github.com/MotrixLab/ViMoGen / _get_value

Function _get_value

utils.py:174–178  ·  view source on GitHub ↗
(key: str, default: float)

Source from the content-addressed store, hash-verified

172 device = ref_motion.device
173
174 def _get_value(key: str, default: float):
175 range_key = f'{key}_range'
176 if cfg.get(range_key, None) is not None:
177 return cfg.get(range_key)
178 return cfg.get(key, default)
179
180 corruption_kwargs = dict(
181 corrupt_rate=sample_from_range(_get_value('corrupt_rate', 0.1),

Callers 1

maybe_corrupt_ref_motionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected