Closed lyehe closed 1 year ago
``Temporary (?) solution
Keep the batch request in the for loop should solve the problem. e.g.,
with gp.build(pipeline):
for i in range(3):
request = gp.BatchRequest()
request[raw] = gp.Roi((0, 0), (256, 256))
request[gt] = gp.Roi((0, 0), (256, 256))
batch = pipeline.request_batch(request)
imshow(batch[raw].data, batch[gt].data) # custom plot function
This has been solved: https://github.com/funkelab/gunpowder/commit/dfde284bde5420e206db9ba99795514aa1cd2fe4
I am trying to use the gunpowder.Stack class to request a stack of random images from the source (saying 5). The returned image stacks always have one new random image appended on the previous batch request. (saying 4 old images + 1 new image).
To reproduce the issue:
The image shows outputs from batch requests: