Skip to content

Question about .gcm file shape(produced from merlin toolkit) #12

Description

@Lukelluke

Hi, friend! I know this implement is very mature.
When I use this MCD toolkit as tutorial, i meet some problem:

  1. I wanna calculate MCD of two .wav files.
    2.I convert them into .gcm format by merlin toolkit.

3.However! when i use command cat test_data/corpus.lst | xargs get_mcd_plain test_data/ref-examples test_data/aligned-synth-examples
ps. i refreshed corpus.lst, and work ok use your .gcm files

there occur error like this:
(base) huangshengjie@MacBook-Pro mcd % cat test_data/corpus.lst | xargs get_mcd_dtw test_data/ref-examples test_data/synth-examples processing 2 Traceback (most recent call last): File "/Users/huangshengjie/opt/anaconda3/bin/get_mcd_dtw", line 88, in <module> main(sys.argv) File "/Users/huangshengjie/opt/anaconda3/bin/get_mcd_dtw", line 73, in main nat = getNatVecSeq(uttId) File "/Users/huangshengjie/opt/anaconda3/lib/python3.7/site-packages/htk_io/base.py", line 109, in __call__ obj = self.io.readFile(objFile) File "/Users/huangshengjie/opt/anaconda3/lib/python3.7/site-packages/htk_io/vecseq.py", line 30, in readFile (-1, self.vecSize) File "/Users/huangshengjie/opt/anaconda3/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 292, in reshape return _wrapfunc(a, 'reshape', newshape, order=order) File "/Users/huangshengjie/opt/anaconda3/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 56, in _wrapfunc return getattr(obj, method)(*args, **kwds) ValueError: cannot reshape array of size 38100 into shape (40)

I'm confused about the shape of .gcm files.

Does this problem result from merlin feature extraction? What important details that i missed?

Hope friends who know any about this give your comments ! Thank you urgently!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions