contrastive-unpaired-translation
contrastive-unpaired-translation copied to clipboard
AttributeError: Can't pickle local object 'Visdom.setup_socket.<locals>.run_socket'
AttributeError: Can't pickle local object 'Visdom.setup_socket.
Hi, I went through the same situation.
If your OS environment is windows, try changing the default "num_threads" argument to 0 in base_option.py in the options folder.
Thanks very much!
For reference, @csm-kr 's suggestion also applies to MacOS (Monterey, 12.3.1, with python 3.10.3)
Just comment out line 18 at train.py (opt.visualizer = visualizer). It seems not to be used anywhere but it does force pytorch multiprocessing to try to pickle the visualizer, since the dataset object has an opt object reference.
Using a single thread instead can hurt performance.