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

Function generate_pairs

visualize_flow.py:175–184  ·  view source on GitHub ↗
(dirname, start_idx, end_idx)

Source from the content-addressed store, hash-verified

173 return img_pairs
174
175def generate_pairs(dirname, start_idx, end_idx):
176 img_pairs = []
177 for idx in range(start_idx, end_idx):
178 img1 = osp.join(dirname, f'{idx:06}.png')
179 img2 = osp.join(dirname, f'{idx+1:06}.png')
180 # img1 = f'{idx:06}.png'
181 # img2 = f'{idx+1:06}.png'
182 img_pairs.append((img1, img2))
183
184 return img_pairs
185
186if __name__ == '__main__':
187 parser = argparse.ArgumentParser()

Callers 1

visualize_flow.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected