Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question about run and dataset #1

Closed
qianbudiao6 opened this issue Nov 5, 2018 · 6 comments
Closed

question about run and dataset #1

qianbudiao6 opened this issue Nov 5, 2018 · 6 comments

Comments

@qianbudiao6
Copy link

qianbudiao6 commented Nov 5, 2018

Hello, I am currently researching speaker recognition. I think your code is very valuable. I want to run it for learning. How can I run this code? How can I get an eer and accuracy image as shown below? Is it possible to provide a tutorial like this.... Besides, can you share a link to the speech library you are using to implement this code? thank you~

@Walleclipse
Copy link
Owner

I am apologize that I just saw the issues.

  1. preprare data. You want to prepare the data just as Librispeech Data format or KALDI data format. Please check folder audio/LibriSpeechSamples/train-clean-100 . Folder was named by speaker name, and each speaker contains some .wav audios
  2. If you data is kaldi format just run python kaldi_form_preprocess.py , If data format similar to Librispeech Data just run python preprocess.py
  3. python train.py to training your model . Model is defined in model.py. EER during training will be saved。
  4. use utils.py to plot_loss_acc.
  5. I am sorry. I am not quite understant of your last question "speech library you are using to implement this code?"

@Hard-working-bee
Copy link

你好,我在运行你代码的时候,发现train.py是个死循环呀,一直在训练,没有终止``
image
,但我在while true之后加上#if grad_steps>3000: #break
之后,重新运行train.py错误率为0。还有最后readme里面的图像怎么画的呀

@izhangy
Copy link

izhangy commented Dec 3, 2019

您好,在复现您的程序的时候,运行units.py之后没有任何结果出来是怎么回事?
train.py训练结束以后,也没有checkpoint保存,请问是哪里出错了吗?

@Walleclipse
Copy link
Owner

你好,我在运行你代码的时候,发现train.py是个死循环呀,一直在训练,没有终止``
image
,但我在while true之后加上#if grad_steps>3000: #break
之后,重新运行train.py错误率为0。还有最后readme里面的图像怎么画的呀

@Walleclipse
Copy link
Owner

你好,我在运行你代码的时候,发现train.py是个死循环呀,一直在训练,没有终止``
image
,但我在while true之后加上#if grad_steps>3000: #break
之后,重新运行train.py错误率为0。还有最后readme里面的图像怎么画的呀

1)首先,你训练的步数太少了,一般训练10,000步以上。然后你可能只用了我给的sample data,这个数据少,并且训练和测试用了同一个数据,所以错误率为0。你需要从 LibriSpeech 下载完整的数据。
2)Readme 里的图通过调用 utils.py 里面的 def plot_loss 来画

@Walleclipse
Copy link
Owner

您好,在复现您的程序的时候,运行units.py之后没有任何结果出来是怎么回事?
train.py训练结束以后,也没有checkpoint保存,请问是哪里出错了吗?

1)Readme 里的图通过调用 utils.py 里面的 def plot_loss 来画 e.g.

import constants as c
from utils import plot_loss
loss_file=c.CHECKPOINT_FOLDER+'/losses.txt' # loss file path
plot_loss(loss_file)
  1. 没有checkpoint保存是因为可能没有到保存的步数,你就停止了程序。默认情况下c.SAVE_PER_EPOCHS=200, 你可以在constants.py 里减少 SAVE_PER_EPOCHS,从而让该程序早点保存checkpoint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants