提交 51fee991 编写于 作者: C chenfeiyu

update train.py cli argument, load a wavenet model

上级 44e61e07
...@@ -28,21 +28,18 @@ Train the model using train.py, follow the usage displayed by `python train.py - ...@@ -28,21 +28,18 @@ Train the model using train.py, follow the usage displayed by `python train.py -
```text ```text
usage: train.py [-h] [--config CONFIG] [--device DEVICE] [--output OUTPUT] usage: train.py [-h] [--config CONFIG] [--device DEVICE] [--output OUTPUT]
[--data DATA] [--resume RESUME] [--conditioner CONDITIONER] [--data DATA] [--resume RESUME] [--wavenet WAVENET]
[--teacher TEACHER]
train a clarinet model with LJspeech and a trained wavenet model. train a clarinet model with LJspeech and a trained wavenet model.
optional arguments: optional arguments:
-h, --help show this help message and exit -h, --help show this help message and exit
--config CONFIG path of the config file. --config CONFIG path of the config file.
--device DEVICE device to use. --device DEVICE device to use.
--output OUTPUT path to save student. --output OUTPUT path to save student.
--data DATA path of LJspeech dataset. --data DATA path of LJspeech dataset.
--resume RESUME checkpoint to load from. --resume RESUME checkpoint to load from.
--conditioner CONDITIONER --wavenet WAVENET wavenet checkpoint to use.
conditioner checkpoint to use.
--teacher TEACHER teacher checkpoint to use.
``` ```
1. `--config` is the configuration file to use. The provided configurations can be used directly. And you can change some values in the configuration file and train the model with a different config. 1. `--config` is the configuration file to use. The provided configurations can be used directly. And you can change some values in the configuration file and train the model with a different config.
...@@ -57,8 +54,8 @@ optional arguments: ...@@ -57,8 +54,8 @@ optional arguments:
``` ```
5. `--device` is the device (gpu id) to use for training. `-1` means CPU. 5. `--device` is the device (gpu id) to use for training. `-1` means CPU.
6. `--conditioner` is the path of the checkpoint to load for the `conditioner` part of clarinet. if you do not specify `--resume`, then this must be provided. 6. `--wavenet` is the path of the wavenet checkpoint to load. if you do not specify `--resume`, then this must be provided.
7. `--teacher` is the path of the checkpoint to load for the `teacher` part of clarinet. if you do not specify `--resume`, then this must be provided.
Before you start training a clarinet model, you should have trained a wavenet model with single gaussian as output distribution. Make sure the config for teacher matches that for the trained model. Before you start training a clarinet model, you should have trained a wavenet model with single gaussian as output distribution. Make sure the config for teacher matches that for the trained model.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册