if you are using python3, use the option (at the top of your main script, before you import imageio):
import torch
if __name__ == "__main__":
    import torch.multiprocessing
    import torch.multiprocessing.set_start_method("spawn")

I wonder if imageio is not fork-safe, and hence your error.