Upload folder using huggingface_hub
Browse files- .gitattributes +2 -0
- LICENSE +201 -0
- PARAMS.md +108 -0
- README.md +57 -0
- config.json +45 -0
- maobailing_rvc.index +3 -0
- maobailing_rvc.pth +3 -0
- maobailing_rvc_trained.index +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
maobailing_rvc.index filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
maobailing_rvc_trained.index filter=lfs diff=lfs merge=lfs -text
|
LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Apache License
|
| 2 |
+
Version 2.0, January 2004
|
| 3 |
+
http://www.apache.org/licenses/
|
| 4 |
+
|
| 5 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 6 |
+
|
| 7 |
+
1. Definitions.
|
| 8 |
+
|
| 9 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 10 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 11 |
+
|
| 12 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 13 |
+
the copyright owner that is granting the License.
|
| 14 |
+
|
| 15 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 16 |
+
other entities that control, are controlled by, or are under common
|
| 17 |
+
control with that entity. For the purposes of this definition,
|
| 18 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 19 |
+
direction or management of such entity, whether by contract or
|
| 20 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 21 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 22 |
+
|
| 23 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 24 |
+
exercising permissions granted by this License.
|
| 25 |
+
|
| 26 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 27 |
+
including but not limited to software source code, documentation
|
| 28 |
+
source, and configuration files.
|
| 29 |
+
|
| 30 |
+
"Object" form shall mean any form resulting from mechanical
|
| 31 |
+
transformation or translation of a Source form, including but not
|
| 32 |
+
limited to compiled object code, generated documentation, and
|
| 33 |
+
conversions to other media types.
|
| 34 |
+
|
| 35 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 36 |
+
Object form, made available under the License, as indicated by a
|
| 37 |
+
copyright notice that is included in or attached to the work.
|
| 38 |
+
|
| 39 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 40 |
+
form, that is based on (or derived from) the Work and for which the
|
| 41 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 42 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 43 |
+
of this License, Derivative Works shall not include works that remain
|
| 44 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 45 |
+
the Work and Derivative Works thereof.
|
| 46 |
+
|
| 47 |
+
"Contribution" shall mean any work of authorship, including the
|
| 48 |
+
original version of the Work and any modifications or additions to
|
| 49 |
+
that Work or Derivative Works thereof, that is intentionally submitted
|
| 50 |
+
to Licensor for inclusion in the Work by the copyright owner or by an
|
| 51 |
+
individual or Legal Entity authorized to submit on behalf of the
|
| 52 |
+
copyright owner. For the purposes of this definition, "submitted"
|
| 53 |
+
means any form of electronic, verbal, or written communication sent
|
| 54 |
+
to the Licensor or its representatives, including but not limited to
|
| 55 |
+
communication on electronic mailing lists, source code control
|
| 56 |
+
systems, and issue tracking systems that are managed by, or on behalf
|
| 57 |
+
of, the Licensor for the purpose of discussing and improving the Work,
|
| 58 |
+
but excluding communication that is conspicuously marked or otherwise
|
| 59 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 60 |
+
|
| 61 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 62 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 63 |
+
subsequently incorporated within the Work.
|
| 64 |
+
|
| 65 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 66 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 67 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 68 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 69 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 70 |
+
Work and such Derivative Works in Source or Object form.
|
| 71 |
+
|
| 72 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 73 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 74 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 75 |
+
(except as stated in this section) patent license to make, have made,
|
| 76 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 77 |
+
where such license applies only to those patent claims licensable
|
| 78 |
+
by such Contributor that are necessarily infringed by their
|
| 79 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 80 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 81 |
+
institute patent litigation against any entity (including a
|
| 82 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 83 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 84 |
+
or contributory patent infringement, then any patent licenses
|
| 85 |
+
granted to You under this License for that Work shall terminate
|
| 86 |
+
as of the date such litigation is filed.
|
| 87 |
+
|
| 88 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 89 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 90 |
+
modifications, and in Source or Object form, provided that You
|
| 91 |
+
meet the following conditions:
|
| 92 |
+
|
| 93 |
+
(a) You must give any other recipients of the Work or Derivative
|
| 94 |
+
Works a copy of this License; and
|
| 95 |
+
|
| 96 |
+
(b) You must cause any modified files to carry prominent notices
|
| 97 |
+
stating that You changed the files; and
|
| 98 |
+
|
| 99 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 100 |
+
that You distribute, all copyright, patent, trademark, and
|
| 101 |
+
attribution notices from the Source form of the Work, excluding
|
| 102 |
+
those notices that do not pertain to any part of the Derivative
|
| 103 |
+
Works; and
|
| 104 |
+
|
| 105 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 106 |
+
distribution, then any Derivative Works that You distribute must
|
| 107 |
+
include a readable copy of the attribution notices contained
|
| 108 |
+
within such NOTICE file, excluding those notices that do not
|
| 109 |
+
pertain to any part of the Derivative Works, in at least one of
|
| 110 |
+
the following places: within a NOTICE text file distributed as
|
| 111 |
+
part of the Derivative Works; within the Source form or
|
| 112 |
+
documentation, if provided along with the Derivative Works; or,
|
| 113 |
+
within a display generated by the Derivative Works, if and
|
| 114 |
+
wherever such third-party notices normally appear. The contents
|
| 115 |
+
of the NOTICE file are for informational purposes only and do
|
| 116 |
+
not modify the License. You may add Your own attribution notices
|
| 117 |
+
within Derivative Works that You distribute, alongside or as an
|
| 118 |
+
addendum to the NOTICE text from the Work, provided that such
|
| 119 |
+
additional attribution notices cannot be construed as modifying
|
| 120 |
+
the License.
|
| 121 |
+
|
| 122 |
+
You may add Your own copyright statement to Your modifications and
|
| 123 |
+
may provide additional or different license terms and conditions
|
| 124 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 125 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 126 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 127 |
+
the conditions stated in this License.
|
| 128 |
+
|
| 129 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 130 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 131 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 132 |
+
this License, without any additional terms or conditions.
|
| 133 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 134 |
+
the terms of any separate license agreement you may have executed
|
| 135 |
+
with Licensor regarding such Contributions.
|
| 136 |
+
|
| 137 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 138 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 139 |
+
except as required for reasonable and customary use in describing the
|
| 140 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 141 |
+
|
| 142 |
+
7. Disclaimer of Warranty. Unless required by applicable law or agreed
|
| 143 |
+
to in writing, Licensor provides the Work (and each Contributor
|
| 144 |
+
provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES
|
| 145 |
+
OR CONDITIONS OF ANY KIND, either express or implied, including,
|
| 146 |
+
without limitation, any warranties or conditions of TITLE,
|
| 147 |
+
NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR
|
| 148 |
+
PURPOSE. You are solely responsible for determining the
|
| 149 |
+
appropriateness of using or redistributing the Work and assume
|
| 150 |
+
any risks associated with Your exercise of permissions under this
|
| 151 |
+
License.
|
| 152 |
+
|
| 153 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 154 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 155 |
+
unless required by applicable law (such as deliberate and grossly
|
| 156 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 157 |
+
liable to You for damages, including any direct, indirect, special,
|
| 158 |
+
incidental, or consequential damages of any character arising as a
|
| 159 |
+
result of this License or out of the use or inability to use the
|
| 160 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 161 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 162 |
+
other commercial damages or losses), even if such Contributor
|
| 163 |
+
has been advised of the possibility of such damages.
|
| 164 |
+
|
| 165 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 166 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 167 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 168 |
+
or other liability obligations and/or rights consistent with this
|
| 169 |
+
License. However, in accepting such obligations, You may act only
|
| 170 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 171 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 172 |
+
defend, and hold each Contributor harmless for any liability
|
| 173 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 174 |
+
of your accepting any such warranty or additional liability.
|
| 175 |
+
|
| 176 |
+
END OF TERMS AND CONDITIONS
|
| 177 |
+
|
| 178 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 179 |
+
|
| 180 |
+
To apply the Apache License to your work, attach the following
|
| 181 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 182 |
+
replaced with your own identifying information. (Don't include
|
| 183 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 184 |
+
comment syntax for the file format. We also recommend that a
|
| 185 |
+
file or class name and description of purpose be included on the
|
| 186 |
+
same "printed page" as the copyright notice for easier
|
| 187 |
+
identification within third-party archives.
|
| 188 |
+
|
| 189 |
+
Copyright 2026 maobailing_rvc authors
|
| 190 |
+
|
| 191 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 192 |
+
you may not use this file except in compliance with the License.
|
| 193 |
+
You may obtain a copy of the License at
|
| 194 |
+
|
| 195 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 196 |
+
|
| 197 |
+
Unless required by applicable law or agreed to in writing, software
|
| 198 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 199 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 200 |
+
See the License for the specific language governing permissions and
|
| 201 |
+
limitations under the License.
|
PARAMS.md
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# 参数说明(maobailing_rvc)
|
| 2 |
+
|
| 3 |
+
本文档记录 `maobailing_rvc` 模型的**全部生成/训练/推理参数**,作为上传 Hugging Face 的配套说明。
|
| 4 |
+
|
| 5 |
+
## 1. 模型元信息
|
| 6 |
+
| 项 | 值 |
|
| 7 |
+
|------|------|
|
| 8 |
+
| 模型名 | `maobailing_rvc` |
|
| 9 |
+
| `version` | **v2** |
|
| 10 |
+
| `f0` | **1**(使用 f0 条件输入)|
|
| 11 |
+
| `sr`(目标采样率)| **40000** |
|
| 12 |
+
| `n_spk` | **109**(emb_g 行数;训练实际用 speaker 0)|
|
| 13 |
+
| `gin_channels` | 256 |
|
| 14 |
+
| 权重张量数 | 457 |
|
| 15 |
+
| 训练精度 | torch.float16 |
|
| 16 |
+
|
| 17 |
+
## 2. 音频 / 预处理参数(`data`)
|
| 18 |
+
| 项 | 值 |
|
| 19 |
+
|------|------|
|
| 20 |
+
| `sampling_rate` | 40000 |
|
| 21 |
+
| `hop_length` | 400 |
|
| 22 |
+
| `filter_length` | 2048 |
|
| 23 |
+
| `win_length` | 2048 |
|
| 24 |
+
| `n_mel_channels` | 125 |
|
| 25 |
+
| `mel_fmin` | 0.0 |
|
| 26 |
+
| `mel_fmax` | null |
|
| 27 |
+
| `max_wav_value` | 32768.0 |
|
| 28 |
+
|
| 29 |
+
## 3. 模型架构(`model`)
|
| 30 |
+
| 项 | 值 |
|
| 31 |
+
|------|------|
|
| 32 |
+
| `inter_channels` | 192 |
|
| 33 |
+
| `hidden_channels` | 192 |
|
| 34 |
+
| `filter_channels` | 768 |
|
| 35 |
+
| `n_heads` | 2 |
|
| 36 |
+
| `n_layers` | 6 |
|
| 37 |
+
| `kernel_size` | 3 |
|
| 38 |
+
| `p_dropout` | 0 |
|
| 39 |
+
| `resblock` | "1" |
|
| 40 |
+
| `resblock_kernel_sizes` | [3, 7, 11] |
|
| 41 |
+
| `resblock_dilation_sizes` | [[1,3,5], [1,3,5], [1,3,5]] |
|
| 42 |
+
| `upsample_rates` | [10, 10, 2, 2] |
|
| 43 |
+
| `upsample_initial_channel` | 512 |
|
| 44 |
+
| `upsample_kernel_sizes` | [16, 16, 4, 4] |
|
| 45 |
+
| `use_spectral_norm` | false |
|
| 46 |
+
| `gin_channels` | 256 |
|
| 47 |
+
| `spk_embed_dim` | 109 |
|
| 48 |
+
|
| 49 |
+
## 4. 训练超参数(`train`)
|
| 50 |
+
| 项 | 值 |
|
| 51 |
+
|------|------|
|
| 52 |
+
| `learning_rate` | 1e-4 |
|
| 53 |
+
| `betas` | [0.8, 0.99] |
|
| 54 |
+
| `eps` | 1e-9 |
|
| 55 |
+
| `lr_decay` | 0.999875 |
|
| 56 |
+
| `segment_size` | 12800 |
|
| 57 |
+
| `batch_size` | 4 |
|
| 58 |
+
| `total_epoch` | **200** |
|
| 59 |
+
| `save_every_epoch` | 20 |
|
| 60 |
+
| `if_latest` | 1(只保留最新 G/D)|
|
| 61 |
+
| `save_every_weights` | 1(导出到 assets/weights)|
|
| 62 |
+
| `if_cache_data_in_gpu` | 0 |
|
| 63 |
+
| `seed` | 1234 |
|
| 64 |
+
| `log_interval` | 200 |
|
| 65 |
+
| `init_lr_ratio` | 1 |
|
| 66 |
+
| `warmup_epochs` | 0 |
|
| 67 |
+
| `c_mel` | 45 |
|
| 68 |
+
| `c_kl` | 1.0 |
|
| 69 |
+
|
| 70 |
+
## 5. 预训练底模
|
| 71 |
+
| 用途 | 路径 |
|
| 72 |
+
|------|------|
|
| 73 |
+
| 生成器 | `assets/pretrained_v2/f0G40k.pth` |
|
| 74 |
+
| 判别器 | `assets/pretrained_v2/f0D40k.pth` |
|
| 75 |
+
| HuBERT | `assets/hubert_base/`(Transformers 目录格式:config.json + pytorch_model.bin)|
|
| 76 |
+
| 音高 | `assets/rmvpe/rmvpe.pt` |
|
| 77 |
+
|
| 78 |
+
> 训练时预训练权重**全部键匹配成功**(`All keys matched successfully`)。
|
| 79 |
+
|
| 80 |
+
## 6. 数据处理
|
| 81 |
+
- **输入**:6 段中文女声 FLAC 干声(22.05kHz 单声道),约 29.4 分钟。
|
| 82 |
+
- **preprocess.py**:切片 163 段,`per=3.7s`、降噪/高通、40k/16k 重采样。
|
| 83 |
+
- **f0 提取**:RMVPE(GPU,half 精度)。
|
| 84 |
+
- **HuBERT 特征**:768 维(v2),每段输出形如 `(184, 768)`。
|
| 85 |
+
|
| 86 |
+
## 7. 索引(faiss)
|
| 87 |
+
- 算法:`IVF751_Flat_nprobe_1`(faiss-cpu 1.15.0)。
|
| 88 |
+
- 特征:`(29303, 768)`。
|
| 89 |
+
- 文件:
|
| 90 |
+
- `maobailing_rvc.index`(~89 MB,来自 `added_IVF751_Flat_nprobe_1_...`)
|
| 91 |
+
- `maobailing_rvc_trained.index`(~2.3 MB,来自 `trained_IVF751_Flat_nprobe_1_...`)
|
| 92 |
+
|
| 93 |
+
## 8. 推荐推理参数(e1)
|
| 94 |
+
| 项 | 值 | 说明 |
|
| 95 |
+
|------|------|------|
|
| 96 |
+
| `index_rate` | **0.60** | 索引特征占比;0.75→0.6 让模型更多借用原唱共鸣、减少“发瘪”|
|
| 97 |
+
| `rms_mix_rate` | **0.50** | 音量包络融合;0.5 平衡力度与低电子感(过高 0.9 易有金属/泵动)|
|
| 98 |
+
| `protect` | **0.40** | 清辅音保护;减少长音尾部沙哑 |
|
| 99 |
+
| `f0_method` | **rmvpe** | 音高提取(亦可用 fcpe,通常更干净)|
|
| 100 |
+
| `f0_up_key` | **0** | 变调;女声偏高/吃力可调 `-2` 或 `+2` |
|
| 101 |
+
| `resample_sr` | 0 | 使用模型原生 40k |
|
| 102 |
+
|
| 103 |
+
## 9. 环境与注意
|
| 104 |
+
- Python **3.12.13**;torch **2.7.1+cu118**;CUDA 11.8;驱动 595.71.05。
|
| 105 |
+
- 仓库版本要求 Python 3.12(依赖文件 `requirments_cu118_py312.txt`)。
|
| 106 |
+
- **onnxruntime-gpu 未启用**:依赖文件中的 `nvidia-cudnn-cu11==8.9.5.29` 在 PyPI/镜像不存在,且与 torch 的 cuDNN 9.1 冲突;该 onnx 路径仅在 Windows/DirectML 使用,Linux+CUDA 推理不依赖。
|
| 107 |
+
- **长音频**:建议 `RVC_CUDA_GRAPH=0`,并对整曲**分段处理**(如 30s/段 + 3s 重叠 + 交叉淡入)以避免 CUDA graph 越界/局部破音。
|
| 108 |
+
- 许可:Apache-2.0(见 LICENSE)。数据集/干声版权:仅作技术演示,请遵守相应授权。
|
README.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# maobailing_rvc — RVC v2 / 40kHz 声线克隆模型
|
| 2 |
+
|
| 3 |
+
一款基于 **RVC(Retrieval-based-Voice-Conversion-WebUI)v2**、在 **40kHz** 采样率下训练的中文女声**声线克隆**模型。
|
| 4 |
+
|
| 5 |
+
## 数据集来源
|
| 6 |
+
训练该模型所用数据集全部来源于index-tts 2克隆产物,未使用任何人类语音数据训练。
|
| 7 |
+
|
| 8 |
+
## 模型简介
|
| 9 |
+
| 项 | 值 |
|
| 10 |
+
|------|------|
|
| 11 |
+
| 模型名 | `maobailing_rvc` |
|
| 12 |
+
| 框架 | RVC v2(Retrieval-based Voice Conversion)|
|
| 13 |
+
| 版本 / 采样率 | v2 / 40 kHz |
|
| 14 |
+
| 是否使用 f0 | 是(`f0=1`)|
|
| 15 |
+
| 说话人数 | 109(实际训练使用 speaker `0`)|
|
| 16 |
+
| 特征 | HuBERT 768 维 + RMVPE 音高 |
|
| 17 |
+
| 训练精度 | float16 |
|
| 18 |
+
|
| 19 |
+
## 文件清单
|
| 20 |
+
```
|
| 21 |
+
maobailing_rvc.pth # RVC 推理模型(53 MB)
|
| 22 |
+
maobailing_rvc.index # faiss 索引(IVF751_Flat_nprobe_1, ~89 MB)
|
| 23 |
+
maobailing_rvc_trained.index # faiss 训练索引(~2.3 MB)
|
| 24 |
+
config.json # 模型配置
|
| 25 |
+
PARAMS.md # 完整参数说明
|
| 26 |
+
README.md # 本说明
|
| 27 |
+
LICENSE # Apache-2.0
|
| 28 |
+
```
|
| 29 |
+
|
| 30 |
+
## 训练数据
|
| 31 |
+
- 中文女声干声数据集(6 段 FLAC,单声道,22.05kHz,约 **29.4 分钟**)。
|
| 32 |
+
- 预处理:切片为 **163 段**;重采样 40k / 16k;RMVPE 提取 f0;HuBERT 提取 768 维特征。
|
| 33 |
+
- 说话人:单一说话人(speaker_id = 0)。
|
| 34 |
+
|
| 35 |
+
## 使用方法(RVC WebUI / 命令行)
|
| 36 |
+
1. 将 `maobailing_rvc.pth` 放入 `assets/weights/`,`maobailing_rvc.index` 放入 `assets/indices/`。
|
| 37 |
+
2. WebUI 中选择模型 `maobailing_rvc`,设置推荐参数:
|
| 38 |
+
- `index_rate = 0.6`、`rms_mix_rate = 0.5`、`protect = 0.4`、`f0_method = rmvpe`、`f0_up_key = 0`(女声偏高/吃力可调 ±2)。
|
| 39 |
+
3. 上传干声,点击转换。
|
| 40 |
+
|
| 41 |
+
命令行推理(参考):使用 RVC 的 `VC` 接口(`get_vc` + `vc_single`)。关键环境变量需设为:
|
| 42 |
+
`weight_root=<assets/weights>`、`rmvpe_root=<assets/rmvpe>`、`index_root=<assets/indices>`;
|
| 43 |
+
超长音频建议设 `RVC_CUDA_GRAPH=0` 并分段处理。
|
| 44 |
+
|
| 45 |
+
## 环境
|
| 46 |
+
- Python 3.12.13
|
| 47 |
+
- torch 2.7.1+cu118、torchaudio 2.7.1+cu118
|
| 48 |
+
- faiss-cpu 1.15.0、transformers 4.49.0、gradio 3.14.0、librosa 0.10.2、soundfile 等
|
| 49 |
+
- 仓库版本要求 Python 3.12(依赖文件 `requirments_cu118_py312.txt`)
|
| 50 |
+
|
| 51 |
+
> 说明:安装时**未启用 onnxruntime-gpu**(其依赖的 `nvidia-cudnn-cu11==8.9.5.29` 在 PyPI/镜像上不存在,且与 torch 冲突;该路径仅用于 Windows/DirectML,Linux+CUDA 推理不需要)。详见 `PARAMS.md`。
|
| 52 |
+
|
| 53 |
+
## 许可
|
| 54 |
+
本项目模型按 **Apache License 2.0** 发布,详见 `LICENSE`。训练数据与使用场景请遵守相应版权与授权要求。
|
| 55 |
+
|
| 56 |
+
## 致谢
|
| 57 |
+
- RVC-Project / RVC-Boss 的 RVC 框架;index-tts 2;RMVPE、ContentVec/HuBERT、HiFi-GAN / VITS 等相关开源项目。
|
config.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"train": {
|
| 3 |
+
"log_interval": 200,
|
| 4 |
+
"seed": 1234,
|
| 5 |
+
"epochs": 20000,
|
| 6 |
+
"learning_rate": 1e-4,
|
| 7 |
+
"betas": [0.8, 0.99],
|
| 8 |
+
"eps": 1e-9,
|
| 9 |
+
"batch_size": 4,
|
| 10 |
+
"lr_decay": 0.999875,
|
| 11 |
+
"segment_size": 12800,
|
| 12 |
+
"init_lr_ratio": 1,
|
| 13 |
+
"warmup_epochs": 0,
|
| 14 |
+
"c_mel": 45,
|
| 15 |
+
"c_kl": 1.0
|
| 16 |
+
},
|
| 17 |
+
"data": {
|
| 18 |
+
"max_wav_value": 32768.0,
|
| 19 |
+
"sampling_rate": 40000,
|
| 20 |
+
"filter_length": 2048,
|
| 21 |
+
"hop_length": 400,
|
| 22 |
+
"win_length": 2048,
|
| 23 |
+
"n_mel_channels": 125,
|
| 24 |
+
"mel_fmin": 0.0,
|
| 25 |
+
"mel_fmax": null
|
| 26 |
+
},
|
| 27 |
+
"model": {
|
| 28 |
+
"inter_channels": 192,
|
| 29 |
+
"hidden_channels": 192,
|
| 30 |
+
"filter_channels": 768,
|
| 31 |
+
"n_heads": 2,
|
| 32 |
+
"n_layers": 6,
|
| 33 |
+
"kernel_size": 3,
|
| 34 |
+
"p_dropout": 0,
|
| 35 |
+
"resblock": "1",
|
| 36 |
+
"resblock_kernel_sizes": [3,7,11],
|
| 37 |
+
"resblock_dilation_sizes": [[1,3,5], [1,3,5], [1,3,5]],
|
| 38 |
+
"upsample_rates": [10,10,2,2],
|
| 39 |
+
"upsample_initial_channel": 512,
|
| 40 |
+
"upsample_kernel_sizes": [16,16,4,4],
|
| 41 |
+
"use_spectral_norm": false,
|
| 42 |
+
"gin_channels": 256,
|
| 43 |
+
"spk_embed_dim": 109
|
| 44 |
+
}
|
| 45 |
+
}
|
maobailing_rvc.index
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a9a17b93dc6d7d078d413dacf4c855e02685fa3000d5b64bf2bb1faa82ba43fa
|
| 3 |
+
size 92566459
|
maobailing_rvc.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c386a153eace55a15cc50b02d102732fa08c1c6a144184be3424c2188a46867c
|
| 3 |
+
size 55225035
|
maobailing_rvc_trained.index
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cc96ca78aa90b633638c5b359811b23f9bdd48129a46a88708f7adf48cee84e0
|
| 3 |
+
size 2307211
|