drscotthawley / panotti

A multi-channel neural network audio classifier using Keras
MIT License
271 stars 72 forks source link

fixed global args not working in multiproc on windows #16

Closed vepkenez closed 6 years ago

drscotthawley commented 6 years ago

Hey @vepkenez , thanks! I'm not a Windows user, but I did just learn how to avoid using global arguments via functools.partial. The latest version of preprocess_data.py in the dev branch (https://github.com/drscotthawley/panotti/blob/dev/preprocess_data.py) has this change. Would you mind telling me if that works for you? That would be an OS-independent implementation (hopefully).

vepkenez commented 6 years ago

Yes, your fix works perfectly. Much better!