Hi, my setup is rather straightforward: my DataLoader’s getitem functions opens up an Image, and crops it using pre-determined coordinates. I want these coordinates to be the same for a whole batch of images, but then change for each subsequent batch.
Unfortunately, I can’t find a way to do that with DataLoader workers, as I have no means of telling  them that a full batch has been completed and that they should move on to new crop coordinates (which are random but could be pre computed).
The only hacks I can see around it for the moment would be to rely on reading a file (with all the multiprocessing locking issues that could arise) or to use the time to roughly synchronize batches (e.g. change crop coordinates every 5min on the clock etc.).
I feel like there should be an easy way for me to communicate with all workers to tell them to update their crop coordinates, but I can’t seem to find it.
Thanks in advance,
Julien