yizhiwang96 / deepvecfont

[SIGGRAPH Asia 2021] DeepVecFont: Synthesizing High-quality Vector Fonts via Dual-modality Learning
MIT License
182 stars 31 forks source link

AttributeError: Can't pickle local object 'get_loader.<locals>.<lambda>' #3

Closed simoncozens closed 2 years ago

simoncozens commented 2 years ago

Just a note for anyone attempting to train the model on OS X and coming across this error message - due to an issue in torch (see e.g. https://github.com/pyg-team/pytorch_geometric/issues/366) you will need to replace num_workers=batch_size with num_workers=0 in here: https://github.com/yizhiwang96/deepvecfont/blob/e52166bfd5ffbcd4bd705e9a53fc578e1f956673/dataloader.py#L49 (Yes, this will seriously kill performance.)