BreezeWhite / oemer

End-to-end Optical Music Recognition (OMR) system. Transcribe phone-taken music sheet image into MusicXML, which can be edited and converted to MIDI.
https://breezewhite.github.io/oemer/
MIT License
394 stars 46 forks source link

TypeError: cannot pickle 'weakref' object #32

Closed pingpeng1017 closed 1 year ago

pingpeng1017 commented 1 year ago

Hi, I keep getting this error when I try to run the train.py file.

File "C:\Users\Minjoo Lee.conda\envs\oemer\lib\multiprocessing\reduction.py", line 60, in dump ForkingPickler(file, protocol).dump(obj)

TypeError: cannot pickle 'weakref' object

     [[{{node PyFunc}}]]
     [[IteratorGetNext]] [Op:__inference_train_function_35917]
BreezeWhite commented 1 year ago

The oemer/lib/multiprocessing/reduction.py isn't part of oemer, therefore I could not help on the problem. Also please follow the issue template format, providing complete information. Closing this due to lack of information.