取消选择保存的文件

时间:2019-01-11 10:54:21

标签: python pickle gmm

我使用下面的代码使用cPickle保存了模型

picklefile = path.split("-")[0]+".gmm"
cPickle.dump(gmm,open(dest + picklefile,'w'))
print '+ modeling completed for speaker:',picklefile," with data point = ",features.shape    
features = np.asarray(())
count = 0 

现在我想使用此方法解开文件

models    = [cPickle.load(open(fname,'r')) for fname in gmm_files]

但是我得到这个错误:

models    = [cPickle.load(open(fname,'r')) for fname in gmm_files]
ImportError: No module named gmm

我希望输出能够解开保存的文件

0 个答案:

没有答案