-
Notifications
You must be signed in to change notification settings - Fork 93
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
How to train your own model and apply it? I have come so far but having problem at solver.py #28
Comments
Here the console output of the run main.py
|
There are some that work, some even provide environment files and require very little effort. It's free cutting edge technology, so I can't complain 😅 Would be really cool to be able to make this one work. |
Hi, I don't know if this will help but I thought to mention that you should also check the make_metadat.py file as well (if you haven't already) because as it is, it's hardcoded - maybe that'll help debug the error. I'm able to train with the test folder provided and I haven't tried training with custom data yet. I'll be sure to come back and update you if I run into the same error when I do. |
@tejuafonja yes I have seen it. It defines sound file is male or female. I have given same name for male one. I am still getting error though. I have uploaded my test here so you can check : https://github.com/FurkanGozukara/SpeechSplitTest I will delete the repository once I can run it Thank you very much |
Hi @FurkanGozukara, Propably a bit late but maybe for anyone out there stumbling on this problem here's a fix. The main problem you have is 2hours long wav file. The error you're getting (stopIteration) is exactly because of that. Further down line 141-145 you see this:
Here we try to get the next iterator, which isn't possible (since there's only 1 file for training). Normally (with more than 1 training file) this would solve the problem since we start at the beginning of our training data. But with only 1 file for training it will throw an stopIteration again. So to solve this, just use more than 1 file. You can for example cut your 2hours long wav file in pieces and put them all in the p285 map (it's important that the same voices goes in the same folder). |
@yenebeb so basically if i duplicate my training file it should work i will test ty |
Ok I have downloaded visual studio code to debug and understand
I see that
make_spect_f0.py
is used to generateraptf0
andspmel
folders with valuesSo this make_spect_f0 reads a folder and decides whether it is male voice or female voice from spk2gen.pkl file
So as a beginning I have deleted all folders
raptf0
andspmel
and wavsthen composed a wavs folder and composed another folder inside wavs as p285 which is a male assigned folder
Then inside p285 I have put my more than 2 hours long wav file myfile.wav
Question 1 : Does it have to be 16k hz and mono? or We can use maximum quality?
After I run
make_spect_0.py
, it has composedmyfile.npy
andmyfile.npy
inraptf0
andspmel
foldersThen I did run make_metadata.py and it has composed
train.pkl
insidespmel
Then when I run
main.py
I get this below error atsolver.py
I want to train a model. I don't want test.
Then I want to use this model to convert style of a speech to the trained model
So I need help thank you
@auspicious3000
The text was updated successfully, but these errors were encountered: