I’m using imageio's video reader to read frames from a video. I’m getting an error (seemingly consistently between 10,000 to 20,000 steps of training, never mind specifically how much that is) that imageio.core.format.CannotReadFrameError: Could not read frame -1: Frame is 0 bytes, but expected 1244160. This is not due to me passing in the wrong index (this causes different errors when I purposely cause this to happen). It seems to be internal to imageio, and I thought it might be due to the multiprocessing in someway (it still possibly might be, but not due to a shared reader).
I had suspected the multiprocessing due to a similar issue someone else mentioned 14, but they had resolved it by creating separate instances of the reader.