RvcPyInfer 0.1.0__tar.gz → 0.1.3.post1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- rvcpyinfer-0.1.3.post1/.github/workflows/pr-check.yml +37 -0
- {rvcpyinfer-0.1.0 → rvcpyinfer-0.1.3.post1}/.github/workflows/release.yml +6 -6
- {rvcpyinfer-0.1.0 → rvcpyinfer-0.1.3.post1}/PKG-INFO +15 -28
- {rvcpyinfer-0.1.0 → rvcpyinfer-0.1.3.post1}/README.md +14 -27
- rvcpyinfer-0.1.3.post1/src/RvcPyInfer/_version.py +1 -0
- rvcpyinfer-0.1.0/src/RvcPyInfer/_version.py +0 -1
- {rvcpyinfer-0.1.0 → rvcpyinfer-0.1.3.post1}/.gitignore +0 -0
- {rvcpyinfer-0.1.0 → rvcpyinfer-0.1.3.post1}/.python-version +0 -0
- {rvcpyinfer-0.1.0 → rvcpyinfer-0.1.3.post1}/license +0 -0
- {rvcpyinfer-0.1.0 → rvcpyinfer-0.1.3.post1}/pyproject.toml +0 -0
- {rvcpyinfer-0.1.0 → rvcpyinfer-0.1.3.post1}/src/RvcPyInfer/InferProviders.py +0 -0
- {rvcpyinfer-0.1.0 → rvcpyinfer-0.1.3.post1}/src/RvcPyInfer/InferTask.py +0 -0
- {rvcpyinfer-0.1.0 → rvcpyinfer-0.1.3.post1}/src/RvcPyInfer/RvcContext.py +0 -0
- {rvcpyinfer-0.1.0 → rvcpyinfer-0.1.3.post1}/src/RvcPyInfer/__init__.py +0 -0
- {rvcpyinfer-0.1.0 → rvcpyinfer-0.1.3.post1}/src/RvcPyInfer/__main__.py +0 -0
- {rvcpyinfer-0.1.0 → rvcpyinfer-0.1.3.post1}/src/RvcPyInfer/audio/audio_utils.py +0 -0
- {rvcpyinfer-0.1.0 → rvcpyinfer-0.1.3.post1}/src/RvcPyInfer/cli.py +0 -0
- {rvcpyinfer-0.1.0 → rvcpyinfer-0.1.3.post1}/src/RvcPyInfer/error/InferEnvError.py +0 -0
- {rvcpyinfer-0.1.0 → rvcpyinfer-0.1.3.post1}/src/RvcPyInfer/error/NotSupportedAlgorithmError.py +0 -0
- {rvcpyinfer-0.1.0 → rvcpyinfer-0.1.3.post1}/src/RvcPyInfer/f0_utils.py +0 -0
- {rvcpyinfer-0.1.0 → rvcpyinfer-0.1.3.post1}/src/RvcPyInfer/index/RvcFeatIndex.py +0 -0
- {rvcpyinfer-0.1.0 → rvcpyinfer-0.1.3.post1}/src/RvcPyInfer/infer_env.py +0 -0
- {rvcpyinfer-0.1.0 → rvcpyinfer-0.1.3.post1}/src/RvcPyInfer/onnx/ContentVec.py +0 -0
- {rvcpyinfer-0.1.0 → rvcpyinfer-0.1.3.post1}/src/RvcPyInfer/onnx/ModelSimplePool.py +0 -0
- {rvcpyinfer-0.1.0 → rvcpyinfer-0.1.3.post1}/src/RvcPyInfer/onnx/RvcGen.py +0 -0
- {rvcpyinfer-0.1.0 → rvcpyinfer-0.1.3.post1}/src/RvcPyInfer/onnx/export/Exporter.py +0 -0
- {rvcpyinfer-0.1.0 → rvcpyinfer-0.1.3.post1}/src/RvcPyInfer/onnx/export/cli.py +0 -0
- {rvcpyinfer-0.1.0 → rvcpyinfer-0.1.3.post1}/src/RvcPyInfer/onnx/export/direct_read_sr.py +0 -0
- {rvcpyinfer-0.1.0 → rvcpyinfer-0.1.3.post1}/src/RvcPyInfer/onnx/model_loader.py +0 -0
- {rvcpyinfer-0.1.0 → rvcpyinfer-0.1.3.post1}/src/RvcPyInfer/ov/OVCoreSingleton.py +0 -0
- {rvcpyinfer-0.1.0 → rvcpyinfer-0.1.3.post1}/src/RvcPyInfer/path_utils.py +0 -0
- {rvcpyinfer-0.1.0 → rvcpyinfer-0.1.3.post1}/src/RvcPyInfer/resource/template/export_onnx.py +0 -0
- {rvcpyinfer-0.1.0 → rvcpyinfer-0.1.3.post1}/src/RvcPyInfer/type_alist.py +0 -0
- {rvcpyinfer-0.1.0 → rvcpyinfer-0.1.3.post1}/src/RvcPyInfer/warn/InferEnvWarn.py +0 -0
- {rvcpyinfer-0.1.0 → rvcpyinfer-0.1.3.post1}/src/RvcPyInfer/warn/InferModelWarn.py +0 -0
- {rvcpyinfer-0.1.0 → rvcpyinfer-0.1.3.post1}/src/RvcPyInfer/warn/InferWarn.py +0 -0
- {rvcpyinfer-0.1.0 → rvcpyinfer-0.1.3.post1}/uv.lock +0 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
name: PR Check
|
|
2
|
+
run-name: "PR #${{ github.event.pull_request.number }} by @${{ github.actor }} - ${{ github.event.pull_request.title }}"
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
pull_request:
|
|
6
|
+
types:
|
|
7
|
+
- opened
|
|
8
|
+
- synchronize
|
|
9
|
+
- reopened
|
|
10
|
+
branches:
|
|
11
|
+
- main
|
|
12
|
+
- dev
|
|
13
|
+
- 'release/*'
|
|
14
|
+
paths-ignore:
|
|
15
|
+
- '**.md'
|
|
16
|
+
- 'docs/**'
|
|
17
|
+
|
|
18
|
+
jobs:
|
|
19
|
+
check:
|
|
20
|
+
runs-on: ubuntu-latest
|
|
21
|
+
steps:
|
|
22
|
+
- name: Checkout code
|
|
23
|
+
uses: actions/checkout@v6
|
|
24
|
+
|
|
25
|
+
- name: Setup uv
|
|
26
|
+
uses: astral-sh/setup-uv@v8.3.2
|
|
27
|
+
with:
|
|
28
|
+
enable-cache: true
|
|
29
|
+
|
|
30
|
+
- name: Install dependencies
|
|
31
|
+
run: uv sync --extra dev --frozen
|
|
32
|
+
|
|
33
|
+
- name: Run ruff lint
|
|
34
|
+
run: uv run ruff check
|
|
35
|
+
|
|
36
|
+
- name: Run pyright type check
|
|
37
|
+
run: uv run pyright
|
|
@@ -3,22 +3,22 @@ name: Release
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
5
|
tags:
|
|
6
|
-
- "v
|
|
6
|
+
- "v*"
|
|
7
7
|
|
|
8
8
|
jobs:
|
|
9
9
|
check:
|
|
10
10
|
runs-on: ubuntu-latest
|
|
11
11
|
steps:
|
|
12
12
|
- name: Checkout code
|
|
13
|
-
uses: actions/checkout@
|
|
13
|
+
uses: actions/checkout@v6
|
|
14
14
|
|
|
15
15
|
- name: Setup uv
|
|
16
|
-
uses: astral-sh/setup-uv@
|
|
16
|
+
uses: astral-sh/setup-uv@v8.3.2
|
|
17
17
|
with:
|
|
18
18
|
enable-cache: true
|
|
19
19
|
|
|
20
20
|
- name: Install dependencies
|
|
21
|
-
run: uv sync --extra dev
|
|
21
|
+
run: uv sync --extra dev --frozen
|
|
22
22
|
|
|
23
23
|
- name: Run ruff lint
|
|
24
24
|
run: uv run ruff check
|
|
@@ -35,10 +35,10 @@ jobs:
|
|
|
35
35
|
contents: write
|
|
36
36
|
steps:
|
|
37
37
|
- name: Checkout code
|
|
38
|
-
uses: actions/checkout@
|
|
38
|
+
uses: actions/checkout@v6
|
|
39
39
|
|
|
40
40
|
- name: Setup uv
|
|
41
|
-
uses: astral-sh/setup-uv@
|
|
41
|
+
uses: astral-sh/setup-uv@v8.3.2
|
|
42
42
|
with:
|
|
43
43
|
enable-cache: true
|
|
44
44
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: RvcPyInfer
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.3.post1
|
|
4
4
|
Summary: Rvc 的 ONNX 模型导出格式推理实现
|
|
5
5
|
Project-URL: Homepage, https://github.com/TwoCreepers/RvcPyInfer
|
|
6
6
|
Project-URL: Repository, https://github.com/TwoCreepers/RvcPyInfer
|
|
@@ -30,7 +30,8 @@ Description-Content-Type: text/markdown
|
|
|
30
30
|
|
|
31
31
|
[](https://mit-license.org/)
|
|
32
32
|
[](https://www.python.org/downloads/)
|
|
33
|
-

|
|
34
|
+

|
|
34
35
|
|
|
35
36
|
[RVC](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI) 的 ONNX 模型导出格式推理实现。
|
|
36
37
|
|
|
@@ -44,32 +45,16 @@ Description-Content-Type: text/markdown
|
|
|
44
45
|
~~并且推理真的很难测试欸。~~
|
|
45
46
|
|
|
46
47
|
## 安装
|
|
47
|
-
|
|
48
|
-
|
|
48
|
+
本库已上传至 [PyPI](https://pypi.org/project/RvcPyInfer/),你可以直接使用我们构建好的轮子。
|
|
49
|
+
`pip` 安装示例:
|
|
49
50
|
```shell
|
|
50
|
-
|
|
51
|
-
git clone https://github.com/TwoCreepers/RvcPyInfer.git
|
|
52
|
-
# 进入该仓库目录
|
|
53
|
-
cd RvcPyInfer
|
|
54
|
-
# 使用 uv 构建
|
|
55
|
-
uv build
|
|
56
|
-
# 安装生成的 wheel 包 (以实际文件名为准)
|
|
57
|
-
pip install ./dist/rvcpyinfer-0.1.0-py3-none-any.whl
|
|
51
|
+
pip install RvcPyInfer[cpu]
|
|
58
52
|
```
|
|
59
|
-
|
|
60
|
-
这里出现的 [`uv`](https://github.com/astral-sh/uv) 是一个使用 `Rust` 编写的 `Python` 项目管理工具。
|
|
61
|
-
它可以为你剩下非常多在依赖管理方面的麻烦,就比如上面的 `uv build` 它会自动为你生成虚拟环境并安装好依赖。
|
|
62
|
-
当然了, [`uv`](https://github.com/astral-sh/uv) 不是必须的,我们使用 [`hatchling`](https://pypi.org/project/hatchling) 作为构建后端,你可以自己研究一下如何构建。
|
|
63
|
-
|
|
64
|
-
或者你也可以直接把当前项目作为库安装,例如:
|
|
53
|
+
使用 `uv` 添加到项目依赖示例:
|
|
65
54
|
```shell
|
|
66
|
-
|
|
67
|
-
pip install .
|
|
68
|
-
# 如果需要安装 CPU 引擎和特征索引支持的话是
|
|
69
|
-
pip install ".[cpu,index]"
|
|
55
|
+
uv add RvcPyInfer[cpu]
|
|
70
56
|
```
|
|
71
57
|
|
|
72
|
-
|
|
73
58
|
## 关于特征模型
|
|
74
59
|
你可以在[这里](https://huggingface.co/NaruseMioShirakana/MoeSS-SUBModel/tree/main)找到 `MoeSS` 使用的 `onnx` 特征模型。它们是通用的。
|
|
75
60
|
**通常情况下最常见的 `v2` 版本的生成器模型使用的是 `vec-768-layer-12.onnx`**
|
|
@@ -77,10 +62,9 @@ pip install ".[cpu,index]"
|
|
|
77
62
|
## 关于推理引擎
|
|
78
63
|
你可能已经看到了那个未安装任何推理引擎的警告或者错误。
|
|
79
64
|
请在安装命令后面添加 `[xxx]` 来安装可选依赖。
|
|
80
|
-
例如:
|
|
65
|
+
例如:
|
|
81
66
|
```shell
|
|
82
|
-
|
|
83
|
-
pip install "./dist/rvcpyinfer-0.1.0-py3-none-any[cpu]"
|
|
67
|
+
pip install RvcPyInfer[dml]
|
|
84
68
|
```
|
|
85
69
|
目前我们支持以下推理引擎:
|
|
86
70
|
|
|
@@ -97,6 +81,10 @@ pip install "./dist/rvcpyinfer-0.1.0-py3-none-any[cpu]"
|
|
|
97
81
|
## 关于特征索引
|
|
98
82
|
原项目的 `.index` 文件可直接使用,无需转换。
|
|
99
83
|
但你需要使用 `[index]` 来安装我们需要用于读取特征索引的依赖—— `faiss`。
|
|
84
|
+
例如同时安装特征索引支持和 `CPU`:
|
|
85
|
+
```shell
|
|
86
|
+
pip install RvcPyInfer[cpu,index]
|
|
87
|
+
```
|
|
100
88
|
|
|
101
89
|
## 快速使用
|
|
102
90
|
一个简单的示例:
|
|
@@ -142,8 +130,7 @@ task.run_and_save(
|
|
|
142
130
|
格式: `rvc-model export -m <你的pth模型路径> -t <你希望输出到哪> -r <rvc 原项目的根路径> --runtime <可选的导出用的 python 解释器路径,默认使用 rvc 原项目整合包自带的解释器>`
|
|
143
131
|
|
|
144
132
|
## 未来的计划
|
|
145
|
-
|
|
146
|
-
- [ ] 发布至 PyPI
|
|
133
|
+
暂无,欢迎各位提出 issue
|
|
147
134
|
|
|
148
135
|
## 许可证
|
|
149
136
|
在文件头部或文件所在目录未有额外说明的情况下,本项目代码部分使用 [`MIT`](https://mit-license.org/) 许可证授权与你,非代码部分使用 `CC BY 4.0` 授权与你。
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://mit-license.org/)
|
|
4
4
|
[](https://www.python.org/downloads/)
|
|
5
|
-

|
|
6
|
+

|
|
6
7
|
|
|
7
8
|
[RVC](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI) 的 ONNX 模型导出格式推理实现。
|
|
8
9
|
|
|
@@ -16,32 +17,16 @@
|
|
|
16
17
|
~~并且推理真的很难测试欸。~~
|
|
17
18
|
|
|
18
19
|
## 安装
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
本库已上传至 [PyPI](https://pypi.org/project/RvcPyInfer/),你可以直接使用我们构建好的轮子。
|
|
21
|
+
`pip` 安装示例:
|
|
21
22
|
```shell
|
|
22
|
-
|
|
23
|
-
git clone https://github.com/TwoCreepers/RvcPyInfer.git
|
|
24
|
-
# 进入该仓库目录
|
|
25
|
-
cd RvcPyInfer
|
|
26
|
-
# 使用 uv 构建
|
|
27
|
-
uv build
|
|
28
|
-
# 安装生成的 wheel 包 (以实际文件名为准)
|
|
29
|
-
pip install ./dist/rvcpyinfer-0.1.0-py3-none-any.whl
|
|
23
|
+
pip install RvcPyInfer[cpu]
|
|
30
24
|
```
|
|
31
|
-
|
|
32
|
-
这里出现的 [`uv`](https://github.com/astral-sh/uv) 是一个使用 `Rust` 编写的 `Python` 项目管理工具。
|
|
33
|
-
它可以为你剩下非常多在依赖管理方面的麻烦,就比如上面的 `uv build` 它会自动为你生成虚拟环境并安装好依赖。
|
|
34
|
-
当然了, [`uv`](https://github.com/astral-sh/uv) 不是必须的,我们使用 [`hatchling`](https://pypi.org/project/hatchling) 作为构建后端,你可以自己研究一下如何构建。
|
|
35
|
-
|
|
36
|
-
或者你也可以直接把当前项目作为库安装,例如:
|
|
25
|
+
使用 `uv` 添加到项目依赖示例:
|
|
37
26
|
```shell
|
|
38
|
-
|
|
39
|
-
pip install .
|
|
40
|
-
# 如果需要安装 CPU 引擎和特征索引支持的话是
|
|
41
|
-
pip install ".[cpu,index]"
|
|
27
|
+
uv add RvcPyInfer[cpu]
|
|
42
28
|
```
|
|
43
29
|
|
|
44
|
-
|
|
45
30
|
## 关于特征模型
|
|
46
31
|
你可以在[这里](https://huggingface.co/NaruseMioShirakana/MoeSS-SUBModel/tree/main)找到 `MoeSS` 使用的 `onnx` 特征模型。它们是通用的。
|
|
47
32
|
**通常情况下最常见的 `v2` 版本的生成器模型使用的是 `vec-768-layer-12.onnx`**
|
|
@@ -49,10 +34,9 @@ pip install ".[cpu,index]"
|
|
|
49
34
|
## 关于推理引擎
|
|
50
35
|
你可能已经看到了那个未安装任何推理引擎的警告或者错误。
|
|
51
36
|
请在安装命令后面添加 `[xxx]` 来安装可选依赖。
|
|
52
|
-
例如:
|
|
37
|
+
例如:
|
|
53
38
|
```shell
|
|
54
|
-
|
|
55
|
-
pip install "./dist/rvcpyinfer-0.1.0-py3-none-any[cpu]"
|
|
39
|
+
pip install RvcPyInfer[dml]
|
|
56
40
|
```
|
|
57
41
|
目前我们支持以下推理引擎:
|
|
58
42
|
|
|
@@ -69,6 +53,10 @@ pip install "./dist/rvcpyinfer-0.1.0-py3-none-any[cpu]"
|
|
|
69
53
|
## 关于特征索引
|
|
70
54
|
原项目的 `.index` 文件可直接使用,无需转换。
|
|
71
55
|
但你需要使用 `[index]` 来安装我们需要用于读取特征索引的依赖—— `faiss`。
|
|
56
|
+
例如同时安装特征索引支持和 `CPU`:
|
|
57
|
+
```shell
|
|
58
|
+
pip install RvcPyInfer[cpu,index]
|
|
59
|
+
```
|
|
72
60
|
|
|
73
61
|
## 快速使用
|
|
74
62
|
一个简单的示例:
|
|
@@ -114,8 +102,7 @@ task.run_and_save(
|
|
|
114
102
|
格式: `rvc-model export -m <你的pth模型路径> -t <你希望输出到哪> -r <rvc 原项目的根路径> --runtime <可选的导出用的 python 解释器路径,默认使用 rvc 原项目整合包自带的解释器>`
|
|
115
103
|
|
|
116
104
|
## 未来的计划
|
|
117
|
-
|
|
118
|
-
- [ ] 发布至 PyPI
|
|
105
|
+
暂无,欢迎各位提出 issue
|
|
119
106
|
|
|
120
107
|
## 许可证
|
|
121
108
|
在文件头部或文件所在目录未有额外说明的情况下,本项目代码部分使用 [`MIT`](https://mit-license.org/) 许可证授权与你,非代码部分使用 `CC BY 4.0` 授权与你。
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.1.3.post1"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.1.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rvcpyinfer-0.1.0 → rvcpyinfer-0.1.3.post1}/src/RvcPyInfer/error/NotSupportedAlgorithmError.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|