HarryVolek/PyTorch_Speaker_Verification

How to create train_sequence.npy, and train_cluster_ids.npy.

Closed this issue · 12 comments

When I run the dvector.py file, it only creates test_sequence.npy, and test_cluster_ids.npy. How do I create train_sequence.npy, and train_cluster_ids.npy files with dvector.py?

    if not train_saved and i > train_speaker_num:
        np.save('train_sequence',train_sequence)
        np.save('train_cluster_id',train_cluster_id)

np.save('test_sequence',train_sequence)
np.save('test_cluster_id',train_cluster_id)

how come it will only give you test.npy???

@BarCodeReader That's the thing which is bothering me. I don't know why it creates only ''test_sequence', 'test_cluster_id' while it should create both train and test npy files when train_saved = False is set.

then means the i in the loop never triggers the condition...then probably you have some problem with your audio_path setting...

Yes, I think too. I have let default settings audio_path = glob.glob(os.path.dirname(hp.unprocessed_data)) in dvetor.py file while I have changed this

training: !!bool "true"
device: "cuda"
unprocessed_data: './voice samples/*/*/*.wav'
---
data:
    train_path: './train_tisv'
    train_path_unprocessed: './voice samples/train/*/*.wav'
    test_path: './test_tisv' 
    test_path_unprocessed: './voice samples/test/*/*.wav'

in the config file. Do you see anything odd? Also I have replaced all 'WAV' to 'wav' in the every file.

i think one easy way is to print out all your path in another notebook to check if they are all right...also you need to check you have enough files in each path...

i think one easy way is to print out all your path in another notebook to check if they are all right...also you need to check you have enough files in each path...

I have checked that out already.

can upload the .py file to your space? then I take a look there

can upload the .py file to your space? then I take a look there

what do you mean? which file?

you can upload your work to github as a repository then i can check through..i think the dvector_create and .yaml file is enough..

you can upload your work to github as a repository then i can check through..i think the dvector_create and .yaml file is enough..

I have sent you an invitation, please check.

you can upload your work to github as a repository then i can check through..i think the dvector_create and .yaml file is enough..

I have sent you an invitation, please check.

Did you find anything yet?

I typeset the code and everything works like a charm now.