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

ViewImage and ViewImageAnnotation do not draw when followed by Prefetch/BuildBatch

Open maet3608 opened this issue 6 years ago • 0 comments

for instance, this does not work (but should) load_images >> ViewImage() >> Prefetch() >> Consume()

The following works: load_images >> Prefetch() >> ViewImage() >> Consume

Similarly the moment a BuildBatch() appears somewhere after ViewImage() drawing does not work because BuildBatch internally uses the same code as Prefetch(). This is threading issue due to the fact that matplotlib is not thread safe.

maet3608 avatar Jun 19 '18 00:06 maet3608