From be74a8c35b67e375212998501fc6c645b375bf61 Mon Sep 17 00:00:00 2001 From: Aidan Pine Date: Thu, 7 Sep 2023 14:26:25 -0700 Subject: [PATCH] refactor(config): change default log dir from logs to logs_and_checkpoints fixes https://github.com/roedoejet/EveryVoice/issues/39 --- .gitignore | 1 + docs/guides/custom.md | 4 ++-- everyvoice/config/base/base_shared.yaml | 6 +++--- everyvoice/config/default/aligner.yaml | 2 +- everyvoice/config/default/fastspeech2.yaml | 2 +- everyvoice/config/default/hifigan.yaml | 2 +- everyvoice/config/default/istft.yaml | 2 +- everyvoice/config/shared_types.py | 2 +- everyvoice/model/aligner/DeepForcedAligner | 2 +- everyvoice/model/e2e/config/lj_training.yaml | 6 +++--- everyvoice/model/e2e/config/training.yaml | 2 +- everyvoice/model/feature_prediction/FastSpeech2_lightning | 2 +- everyvoice/model/vocoder/HiFiGAN_iSTFT_lightning | 2 +- everyvoice/tests/test_wizard.py | 3 +++ everyvoice/wizard/basic.py | 3 ++- 15 files changed, 23 insertions(+), 18 deletions(-) diff --git a/.gitignore b/.gitignore index 9324eb86..d47888d4 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ __pycache__ .coverage logs +logs_and_checkpoints *.ckpt .vscode *egg-info diff --git a/docs/guides/custom.md b/docs/guides/custom.md index 1ed1eab8..8973ae88 100644 --- a/docs/guides/custom.md +++ b/docs/guides/custom.md @@ -80,7 +80,7 @@ Which would use the GPU accelerator and specify 1 device/chip. To generate audio when you train your feature prediction network, you need to add your vocoder checkpoint to the `config/feature_prediction.yaml` -At the bottom of that file you'll find a key called vocoder_path. Add the absolute path to your trained vocder (here it would be `/path/to/test/logs/VocoderExperiment/base/checkpoints/last.ckpt` where `/path/to` would be the actual path to it on your computer.) +At the bottom of that file you'll find a key called vocoder_path. Add the absolute path to your trained vocder (here it would be `/path/to/test/logs_and_checkpoints/VocoderExperiment/base/checkpoints/last.ckpt` where `/path/to` would be the actual path to it on your computer.) Once you've replaced the vocoder_path key, you can train your feature prediction network: @@ -93,7 +93,7 @@ everyvoice fs2 train -p config/feature_prediction.yaml You can synthesize by pointing the CLI to your trained feature prediction network and passing in the text. You can export to wav, npy, or pt files. ```bash -everyvoice fs2 synthesize logs/FeaturePredictionExperiment/base/checkpoints/last.ckpt -t "මෙදා සැරේ සාකච්ඡාවක් විදියට නෙවෙයි නේද පල කරල තියෙන්නෙ" -a gpu -d 1 -O wav +everyvoice fs2 synthesize logs_and_checkpoints/FeaturePredictionExperiment/base/checkpoints/last.ckpt -t "මෙදා සැරේ සාකච්ඡාවක් විදියට නෙවෙයි නේද පල කරල තියෙන්නෙ" -a gpu -d 1 -O wav ```