yongxuUSTC / sednn

deep learning based speech enhancement using keras or pytorch, make it easy to use
http://staff.ustc.edu.cn/~jundu/The%20team/yongxu/demo/SE_DNN_taslp.html
334 stars 124 forks source link

pickle.load() #59

Open YueChangjie opened 3 years ago

YueChangjie commented 3 years ago

Hello,when I am running program sednn-master(python)/clean2clean_verify/main_train_sednn_keras_v2, When the code runs below

with open('./trnorm.pickle', 'rb') as handle: scaler = pickle.load(handle) print(scaler.mean, scaler.scale_)

ModuleNotFoundError occured, The details is list below: No module named 'sklearn.preprocessing.data'

Do you have any idea about this? Thank you very much

qiuqiangkong commented 3 years ago

Hi, which line caused the error? Do you have sklearn installed?

On Fri, 8 Jan 2021 at 17:28, YueChangjie notifications@github.com wrote:

Hello,when I am running program sednn-master(python)/clean2clean_verify/main_train_sednn_keras_v2, When the code runs below

with open('./trnorm.pickle', 'rb') as handle: scaler = pickle.load(handle) print(scaler.mean, scaler.scale_)

ModuleNotFoundError occured, The details is list below: No module named 'sklearn.preprocessing.data'

Do you have any idea about this? Thank you very much

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/yongxuUSTC/sednn/issues/59, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADFXTSKPBMNVMC4CO2PIYKDSY3F4DANCNFSM4V2F5RWA .

YueChangjie commented 3 years ago

Thank you very much for your quick reply. line 49, scaler = pickle.load(handle) I have installed sklearn

YueChangjie commented 3 years ago

sorry to distrub you, I'll try the online solution first. Thank you very much

YueChangjie commented 3 years ago

你好,方便将sednn-master(python)\clean2clean_verify\tr_norm.pickle的二进制文件发出来吗,我在导入这个文件的时候报错,对应函数main_train_sednn_keras_v2的第49行, No module named 'sklearn.preprocessing.data' 我已安装了sklearn,我发现sklearn的preprocessing里面没有data,难道是因为sklearn版本的原因吗?

qiuqiangkong commented 3 years ago

您好!猜测是sklearn版本问题。建议使用mixture2clean_dnn https://github.com/yongxuUSTC/sednn/tree/master/mixture2clean_dnn或 mixture2clean_dnn_pytorch https://github.com/yongxuUSTC/sednn/tree/master/mixture2clean_dnn_pytorch 下的code。

On Fri, 8 Jan 2021 at 18:11, YueChangjie notifications@github.com wrote:

你好,方便将sednn-master(python)\clean2clean_verify\tr_norm.pickle的二进制文件发出来吗,我在导入这个文件的时候报错,对应函数main_train_sednn_keras_v2的第49行, No module named 'sklearn.preprocessing.data' 我已安装了sklearn,我发现sklearn的preprocessing里面没有data,难道是因为sklearn版本的原因吗?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/yongxuUSTC/sednn/issues/59#issuecomment-756670359, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADFXTSLLTJOZAA6ORMZGX43SY3K3TANCNFSM4V2F5RWA .

YueChangjie commented 3 years ago

好的,十分感谢!