MCPcopy Create free account
hub / github.com/MotrixLab/ViMoGen / apply

Function apply

datasets/sampler.py:17–24  ·  view source on GitHub ↗
(data, method=None, frame_interval=None, seed=None, num_bucket=None)

Source from the content-addressed store, hash-verified

15# use pandarallel to accelerate bucket processing
16# NOTE: pandarallel should only access local variables
17def apply(data, method=None, frame_interval=None, seed=None, num_bucket=None):
18 return method(
19 data['num_frames'],
20 data['height'],
21 data['width'],
22 frame_interval,
23 seed + data['id'] * num_bucket,
24 )
25
26
27class StatefulDistributedSampler(DistributedSampler):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected