Exemplo n.º 1
0
def load_gmmset(labels, nr_person):
    gmmset = GMMSet(concurrency=8)
    for fpath in sorted(glob.glob('model.new-mfcc/*')):
        fname = os.path.basename(fpath)
        base = fname[:fname.find('.')]
        if base not in labels:
            continue
        if fname.endswith("32.model"):
            print(base, fname)
            gmmset.load_gmm(base, fpath)
    return gmmset
Exemplo n.º 2
0
def load_gmmset(labels, nr_person):
    gmmset = GMMSet(concurrency=8)
    for fpath in sorted(glob.glob('model.new-mfcc/*')):
        fname = os.path.basename(fpath)
        base = fname[:fname.find('.')]
        if base not in labels:
            continue
        if fname.endswith("32.model"):
            print base, fname
            gmmset.load_gmm(base, fpath)
    return gmmset