AILogDev commited on
Commit
d9cc585
·
verified ·
1 Parent(s): 32936e6

Update usage documentation

Browse files
Files changed (4) hide show
  1. README.en.md +36 -49
  2. README.md +28 -32
  3. checksums.json +2 -2
  4. download.json +5 -5
README.en.md CHANGED
@@ -1,49 +1,36 @@
1
- ---
2
- license: cc-by-sa-4.0
3
- language: ja
4
- tags: [coreml, style-bert-vits2]
5
- base_model: ku-nlp/deberta-v2-large-japanese-char-wwm
6
- ---
7
- # SBV2 Core ML shared Japanese resources
8
-
9
- [日本語(メイン)](README.md)
10
-
11
- Shared BERT for the SBV2CoreML Swift library, iOS 18+ / macOS 15+ Apple Silicon.
12
- Download once and reuse across compatible JP-Extra voices. This package also
13
- contains the Open JTalk 1.11 UTF-8 dictionary under its separate BSD notices.
14
-
15
- ## Model repositories
16
-
17
- This package: [AILogDev/sbv2-coreml-common](https://huggingface.co/AILogDev/sbv2-coreml-common).
18
- Required companion: [AILogDev/sbv2-coreml-jvnv-f1-jp](https://huggingface.co/AILogDev/sbv2-coreml-jvnv-f1-jp).
19
- Download the complete repository contents, preserving all `.mlpackage` folders.
20
- Use a pinned commit revision for reproducible downloads.
21
- Private repositories require an authenticated Hugging Face client; download them
22
- locally and select that folder. The sample's HTTPS downloader does not accept tokens.
23
-
24
- ## Attribution and changes
25
-
26
- BERT: Kyoto University NLP group, [original model](https://huggingface.co/ku-nlp/deberta-v2-large-japanese-char-wwm),
27
- revision `547b0e8b044fba3f9b84d0ab9f990440bd130c8b`. Converted to two FP32 Core ML
28
- ML Programs with fixed candidate lengths 64/128/256. No retraining or quantization.
29
- Original and converted BERT: CC BY-SA 4.0, see LICENSE.md.
30
- Dictionary: Open JTalk / NAIST / UniDic contributors, see dictionary/COPYING.
31
- These are unofficial conversions, without endorsement by the original authors.
32
-
33
- ## Usage
34
-
35
- Pass `bert/` and `dictionary/` to `ModelPaths`; obtain a voice separately.
36
- The sample app can import this entire folder as BERT and find the dictionary.
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(補助)](README.en.md)
10
 
11
- Style-Bert-VITS2 JP-ExtraをiPhone/Apple Silicon Macで使うための、共通BERTと日本語辞書です。
12
- iOS 18以上、macOS 15以上のApple Siliconに対応するSwift SDK **SBV2CoreML**から使います。
13
- 一度取得すれば、互換性のある複数の声モデルで使い回せます。声モデルは別途取得してください。
14
 
15
- ## 配布先
16
 
17
- このパッケージ:[AILogDev/sbv2-coreml-common](https://huggingface.co/AILogDev/sbv2-coreml-common)。
18
- 併せて必要なパッケージ:[AILogDev/sbv2-coreml-jvnv-f1-jp](https://huggingface.co/AILogDev/sbv2-coreml-jvnv-f1-jp)。
19
- `.mlpackage`を含めた全ファイルを、フォルダ構成のまま取得してください。
20
- 再現可能な取得には固定コミットを指定します。
21
- Privateの場合は認証付きのHugging Faceクライアントで取得し、サンプルでローカルフォルダを選びます。
22
- サンプルのHTTPS取得はPublic向けで、アクセストークンの入力機能はありません。
23
 
24
- ## 出典と変換内容
25
 
26
- - **BERT:** 京都大学の自然言語処理研究グループによる[DeBERTa日本語モデル](https://huggingface.co/ku-nlp/deberta-v2-large-japanese-char-wwm)。原本の固定コミットは`547b0e8b044fba3f9b84d0ab9f990440bd130c8b`です。
27
- - BERTを2つのFP32 Core ML ML Programへ変換しています。入力長の候補は64/128/256です。再学習・量子化は行っていません。
28
- - 原本と変換済みBERTのライセンスは**CC BY-SA 4.0**です。`LICENSE.md`を参照してください。
29
- - **辞書:** Open JTalk 1.11 UTF-8辞書です。Open JTalk/NAIST/UniDicの関係者によるBSD系の条件が別途適用されます。`dictionary/COPYING`を参照してください。
30
 
31
- これは非公式の変換物です。原作者による承認・推奨を示すものではありません。
32
 
33
- ## 使い方
 
 
34
 
35
- 1. `.mlpackage`の中身を含め、このリポジトリのファイルをフォルダ構成のまま取得します。
36
- 2. 別配布の声モデルを用意します。
37
- 3. `ModelPaths`へBERTの`bert/`、辞書の`dictionary/`、声モデルのフォルダを渡します。
38
 
39
- 付属サンプルでは、この共通フォルダを**共通モデル**として選ぶとBERTと辞書を自動認識します。
40
- Publicの場合は、固定コミットの`download.json` URLからも取得できます。
41
- 初回使用時には端末上でCore MLをコンパイルします。コンパイル済みキャッシュは配布物に含めていません。
42
 
43
- `checksums.json`に配布ファイルのハッシュ、`provenance.json`に原本と変換内容を記録しています。
44
- 推論はモデルの取得後にオフラインで実行できます。
45
- Swift SDK・サンプル・変換ツールのコードには、モデルとは別にAGPL-3.0が適用されます。
46
 
47
- ## SDK・サンプル・変換ツール
 
 
 
48
 
49
- [SBV2 Core MLのソースと日本語ドキュメント](https://github.com/Corvelis/sbv2-coreml/tree/v0.1.0-dev2)に、Swift SDK、
50
- iPhone/Macサンプル、AIVM/Safetensorsからの声モデル変換ツールを含めています。
51
- 導入方法はリポジトリのクイックスタートとSDKガイドを参照してください。
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": "37a00282646a9de0247d76436c6412d0ca5c3e9b48cdb596828f6d30e238632a",
4
- "README.md": "8c6fe4e4e159f98ba93484ba787c9fb0222f6356dc2f094fe48f937876a9bd18",
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": "37a00282646a9de0247d76436c6412d0ca5c3e9b48cdb596828f6d30e238632a",
13
- "bytes": 2434
14
  },
15
  {
16
  "path": "README.md",
17
- "sha256": "8c6fe4e4e159f98ba93484ba787c9fb0222f6356dc2f094fe48f937876a9bd18",
18
- "bytes": 3533
19
  },
20
  {
21
  "path": "bert/coreml_blocks/coreml_bert_blocks_manifest.json",
@@ -114,7 +114,7 @@
114
  },
115
  {
116
  "path": "checksums.json",
117
- "sha256": "aff8885e9454ad1dd90a2eae447461b44462c1adeed838282124fa69247eeb43",
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
  ]