Views
No views yet
1git lfs install
2git clone https://huggingface.co/fierce-cats/beatrice-trainer
3cd beatrice-trainer1poetry install
2poetry shell
3# Alternatively, you can use pip to install dependencies directly:
4# pip3 install -e .python3 beatrice_trainer -h で以下のようなヘルプが表示されます。usage: beatrice_trainer [-h] [-d DATA_DIR] [-o OUT_DIR] [-r] [-c CONFIG]
options:
-h, --help show this help message and exit
-d DATA_DIR, --data_dir DATA_DIR
directory containing the training data
-o OUT_DIR, --out_dir OUT_DIR
output directory
-r, --resume resume training
-c CONFIG, --config CONFIG
path to the config fileyour_training_data_dir
+---alice
| +---alices_wonderful_speech.wav
| +---alices_excellent_speech.flac // FLAC, MP3, and some other formats are also okay.
| `---...
+---bob
| +---bobs_fantastic_speech.wav
| +---bobs_speeches
| | `---bobs_awesome_speech.wav // Audio files in nested directory will also be used.
| `---...
`---...your_training_data_dir_with_only_one_speaker
+---charlies_brilliant_speech.wav // Wrong.
`---...your_training_data_dir_with_only_one_speaker
`---charlie
+---charlies_brilliant_speech.wav // Correct!
`---...python3 beatrice_trainer -d <your_training_data_dir> -o <output_dir>tensorboard --logdir <output_dir>paraphernalia_(data_dir_name)_(step) という名前のディレクトリが生成されています。
このディレクトリを公式 VST や VC Client で読み込むことで、ストリーム (リアルタイム) 変換を行うことができます。assets/default_config.json を別の場所にコピーして値を編集し、 -c でファイルを指定します。
assets/default_config.json を直接編集すると壊れるので注意してください。data_dir キーと out_dir キーを追加し、学習データを配置したディレクトリと出力ディレクトリを絶対パスまたはリポジトリルートからの相対パスで記載することで、コマンドライン引数での指定を省略できます。python3 beatrice_trainer -c <your_config.json>checkpoint_latest.pt が生成されていれば、その学習を行っていたコマンドに -r オプションを追加して実行することで、最後に保存されたチェックポイントから学習を再開できます。python3 beatrice_trainer -d <your_training_data_dir> -o <output_dir> -rparaphernalia_(data_dir_name)_(step)
checkpoint_(data_dir_name)_(step)
-r オプションを付けて学習スクリプトを実行すると、そのステップ数から学習を再開できます。checkpoint_latest.pt
config.json
events.out.tfevents.*
beatrice_paraphernalia_*.toml ファイルを編集することで、 VST や VC Client 上での表示を変更できます。model.version は、生成されたモデルのフォーマットバージョンを表すため、変更しないでください。description は、長すぎると全文が表示されない場合があります。
現在表示できていても、将来的な VST や VC Client の仕様変更により表示できなくなる可能性があるため、余裕を持った文字数・行数に収めてください。portrait に設定する画像は、 PNG 形式かつ正方形としてください。portrait に設定された画像を掲載することがありますので、予めご承知おきください。