pytorch-CycleGAN-and-pix2pix
pytorch-CycleGAN-and-pix2pix copied to clipboard
AttributeError: Can't pickle local object 'get_transform.<locals>.<lambda>'
when I change the configuration of preprocess to "none" so that I can keep the size of my original picture,the problem occurs as following. Maybe the lambda in the transforms.Lambda should change.
Traceback (most recent call last):
File "D:/WORKSPACE/py_temp/pytorch-CycleGAN-and-pix2pix-master/train.py", line 47, in
This is due to your environment. I would suggest you try setting num_threads to 0 and reinstall some packages (follow the requirements).
Is there any solution? I met the same problem.
Thanks @JunlinHan, I’m sorry for not replying in time. For the solution , @KingOnTheStar, I had not continued to follow up on the issue later. But I think the author's suggestion might be right.
change the "num_threads" to "0"