AssertionError: daemonic processes are not allowed to have children while doing parallel processing inside the dataloader's __getitem__ method

Hi! I need to do some image processing operations for let’s say n number of times on one image that we get in our dataset through getitem method. So to make it fast rather than using a for loop I am doing multiprocessing after I read the image. But while doing so I get the error mentioned above. I am using multiple workers. So, when I use multiple workers, I get this error but when I use a single worker, I do not get that error. So, is there any possible way to use multiple workers as well as do multiprocessing to do image processing in parallel? Thanks in advance.