Update usage documentation
Browse files- README.en.md +36 -49
- README.md +28 -32
- checksums.json +2 -2
- download.json +5 -5
README.en.md
CHANGED
|
@@ -1,49 +1,36 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
---
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
It can also download from the HTTPS URL of `download.json` at a pinned revision.
|
| 38 |
-
`checksums.json` records every distributed asset. Model compilation happens locally
|
| 39 |
-
on first use; compiled caches are not part of this upload.
|
| 40 |
-
|
| 41 |
-
Inference is offline. The SBV2CoreML application code has its own AGPL-3.0 license.
|
| 42 |
-
See the accompanying source release for setup and performance measurements.
|
| 43 |
-
|
| 44 |
-
## SDK, sample apps and converter
|
| 45 |
-
|
| 46 |
-
[SBV2 Core ML source and documentation](https://github.com/Corvelis/sbv2-coreml/tree/v0.1.0-dev2) includes the Swift SDK,
|
| 47 |
-
iPhone/Mac sample apps and AIVM/Safetensors voice conversion tools.
|
| 48 |
-
The main documentation is Japanese, with an English README as a supplement.
|
| 49 |
-
The code is AGPL-3.0; model and dictionary licenses are listed above.
|
|
|
|
| 1 |
+
# Shared BERT and dictionary for SBV2 Core ML
|
| 2 |
+
|
| 3 |
+
[日本語](README.md)
|
| 4 |
+
|
| 5 |
+
For [SBV2 Core ML](https://github.com/Corvelis/sbv2-coreml) on iOS 18+ and macOS 15+ Apple Silicon.
|
| 6 |
+
Download the [companion package](https://huggingface.co/AILogDev/sbv2-coreml-jvnv-f1-jp) as well.
|
| 7 |
+
Package size is approximately 1.52 GB; allow extra space for first-use Core ML compilation.
|
| 8 |
+
|
| 9 |
+
## Download and use
|
| 10 |
+
|
| 11 |
+
In the sample's **モデル設定 → URLからモデルを取得**, choose the package type and enter:
|
| 12 |
+
|
| 13 |
+
```text
|
| 14 |
+
https://huggingface.co/AILogDev/sbv2-coreml-common/resolve/main/download.json
|
| 15 |
+
```
|
| 16 |
+
|
| 17 |
+
Alternatively use the [Hugging Face CLI](https://huggingface.co/docs/huggingface_hub/guides/cli):
|
| 18 |
+
|
| 19 |
+
```sh
|
| 20 |
+
hf download AILogDev/sbv2-coreml-common --local-dir models/sbv2-coreml-common
|
| 21 |
+
```
|
| 22 |
+
|
| 23 |
+
Download the entire folder, including the contents of `.mlpackage` directories.
|
| 24 |
+
Pass `bert/` and `dictionary/` to `ModelPaths`. Select the package root as **共通モデル** in the sample.
|
| 25 |
+
Speech synthesis works offline after downloading both packages.
|
| 26 |
+
|
| 27 |
+
[Quick Start](https://github.com/Corvelis/sbv2-coreml/blob/main/docs/getting-started.ja.md) ·
|
| 28 |
+
[SDK integration](https://github.com/Corvelis/sbv2-coreml/blob/main/docs/sdk-guide.ja.md)
|
| 29 |
+
|
| 30 |
+
## Attribution and licenses
|
| 31 |
+
|
| 32 |
+
BERT by Kyoto University NLP group: [original model](https://huggingface.co/ku-nlp/deberta-v2-large-japanese-char-wwm), revision `547b0e8b044fba3f9b84d0ab9f990440bd130c8b`. Converted to two FP32 Core ML models with input lengths 64/128/256, without retraining or quantization. BERT is CC BY-SA 4.0. The Open JTalk 1.11 UTF-8 dictionary has separate BSD notices in `dictionary/COPYING`.
|
| 33 |
+
|
| 34 |
+
See [LICENSE.md](LICENSE.md), `provenance.json` and `checksums.json` for licenses,
|
| 35 |
+
conversion details and SHA-256 checksums. This is an unofficial conversion and is not
|
| 36 |
+
endorsed by the original creators. SDK, sample and converter code is **AGPL-3.0**.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
CHANGED
|
@@ -6,47 +6,43 @@ base_model: ku-nlp/deberta-v2-large-japanese-char-wwm
|
|
| 6 |
---
|
| 7 |
# SBV2 Core ML 共通モデル・辞書
|
| 8 |
|
| 9 |
-
[English
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
|
| 15 |
-
##
|
| 16 |
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
`.mlpackage`を含めた全ファイルを、フォルダ構成のまま取得してください。
|
| 20 |
-
再現可能な取得には固定コミットを指定します。
|
| 21 |
-
Privateの場合は認証付きのHugging Faceクライアントで取得し、サンプルでローカルフォルダを選びます。
|
| 22 |
-
サンプルのHTTPS取得はPublic向けで、アクセストークンの入力機能はありません。
|
| 23 |
|
| 24 |
-
|
| 25 |
|
| 26 |
-
|
| 27 |
-
-
|
| 28 |
-
|
| 29 |
-
- **辞書:** Open JTalk 1.11 UTF-8辞書です。Open JTalk/NAIST/UniDicの関係者によるBSD系の条件が別途適用されます。`dictionary/COPYING`を参照してください。
|
| 30 |
|
| 31 |
-
|
| 32 |
|
| 33 |
-
|
|
|
|
|
|
|
| 34 |
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
初回使用時には端末上でCore MLをコンパイルします。コンパイル済みキャッシュは配布物に含めていません。
|
| 42 |
|
| 43 |
-
|
| 44 |
-
推論はモデルの取得後にオフラインで実行できます。
|
| 45 |
-
Swift SDK・サンプル・変換ツールのコードには、モデルとは別にAGPL-3.0が適用されます。
|
| 46 |
|
| 47 |
-
|
|
|
|
|
|
|
|
|
|
| 48 |
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
コードはAGPL-3.0、モデル・辞書の条件は上記のとおりです。
|
|
|
|
| 6 |
---
|
| 7 |
# SBV2 Core ML 共通モデル・辞書
|
| 8 |
|
| 9 |
+
[English](README.en.md)
|
| 10 |
|
| 11 |
+
iPhone/Apple Silicon Macで日本語音声を合成するための、共通BERTとOpen JTalk辞書です。
|
| 12 |
+
[SBV2 Core ML](https://github.com/Corvelis/sbv2-coreml)と、別配布の[声モデル](https://huggingface.co/AILogDev/sbv2-coreml-jvnv-f1-jp)を合わせて使います。
|
| 13 |
+
互換性のある声を追加するとき、この共通モデルを取得し直す必要はありません。
|
| 14 |
|
| 15 |
+
## 使い方
|
| 16 |
|
| 17 |
+
対応環境はiOS 18以上、macOS 15以上のApple Siliconです。配布ファイルは約1.52 GBです。
|
| 18 |
+
初回のCore MLコンパイル用に、追加の空き容量を用意してください。
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
+
サンプルアプリの **モデル設定 → URLからモデルを取得** で **共通モデル** を選び、次のURLを入力します。
|
| 21 |
|
| 22 |
+
```text
|
| 23 |
+
https://huggingface.co/AILogDev/sbv2-coreml-common/resolve/main/download.json
|
| 24 |
+
```
|
|
|
|
| 25 |
|
| 26 |
+
Macのターミナルから取得する場合は、[Hugging Face CLI](https://huggingface.co/docs/huggingface_hub/guides/cli)を使います。
|
| 27 |
|
| 28 |
+
```sh
|
| 29 |
+
hf download AILogDev/sbv2-coreml-common --local-dir models/sbv2-coreml-common
|
| 30 |
+
```
|
| 31 |
|
| 32 |
+
取得したフォルダをサンプルの **共通モデル** として選ぶと、BERTと辞書が自動認識されます。
|
| 33 |
+
SDKへ組み込む場合は、`ModelPaths.bert`へ`bert/`、`ModelPaths.dictionary`へ`dictionary/`を渡します。
|
| 34 |
+
`.mlpackage`の中身を含め、フォルダ全体を取得してください。取得後の音声合成はオフラインで動作します。
|
| 35 |
|
| 36 |
+
[サンプルの起動手順](https://github.com/Corvelis/sbv2-coreml/blob/main/docs/getting-started.ja.md) ·
|
| 37 |
+
[SDK導入ガイド](https://github.com/Corvelis/sbv2-coreml/blob/main/docs/sdk-guide.ja.md)
|
|
|
|
| 38 |
|
| 39 |
+
## 内容とライセンス
|
|
|
|
|
|
|
| 40 |
|
| 41 |
+
- **BERT:** 京都大学の自然言語処理研究グループによる[DeBERTa日本語モデル](https://huggingface.co/ku-nlp/deberta-v2-large-japanese-char-wwm)。原本のコミットは`547b0e8b044fba3f9b84d0ab9f990440bd130c8b`です。
|
| 42 |
+
- FP32の2つのCore MLモデ���へ変換しています。入力長は64/128/256。再学習・量子化は行っていません。
|
| 43 |
+
- BERTのライセンスは **CC BY-SA 4.0** です。[LICENSE.md](LICENSE.md)を参照してください。
|
| 44 |
+
- **辞書:** Open JTalk 1.11 UTF-8辞書。BSD系の条件が別途適用されます。[dictionary/COPYING](dictionary/COPYING)を参照してください。
|
| 45 |
|
| 46 |
+
原本と変換方法は`provenance.json`、ファイルのSHA-256は`checksums.json`に記載しています。
|
| 47 |
+
非公式の変換物であり、原作者による承認・推奨を示すものではありません。
|
| 48 |
+
SDK・サンプル・変換ツールのコードは **AGPL-3.0** です。
|
|
|
checksums.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"LICENSE.md": "28a9529c7d0bb4dc51f4bf5c116a3d16ef247a052f7591466768ddf563fd1cf5",
|
| 3 |
-
"README.en.md": "
|
| 4 |
-
"README.md": "
|
| 5 |
"bert/coreml_blocks/coreml_bert_blocks_manifest.json": "5fd273dafd28f11c59d8644ddd9f504e45597e6c09027f999dfce07ac0970809",
|
| 6 |
"bert/coreml_blocks/group.1-23-conv_enum.mlpackage/Data/com.apple.CoreML/model.mlmodel": "1acdab8e27548295cc1d8afa8c77e4400d81944cc9e0d344c60d06d0bf6dd6bf",
|
| 7 |
"bert/coreml_blocks/group.1-23-conv_enum.mlpackage/Data/com.apple.CoreML/weights/weight.bin": "68f09eb086ca37c988610d9ec247fdcf063c47d8c737e891e9c227e24368e51f",
|
|
|
|
| 1 |
{
|
| 2 |
"LICENSE.md": "28a9529c7d0bb4dc51f4bf5c116a3d16ef247a052f7591466768ddf563fd1cf5",
|
| 3 |
+
"README.en.md": "722dcc26d8241d3b2f0ce6ee7294b8ca287740d8e6ee1959e48b562a7bdb417f",
|
| 4 |
+
"README.md": "00b8fb77043ac22875eab15a5fc8e059199f93e355ae2bf6dbe19e56543cfbda",
|
| 5 |
"bert/coreml_blocks/coreml_bert_blocks_manifest.json": "5fd273dafd28f11c59d8644ddd9f504e45597e6c09027f999dfce07ac0970809",
|
| 6 |
"bert/coreml_blocks/group.1-23-conv_enum.mlpackage/Data/com.apple.CoreML/model.mlmodel": "1acdab8e27548295cc1d8afa8c77e4400d81944cc9e0d344c60d06d0bf6dd6bf",
|
| 7 |
"bert/coreml_blocks/group.1-23-conv_enum.mlpackage/Data/com.apple.CoreML/weights/weight.bin": "68f09eb086ca37c988610d9ec247fdcf063c47d8c737e891e9c227e24368e51f",
|
download.json
CHANGED
|
@@ -9,13 +9,13 @@
|
|
| 9 |
},
|
| 10 |
{
|
| 11 |
"path": "README.en.md",
|
| 12 |
-
"sha256": "
|
| 13 |
-
"bytes":
|
| 14 |
},
|
| 15 |
{
|
| 16 |
"path": "README.md",
|
| 17 |
-
"sha256": "
|
| 18 |
-
"bytes":
|
| 19 |
},
|
| 20 |
{
|
| 21 |
"path": "bert/coreml_blocks/coreml_bert_blocks_manifest.json",
|
|
@@ -114,7 +114,7 @@
|
|
| 114 |
},
|
| 115 |
{
|
| 116 |
"path": "checksums.json",
|
| 117 |
-
"sha256": "
|
| 118 |
"bytes": 2389
|
| 119 |
}
|
| 120 |
]
|
|
|
|
| 9 |
},
|
| 10 |
{
|
| 11 |
"path": "README.en.md",
|
| 12 |
+
"sha256": "722dcc26d8241d3b2f0ce6ee7294b8ca287740d8e6ee1959e48b562a7bdb417f",
|
| 13 |
+
"bytes": 1876
|
| 14 |
},
|
| 15 |
{
|
| 16 |
"path": "README.md",
|
| 17 |
+
"sha256": "00b8fb77043ac22875eab15a5fc8e059199f93e355ae2bf6dbe19e56543cfbda",
|
| 18 |
+
"bytes": 2855
|
| 19 |
},
|
| 20 |
{
|
| 21 |
"path": "bert/coreml_blocks/coreml_bert_blocks_manifest.json",
|
|
|
|
| 114 |
},
|
| 115 |
{
|
| 116 |
"path": "checksums.json",
|
| 117 |
+
"sha256": "9e36490081d5b2da36730dced786b19ec14e5d9f091f35efffaab65c7ad16a89",
|
| 118 |
"bytes": 2389
|
| 119 |
}
|
| 120 |
]
|