Skip to content

Commit

Permalink
Update: Readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tsukumijima committed Oct 22, 2024
1 parent 03e0465 commit da15908
Showing 1 changed file with 27 additions and 4 deletions.
31 changes: 27 additions & 4 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ $ aivmlib create-aivm --help
│ model file │
│ [default: None] │
│ [required] │
* --hyper-parameters -h PATH Path to the hyper │
--hyper-parameters -h PATH Path to the hyper │
│ parameters file │
│ (optional) │
│ [default: None] │
│ [required] │
│ --style-vectors -s PATH Path to the style │
│ vectors file (optional) │
│ [default: None] │
Expand Down Expand Up @@ -132,10 +132,10 @@ $ aivmlib create-aivmx --help
│ file │
│ [default: None] │
│ [required] │
* --hyper-parameters -h PATH Path to the hyper │
--hyper-parameters -h PATH Path to the hyper │
│ parameters file │
│ (optional) │
│ [default: None] │
│ [required] │
│ --style-vectors -s PATH Path to the style │
│ vectors file (optional) │
│ [default: None] │
Expand All @@ -148,6 +148,29 @@ $ aivmlib create-aivmx --help
╰───────────────────────────────────────────────────────────────────────────────────╯
```

```bash
# Style-Bert-VITS2 (JP-Extra) モデルアーキテクチャの、Safetensors 形式で保存された学習済みモデルから AIVM ファイルを生成
# .safetensors と同じディレクトリに config.json と style_vectors.npy があることが前提
# -a オプションを省略した場合、既定で "Style-Bert-VITS2 (JP-Extra)" の学習済みモデルと判定される
$ aivmlib create-aivm -o ./output.aivm -m ./model.safetensors

# 明示的にハイパーパラメータとスタイルベクトルを指定して実行する場合
$ aivmlib create-aivm -o ./output.aivm -m ./model.safetensors -h ./config.json -s ./style-vectors.npy

# Style-Bert-VITS2 モデルアーキテクチャの、ONNX 形式で保存された学習済みモデルから AIVMX ファイルを生成
# .onnx と同じディレクトリに config.json と style_vectors.npy があることが前提
$ aivmlib create-aivmx -o ./output.aivmx -m ./model.onnx -a "Style-Bert-VITS2"

# 明示的にハイパーパラメータとスタイルベクトルを指定して実行する場合
$ aivmlib create-aivmx -o ./output.aivmx -m ./model.onnx -a "Style-Bert-VITS2" -h ./config.json -s ./style-vectors.npy

# AIVM ファイルに格納された AIVM メタデータを確認
$ aivmlib show-metadata ./output.aivm

# AIVMX ファイルに格納された AIVM メタデータを確認
$ aivmlib show-metadata ./output.aivmx
```

> [!TIP]
> **ライブラリとしての使い方は、[`__main__.py`](aivmlib/__main__.py) に実装されている CLI ツールの実装を参照してください。**
Expand Down

0 comments on commit da15908

Please sign in to comment.