Janspiry / Image-Super-Resolution-via-Iterative-Refinement

Unofficial implementation of Image Super-Resolution via Iterative Refinement by Pytorch
Apache License 2.0
3.6k stars 469 forks source link

prepare_data TypeError: cannot pickle 'Environment' object #141

Closed Satournine closed 10 months ago

Satournine commented 10 months ago

\lib\multiprocessing\reduction.py", line 60, in dump ForkingPickler(file, protocol).dump(obj) TypeError: cannot pickle 'Environment' object

\multiprocessing\spawn.py", line 126, in _main self = reduction.pickle.load(from_parent) EOFError: Ran out of input

raminduw200 commented 4 months ago

Change the --n_worker to 0 (default is 3) Reference: https://github.com/pytorch/examples/issues/526