At the moment, Unet models are called in a loop, one image at a time. Model inference time reported by keras is approximately constant, but the overall time per image increases steadily. Over the course of ~1000 images, the slow-down is about 4x - 5x, on Windows and Linux.
This is not a priority right now, but should be fixed eventually. There are at least two aspects
- model inference time. what is the quickest way to get the label? Should we be batching all images together, or continue to use a batch size of 1?
- file I/O and other operations - is there a memory leak causing the slowdown?
Would this eventually be solved by switching to dask?
Leaving this issue here to be looked at later
At the moment, Unet models are called in a loop, one image at a time. Model inference time reported by keras is approximately constant, but the overall time per image increases steadily. Over the course of ~1000 images, the slow-down is about 4x - 5x, on Windows and Linux.
This is not a priority right now, but should be fixed eventually. There are at least two aspects
Would this eventually be solved by switching to dask?
Leaving this issue here to be looked at later