Skip to content

Commit 53d5468

Browse files
committed
fix: i18n & dl & tests
1 parent 8ab9fe3 commit 53d5468

File tree

7 files changed

+7
-19
lines changed

7 files changed

+7
-19
lines changed

.github/workflows/checksum.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
- name: Run RVC-Models-Downloader
1717
run: |
18-
wget https://github.com/fumiama/RVC-Models-Downloader/releases/download/v0.2.5/rvcmd_linux_amd64.deb
18+
wget https://github.com/fumiama/RVC-Models-Downloader/releases/download/v0.2.11/rvcmd_linux_amd64.deb
1919
sudo apt -y install ./rvcmd_linux_amd64.deb
2020
rm -f ./rvcmd_linux_amd64.deb
2121
rvcmd -notrs -w 1 -notui assets/rvc

.github/workflows/unitest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ jobs:
1818
- name: Install dependencies
1919
run: |
2020
sudo apt update
21-
wget https://github.com/fumiama/RVC-Models-Downloader/releases/download/v0.2.5/rvcmd_linux_amd64.deb
21+
wget https://github.com/fumiama/RVC-Models-Downloader/releases/download/v0.2.11/rvcmd_linux_amd64.deb
2222
sudo apt -y install ./rvcmd_linux_amd64.deb
2323
pip install --force pip==24.0 # fix fairseq installing issue https://github.com/facebookresearch/fairseq/issues/5552
2424
python -m pip install --upgrade setuptools
2525
python -m pip install --upgrade wheel
2626
pip install torch torchvision torchaudio
27-
pip install -r requirements/main.txt
27+
pip install -r requirements/dml.txt
2828
rvcmd -notrs -w 1 -notui assets/rvc
2929
- name: Test step 1 & 2
3030
run: |

configs/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def device_config(self):
214214
self.use_fp32_config()
215215
else:
216216
logger.info("No supported Nvidia GPU found")
217-
self.device = self.instead = "cpu"
217+
self.device = self.instead = torch.get_default_device()
218218
self.is_half = False
219219
self.use_fp32_config()
220220

i18n/locale/ja_JP.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
"Takeover WASAPI device": "WASAPIデバイスを独占",
134134
"Target sample rate": "目標サンプリング率",
135135
"The audio file to be processed": "処理待ち音声",
136-
"This software is licensed under the GNU Affero General Public License, version 3.0 or later.<br>The author has no control or responsibility regarding the use of this software.<br>Users who use the software and distribute any content, including sounds or files generated by it, bear full responsibility for compliance with the terms of the AGPL 3.0 license.<br>If you do not accept these terms, you are prohibited from using, referencing, or distributing any code or files contained within this software package.<br>Refer to the LICENSE file located in the root directory for full details.": "This software is licensed under the GNU Affero General Public License, version 3.0 or later.<br>The author has no control or responsibility regarding the use of this software.<br>Users who use the software and distribute any content, including sounds or files generated by it, bear full responsibility for compliance with the terms of the AGPL 3.0 license.<br>If you do not accept these terms, you are prohibited from using, referencing, or distributing any code or files contained within this software package.<br>Refer to the LICENSE file located in the root directory for full details.",
136+
"This software is licensed under the GNU Affero General Public License, version 3.0 or later.<br>The author has no control or responsibility regarding the use of this software.<br>Users who use the software and distribute any content, including sounds or files generated by it, bear full responsibility for compliance with the terms of the AGPL 3.0 license.<br>If you do not accept these terms, you are prohibited from using, referencing, or distributing any code or files contained within this software package.<br>Refer to the LICENSE file located in the root directory for full details.": "本ソフトウェアは、GNU Affero General Public License バージョン3.0以降の下でライセンスされています。<br>作者は、このソフトウェアの使用に関して一切の管理権限や責任を負いません。<br>このソフトウェアを使用し、生成された音声やファイルを含むあらゆるコンテンツを配布するユーザーは、AGPL 3.0ライセンスの条項への準拠について全責任を負います。<br>これらの条項に同意しない場合、このソフトウェアパッケージに含まれるコードやファイルの使用、参照、配布は禁止されています。<br>詳細については、ルートディレクトリにあるLICENSEファイルを参照してください。",
137137
"Total training epochs (total_epoch)": "総エポック数",
138138
"Train": "学習",
139139
"Train feature index": "特徴索引の学習",

i18n/locale/zh_CN.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
"Takeover WASAPI device": "独占 WASAPI 设备",
134134
"Target sample rate": "目标采样率",
135135
"The audio file to be processed": "待处理音频文件",
136-
"This software is licensed under the GNU Affero General Public License, version 3.0 or later.<br>The author has no control or responsibility regarding the use of this software.<br>Users who use the software and distribute any content, including sounds or files generated by it, bear full responsibility for compliance with the terms of the AGPL 3.0 license.<br>If you do not accept these terms, you are prohibited from using, referencing, or distributing any code or files contained within this software package.<br>Refer to the LICENSE file located in the root directory for full details.": "This software is licensed under the GNU Affero General Public License, version 3.0 or later.<br>The author has no control or responsibility regarding the use of this software.<br>Users who use the software and distribute any content, including sounds or files generated by it, bear full responsibility for compliance with the terms of the AGPL 3.0 license.<br>If you do not accept these terms, you are prohibited from using, referencing, or distributing any code or files contained within this software package.<br>Refer to the LICENSE file located in the root directory for full details.",
136+
"This software is licensed under the GNU Affero General Public License, version 3.0 or later.<br>The author has no control or responsibility regarding the use of this software.<br>Users who use the software and distribute any content, including sounds or files generated by it, bear full responsibility for compliance with the terms of the AGPL 3.0 license.<br>If you do not accept these terms, you are prohibited from using, referencing, or distributing any code or files contained within this software package.<br>Refer to the LICENSE file located in the root directory for full details.": "本软件基于GNU Affero通用公共许可证3.0版本或更高版本进行许可。<br>作者对本软件的使用不承担任何控制权或责任。<br>使用本软件并分发任何内容(包括由其生成的声音或文件)的用户,需对遵守AGPL 3.0许可证条款承担全部责任。<br>如果您不接受这些条款,则禁止使用、引用或分发本软件包中包含的任何代码或文件。<br>请参阅位于根目录中的LICENSE文件以获取完整详情。",
137137
"Total training epochs (total_epoch)": "总训练轮数total_epoch",
138138
"Train": "训练",
139139
"Train feature index": "训练特征索引",

infer/lib/rvcmd.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -162,15 +162,7 @@ def download_and_extract_zip(url: str, folder: str):
162162
logger.info(f"extracted into {folder}")
163163

164164

165-
def download_dns_yaml(url: str, folder: str):
166-
logger.info(f"downloading {url}")
167-
response = requests.get(url, stream=True, timeout=(5, 10))
168-
with open(os.path.join(folder, "dns.yaml"), "wb") as out_file:
169-
out_file.write(response.content)
170-
logger.info(f"downloaded into {folder}")
171-
172-
173-
def download_all_assets(tmpdir: str, version="0.2.5"):
165+
def download_all_assets(tmpdir: str, version="0.2.11"):
174166
import subprocess
175167
import platform
176168

infer/modules/uvr5/modules.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,6 @@ def uvr(model_name, inp_root, save_root_vocal, paths, save_root_ins, agg, format
6262
os.path.basename(inp_path),
6363
)
6464
resample_audio(inp_path, tmp_path, "pcm_s16le", "s16", 44100, "stereo")
65-
try: # Remove the original file
66-
os.remove(inp_path)
67-
except Exception as e:
68-
print(f"Failed to remove the original file: {e}")
6965
inp_path = tmp_path
7066
try:
7167
if done == 0:

0 commit comments

Comments
 (0)