MCPcopy Create free account
hub / github.com/PaddlePaddle/Research / reader_flyingchairs

Function reader_flyingchairs

CV/PWCNet/data/datasets.py:217–224  ·  view source on GitHub ↗
(dataset)

Source from the content-addressed store, hash-verified

215
216
217def reader_flyingchairs(dataset):
218 n = len(dataset)
219
220 def reader():
221 for i in range(n):
222 a, b = dataset[i]
223 yield a[0][:,0,:,:].transpose(1,2,0), a[0][:,1,:,:].transpose(1,2,0), b[0].transpose(1, 2, 0)# a single entry of data is created each time
224 return reader
225
226
227class FlyingThings(object):

Callers 2

mainFunction · 0.90
datasets.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected