Comments (6)
Hi,
-If your goal is to have the best results possible with your second voice, and if you have more samples, use them all.
-The batch size is the number of samples you use to compute each step. Let it be 32.
-I think you should train it a lot longer. One step will just modify a tiny bit your model parameters. Try training it 100k steps
-You are right to delete mel and mags. For your finetuning, you should use only YOUR samples. So check after preprocessing if the files that are in mels and mags have the same name as you files (except for the extension)
-Then train.py 1 (you should listen to samples just after doing this, it may already sound good if your second voice is not
-And potentially train.py 2
Noé
from dc_tts.
Hi Noé! Thank you for your reply!
My goal is to have a somewhat recognizable voice with very little data, as Kyubyong's results here: (https://github.com/Kyubyong/speaker_adapted_tts). He said "I use only one minute of the speech samples. The following are the synthesized samples after 10 minutes of fine-tuning training." This 10 minutes of fine-tuning training is what I'm trying to figure out how to do.
I've been producing my new voice/transcript samples by hand. Generating enough for 100k steps would take forever and kind of defeat the purpose of the seed model, as far as I understand. Or do you mean that I can train it with my same single batch for 100k steps?
from dc_tts.
ok I see, so your goal is more to have good enough results with very few samples.
So indeed 100k step is going to be too much I guess.
But yes, in that case, I think you should do several steps with your same single batch. In fact in your case one step equals one epoch because one batch contains all your samples. The number of epochs is the number of times your system uses the data during training.
It is hard to tell how much steps you should do. So I would suggest you to try several order of magnitudes (e.g. 1, 5, 10, 50, 100, 500, 1k etc.). You could just run it for some time and doing a backup for these specific steps by replacing this in train.py:
if gs % 1000 == 0:
sv.saver.save(sess, logdir + '/model_gs_{}'.format(str(gs // 1000).zfill(3) + "k"))
with something like this:
if gs % 10 == 0:
sv.saver.save(sess, logdir + '/model_gs_{}'.format(str(gs).zfill(6)))
import os, glob
from shutil import copy
if not os.path.exists(logdir+'/backups/'):
os.makedirs(logdir+'/backups/')
if np.log10(gs) % 1 == 0 or np.log10(gs/5)%1==0:
for file in glob.glob(logdir + '/model_gs_{}'.format(str(gs).zfill(6))+'*'):
print(file)
copy(file, logdir+'/backups/')
from dc_tts.
Hi again!
I got a recognizable voice results with setting learning rate to 0.01 and running training for 100 epochs. The audio still has a lot of weird artifacts (for example, my guy added "peng" after the last word in a sentence XD), but I definitely got some progress :D
Also, running train.py 2 resulted in nothing but noise being generated, so I just did train.py 1 to get my results.
Thanks for joining me on this adventure. It's been fun :)
from dc_tts.
Hi @saya1984 ,I have problem in synthesize,The error is:
File "synthesize.py", line 28, in synthesize
saver1.restore(sess, tf.train.latest_checkpoint(hp.logdir + "-1"))
File "./python3.6/site-packages/tensorflow/python/training/saver.py", line 1534, in restore
raise ValueError("Can't load save_path when it is None.")
ValueError: Can't load save_path when it is None.
How can i Fix it
from dc_tts.
ValueError: Can't load save_path when it is None.
I also have this error
from dc_tts.
Related Issues (20)
- No such file or directory: 'mels/LJaudio18.npy'
- Updated wrong files
- Updated wrong files
- Updated wrong files
- Question about normalization code in utils.py
- DLL load failed
- Instead of librosa.stft, what can i use in audio.py? HOT 1
- Issue with training the data HOT 1
- How can I run a demo after training??? HOT 1
- ModuleNotFoundError: No module named 'pydub' HOT 1
- Beginner issue (can't load save_path when it is None) HOT 2
- How to continue training? HOT 3
- Russian speech HOT 3
- ValueError: not enough values to unpack (expected 5, got 2)
- train.py 1 throwing error on slice_input_producer HOT 2
- Rewriting Tensorflow 1.x code to tensorflow 2.x HOT 2
- file not found HOT 1
- how do i do this HOT 2
- making a version of this tts system for assistive tech users
- deleted
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dc_tts.