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

Method __init__

core/utils/datasets.py:105–120  ·  view source on GitHub ↗
(self, aug_params=None, split='test', root='datasets/Sintel', dstype='clean')

Source from the content-addressed store, hash-verified

103
104class MpiSintel_submission(FlowDataset):
105 def __init__(self, aug_params=None, split='test', root='datasets/Sintel', dstype='clean'):
106 super(MpiSintel_submission, self).__init__(aug_params)
107 flow_root = osp.join(root, split, 'flow')
108 image_root = osp.join(root, split, dstype)
109
110 if split == 'test':
111 self.is_test = True
112
113 for scene in os.listdir(image_root):
114 image_list = sorted(glob(osp.join(image_root, scene, '*.png')))
115 for i in range(len(image_list)-1):
116 self.image_list += [ [image_list[i], image_list[i+1]] ]
117 self.extra_info += [ (scene, i) ] # scene and frame_id
118
119 if split != 'test':
120 self.flow_list += sorted(glob(osp.join(flow_root, scene, '*.flo')))
121
122class MpiSintel(FlowDataset):
123 def __init__(self, aug_params=None, split='training', root='datasets/Sintel', dstype='clean'):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected