MCPcopy Create free account
hub / github.com/drinkingcoder/FlowFormer-Official / __init__

Method __init__

core/datasets.py:19–32  ·  view source on GitHub ↗
(self, aug_params=None, sparse=False)

Source from the content-addressed store, hash-verified

17
18class FlowDataset(data.Dataset):
19 def __init__(self, aug_params=None, sparse=False):
20 self.augmentor = None
21 self.sparse = sparse
22 if aug_params is not None:
23 if sparse:
24 self.augmentor = SparseFlowAugmentor(**aug_params)
25 else:
26 self.augmentor = FlowAugmentor(**aug_params)
27
28 self.is_test = False
29 self.init_seed = False
30 self.flow_list = []
31 self.image_list = []
32 self.extra_info = []
33
34 def __getitem__(self, index):
35

Callers

nothing calls this directly

Calls 2

SparseFlowAugmentorClass · 0.90
FlowAugmentorClass · 0.90

Tested by

no test coverage detected