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

Method __init__

core/datasets.py:103–118  ·  view source on GitHub ↗
(self, aug_params=None, split='training', root='datasets/Sintel', dstype='clean')

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected