nuts-ml icon indicating copy to clipboard operation
nuts-ml copied to clipboard

ShowImage does not show image when prefetching is active

Open maet3608 opened this issue 7 years ago • 0 comments

When building a pipeline such as ShowImage() >> BuildBatch() no images are displayed because BuildBatch performs prefetching. This is due to a threading problem with matplotlib, which is used for image display.

Workaround: Set prefetching to 0 for bathc builder: BuildBatch(prefetch=0)

maet3608 avatar Feb 13 '17 22:02 maet3608