Skip to content

Commit

Permalink
Merge pull request #3 from wakiyamap/master
Browse files Browse the repository at this point in the history
Fix path
  • Loading branch information
Hiroshiba committed Jan 22, 2020
2 parents 55864e3 + 39ad2aa commit a8cd36b
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 26 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Here, each filename is as follows:
| Content | Filename |
| ---- | ---- |
| Frequency statistics for input voice | `./sample/input_statistics.npy` |
| Frequency statistics for target voice | `./sample/tareget_statistics.npy` |
| Frequency statistics for target voice | `./sample/target_statistics.npy` |
| First stage model from [Yukarin](https://github.com/Hiroshiba/yukarin) | `./sample/model_stage1/predictor.npz` |
| First stage's config file | `./sample/model_stage1/config.json` |
| Second stage model from [Become Yukarin](https://github.com/Hiroshiba/become-yukarin) | `./sample/model_stage2/predictor.npz` |
Expand All @@ -48,12 +48,12 @@ python check.py \
--input_path 'input.wav' \
--input_time_length 5 \
--output_path 'output.wav' \
--input_statistics_path './sample/model_stage1/predictor.npz' \
--target_statistics_path './sample/model_stage1/config.json' \
--stage1_model_path './sample/model_stage2/predictor.npz' \
--stage1_config_path './sample/model_stage2/config.json' \
--stage2_model_path './sample/input_statistics.npy' \
--stage2_config_path './sample/tareget_statistics.npy' \
--input_statistics_path './sample/input_statistics.npy' \
--target_statistics_path './sample/target_statistics.npy' \
--stage1_model_path './sample/model_stage1/predictor.npz' \
--stage1_config_path './sample/model_stage1/config.json' \
--stage2_model_path './sample/model_stage2/predictor.npz' \
--stage2_config_path './sample/model_stage2/config.json' \

```

Expand Down
14 changes: 7 additions & 7 deletions README_jp.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pip install -r requirements.txt
| 説明 | ファイル名 |
| ---- | ---- |
| 入力音声の周波数の統計量のファイル | `./sample/input_statistics.npy` |
| 目標音声の周波数の統計量のファイル | `./sample/tareget_statistics.npy` |
| 目標音声の周波数の統計量のファイル | `./sample/target_statistics.npy` |
| [Yukarin](https://github.com/Hiroshiba/yukarin)製の第1段階モデル | `./sample/model_stage1/predictor.npz` |
| 第1段階モデルの設定ファイル | `./sample/model_stage1/config.json` |
| [Become Yukarin](https://github.com/Hiroshiba/become-yukarin)製の第2段階モデル | `./sample/model_stage2/predictor.npz` |
Expand All @@ -47,12 +47,12 @@ python check.py \
--input_path 'input.wav' \
--input_time_length 5 \
--output_path 'output.wav' \
--input_statistics_path './sample/model_stage1/predictor.npz' \
--target_statistics_path './sample/model_stage1/config.json' \
--stage1_model_path './sample/model_stage2/predictor.npz' \
--stage1_config_path './sample/model_stage2/config.json' \
--stage2_model_path './sample/input_statistics.npy' \
--stage2_config_path './sample/tareget_statistics.npy' \
--input_statistics_path './sample/input_statistics.npy' \
--target_statistics_path './sample/target_statistics.npy' \
--stage1_model_path './sample/model_stage1/predictor.npz' \
--stage1_config_path './sample/model_stage1/config.json' \
--stage2_model_path './sample/model_stage2/predictor.npz' \
--stage2_config_path './sample/model_stage2/config.json' \

```

Expand Down
12 changes: 6 additions & 6 deletions check.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,12 @@ def _remove(_streams: Tuple[BaseStream, BaseStream, BaseStream]):
parser.add_argument('--input_path', type=Path)
parser.add_argument('--input_time_length', type=int)
parser.add_argument('--output_path', type=Path, default=Path('output.wav'))
parser.add_argument('--input_statistics_path', type=Path, default=Path('./sample/model_stage1/predictor.npz'))
parser.add_argument('--target_statistics_path', type=Path, default=Path('./sample/model_stage1/config.json'))
parser.add_argument('--stage1_model_path', type=Path, default=Path('./sample/model_stage2/predictor.npz'))
parser.add_argument('--stage1_config_path', type=Path, default=Path('./sample/model_stage2/config.json'))
parser.add_argument('--stage2_model_path', type=Path, default=Path('./sample/input_statistics.npy'))
parser.add_argument('--stage2_config_path', type=Path, default=Path('./sample/tareget_statistics.npy'))
parser.add_argument('--input_statistics_path', type=Path, default=Path('./sample/input_statistics.npy'))
parser.add_argument('--target_statistics_path', type=Path, default=Path('./sample/target_statistics.npy'))
parser.add_argument('--stage1_model_path', type=Path, default=Path('./sample/model_stage1/predictor.npz'))
parser.add_argument('--stage1_config_path', type=Path, default=Path('./sample/model_stage1/config.json'))
parser.add_argument('--stage2_model_path', type=Path, default=Path('./sample/model_stage2/predictor.npz'))
parser.add_argument('--stage2_config_path', type=Path, default=Path('./sample/model_stage2/config.json'))
args = parser.parse_args()

check(
Expand Down
12 changes: 6 additions & 6 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ encode_extra_time: 0.0
convert_extra_time: 0.5
decode_extra_time: 0.0

input_statistics_path: './sample/model_stage1/predictor.npz'
target_statistics_path: './sample/model_stage1/config.json'
stage1_model_path: './sample/model_stage2/predictor.npz'
stage1_config_path: './sample/model_stage2/config.json'
stage2_model_path: './sample/input_statistics.npy'
stage2_config_path: './sample/tareget_statistics.npy'
input_statistics_path: './sample/input_statistics.npy'
target_statistics_path: './sample/target_statistics.npy'
stage1_model_path: './sample/model_stage1/predictor.npz'
stage1_config_path: './sample/model_stage1/config.json'
stage2_model_path: './sample/model_stage2/predictor.npz'
stage2_config_path: './sample/model_stage2/config.json'

0 comments on commit a8cd36b

Please sign in to comment.