Spaces:
Runtime error
Runtime error
Upload 202 files
Browse filesThis view is limited to 50 files because it contains too many changes. ย
See raw diff
- Retrieval-based-Voice-Conversion-WebUI/.DS_Store +0 -0
- Retrieval-based-Voice-Conversion-WebUI/.env +8 -0
- Retrieval-based-Voice-Conversion-WebUI/.github/PULL_REQUEST_TEMPLATE.md +30 -0
- Retrieval-based-Voice-Conversion-WebUI/.github/workflows/docker.yml +70 -0
- Retrieval-based-Voice-Conversion-WebUI/.github/workflows/genlocale.yml +38 -0
- Retrieval-based-Voice-Conversion-WebUI/.github/workflows/pull_format.yml +48 -0
- Retrieval-based-Voice-Conversion-WebUI/.github/workflows/push_format.yml +52 -0
- Retrieval-based-Voice-Conversion-WebUI/.github/workflows/sync_dev.yml +23 -0
- Retrieval-based-Voice-Conversion-WebUI/.github/workflows/unitest.yml +36 -0
- Retrieval-based-Voice-Conversion-WebUI/.gitignore +23 -0
- Retrieval-based-Voice-Conversion-WebUI/Dockerfile +47 -0
- Retrieval-based-Voice-Conversion-WebUI/LICENSE +23 -0
- Retrieval-based-Voice-Conversion-WebUI/MITๅ่ฎฎๆจ็ธๅ ณๅผ็จๅบๅ่ฎฎ +45 -0
- Retrieval-based-Voice-Conversion-WebUI/README.md +177 -0
- Retrieval-based-Voice-Conversion-WebUI/Retrieval_based_Voice_Conversion_WebUI.ipynb +403 -0
- Retrieval-based-Voice-Conversion-WebUI/Retrieval_based_Voice_Conversion_WebUI_v2.ipynb +422 -0
- Retrieval-based-Voice-Conversion-WebUI/assets/Synthesizer_inputs.pth +3 -0
- Retrieval-based-Voice-Conversion-WebUI/assets/hubert/.gitignore +3 -0
- Retrieval-based-Voice-Conversion-WebUI/assets/hubert/hubert_inputs.pth +3 -0
- Retrieval-based-Voice-Conversion-WebUI/assets/pretrained/.gitignore +2 -0
- Retrieval-based-Voice-Conversion-WebUI/assets/pretrained_v2/.gitignore +2 -0
- Retrieval-based-Voice-Conversion-WebUI/assets/rmvpe/.gitignore +3 -0
- Retrieval-based-Voice-Conversion-WebUI/assets/rmvpe/rmvpe_inputs.pth +3 -0
- Retrieval-based-Voice-Conversion-WebUI/assets/uvr5_weights/.gitignore +2 -0
- Retrieval-based-Voice-Conversion-WebUI/assets/weights/.gitignore +2 -0
- Retrieval-based-Voice-Conversion-WebUI/configs/config.json +1 -0
- Retrieval-based-Voice-Conversion-WebUI/configs/config.py +251 -0
- Retrieval-based-Voice-Conversion-WebUI/configs/v1/32k.json +46 -0
- Retrieval-based-Voice-Conversion-WebUI/configs/v1/40k.json +46 -0
- Retrieval-based-Voice-Conversion-WebUI/configs/v1/48k.json +46 -0
- Retrieval-based-Voice-Conversion-WebUI/configs/v2/32k.json +46 -0
- Retrieval-based-Voice-Conversion-WebUI/configs/v2/48k.json +46 -0
- Retrieval-based-Voice-Conversion-WebUI/docker-compose.yml +20 -0
- Retrieval-based-Voice-Conversion-WebUI/docs/.DS_Store +0 -0
- Retrieval-based-Voice-Conversion-WebUI/docs/cn/Changelog_CN.md +109 -0
- Retrieval-based-Voice-Conversion-WebUI/docs/cn/faq.md +108 -0
- Retrieval-based-Voice-Conversion-WebUI/docs/en/Changelog_EN.md +105 -0
- Retrieval-based-Voice-Conversion-WebUI/docs/en/README.en.md +194 -0
- Retrieval-based-Voice-Conversion-WebUI/docs/en/faiss_tips_en.md +102 -0
- Retrieval-based-Voice-Conversion-WebUI/docs/en/faq_en.md +119 -0
- Retrieval-based-Voice-Conversion-WebUI/docs/en/training_tips_en.md +65 -0
- Retrieval-based-Voice-Conversion-WebUI/docs/fr/Changelog_FR.md +102 -0
- Retrieval-based-Voice-Conversion-WebUI/docs/fr/README.fr.md +146 -0
- Retrieval-based-Voice-Conversion-WebUI/docs/fr/faiss_tips_fr.md +105 -0
- Retrieval-based-Voice-Conversion-WebUI/docs/fr/faq_fr.md +169 -0
- Retrieval-based-Voice-Conversion-WebUI/docs/fr/training_tips_fr.md +65 -0
- Retrieval-based-Voice-Conversion-WebUI/docs/jp/README.ja.md +109 -0
- Retrieval-based-Voice-Conversion-WebUI/docs/jp/faiss_tips_ja.md +101 -0
- Retrieval-based-Voice-Conversion-WebUI/docs/jp/training_tips_ja.md +64 -0
- Retrieval-based-Voice-Conversion-WebUI/docs/kr/Changelog_KO.md +106 -0
Retrieval-based-Voice-Conversion-WebUI/.DS_Store
ADDED
Binary file (10.2 kB). View file
|
|
Retrieval-based-Voice-Conversion-WebUI/.env
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
OPENBLAS_NUM_THREADS = 1
|
2 |
+
no_proxy = localhost, 127.0.0.1, ::1
|
3 |
+
|
4 |
+
# You can change the location of the model, etc. by changing here
|
5 |
+
weight_root = assets/weights
|
6 |
+
weight_uvr5_root = assets/uvr5_weights
|
7 |
+
index_root = logs
|
8 |
+
rmvpe_root = assets/rmvpe
|
Retrieval-based-Voice-Conversion-WebUI/.github/PULL_REQUEST_TEMPLATE.md
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Pull request checklist
|
2 |
+
|
3 |
+
- [ ] The PR has a proper title. Use [Semantic Commit Messages](https://seesparkbox.com/foundry/semantic_commit_messages). (No more branch-name title please)
|
4 |
+
- [ ] Make sure you are requesting the right branch: `dev`.
|
5 |
+
- [ ] Make sure this is ready to be merged into the relevant branch. Please don't create a PR and let it hang for a few days.
|
6 |
+
- [ ] Ensure all tests are passing.
|
7 |
+
- [ ] Ensure linting is passing.
|
8 |
+
|
9 |
+
# PR type
|
10 |
+
|
11 |
+
- Bug fix / new feature / chore
|
12 |
+
|
13 |
+
# Description
|
14 |
+
|
15 |
+
- Describe what this pull request is for.
|
16 |
+
- What will it affect.
|
17 |
+
|
18 |
+
# Screenshot
|
19 |
+
|
20 |
+
- Please include a screenshot if applicable
|
21 |
+
|
22 |
+
# Localhost url to test on
|
23 |
+
|
24 |
+
- Please include a url on localhost to test.
|
25 |
+
|
26 |
+
# Jira Link
|
27 |
+
|
28 |
+
- Please include a link to the ticket if applicable.
|
29 |
+
|
30 |
+
[Ticket]()
|
Retrieval-based-Voice-Conversion-WebUI/.github/workflows/docker.yml
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Build and Push Docker Image
|
2 |
+
|
3 |
+
on:
|
4 |
+
workflow_dispatch:
|
5 |
+
push:
|
6 |
+
# Sequence of patterns matched against refs/tags
|
7 |
+
tags:
|
8 |
+
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
|
9 |
+
|
10 |
+
jobs:
|
11 |
+
build:
|
12 |
+
runs-on: ubuntu-latest
|
13 |
+
permissions:
|
14 |
+
packages: write
|
15 |
+
contents: read
|
16 |
+
steps:
|
17 |
+
- uses: actions/checkout@v3
|
18 |
+
- name: Set time zone
|
19 |
+
uses: szenius/[email protected]
|
20 |
+
with:
|
21 |
+
timezoneLinux: "Asia/Shanghai"
|
22 |
+
timezoneMacos: "Asia/Shanghai"
|
23 |
+
timezoneWindows: "China Standard Time"
|
24 |
+
|
25 |
+
# # ๅฆๆๆ dockerhub ่ดฆๆท๏ผๅฏไปฅๅจgithub็secretsไธญ้
็ฝฎไธ้ขไธคไธช๏ผ็ถๅๅๆถไธ้ขๆณจ้็่ฟๅ ่ก๏ผๅนถๅจmetaๆญฅ้ชค็imagesๅขๅ ไธ่ก ${{ github.repository }}
|
26 |
+
# - name: Login to DockerHub
|
27 |
+
# uses: docker/login-action@v1
|
28 |
+
# with:
|
29 |
+
# username: ${{ secrets.DOCKERHUB_USERNAME }}
|
30 |
+
# password: ${{ secrets.DOCKERHUB_TOKEN }}
|
31 |
+
|
32 |
+
- name: Login to GHCR
|
33 |
+
uses: docker/login-action@v2
|
34 |
+
with:
|
35 |
+
registry: ghcr.io
|
36 |
+
username: ${{ github.repository_owner }}
|
37 |
+
password: ${{ secrets.GITHUB_TOKEN }}
|
38 |
+
|
39 |
+
- name: Extract metadata (tags, labels) for Docker
|
40 |
+
id: meta
|
41 |
+
uses: docker/metadata-action@v4
|
42 |
+
with:
|
43 |
+
images: |
|
44 |
+
ghcr.io/${{ github.repository }}
|
45 |
+
# generate Docker tags based on the following events/attributes
|
46 |
+
# nightly, master, pr-2, 1.2.3, 1.2, 1
|
47 |
+
tags: |
|
48 |
+
type=schedule,pattern=nightly
|
49 |
+
type=edge
|
50 |
+
type=ref,event=branch
|
51 |
+
type=ref,event=pr
|
52 |
+
type=semver,pattern={{version}}
|
53 |
+
type=semver,pattern={{major}}.{{minor}}
|
54 |
+
type=semver,pattern={{major}}
|
55 |
+
|
56 |
+
- name: Set up QEMU
|
57 |
+
uses: docker/setup-qemu-action@v2
|
58 |
+
|
59 |
+
- name: Set up Docker Buildx
|
60 |
+
uses: docker/setup-buildx-action@v2
|
61 |
+
|
62 |
+
- name: Build and push
|
63 |
+
id: docker_build
|
64 |
+
uses: docker/build-push-action@v4
|
65 |
+
with:
|
66 |
+
context: .
|
67 |
+
platforms: linux/amd64,linux/arm64
|
68 |
+
push: true
|
69 |
+
tags: ${{ steps.meta.outputs.tags }}
|
70 |
+
labels: ${{ steps.meta.outputs.labels }}
|
Retrieval-based-Voice-Conversion-WebUI/.github/workflows/genlocale.yml
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Generate and Sync Locale
|
2 |
+
on:
|
3 |
+
push:
|
4 |
+
branches:
|
5 |
+
- main
|
6 |
+
- dev
|
7 |
+
jobs:
|
8 |
+
genlocale:
|
9 |
+
runs-on: ubuntu-latest
|
10 |
+
steps:
|
11 |
+
- uses: actions/checkout@master
|
12 |
+
|
13 |
+
- name: Run locale generation
|
14 |
+
run: |
|
15 |
+
python3 i18n/scan_i18n.py
|
16 |
+
cd i18n
|
17 |
+
python3 locale_diff.py
|
18 |
+
|
19 |
+
- name: Commit back
|
20 |
+
if: ${{ !github.head_ref }}
|
21 |
+
id: commitback
|
22 |
+
continue-on-error: true
|
23 |
+
run: |
|
24 |
+
git config --local user.name 'github-actions[bot]'
|
25 |
+
git config --local user.email 'github-actions[bot]@users.noreply.github.com'
|
26 |
+
git add --all
|
27 |
+
git commit -m "chore(i18n): sync locale on ${{github.ref_name}}"
|
28 |
+
|
29 |
+
- name: Create Pull Request
|
30 |
+
if: steps.commitback.outcome == 'success'
|
31 |
+
continue-on-error: true
|
32 |
+
uses: peter-evans/create-pull-request@v5
|
33 |
+
with:
|
34 |
+
delete-branch: true
|
35 |
+
body: "Automatically sync i18n translation jsons"
|
36 |
+
title: "chore(i18n): sync locale on ${{github.ref_name}}"
|
37 |
+
commit-message: "chore(i18n): sync locale on ${{github.ref_name}}"
|
38 |
+
branch: genlocale-${{github.ref_name}}
|
Retrieval-based-Voice-Conversion-WebUI/.github/workflows/pull_format.yml
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Check Pull Format
|
2 |
+
|
3 |
+
on:
|
4 |
+
pull_request_target:
|
5 |
+
types: [opened, reopened]
|
6 |
+
|
7 |
+
jobs:
|
8 |
+
# This workflow closes invalid PR
|
9 |
+
close_pr:
|
10 |
+
# The type of runner that the job will run on
|
11 |
+
runs-on: ubuntu-latest
|
12 |
+
permissions: write-all
|
13 |
+
|
14 |
+
# Steps represent a sequence of tasks that will be executed as part of the job
|
15 |
+
steps:
|
16 |
+
- name: Close PR if it is not pointed to dev branch
|
17 |
+
if: github.event.pull_request.base.ref != 'dev'
|
18 |
+
uses: superbrothers/close-pull-request@v3
|
19 |
+
with:
|
20 |
+
# Optional. Post a issue comment just before closing a pull request.
|
21 |
+
comment: "Invalid PR to `non-dev` branch `${{ github.event.pull_request.base.ref }}`."
|
22 |
+
|
23 |
+
pull_format:
|
24 |
+
runs-on: ubuntu-latest
|
25 |
+
permissions:
|
26 |
+
contents: write
|
27 |
+
|
28 |
+
continue-on-error: true
|
29 |
+
|
30 |
+
steps:
|
31 |
+
- name: Checkout
|
32 |
+
continue-on-error: true
|
33 |
+
uses: actions/checkout@v3
|
34 |
+
with:
|
35 |
+
ref: ${{ github.head_ref }}
|
36 |
+
fetch-depth: 0
|
37 |
+
|
38 |
+
- name: Set up Python ${{ matrix.python-version }}
|
39 |
+
uses: actions/setup-python@v4
|
40 |
+
with:
|
41 |
+
python-version: ${{ matrix.python-version }}
|
42 |
+
|
43 |
+
- name: Install Black
|
44 |
+
run: pip install "black[jupyter]"
|
45 |
+
|
46 |
+
- name: Run Black
|
47 |
+
# run: black $(git ls-files '*.py')
|
48 |
+
run: black .
|
Retrieval-based-Voice-Conversion-WebUI/.github/workflows/push_format.yml
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Standardize Code Format
|
2 |
+
|
3 |
+
on:
|
4 |
+
push:
|
5 |
+
branches:
|
6 |
+
- main
|
7 |
+
- dev
|
8 |
+
|
9 |
+
jobs:
|
10 |
+
push_format:
|
11 |
+
runs-on: ubuntu-latest
|
12 |
+
|
13 |
+
permissions:
|
14 |
+
contents: write
|
15 |
+
pull-requests: write
|
16 |
+
|
17 |
+
steps:
|
18 |
+
- uses: actions/checkout@v3
|
19 |
+
with:
|
20 |
+
ref: ${{github.ref_name}}
|
21 |
+
|
22 |
+
- name: Set up Python ${{ matrix.python-version }}
|
23 |
+
uses: actions/setup-python@v4
|
24 |
+
with:
|
25 |
+
python-version: ${{ matrix.python-version }}
|
26 |
+
|
27 |
+
- name: Install Black
|
28 |
+
run: pip install "black[jupyter]"
|
29 |
+
|
30 |
+
- name: Run Black
|
31 |
+
# run: black $(git ls-files '*.py')
|
32 |
+
run: black .
|
33 |
+
|
34 |
+
- name: Commit Back
|
35 |
+
continue-on-error: true
|
36 |
+
id: commitback
|
37 |
+
run: |
|
38 |
+
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
39 |
+
git config --local user.name "github-actions[bot]"
|
40 |
+
git add --all
|
41 |
+
git commit -m "chore(format): run black on ${{github.ref_name}}"
|
42 |
+
|
43 |
+
- name: Create Pull Request
|
44 |
+
if: steps.commitback.outcome == 'success'
|
45 |
+
continue-on-error: true
|
46 |
+
uses: peter-evans/create-pull-request@v5
|
47 |
+
with:
|
48 |
+
delete-branch: true
|
49 |
+
body: "Automatically apply code formatter change"
|
50 |
+
title: "chore(format): run black on ${{github.ref_name}}"
|
51 |
+
commit-message: "chore(format): run black on ${{github.ref_name}}"
|
52 |
+
branch: formatter-${{github.ref_name}}
|
Retrieval-based-Voice-Conversion-WebUI/.github/workflows/sync_dev.yml
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Merge dev into main
|
2 |
+
|
3 |
+
on:
|
4 |
+
workflow_dispatch:
|
5 |
+
|
6 |
+
jobs:
|
7 |
+
sync_dev:
|
8 |
+
runs-on: ubuntu-latest
|
9 |
+
|
10 |
+
permissions:
|
11 |
+
contents: write
|
12 |
+
pull-requests: write
|
13 |
+
|
14 |
+
steps:
|
15 |
+
- uses: actions/checkout@v3
|
16 |
+
with:
|
17 |
+
ref: main
|
18 |
+
|
19 |
+
- name: Create Pull Request
|
20 |
+
run: |
|
21 |
+
gh pr create --title "chore(sync): merge dev into main" --body "Merge dev to main" --base main --head dev
|
22 |
+
env:
|
23 |
+
GH_TOKEN: ${{ github.token }}
|
Retrieval-based-Voice-Conversion-WebUI/.github/workflows/unitest.yml
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Unit Test
|
2 |
+
on: [ push, pull_request ]
|
3 |
+
jobs:
|
4 |
+
build:
|
5 |
+
runs-on: ${{ matrix.os }}
|
6 |
+
strategy:
|
7 |
+
matrix:
|
8 |
+
python-version: ["3.8", "3.9", "3.10"]
|
9 |
+
os: [ubuntu-latest]
|
10 |
+
fail-fast: true
|
11 |
+
|
12 |
+
steps:
|
13 |
+
- uses: actions/checkout@master
|
14 |
+
- name: Set up Python ${{ matrix.python-version }}
|
15 |
+
uses: actions/setup-python@v4
|
16 |
+
with:
|
17 |
+
python-version: ${{ matrix.python-version }}
|
18 |
+
- name: Install dependencies
|
19 |
+
run: |
|
20 |
+
sudo apt update
|
21 |
+
sudo apt -y install ffmpeg
|
22 |
+
sudo apt -y install -qq aria2
|
23 |
+
aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/hubert_base.pt -d ./ -o hubert_base.pt
|
24 |
+
python -m pip install --upgrade pip
|
25 |
+
python -m pip install --upgrade setuptools
|
26 |
+
python -m pip install --upgrade wheel
|
27 |
+
pip install torch torchvision torchaudio
|
28 |
+
pip install -r requirements.txt
|
29 |
+
- name: Test step 1 & 2
|
30 |
+
run: |
|
31 |
+
mkdir -p logs/mi-test
|
32 |
+
touch logs/mi-test/preprocess.log
|
33 |
+
python infer/modules/train/preprocess.py logs/mute/0_gt_wavs 48000 8 logs/mi-test True 3.7
|
34 |
+
touch logs/mi-test/extract_f0_feature.log
|
35 |
+
python infer/modules/train/extract/extract_f0_print.py logs/mi-test $(nproc) pm
|
36 |
+
python infer/modules/train/extract_feature_print.py cpu 1 0 0 logs/mi-test v1
|
Retrieval-based-Voice-Conversion-WebUI/.gitignore
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.DS_Store
|
2 |
+
__pycache__
|
3 |
+
/TEMP
|
4 |
+
*.pyd
|
5 |
+
.venv
|
6 |
+
/opt
|
7 |
+
tools/aria2c/
|
8 |
+
tools/flag.txt
|
9 |
+
|
10 |
+
# Imported from huggingface.co/lj1995/VoiceConversionWebUI
|
11 |
+
/pretrained
|
12 |
+
/pretrained_v2
|
13 |
+
/uvr5_weights
|
14 |
+
hubert_base.pt
|
15 |
+
rmvpe.onnx
|
16 |
+
rmvpe.pt
|
17 |
+
|
18 |
+
# Generated by RVC
|
19 |
+
/logs
|
20 |
+
/weights
|
21 |
+
|
22 |
+
# To set a Python version for the project
|
23 |
+
.tool-versions
|
Retrieval-based-Voice-Conversion-WebUI/Dockerfile
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# syntax=docker/dockerfile:1
|
2 |
+
|
3 |
+
FROM nvidia/cuda:11.6.2-cudnn8-runtime-ubuntu20.04
|
4 |
+
|
5 |
+
EXPOSE 7865
|
6 |
+
|
7 |
+
WORKDIR /app
|
8 |
+
|
9 |
+
COPY . .
|
10 |
+
|
11 |
+
# Install dependenceis to add PPAs
|
12 |
+
RUN apt-get update && \
|
13 |
+
apt-get install -y -qq ffmpeg aria2 && apt clean && \
|
14 |
+
apt-get install -y software-properties-common && \
|
15 |
+
apt-get clean && \
|
16 |
+
rm -rf /var/lib/apt/lists/*
|
17 |
+
|
18 |
+
# Add the deadsnakes PPA to get Python 3.9
|
19 |
+
RUN add-apt-repository ppa:deadsnakes/ppa
|
20 |
+
|
21 |
+
# Install Python 3.9 and pip
|
22 |
+
RUN apt-get update && \
|
23 |
+
apt-get install -y build-essential python-dev python3-dev python3.9-distutils python3.9-dev python3.9 curl && \
|
24 |
+
apt-get clean && \
|
25 |
+
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1 && \
|
26 |
+
curl https://bootstrap.pypa.io/get-pip.py | python3.9
|
27 |
+
|
28 |
+
# Set Python 3.9 as the default
|
29 |
+
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.9 1
|
30 |
+
|
31 |
+
RUN python3 -m pip install --no-cache-dir -r requirements.txt
|
32 |
+
|
33 |
+
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained_v2/D40k.pth -d assets/pretrained_v2/ -o D40k.pth
|
34 |
+
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained_v2/G40k.pth -d assets/pretrained_v2/ -o G40k.pth
|
35 |
+
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained_v2/f0D40k.pth -d assets/pretrained_v2/ -o f0D40k.pth
|
36 |
+
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained_v2/f0G40k.pth -d assets/pretrained_v2/ -o f0G40k.pth
|
37 |
+
|
38 |
+
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/uvr5_weights/HP2-ไบบๅฃฐvocals+้ไบบๅฃฐinstrumentals.pth -d assets/uvr5_weights/ -o HP2-ไบบๅฃฐvocals+้ไบบๅฃฐinstrumentals.pth
|
39 |
+
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/uvr5_weights/HP5-ไธปๆๅพไบบๅฃฐvocals+ๅ
ถไปinstrumentals.pth -d assets/uvr5_weights/ -o HP5-ไธปๆๅพไบบๅฃฐvocals+ๅ
ถไปinstrumentals.pth
|
40 |
+
|
41 |
+
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/hubert_base.pt -d assets/hubert -o hubert_base.pt
|
42 |
+
|
43 |
+
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/rmvpe.pt -d assets/rmvpe -o rmvpe.pt
|
44 |
+
|
45 |
+
VOLUME [ "/app/weights", "/app/opt" ]
|
46 |
+
|
47 |
+
CMD ["python3", "infer-web.py"]
|
Retrieval-based-Voice-Conversion-WebUI/LICENSE
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
MIT License
|
2 |
+
|
3 |
+
Copyright (c) 2023 liujing04
|
4 |
+
Copyright (c) 2023 ๆบๆ้จ
|
5 |
+
Copyright (c) 2023 Ftps
|
6 |
+
|
7 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
8 |
+
of this software and associated documentation files (the "Software"), to deal
|
9 |
+
in the Software without restriction, including without limitation the rights
|
10 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
11 |
+
copies of the Software, and to permit persons to whom the Software is
|
12 |
+
furnished to do so, subject to the following conditions:
|
13 |
+
|
14 |
+
The above copyright notice and this permission notice shall be included in all
|
15 |
+
copies or substantial portions of the Software.
|
16 |
+
|
17 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
22 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
23 |
+
SOFTWARE.
|
Retrieval-based-Voice-Conversion-WebUI/MITๅ่ฎฎๆจ็ธๅ
ณๅผ็จๅบๅ่ฎฎ
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
ๆฌ่ฝฏไปถๅๅ
ถ็ธๅ
ณไปฃ็ ไปฅMITๅ่ฎฎๅผๆบ๏ผไฝ่
ไธๅฏน่ฝฏไปถๅ
ทๅคไปปไฝๆงๅถๅ๏ผไฝฟ็จ่ฝฏไปถ่
ใไผ ๆญ่ฝฏไปถๅฏผๅบ็ๅฃฐ้ณ่
่ช่ดๅ
จ่ดฃใ
|
2 |
+
ๅฆไธ่ฎคๅฏ่ฏฅๆกๆฌพ๏ผๅไธ่ฝไฝฟ็จๆๅผ็จ่ฝฏไปถๅ
ๅ
ไปปไฝไปฃ็ ๅๆไปถใ
|
3 |
+
|
4 |
+
็นๆญคๆไบไปปไฝ่ทๅพๆฌ่ฝฏไปถๅ็ธๅ
ณๆๆกฃๆไปถ๏ผไปฅไธ็ฎ็งฐโ่ฝฏไปถโ๏ผๅฏๆฌ็ไบบๅ
่ดนไฝฟ็จใๅคๅถใไฟฎๆนใๅๅนถใๅบ็ใๅๅใๅๆๆๅ/ๆ้ๅฎๆฌ่ฝฏไปถ็ๆๅฉ๏ผไปฅๅๆไบๆฌ่ฝฏไปถๆๆไพ็ไบบไฝฟ็จๆฌ่ฝฏไปถ็ๆๅฉ๏ผไฝ้กป็ฌฆๅไปฅไธๆกไปถ๏ผ
|
5 |
+
ไธ่ฟฐ็ๆๅฃฐๆๅๆฌ่ฎธๅฏๅฃฐๆๅบๅ
ๅซๅจ่ฝฏไปถ็ๆๆๅฏๆฌๆๅฎ่ดจ้จๅไธญใ
|
6 |
+
่ฝฏไปถๆฏโๆๅๆ ทโๆไพ็๏ผๆฒกๆไปปไฝๆ็คบๆๆ็คบ็ไฟ่ฏ๏ผๅ
ๆฌไฝไธ้ไบ้้ๆงใ้็จไบ็นๅฎ็ฎ็ๅไธไพตๆ็ไฟ่ฏใๅจไปปไฝๆ
ๅตไธ๏ผไฝ่
ๆ็ๆๆๆไบบๅไธๆฟๆ
ๅ ่ฝฏไปถๆ่ฝฏไปถ็ไฝฟ็จๆๅ
ถไปไบคๆ่ไบง็ใไบง็ๆไธไน็ธๅ
ณ็ไปปไฝ็ดข่ตใๆๅฎณ่ตๅฟๆๅ
ถไป่ดฃไปป๏ผๆ ่ฎบๆฏๅจๅๅ่ฏ่ฎผใไพตๆ่ฏ่ฎผ่ฟๆฏๅ
ถไป่ฏ่ฎผไธญใ
|
7 |
+
|
8 |
+
|
9 |
+
The LICENCEs for related libraries are as follows.
|
10 |
+
็ธๅ
ณๅผ็จๅบๅ่ฎฎๅฆไธ๏ผ
|
11 |
+
|
12 |
+
ContentVec
|
13 |
+
https://github.com/auspicious3000/contentvec/blob/main/LICENSE
|
14 |
+
MIT License
|
15 |
+
|
16 |
+
VITS
|
17 |
+
https://github.com/jaywalnut310/vits/blob/main/LICENSE
|
18 |
+
MIT License
|
19 |
+
|
20 |
+
HIFIGAN
|
21 |
+
https://github.com/jik876/hifi-gan/blob/master/LICENSE
|
22 |
+
MIT License
|
23 |
+
|
24 |
+
gradio
|
25 |
+
https://github.com/gradio-app/gradio/blob/main/LICENSE
|
26 |
+
Apache License 2.0
|
27 |
+
|
28 |
+
ffmpeg
|
29 |
+
https://github.com/FFmpeg/FFmpeg/blob/master/COPYING.LGPLv3
|
30 |
+
https://github.com/BtbN/FFmpeg-Builds/releases/download/autobuild-2021-02-28-12-32/ffmpeg-n4.3.2-160-gfbb9368226-win64-lgpl-4.3.zip
|
31 |
+
LPGLv3 License
|
32 |
+
MIT License
|
33 |
+
|
34 |
+
ultimatevocalremovergui
|
35 |
+
https://github.com/Anjok07/ultimatevocalremovergui/blob/master/LICENSE
|
36 |
+
https://github.com/yang123qwe/vocal_separation_by_uvr5
|
37 |
+
MIT License
|
38 |
+
|
39 |
+
audio-slicer
|
40 |
+
https://github.com/openvpi/audio-slicer/blob/main/LICENSE
|
41 |
+
MIT License
|
42 |
+
|
43 |
+
PySimpleGUI
|
44 |
+
https://github.com/PySimpleGUI/PySimpleGUI/blob/master/license.txt
|
45 |
+
LPGLv3 License
|
Retrieval-based-Voice-Conversion-WebUI/README.md
ADDED
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div align="center">
|
2 |
+
|
3 |
+
<h1>Retrieval-based-Voice-Conversion-WebUI</h1>
|
4 |
+
ไธไธชๅบไบVITS็็ฎๅๆ็จ็ๅๅฃฐๆกๆถ<br><br>
|
5 |
+
|
6 |
+
[![madewithlove](https://img.shields.io/badge/made_with-%E2%9D%A4-red?style=for-the-badge&labelColor=orange
|
7 |
+
)](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI)
|
8 |
+
|
9 |
+
<img src="https://counter.seku.su/cmoe?name=rvc&theme=r34" /><br>
|
10 |
+
|
11 |
+
[![Open In Colab](https://img.shields.io/badge/Colab-F9AB00?style=for-the-badge&logo=googlecolab&color=525252)](https://colab.research.google.com/github/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/blob/main/Retrieval_based_Voice_Conversion_WebUI.ipynb)
|
12 |
+
[![Licence](https://img.shields.io/badge/LICENSE-MIT-green.svg?style=for-the-badge)](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/blob/main/LICENSE)
|
13 |
+
[![Huggingface](https://img.shields.io/badge/๐ค%20-Spaces-yellow.svg?style=for-the-badge)](https://huggingface.co/lj1995/VoiceConversionWebUI/tree/main/)
|
14 |
+
|
15 |
+
[![Discord](https://img.shields.io/badge/RVC%20Developers-Discord-7289DA?style=for-the-badge&logo=discord&logoColor=white)](https://discord.gg/HcsmBBGyVk)
|
16 |
+
|
17 |
+
[**ๆดๆฐๆฅๅฟ**](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/blob/main/docs/Changelog_CN.md) | [**ๅธธ่ง้ฎ้ข่งฃ็ญ**](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/wiki/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98%E8%A7%A3%E7%AD%94) | [**AutoDLยท5ๆฏ้ฑ่ฎญ็ปAIๆญๆ**](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/wiki/Autodl%E8%AE%AD%E7%BB%83RVC%C2%B7AI%E6%AD%8C%E6%89%8B%E6%95%99%E7%A8%8B) | [**ๅฏน็
งๅฎ้ช่ฎฐๅฝ**](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/wiki/Autodl%E8%AE%AD%E7%BB%83RVC%C2%B7AI%E6%AD%8C%E6%89%8B%E6%95%99%E7%A8%8B](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/wiki/%E5%AF%B9%E7%85%A7%E5%AE%9E%E9%AA%8C%C2%B7%E5%AE%9E%E9%AA%8C%E8%AE%B0%E5%BD%95)) | [**ๅจ็บฟๆผ็คบ**](https://huggingface.co/spaces/Ricecake123/RVC-demo)
|
18 |
+
|
19 |
+
</div>
|
20 |
+
|
21 |
+
------
|
22 |
+
|
23 |
+
[**English**](./docs/en/README.en.md) | [**ไธญๆ็ฎไฝ**](./README.md) | [**ๆฅๆฌ่ช**](./docs/jp/README.ja.md) | [**ํ๊ตญ์ด**](./docs/kr/README.ko.md) ([**้ๅ่ช**](./docs/kr/README.ko.han.md)) | [**Franรงais**](./docs/fr/README.fr.md)| [**Tรผrkรงe**](./docs/tr/README.tr.md)
|
24 |
+
|
25 |
+
็นๆญคๆฅ็ๆไปฌ็[ๆผ็คบ่ง้ข](https://www.bilibili.com/video/BV1pm4y1z7Gm/) !
|
26 |
+
|
27 |
+
่ฎญ็ปๆจ็็้ข๏ผgo-web.bat
|
28 |
+
|
29 |
+
![image](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/assets/129054828/092e5c12-0d49-4168-a590-0b0ef6a4f630)
|
30 |
+
|
31 |
+
ๅฎๆถๅๅฃฐ็้ข๏ผgo-realtime-gui.bat
|
32 |
+
|
33 |
+
![image](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/assets/129054828/143246a9-8b42-4dd1-a197-430ede4d15d7)
|
34 |
+
|
35 |
+
> ๅบๆจกไฝฟ็จๆฅ่ฟ50ๅฐๆถ็ๅผๆบ้ซ่ดจ้VCTK่ฎญ็ป้่ฎญ็ป๏ผๆ ็ๆๆน้ข็้กพ่๏ผ่ฏทๅคงๅฎถๆพๅฟไฝฟ็จ
|
36 |
+
|
37 |
+
> ่ฏทๆๅพ
RVCv3็ๅบๆจก๏ผๅๆฐๆดๅคง๏ผๆฐๆฎๆดๅคง๏ผๆๆๆดๅฅฝ๏ผๅบๆฌๆๅนณ็ๆจ็้ๅบฆ๏ผ้่ฆ่ฎญ็ปๆฐๆฎ้ๆดๅฐใ
|
38 |
+
|
39 |
+
## ็ฎไป
|
40 |
+
ๆฌไปๅบๅ
ทๆไปฅไธ็น็น
|
41 |
+
+ ไฝฟ็จtop1ๆฃ็ดขๆฟๆข่พๅ
ฅๆบ็นๅพไธบ่ฎญ็ป้็นๅพๆฅๆ็ป้ณ่ฒๆณๆผ
|
42 |
+
+ ๅณไพฟๅจ็ธๅฏน่พๅทฎ็ๆพๅกไธไน่ฝๅฟซ้่ฎญ็ป
|
43 |
+
+ ไฝฟ็จๅฐ้ๆฐๆฎ่ฟ่ก่ฎญ็ปไน่ฝๅพๅฐ่พๅฅฝ็ปๆ(ๆจ่่ณๅฐๆถ้10ๅ้ไฝๅบๅช่ฏญ้ณๆฐๆฎ)
|
44 |
+
+ ๅฏไปฅ้่ฟๆจกๅ่ๅๆฅๆนๅ้ณ่ฒ(ๅๅฉckptๅค็้้กนๅกไธญ็ckpt-merge)
|
45 |
+
+ ็ฎๅๆ็จ็็ฝ้กต็้ข
|
46 |
+
+ ๅฏ่ฐ็จUVR5ๆจกๅๆฅๅฟซ้ๅ็ฆปไบบๅฃฐๅไผดๅฅ
|
47 |
+
+ ไฝฟ็จๆๅ
่ฟ็[ไบบๅฃฐ้ณ้ซๆๅ็ฎๆณInterSpeech2023-RMVPE](#ๅ่้กน็ฎ)ๆ น็ปๅ้ณ้ฎ้ขใๆๆๆๅฅฝ๏ผๆพ่ๅฐ๏ผไฝๆฏcrepe_fullๆดๅฟซใ่ตๆบๅ ็จๆดๅฐ
|
48 |
+
+ AๅกIๅกๅ ้ๆฏๆ
|
49 |
+
|
50 |
+
## ็ฏๅข้
็ฝฎ
|
51 |
+
ไปฅไธๆไปค้ๅจ Python ็ๆฌๅคงไบ3.8็็ฏๅขไธญๆง่กใ
|
52 |
+
|
53 |
+
(Windows/Linux)
|
54 |
+
้ฆๅ
้่ฟ pip ๅฎ่ฃ
ไธป่ฆไพ่ต:
|
55 |
+
```bash
|
56 |
+
# ๅฎ่ฃ
Pytorchๅๅ
ถๆ ธๅฟไพ่ต๏ผ่ฅๅทฒๅฎ่ฃ
ๅ่ทณ่ฟ
|
57 |
+
# ๅ่่ช: https://pytorch.org/get-started/locally/
|
58 |
+
pip install torch torchvision torchaudio
|
59 |
+
|
60 |
+
#ๅฆๆๆฏwin็ณป็ป+Nvidia Ampereๆถๆ(RTX30xx)๏ผๆ นๆฎ #21 ็็ป้ช๏ผ้่ฆๆๅฎpytorchๅฏนๅบ็cuda็ๆฌ
|
61 |
+
#pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117
|
62 |
+
```
|
63 |
+
|
64 |
+
ๅฏไปฅไฝฟ็จ poetry ๆฅๅฎ่ฃ
ไพ่ต๏ผ
|
65 |
+
```bash
|
66 |
+
# ๅฎ่ฃ
Poetry ไพ่ต็ฎก็ๅทฅๅ
ท, ่ฅๅทฒๅฎ่ฃ
ๅ่ทณ่ฟ
|
67 |
+
# ๅ่่ช: https://python-poetry.org/docs/#installation
|
68 |
+
curl -sSL https://install.python-poetry.org | python3 -
|
69 |
+
|
70 |
+
# ้่ฟpoetryๅฎ่ฃ
ไพ่ต
|
71 |
+
poetry install
|
72 |
+
```
|
73 |
+
|
74 |
+
ไฝ ไนๅฏไปฅ้่ฟ pip ๆฅๅฎ่ฃ
ไพ่ต๏ผ
|
75 |
+
```bash
|
76 |
+
Nๅก๏ผ
|
77 |
+
pip install -r requirements.txt
|
78 |
+
|
79 |
+
Aๅก/Iๅก๏ผ
|
80 |
+
pip install -r requirements-dml.txt
|
81 |
+
|
82 |
+
AๅกRocm๏ผLinux๏ผ๏ผ
|
83 |
+
pip install -r requirements-amd.txt
|
84 |
+
|
85 |
+
IๅกIPEX๏ผLinux๏ผ๏ผ
|
86 |
+
pip install -r requirements-ipex.txt
|
87 |
+
```
|
88 |
+
|
89 |
+
------
|
90 |
+
Mac ็จๆทๅฏไปฅ้่ฟ `run.sh` ๆฅๅฎ่ฃ
ไพ่ต๏ผ
|
91 |
+
```bash
|
92 |
+
sh ./run.sh
|
93 |
+
```
|
94 |
+
|
95 |
+
## ๅ
ถไป้ขๆจกๅๅๅค
|
96 |
+
RVC้่ฆๅ
ถไปไธไบ้ขๆจกๅๆฅๆจ็ๅ่ฎญ็ปใ
|
97 |
+
|
98 |
+
ไฝ ๅฏไปฅไปๆไปฌ็[Hugging Face space](https://huggingface.co/lj1995/VoiceConversionWebUI/tree/main/)ไธ่ฝฝๅฐ่ฟไบๆจกๅใ
|
99 |
+
|
100 |
+
ไปฅไธๆฏไธไปฝๆธ
ๅ๏ผๅ
ๆฌไบๆๆRVCๆ้็้ขๆจกๅๅๅ
ถไปๆไปถ็ๅ็งฐ:
|
101 |
+
```bash
|
102 |
+
./assets/hubert/hubert_base.pt
|
103 |
+
|
104 |
+
./assets/pretrained
|
105 |
+
|
106 |
+
./assets/uvr5_weights
|
107 |
+
|
108 |
+
ๆณๆต่ฏv2็ๆฌๆจกๅ็่ฏ๏ผ้่ฆ้ขๅคไธ่ฝฝ
|
109 |
+
|
110 |
+
./assets/pretrained_v2
|
111 |
+
|
112 |
+
ๅฆๆไฝ ๆญฃๅจไฝฟ็จWindows๏ผๅไฝ ๅฏ่ฝ้่ฆ่ฟไธชๆไปถ๏ผ่ฅffmpegๅffprobeๅทฒๅฎ่ฃ
ๅ่ทณ่ฟ; ubuntu/debian ็จๆทๅฏไปฅ้่ฟapt install ffmpegๆฅๅฎ่ฃ
่ฟ2ไธชๅบ, Mac ็จๆทๅๅฏไปฅ้่ฟbrew install ffmpegๆฅๅฎ่ฃ
(้่ฆ้ขๅ
ๅฎ่ฃ
brew)
|
113 |
+
|
114 |
+
./ffmpeg
|
115 |
+
|
116 |
+
https://huggingface.co/lj1995/VoiceConversionWebUI/blob/main/ffmpeg.exe
|
117 |
+
|
118 |
+
./ffprobe
|
119 |
+
|
120 |
+
https://huggingface.co/lj1995/VoiceConversionWebUI/blob/main/ffprobe.exe
|
121 |
+
|
122 |
+
ๅฆๆไฝ ๆณไฝฟ็จๆๆฐ็RMVPEไบบๅฃฐ้ณ้ซๆๅ็ฎๆณ๏ผๅไฝ ้่ฆไธ่ฝฝ้ณ้ซๆๅๆจกๅๅๆฐๅนถๆพ็ฝฎไบRVCๆ น็ฎๅฝ
|
123 |
+
|
124 |
+
https://huggingface.co/lj1995/VoiceConversionWebUI/blob/main/rmvpe.pt
|
125 |
+
|
126 |
+
AๅกIๅก็จๆท้่ฆ็dml็ฏๅข่ฆ่ฏทไธ่ฝฝ
|
127 |
+
|
128 |
+
https://huggingface.co/lj1995/VoiceConversionWebUI/blob/main/rmvpe.onnx
|
129 |
+
|
130 |
+
```
|
131 |
+
ไนๅไฝฟ็จไปฅไธๆไปคๆฅๅฏๅจWebUI:
|
132 |
+
```bash
|
133 |
+
python infer-web.py
|
134 |
+
```
|
135 |
+
ๅฆๆไฝ ๆญฃๅจไฝฟ็จWindows ๆ macOS๏ผไฝ ๅฏไปฅ็ดๆฅไธ่ฝฝๅนถ่งฃๅ`RVC-beta.7z`๏ผๅ่
ๅฏไปฅ่ฟ่ก`go-web.bat`ไปฅๅฏๅจWebUI๏ผๅ่
ๅ่ฟ่กๅฝไปค`sh ./run.sh`ไปฅๅฏๅจWebUIใ
|
136 |
+
|
137 |
+
ๅฏนไบ้่ฆไฝฟ็จIPEXๆๆฏ็Iๅก็จๆท๏ผ่ฏทๅ
ๅจ็ป็ซฏๆง่ก`source /opt/intel/oneapi/setvars.sh`๏ผไป
Linux๏ผใ
|
138 |
+
|
139 |
+
ไปๅบๅ
่ฟๆไธไปฝ`ๅฐ็ฝ็ฎๆๆ็จ.doc`ไปฅไพๅ่ใ
|
140 |
+
|
141 |
+
## AMDๆพๅกRocm็ธๅ
ณ๏ผไป
Linux๏ผ
|
142 |
+
ๅฆๆไฝ ๆณๅบไบAMD็RocmๆๆฏๅจLinux็ณป็ปไธ่ฟ่กRVC๏ผ่ฏทๅ
ๅจ[่ฟ้](https://rocm.docs.amd.com/en/latest/deploy/linux/os-native/install.html)ๅฎ่ฃ
ๆ้็้ฉฑๅจใ
|
143 |
+
|
144 |
+
่ฅไฝ ไฝฟ็จ็ๆฏArch Linux๏ผๅฏไปฅไฝฟ็จpacmanๆฅๅฎ่ฃ
ๆ้้ฉฑๅจ๏ผ
|
145 |
+
````
|
146 |
+
pacman -S rocm-hip-sdk rocm-opencl-sdk
|
147 |
+
````
|
148 |
+
ๅฏนไบๆไบๅๅท็ๆพๅก๏ผไฝ ๅฏ่ฝ้่ฆ้ขๅค้
็ฝฎๅฆไธ็็ฏๅขๅ้๏ผๅฆ๏ผRX6700XT๏ผ๏ผ
|
149 |
+
````
|
150 |
+
export ROCM_PATH=/opt/rocm
|
151 |
+
export HSA_OVERRIDE_GFX_VERSION=10.3.0
|
152 |
+
````
|
153 |
+
ๅๆถ็กฎไฟไฝ ็ๅฝๅ็จๆทๅคไบ`render`ไธ`video`็จๆท็ปๅ
๏ผ
|
154 |
+
````
|
155 |
+
sudo usermod -aG render $USERNAME
|
156 |
+
sudo usermod -aG video $USERNAME
|
157 |
+
````
|
158 |
+
ไนๅ่ฟ่กWebUI๏ผ
|
159 |
+
```bash
|
160 |
+
python infer-web.py
|
161 |
+
```
|
162 |
+
|
163 |
+
## ๅ่้กน็ฎ
|
164 |
+
+ [ContentVec](https://github.com/auspicious3000/contentvec/)
|
165 |
+
+ [VITS](https://github.com/jaywalnut310/vits)
|
166 |
+
+ [HIFIGAN](https://github.com/jik876/hifi-gan)
|
167 |
+
+ [Gradio](https://github.com/gradio-app/gradio)
|
168 |
+
+ [FFmpeg](https://github.com/FFmpeg/FFmpeg)
|
169 |
+
+ [Ultimate Vocal Remover](https://github.com/Anjok07/ultimatevocalremovergui)
|
170 |
+
+ [audio-slicer](https://github.com/openvpi/audio-slicer)
|
171 |
+
+ [Vocal pitch extraction:RMVPE](https://github.com/Dream-High/RMVPE)
|
172 |
+
+ The pretrained model is trained and tested by [yxlllc](https://github.com/yxlllc/RMVPE) and [RVC-Boss](https://github.com/RVC-Boss).
|
173 |
+
|
174 |
+
## ๆ่ฐขๆๆ่ดก็ฎ่
ไฝๅบ็ๅชๅ
|
175 |
+
<a href="https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/graphs/contributors" target="_blank">
|
176 |
+
<img src="https://contrib.rocks/image?repo=RVC-Project/Retrieval-based-Voice-Conversion-WebUI" />
|
177 |
+
</a>
|
Retrieval-based-Voice-Conversion-WebUI/Retrieval_based_Voice_Conversion_WebUI.ipynb
ADDED
@@ -0,0 +1,403 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cells": [
|
3 |
+
{
|
4 |
+
"attachments": {},
|
5 |
+
"cell_type": "markdown",
|
6 |
+
"metadata": {},
|
7 |
+
"source": [
|
8 |
+
"# [Retrieval-based-Voice-Conversion-WebUI](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI) Training notebook"
|
9 |
+
]
|
10 |
+
},
|
11 |
+
{
|
12 |
+
"attachments": {},
|
13 |
+
"cell_type": "markdown",
|
14 |
+
"metadata": {
|
15 |
+
"id": "ZFFCx5J80SGa"
|
16 |
+
},
|
17 |
+
"source": [
|
18 |
+
"[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/blob/main/Retrieval_based_Voice_Conversion_WebUI.ipynb)"
|
19 |
+
]
|
20 |
+
},
|
21 |
+
{
|
22 |
+
"cell_type": "code",
|
23 |
+
"execution_count": null,
|
24 |
+
"metadata": {
|
25 |
+
"id": "GmFP6bN9dvOq"
|
26 |
+
},
|
27 |
+
"outputs": [],
|
28 |
+
"source": [
|
29 |
+
"# @title ๆฅ็ๆพๅก\n",
|
30 |
+
"!nvidia-smi"
|
31 |
+
]
|
32 |
+
},
|
33 |
+
{
|
34 |
+
"cell_type": "code",
|
35 |
+
"execution_count": null,
|
36 |
+
"metadata": {
|
37 |
+
"id": "jwu07JgqoFON"
|
38 |
+
},
|
39 |
+
"outputs": [],
|
40 |
+
"source": [
|
41 |
+
"# @title ๆ่ฝฝ่ฐทๆญไบ็\n",
|
42 |
+
"\n",
|
43 |
+
"from google.colab import drive\n",
|
44 |
+
"\n",
|
45 |
+
"drive.mount(\"/content/drive\")"
|
46 |
+
]
|
47 |
+
},
|
48 |
+
{
|
49 |
+
"cell_type": "code",
|
50 |
+
"execution_count": null,
|
51 |
+
"metadata": {
|
52 |
+
"id": "wjddIFr1oS3W"
|
53 |
+
},
|
54 |
+
"outputs": [],
|
55 |
+
"source": [
|
56 |
+
"# @title ๅฎ่ฃ
ไพ่ต\n",
|
57 |
+
"!apt-get -y install build-essential python3-dev ffmpeg\n",
|
58 |
+
"!pip3 install --upgrade setuptools wheel\n",
|
59 |
+
"!pip3 install --upgrade pip\n",
|
60 |
+
"!pip3 install faiss-cpu==1.7.2 fairseq gradio==3.14.0 ffmpeg ffmpeg-python praat-parselmouth pyworld numpy==1.23.5 numba==0.56.4 librosa==0.9.2"
|
61 |
+
]
|
62 |
+
},
|
63 |
+
{
|
64 |
+
"cell_type": "code",
|
65 |
+
"execution_count": null,
|
66 |
+
"metadata": {
|
67 |
+
"id": "ge_97mfpgqTm"
|
68 |
+
},
|
69 |
+
"outputs": [],
|
70 |
+
"source": [
|
71 |
+
"# @title ๅ
้ไปๅบ\n",
|
72 |
+
"\n",
|
73 |
+
"!git clone --depth=1 -b stable https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI\n",
|
74 |
+
"%cd /content/Retrieval-based-Voice-Conversion-WebUI\n",
|
75 |
+
"!mkdir -p pretrained uvr5_weights"
|
76 |
+
]
|
77 |
+
},
|
78 |
+
{
|
79 |
+
"cell_type": "code",
|
80 |
+
"execution_count": null,
|
81 |
+
"metadata": {
|
82 |
+
"id": "BLDEZADkvlw1"
|
83 |
+
},
|
84 |
+
"outputs": [],
|
85 |
+
"source": [
|
86 |
+
"# @title ๆดๆฐไปๅบ๏ผไธ่ฌๆ ้ๆง่ก๏ผ\n",
|
87 |
+
"!git pull"
|
88 |
+
]
|
89 |
+
},
|
90 |
+
{
|
91 |
+
"cell_type": "code",
|
92 |
+
"execution_count": null,
|
93 |
+
"metadata": {
|
94 |
+
"id": "pqE0PrnuRqI2"
|
95 |
+
},
|
96 |
+
"outputs": [],
|
97 |
+
"source": [
|
98 |
+
"# @title ๅฎ่ฃ
aria2\n",
|
99 |
+
"!apt -y install -qq aria2"
|
100 |
+
]
|
101 |
+
},
|
102 |
+
{
|
103 |
+
"cell_type": "code",
|
104 |
+
"execution_count": null,
|
105 |
+
"metadata": {
|
106 |
+
"id": "UG3XpUwEomUz"
|
107 |
+
},
|
108 |
+
"outputs": [],
|
109 |
+
"source": [
|
110 |
+
"# @title ไธ่ฝฝๅบๆจก\n",
|
111 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained/D32k.pth -d /content/Retrieval-based-Voice-Conversion-WebUI/pretrained -o D32k.pth\n",
|
112 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained/D40k.pth -d /content/Retrieval-based-Voice-Conversion-WebUI/pretrained -o D40k.pth\n",
|
113 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained/D48k.pth -d /content/Retrieval-based-Voice-Conversion-WebUI/pretrained -o D48k.pth\n",
|
114 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained/G32k.pth -d /content/Retrieval-based-Voice-Conversion-WebUI/pretrained -o G32k.pth\n",
|
115 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained/G40k.pth -d /content/Retrieval-based-Voice-Conversion-WebUI/pretrained -o G40k.pth\n",
|
116 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained/G48k.pth -d /content/Retrieval-based-Voice-Conversion-WebUI/pretrained -o G48k.pth\n",
|
117 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained/f0D32k.pth -d /content/Retrieval-based-Voice-Conversion-WebUI/pretrained -o f0D32k.pth\n",
|
118 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained/f0D40k.pth -d /content/Retrieval-based-Voice-Conversion-WebUI/pretrained -o f0D40k.pth\n",
|
119 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained/f0D48k.pth -d /content/Retrieval-based-Voice-Conversion-WebUI/pretrained -o f0D48k.pth\n",
|
120 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained/f0G32k.pth -d /content/Retrieval-based-Voice-Conversion-WebUI/pretrained -o f0G32k.pth\n",
|
121 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained/f0G40k.pth -d /content/Retrieval-based-Voice-Conversion-WebUI/pretrained -o f0G40k.pth\n",
|
122 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained/f0G48k.pth -d /content/Retrieval-based-Voice-Conversion-WebUI/pretrained -o f0G48k.pth"
|
123 |
+
]
|
124 |
+
},
|
125 |
+
{
|
126 |
+
"cell_type": "code",
|
127 |
+
"execution_count": null,
|
128 |
+
"metadata": {
|
129 |
+
"id": "HugjmZqZRuiF"
|
130 |
+
},
|
131 |
+
"outputs": [],
|
132 |
+
"source": [
|
133 |
+
"# @title ไธ่ฝฝไบบๅฃฐๅ็ฆปๆจกๅ\n",
|
134 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/uvr5_weights/HP2-ไบบๅฃฐvocals+้ไบบๅฃฐinstrumentals.pth -d /content/Retrieval-based-Voice-Conversion-WebUI/uvr5_weights -o HP2-ไบบๅฃฐvocals+้ไบบๅฃฐinstrumentals.pth\n",
|
135 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/uvr5_weights/HP5-ไธปๆๅพไบบๅฃฐvocals+ๅ
ถไปinstrumentals.pth -d /content/Retrieval-based-Voice-Conversion-WebUI/uvr5_weights -o HP5-ไธปๆๅพไบบๅฃฐvocals+ๅ
ถไปinstrumentals.pth"
|
136 |
+
]
|
137 |
+
},
|
138 |
+
{
|
139 |
+
"cell_type": "code",
|
140 |
+
"execution_count": null,
|
141 |
+
"metadata": {
|
142 |
+
"id": "2RCaT9FTR0ej"
|
143 |
+
},
|
144 |
+
"outputs": [],
|
145 |
+
"source": [
|
146 |
+
"# @title ไธ่ฝฝhubert_base\n",
|
147 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/hubert_base.pt -d /content/Retrieval-based-Voice-Conversion-WebUI -o hubert_base.pt"
|
148 |
+
]
|
149 |
+
},
|
150 |
+
{
|
151 |
+
"cell_type": "code",
|
152 |
+
"execution_count": null,
|
153 |
+
"metadata": {},
|
154 |
+
"outputs": [],
|
155 |
+
"source": [
|
156 |
+
"# @title #ไธ่ฝฝrmvpeๆจกๅ\n",
|
157 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/rmvpe.pt -d /content/Retrieval-based-Voice-Conversion-WebUI -o rmvpe.pt"
|
158 |
+
]
|
159 |
+
},
|
160 |
+
{
|
161 |
+
"cell_type": "code",
|
162 |
+
"execution_count": null,
|
163 |
+
"metadata": {
|
164 |
+
"id": "Mwk7Q0Loqzjx"
|
165 |
+
},
|
166 |
+
"outputs": [],
|
167 |
+
"source": [
|
168 |
+
"# @title ไป่ฐทๆญไบ็ๅ ่ฝฝๆๅ
ๅฅฝ็ๆฐๆฎ้ๅฐ/content/dataset\n",
|
169 |
+
"\n",
|
170 |
+
"# @markdown ๆฐๆฎ้ไฝ็ฝฎ\n",
|
171 |
+
"DATASET = (\n",
|
172 |
+
" \"/content/drive/MyDrive/dataset/lulu20230327_32k.zip\" # @param {type:\"string\"}\n",
|
173 |
+
")\n",
|
174 |
+
"\n",
|
175 |
+
"!mkdir -p /content/dataset\n",
|
176 |
+
"!unzip -d /content/dataset -B {DATASET}"
|
177 |
+
]
|
178 |
+
},
|
179 |
+
{
|
180 |
+
"cell_type": "code",
|
181 |
+
"execution_count": null,
|
182 |
+
"metadata": {
|
183 |
+
"id": "PDlFxWHWEynD"
|
184 |
+
},
|
185 |
+
"outputs": [],
|
186 |
+
"source": [
|
187 |
+
"# @title ้ๅฝๅๆฐๆฎ้ไธญ็้ๅๆไปถ\n",
|
188 |
+
"!ls -a /content/dataset/\n",
|
189 |
+
"!rename 's/(\\w+)\\.(\\w+)~(\\d*)/$1_$3.$2/' /content/dataset/*.*~*"
|
190 |
+
]
|
191 |
+
},
|
192 |
+
{
|
193 |
+
"cell_type": "code",
|
194 |
+
"execution_count": null,
|
195 |
+
"metadata": {
|
196 |
+
"id": "7vh6vphDwO0b"
|
197 |
+
},
|
198 |
+
"outputs": [],
|
199 |
+
"source": [
|
200 |
+
"# @title ๅฏๅจweb\n",
|
201 |
+
"%cd /content/Retrieval-based-Voice-Conversion-WebUI\n",
|
202 |
+
"# %load_ext tensorboard\n",
|
203 |
+
"# %tensorboard --logdir /content/Retrieval-based-Voice-Conversion-WebUI/logs\n",
|
204 |
+
"!python3 infer-web.py --colab --pycmd python3"
|
205 |
+
]
|
206 |
+
},
|
207 |
+
{
|
208 |
+
"cell_type": "code",
|
209 |
+
"execution_count": null,
|
210 |
+
"metadata": {
|
211 |
+
"id": "FgJuNeAwx5Y_"
|
212 |
+
},
|
213 |
+
"outputs": [],
|
214 |
+
"source": [
|
215 |
+
"# @title ๆๅจๅฐ่ฎญ็ปๅ็ๆจกๅๆไปถๅคไปฝๅฐ่ฐทๆญไบ็\n",
|
216 |
+
"# @markdown ้่ฆ่ชๅทฑๆฅ็logsๆไปถๅคนไธๆจกๅ็ๆไปถๅ๏ผๆๅจไฟฎๆนไธๆนๅฝไปคๆซๅฐพ็ๆไปถๅ\n",
|
217 |
+
"\n",
|
218 |
+
"# @markdown ๆจกๅๅ\n",
|
219 |
+
"MODELNAME = \"lulu\" # @param {type:\"string\"}\n",
|
220 |
+
"# @markdown ๆจกๅepoch\n",
|
221 |
+
"MODELEPOCH = 9600 # @param {type:\"integer\"}\n",
|
222 |
+
"\n",
|
223 |
+
"!cp /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/G_{MODELEPOCH}.pth /content/drive/MyDrive/{MODELNAME}_D_{MODELEPOCH}.pth\n",
|
224 |
+
"!cp /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/D_{MODELEPOCH}.pth /content/drive/MyDrive/{MODELNAME}_G_{MODELEPOCH}.pth\n",
|
225 |
+
"!cp /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/added_*.index /content/drive/MyDrive/\n",
|
226 |
+
"!cp /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/total_*.npy /content/drive/MyDrive/\n",
|
227 |
+
"\n",
|
228 |
+
"!cp /content/Retrieval-based-Voice-Conversion-WebUI/weights/{MODELNAME}.pth /content/drive/MyDrive/{MODELNAME}{MODELEPOCH}.pth"
|
229 |
+
]
|
230 |
+
},
|
231 |
+
{
|
232 |
+
"cell_type": "code",
|
233 |
+
"execution_count": null,
|
234 |
+
"metadata": {
|
235 |
+
"id": "OVQoLQJXS7WX"
|
236 |
+
},
|
237 |
+
"outputs": [],
|
238 |
+
"source": [
|
239 |
+
"# @title ไป่ฐทๆญไบ็ๆขๅคpth\n",
|
240 |
+
"# @markdown ้่ฆ่ชๅทฑๆฅ็logsๆไปถๅคนไธๆจกๅ็ๆไปถๅ๏ผๆๅจไฟฎๆนไธๆนๅฝไปคๆซๅฐพ็ๆไปถๅ\n",
|
241 |
+
"\n",
|
242 |
+
"# @markdown ๆจกๅๅ\n",
|
243 |
+
"MODELNAME = \"lulu\" # @param {type:\"string\"}\n",
|
244 |
+
"# @markdown ๆจกๅepoch\n",
|
245 |
+
"MODELEPOCH = 7500 # @param {type:\"integer\"}\n",
|
246 |
+
"\n",
|
247 |
+
"!mkdir -p /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}\n",
|
248 |
+
"\n",
|
249 |
+
"!cp /content/drive/MyDrive/{MODELNAME}_D_{MODELEPOCH}.pth /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/G_{MODELEPOCH}.pth\n",
|
250 |
+
"!cp /content/drive/MyDrive/{MODELNAME}_G_{MODELEPOCH}.pth /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/D_{MODELEPOCH}.pth\n",
|
251 |
+
"!cp /content/drive/MyDrive/*.index /content/\n",
|
252 |
+
"!cp /content/drive/MyDrive/*.npy /content/\n",
|
253 |
+
"!cp /content/drive/MyDrive/{MODELNAME}{MODELEPOCH}.pth /content/Retrieval-based-Voice-Conversion-WebUI/weights/{MODELNAME}.pth"
|
254 |
+
]
|
255 |
+
},
|
256 |
+
{
|
257 |
+
"cell_type": "code",
|
258 |
+
"execution_count": null,
|
259 |
+
"metadata": {
|
260 |
+
"id": "ZKAyuKb9J6dz"
|
261 |
+
},
|
262 |
+
"outputs": [],
|
263 |
+
"source": [
|
264 |
+
"# @title ๆๅจ้ขๅค็๏ผไธๆจ่๏ผ\n",
|
265 |
+
"# @markdown ๆจกๅๅ\n",
|
266 |
+
"MODELNAME = \"lulu\" # @param {type:\"string\"}\n",
|
267 |
+
"# @markdown ้ๆ ท็\n",
|
268 |
+
"BITRATE = 48000 # @param {type:\"integer\"}\n",
|
269 |
+
"# @markdown ไฝฟ็จ็่ฟ็จๆฐ\n",
|
270 |
+
"THREADCOUNT = 8 # @param {type:\"integer\"}\n",
|
271 |
+
"\n",
|
272 |
+
"!python3 trainset_preprocess_pipeline_print.py /content/dataset {BITRATE} {THREADCOUNT} logs/{MODELNAME} True"
|
273 |
+
]
|
274 |
+
},
|
275 |
+
{
|
276 |
+
"cell_type": "code",
|
277 |
+
"execution_count": null,
|
278 |
+
"metadata": {
|
279 |
+
"id": "CrxJqzAUKmPJ"
|
280 |
+
},
|
281 |
+
"outputs": [],
|
282 |
+
"source": [
|
283 |
+
"# @title ๆๅจๆๅ็นๅพ๏ผไธๆจ่๏ผ\n",
|
284 |
+
"# @markdown ๆจกๅๅ\n",
|
285 |
+
"MODELNAME = \"lulu\" # @param {type:\"string\"}\n",
|
286 |
+
"# @markdown ไฝฟ็จ็่ฟ็จๆฐ\n",
|
287 |
+
"THREADCOUNT = 8 # @param {type:\"integer\"}\n",
|
288 |
+
"# @markdown ้ณ้ซๆๅ็ฎๆณ\n",
|
289 |
+
"ALGO = \"harvest\" # @param {type:\"string\"}\n",
|
290 |
+
"\n",
|
291 |
+
"!python3 extract_f0_print.py logs/{MODELNAME} {THREADCOUNT} {ALGO}\n",
|
292 |
+
"\n",
|
293 |
+
"!python3 extract_feature_print.py cpu 1 0 0 logs/{MODELNAME}"
|
294 |
+
]
|
295 |
+
},
|
296 |
+
{
|
297 |
+
"cell_type": "code",
|
298 |
+
"execution_count": null,
|
299 |
+
"metadata": {
|
300 |
+
"id": "IMLPLKOaKj58"
|
301 |
+
},
|
302 |
+
"outputs": [],
|
303 |
+
"source": [
|
304 |
+
"# @title ๆๅจ่ฎญ็ป๏ผไธๆจ่๏ผ\n",
|
305 |
+
"# @markdown ๆจกๅๅ\n",
|
306 |
+
"MODELNAME = \"lulu\" # @param {type:\"string\"}\n",
|
307 |
+
"# @markdown ไฝฟ็จ็GPU\n",
|
308 |
+
"USEGPU = \"0\" # @param {type:\"string\"}\n",
|
309 |
+
"# @markdown ๆนๅคงๅฐ\n",
|
310 |
+
"BATCHSIZE = 32 # @param {type:\"integer\"}\n",
|
311 |
+
"# @markdown ๅๆญข็epoch\n",
|
312 |
+
"MODELEPOCH = 3200 # @param {type:\"integer\"}\n",
|
313 |
+
"# @markdown ไฟๅญepoch้ด้\n",
|
314 |
+
"EPOCHSAVE = 100 # @param {type:\"integer\"}\n",
|
315 |
+
"# @markdown ้ๆ ท็\n",
|
316 |
+
"MODELSAMPLE = \"48k\" # @param {type:\"string\"}\n",
|
317 |
+
"# @markdown ๆฏๅฆ็ผๅญ่ฎญ็ป้\n",
|
318 |
+
"CACHEDATA = 1 # @param {type:\"integer\"}\n",
|
319 |
+
"# @markdown ๆฏๅฆไป
ไฟๅญๆๆฐ็ckptๆไปถ\n",
|
320 |
+
"ONLYLATEST = 0 # @param {type:\"integer\"}\n",
|
321 |
+
"\n",
|
322 |
+
"!python3 train_nsf_sim_cache_sid_load_pretrain.py -e lulu -sr {MODELSAMPLE} -f0 1 -bs {BATCHSIZE} -g {USEGPU} -te {MODELEPOCH} -se {EPOCHSAVE} -pg pretrained/f0G{MODELSAMPLE}.pth -pd pretrained/f0D{MODELSAMPLE}.pth -l {ONLYLATEST} -c {CACHEDATA}"
|
323 |
+
]
|
324 |
+
},
|
325 |
+
{
|
326 |
+
"cell_type": "code",
|
327 |
+
"execution_count": null,
|
328 |
+
"metadata": {
|
329 |
+
"id": "haYA81hySuDl"
|
330 |
+
},
|
331 |
+
"outputs": [],
|
332 |
+
"source": [
|
333 |
+
"# @title ๅ ้คๅ
ถๅฎpth๏ผๅช็้ไธญ็๏ผๆ
็น๏ผไป็ป็ไปฃ็ ๏ผ\n",
|
334 |
+
"# @markdown ๆจกๅๅ\n",
|
335 |
+
"MODELNAME = \"lulu\" # @param {type:\"string\"}\n",
|
336 |
+
"# @markdown ้ไธญๆจกๅepoch\n",
|
337 |
+
"MODELEPOCH = 9600 # @param {type:\"integer\"}\n",
|
338 |
+
"\n",
|
339 |
+
"!echo \"ๅคไปฝ้ไธญ็ๆจกๅใใใ\"\n",
|
340 |
+
"!cp /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/G_{MODELEPOCH}.pth /content/{MODELNAME}_D_{MODELEPOCH}.pth\n",
|
341 |
+
"!cp /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/D_{MODELEPOCH}.pth /content/{MODELNAME}_G_{MODELEPOCH}.pth\n",
|
342 |
+
"\n",
|
343 |
+
"!echo \"ๆญฃๅจๅ ้คใใใ\"\n",
|
344 |
+
"!ls /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}\n",
|
345 |
+
"!rm /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/*.pth\n",
|
346 |
+
"\n",
|
347 |
+
"!echo \"ๆขๅค้ไธญ็ๆจกๅใใใ\"\n",
|
348 |
+
"!mv /content/{MODELNAME}_D_{MODELEPOCH}.pth /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/G_{MODELEPOCH}.pth\n",
|
349 |
+
"!mv /content/{MODELNAME}_G_{MODELEPOCH}.pth /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/D_{MODELEPOCH}.pth\n",
|
350 |
+
"\n",
|
351 |
+
"!echo \"ๅ ้คๅฎๆ\"\n",
|
352 |
+
"!ls /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}"
|
353 |
+
]
|
354 |
+
},
|
355 |
+
{
|
356 |
+
"cell_type": "code",
|
357 |
+
"execution_count": null,
|
358 |
+
"metadata": {
|
359 |
+
"id": "QhSiPTVPoIRh"
|
360 |
+
},
|
361 |
+
"outputs": [],
|
362 |
+
"source": [
|
363 |
+
"# @title ๆธ
้ค้กน็ฎไธๆๆๆไปถ๏ผๅช็้ไธญ็ๆจกๅ๏ผๆ
็น๏ผไป็ป็ไปฃ็ ๏ผ\n",
|
364 |
+
"# @markdown ๆจกๅๅ\n",
|
365 |
+
"MODELNAME = \"lulu\" # @param {type:\"string\"}\n",
|
366 |
+
"# @markdown ้ไธญๆจกๅepoch\n",
|
367 |
+
"MODELEPOCH = 9600 # @param {type:\"integer\"}\n",
|
368 |
+
"\n",
|
369 |
+
"!echo \"ๅคไปฝ้ไธญ็ๆจกๅใใใ\"\n",
|
370 |
+
"!cp /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/G_{MODELEPOCH}.pth /content/{MODELNAME}_D_{MODELEPOCH}.pth\n",
|
371 |
+
"!cp /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/D_{MODELEPOCH}.pth /content/{MODELNAME}_G_{MODELEPOCH}.pth\n",
|
372 |
+
"\n",
|
373 |
+
"!echo \"ๆญฃ๏ฟฝ๏ฟฝๅ ้คใใใ\"\n",
|
374 |
+
"!ls /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}\n",
|
375 |
+
"!rm -rf /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/*\n",
|
376 |
+
"\n",
|
377 |
+
"!echo \"ๆขๅค้ไธญ็ๆจกๅใใใ\"\n",
|
378 |
+
"!mv /content/{MODELNAME}_D_{MODELEPOCH}.pth /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/G_{MODELEPOCH}.pth\n",
|
379 |
+
"!mv /content/{MODELNAME}_G_{MODELEPOCH}.pth /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/D_{MODELEPOCH}.pth\n",
|
380 |
+
"\n",
|
381 |
+
"!echo \"ๅ ้คๅฎๆ\"\n",
|
382 |
+
"!ls /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}"
|
383 |
+
]
|
384 |
+
}
|
385 |
+
],
|
386 |
+
"metadata": {
|
387 |
+
"accelerator": "GPU",
|
388 |
+
"colab": {
|
389 |
+
"private_outputs": true,
|
390 |
+
"provenance": []
|
391 |
+
},
|
392 |
+
"gpuClass": "standard",
|
393 |
+
"kernelspec": {
|
394 |
+
"display_name": "Python 3",
|
395 |
+
"name": "python3"
|
396 |
+
},
|
397 |
+
"language_info": {
|
398 |
+
"name": "python"
|
399 |
+
}
|
400 |
+
},
|
401 |
+
"nbformat": 4,
|
402 |
+
"nbformat_minor": 0
|
403 |
+
}
|
Retrieval-based-Voice-Conversion-WebUI/Retrieval_based_Voice_Conversion_WebUI_v2.ipynb
ADDED
@@ -0,0 +1,422 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cells": [
|
3 |
+
{
|
4 |
+
"attachments": {},
|
5 |
+
"cell_type": "markdown",
|
6 |
+
"metadata": {},
|
7 |
+
"source": [
|
8 |
+
"# [Retrieval-based-Voice-Conversion-WebUI](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI) Training notebook"
|
9 |
+
]
|
10 |
+
},
|
11 |
+
{
|
12 |
+
"attachments": {},
|
13 |
+
"cell_type": "markdown",
|
14 |
+
"metadata": {
|
15 |
+
"id": "ZFFCx5J80SGa"
|
16 |
+
},
|
17 |
+
"source": [
|
18 |
+
"[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/blob/main/Retrieval_based_Voice_Conversion_WebUI_v2.ipynb)"
|
19 |
+
]
|
20 |
+
},
|
21 |
+
{
|
22 |
+
"cell_type": "code",
|
23 |
+
"execution_count": null,
|
24 |
+
"metadata": {
|
25 |
+
"id": "GmFP6bN9dvOq"
|
26 |
+
},
|
27 |
+
"outputs": [],
|
28 |
+
"source": [
|
29 |
+
"# @title #ๆฅ็ๆพๅก\n",
|
30 |
+
"!nvidia-smi"
|
31 |
+
]
|
32 |
+
},
|
33 |
+
{
|
34 |
+
"cell_type": "code",
|
35 |
+
"execution_count": null,
|
36 |
+
"metadata": {
|
37 |
+
"id": "jwu07JgqoFON"
|
38 |
+
},
|
39 |
+
"outputs": [],
|
40 |
+
"source": [
|
41 |
+
"# @title ๆ่ฝฝ่ฐทๆญไบ็\n",
|
42 |
+
"\n",
|
43 |
+
"from google.colab import drive\n",
|
44 |
+
"\n",
|
45 |
+
"drive.mount(\"/content/drive\")"
|
46 |
+
]
|
47 |
+
},
|
48 |
+
{
|
49 |
+
"cell_type": "code",
|
50 |
+
"execution_count": null,
|
51 |
+
"metadata": {
|
52 |
+
"id": "wjddIFr1oS3W"
|
53 |
+
},
|
54 |
+
"outputs": [],
|
55 |
+
"source": [
|
56 |
+
"# @title #ๅฎ่ฃ
ไพ่ต\n",
|
57 |
+
"!apt-get -y install build-essential python3-dev ffmpeg\n",
|
58 |
+
"!pip3 install --upgrade setuptools wheel\n",
|
59 |
+
"!pip3 install --upgrade pip\n",
|
60 |
+
"!pip3 install faiss-cpu==1.7.2 fairseq gradio==3.14.0 ffmpeg ffmpeg-python praat-parselmouth pyworld numpy==1.23.5 numba==0.56.4 librosa==0.9.2"
|
61 |
+
]
|
62 |
+
},
|
63 |
+
{
|
64 |
+
"cell_type": "code",
|
65 |
+
"execution_count": null,
|
66 |
+
"metadata": {
|
67 |
+
"id": "ge_97mfpgqTm"
|
68 |
+
},
|
69 |
+
"outputs": [],
|
70 |
+
"source": [
|
71 |
+
"# @title #ๅ
้ไปๅบ\n",
|
72 |
+
"\n",
|
73 |
+
"!mkdir Retrieval-based-Voice-Conversion-WebUI\n",
|
74 |
+
"%cd /content/Retrieval-based-Voice-Conversion-WebUI\n",
|
75 |
+
"!git init\n",
|
76 |
+
"!git remote add origin https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git\n",
|
77 |
+
"!git fetch origin cfd984812804ddc9247d65b14c82cd32e56c1133 --depth=1\n",
|
78 |
+
"!git reset --hard FETCH_HEAD"
|
79 |
+
]
|
80 |
+
},
|
81 |
+
{
|
82 |
+
"cell_type": "code",
|
83 |
+
"execution_count": null,
|
84 |
+
"metadata": {
|
85 |
+
"id": "BLDEZADkvlw1"
|
86 |
+
},
|
87 |
+
"outputs": [],
|
88 |
+
"source": [
|
89 |
+
"# @title #ๆดๆฐไปๅบ๏ผไธ่ฌๆ ้ๆง่ก๏ผ\n",
|
90 |
+
"!git pull"
|
91 |
+
]
|
92 |
+
},
|
93 |
+
{
|
94 |
+
"cell_type": "code",
|
95 |
+
"execution_count": null,
|
96 |
+
"metadata": {
|
97 |
+
"id": "pqE0PrnuRqI2"
|
98 |
+
},
|
99 |
+
"outputs": [],
|
100 |
+
"source": [
|
101 |
+
"# @title #ๅฎ่ฃ
aria2\n",
|
102 |
+
"!apt -y install -qq aria2"
|
103 |
+
]
|
104 |
+
},
|
105 |
+
{
|
106 |
+
"cell_type": "code",
|
107 |
+
"execution_count": null,
|
108 |
+
"metadata": {
|
109 |
+
"id": "UG3XpUwEomUz"
|
110 |
+
},
|
111 |
+
"outputs": [],
|
112 |
+
"source": [
|
113 |
+
"# @title ไธ่ฝฝๅบๆจก\n",
|
114 |
+
"\n",
|
115 |
+
"# v1\n",
|
116 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained/D32k.pth -d /content/Retrieval-based-Voice-Conversion-WebUI/pretrained -o D32k.pth\n",
|
117 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained/D40k.pth -d /content/Retrieval-based-Voice-Conversion-WebUI/pretrained -o D40k.pth\n",
|
118 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained/D48k.pth -d /content/Retrieval-based-Voice-Conversion-WebUI/pretrained -o D48k.pth\n",
|
119 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained/G32k.pth -d /content/Retrieval-based-Voice-Conversion-WebUI/pretrained -o G32k.pth\n",
|
120 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained/G40k.pth -d /content/Retrieval-based-Voice-Conversion-WebUI/pretrained -o G40k.pth\n",
|
121 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained/G48k.pth -d /content/Retrieval-based-Voice-Conversion-WebUI/pretrained -o G48k.pth\n",
|
122 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained/f0D32k.pth -d /content/Retrieval-based-Voice-Conversion-WebUI/pretrained -o f0D32k.pth\n",
|
123 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained/f0D40k.pth -d /content/Retrieval-based-Voice-Conversion-WebUI/pretrained -o f0D40k.pth\n",
|
124 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained/f0D48k.pth -d /content/Retrieval-based-Voice-Conversion-WebUI/pretrained -o f0D48k.pth\n",
|
125 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained/f0G32k.pth -d /content/Retrieval-based-Voice-Conversion-WebUI/pretrained -o f0G32k.pth\n",
|
126 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained/f0G40k.pth -d /content/Retrieval-based-Voice-Conversion-WebUI/pretrained -o f0G40k.pth\n",
|
127 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained/f0G48k.pth -d /content/Retrieval-based-Voice-Conversion-WebUI/pretrained -o f0G48k.pth\n",
|
128 |
+
"\n",
|
129 |
+
"# v2\n",
|
130 |
+
"# !aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained_v2/D32k.pth -d /content/Retrieval-based-Voice-Conversion-WebUI/pretrained_v2 -o D32k.pth\n",
|
131 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained_v2/D40k.pth -d /content/Retrieval-based-Voice-Conversion-WebUI/pretrained_v2 -o D40k.pth\n",
|
132 |
+
"# !aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained_v2/D48k.pth -d /content/Retrieval-based-Voice-Conversion-WebUI/pretrained_v2 -o D48k.pth\n",
|
133 |
+
"# !aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained_v2/G32k.pth -d /content/Retrieval-based-Voice-Conversion-WebUI/pretrained_v2 -o G32k.pth\n",
|
134 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained_v2/G40k.pth -d /content/Retrieval-based-Voice-Conversion-WebUI/pretrained_v2 -o G40k.pth\n",
|
135 |
+
"# !aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained_v2/G48k.pth -d /content/Retrieval-based-Voice-Conversion-WebUI/pretrained_v2 -o G48k.pth\n",
|
136 |
+
"# !aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained_v2/f0D32k.pth -d /content/Retrieval-based-Voice-Conversion-WebUI/pretrained_v2 -o f0D32k.pth\n",
|
137 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained_v2/f0D40k.pth -d /content/Retrieval-based-Voice-Conversion-WebUI/pretrained_v2 -o f0D40k.pth\n",
|
138 |
+
"# !aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained_v2/f0D48k.pth -d /content/Retrieval-based-Voice-Conversion-WebUI/pretrained_v2 -o f0D48k.pth\n",
|
139 |
+
"# !aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained_v2/f0G32k.pth -d /content/Retrieval-based-Voice-Conversion-WebUI/pretrained_v2 -o f0G32k.pth\n",
|
140 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained_v2/f0G40k.pth -d /content/Retrieval-based-Voice-Conversion-WebUI/pretrained_v2 -o f0G40k.pth\n",
|
141 |
+
"# !aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/pretrained_v2/f0G48k.pth -d /content/Retrieval-based-Voice-Conversion-WebUI/pretrained_v2 -o f0G48k.pth"
|
142 |
+
]
|
143 |
+
},
|
144 |
+
{
|
145 |
+
"cell_type": "code",
|
146 |
+
"execution_count": null,
|
147 |
+
"metadata": {
|
148 |
+
"id": "HugjmZqZRuiF"
|
149 |
+
},
|
150 |
+
"outputs": [],
|
151 |
+
"source": [
|
152 |
+
"# @title #ไธ่ฝฝไบบๅฃฐๅ็ฆปๆจกๅ\n",
|
153 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/uvr5_weights/HP2-ไบบๅฃฐvocals+้ไบบๅฃฐinstrumentals.pth -d /content/Retrieval-based-Voice-Conversion-WebUI/uvr5_weights -o HP2-ไบบๅฃฐvocals+้ไบบๅฃฐinstrumentals.pth\n",
|
154 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/uvr5_weights/HP5-ไธปๆๅพไบบๅฃฐvocals+ๅ
ถไปinstrumentals.pth -d /content/Retrieval-based-Voice-Conversion-WebUI/uvr5_weights -o HP5-ไธปๆๅพไบบๅฃฐvocals+ๅ
ถไปinstrumentals.pth"
|
155 |
+
]
|
156 |
+
},
|
157 |
+
{
|
158 |
+
"cell_type": "code",
|
159 |
+
"execution_count": null,
|
160 |
+
"metadata": {
|
161 |
+
"id": "2RCaT9FTR0ej"
|
162 |
+
},
|
163 |
+
"outputs": [],
|
164 |
+
"source": [
|
165 |
+
"# @title #ไธ่ฝฝhubert_base\n",
|
166 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/hubert_base.pt -d /content/Retrieval-based-Voice-Conversion-WebUI -o hubert_base.pt"
|
167 |
+
]
|
168 |
+
},
|
169 |
+
{
|
170 |
+
"cell_type": "code",
|
171 |
+
"execution_count": null,
|
172 |
+
"metadata": {},
|
173 |
+
"outputs": [],
|
174 |
+
"source": [
|
175 |
+
"# @title #ไธ่ฝฝrmvpeๆจกๅ\n",
|
176 |
+
"!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/rmvpe.pt -d /content/Retrieval-based-Voice-Conversion-WebUI -o rmvpe.pt"
|
177 |
+
]
|
178 |
+
},
|
179 |
+
{
|
180 |
+
"cell_type": "code",
|
181 |
+
"execution_count": null,
|
182 |
+
"metadata": {
|
183 |
+
"id": "Mwk7Q0Loqzjx"
|
184 |
+
},
|
185 |
+
"outputs": [],
|
186 |
+
"source": [
|
187 |
+
"# @title #ไป่ฐทๆญไบ็ๅ ่ฝฝๆๅ
ๅฅฝ็ๆฐๆฎ้ๅฐ/content/dataset\n",
|
188 |
+
"\n",
|
189 |
+
"# @markdown ๆฐๆฎ้ไฝ็ฝฎ\n",
|
190 |
+
"DATASET = (\n",
|
191 |
+
" \"/content/drive/MyDrive/dataset/lulu20230327_32k.zip\" # @param {type:\"string\"}\n",
|
192 |
+
")\n",
|
193 |
+
"\n",
|
194 |
+
"!mkdir -p /content/dataset\n",
|
195 |
+
"!unzip -d /content/dataset -B {DATASET}"
|
196 |
+
]
|
197 |
+
},
|
198 |
+
{
|
199 |
+
"cell_type": "code",
|
200 |
+
"execution_count": null,
|
201 |
+
"metadata": {
|
202 |
+
"id": "PDlFxWHWEynD"
|
203 |
+
},
|
204 |
+
"outputs": [],
|
205 |
+
"source": [
|
206 |
+
"# @title #้ๅฝๅๆฐๆฎ้ไธญ็้ๅๆไปถ\n",
|
207 |
+
"!ls -a /content/dataset/\n",
|
208 |
+
"!rename 's/(\\w+)\\.(\\w+)~(\\d*)/$1_$3.$2/' /content/dataset/*.*~*"
|
209 |
+
]
|
210 |
+
},
|
211 |
+
{
|
212 |
+
"cell_type": "code",
|
213 |
+
"execution_count": null,
|
214 |
+
"metadata": {
|
215 |
+
"id": "7vh6vphDwO0b"
|
216 |
+
},
|
217 |
+
"outputs": [],
|
218 |
+
"source": [
|
219 |
+
"# @title #ๅฏๅจwebui\n",
|
220 |
+
"%cd /content/Retrieval-based-Voice-Conversion-WebUI\n",
|
221 |
+
"# %load_ext tensorboard\n",
|
222 |
+
"# %tensorboard --logdir /content/Retrieval-based-Voice-Conversion-WebUI/logs\n",
|
223 |
+
"!python3 infer-web.py --colab --pycmd python3"
|
224 |
+
]
|
225 |
+
},
|
226 |
+
{
|
227 |
+
"cell_type": "code",
|
228 |
+
"execution_count": null,
|
229 |
+
"metadata": {
|
230 |
+
"id": "FgJuNeAwx5Y_"
|
231 |
+
},
|
232 |
+
"outputs": [],
|
233 |
+
"source": [
|
234 |
+
"# @title #ๆๅจๅฐ่ฎญ็ปๅ็ๆจกๅๆไปถๅคไปฝๅฐ่ฐทๆญไบ็\n",
|
235 |
+
"# @markdown #้่ฆ่ชๅทฑๆฅ็logsๆไปถๅคนไธๆจกๅ็ๆไปถๅ๏ผๆๅจไฟฎๆนไธๆนๅฝไปคๆซๅฐพ็ๆไปถๅ\n",
|
236 |
+
"\n",
|
237 |
+
"# @markdown #ๆจกๅๅ\n",
|
238 |
+
"MODELNAME = \"lulu\" # @param {type:\"string\"}\n",
|
239 |
+
"# @markdown #ๆจกๅepoch\n",
|
240 |
+
"MODELEPOCH = 9600 # @param {type:\"integer\"}\n",
|
241 |
+
"\n",
|
242 |
+
"!cp /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/G_{MODELEPOCH}.pth /content/drive/MyDrive/{MODELNAME}_D_{MODELEPOCH}.pth\n",
|
243 |
+
"!cp /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/D_{MODELEPOCH}.pth /content/drive/MyDrive/{MODELNAME}_G_{MODELEPOCH}.pth\n",
|
244 |
+
"!cp /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/added_*.index /content/drive/MyDrive/\n",
|
245 |
+
"!cp /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/total_*.npy /content/drive/MyDrive/\n",
|
246 |
+
"\n",
|
247 |
+
"!cp /content/Retrieval-based-Voice-Conversion-WebUI/weights/{MODELNAME}.pth /content/drive/MyDrive/{MODELNAME}{MODELEPOCH}.pth"
|
248 |
+
]
|
249 |
+
},
|
250 |
+
{
|
251 |
+
"cell_type": "code",
|
252 |
+
"execution_count": null,
|
253 |
+
"metadata": {
|
254 |
+
"id": "OVQoLQJXS7WX"
|
255 |
+
},
|
256 |
+
"outputs": [],
|
257 |
+
"source": [
|
258 |
+
"# @title ไป่ฐทๆญไบ็ๆขๅคpth\n",
|
259 |
+
"# @markdown ้่ฆ่ชๅทฑๆฅ็logsๆไปถๅคนไธๆจกๅ็ๆไปถๅ๏ผๆๅจไฟฎๆนไธๆนๅฝไปคๆซๅฐพ็ๆไปถๅ\n",
|
260 |
+
"\n",
|
261 |
+
"# @markdown ๆจกๅๅ\n",
|
262 |
+
"MODELNAME = \"lulu\" # @param {type:\"string\"}\n",
|
263 |
+
"# @markdown ๆจกๅepoch\n",
|
264 |
+
"MODELEPOCH = 7500 # @param {type:\"integer\"}\n",
|
265 |
+
"\n",
|
266 |
+
"!mkdir -p /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}\n",
|
267 |
+
"\n",
|
268 |
+
"!cp /content/drive/MyDrive/{MODELNAME}_D_{MODELEPOCH}.pth /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/G_{MODELEPOCH}.pth\n",
|
269 |
+
"!cp /content/drive/MyDrive/{MODELNAME}_G_{MODELEPOCH}.pth /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/D_{MODELEPOCH}.pth\n",
|
270 |
+
"!cp /content/drive/MyDrive/*.index /content/\n",
|
271 |
+
"!cp /content/drive/MyDrive/*.npy /content/\n",
|
272 |
+
"!cp /content/drive/MyDrive/{MODELNAME}{MODELEPOCH}.pth /content/Retrieval-based-Voice-Conversion-WebUI/weights/{MODELNAME}.pth"
|
273 |
+
]
|
274 |
+
},
|
275 |
+
{
|
276 |
+
"cell_type": "code",
|
277 |
+
"execution_count": null,
|
278 |
+
"metadata": {
|
279 |
+
"id": "ZKAyuKb9J6dz"
|
280 |
+
},
|
281 |
+
"outputs": [],
|
282 |
+
"source": [
|
283 |
+
"# @title ๆๅจ้ขๅค็๏ผไธๆจ่๏ผ\n",
|
284 |
+
"# @markdown ๆจกๅๅ\n",
|
285 |
+
"MODELNAME = \"lulu\" # @param {type:\"string\"}\n",
|
286 |
+
"# @markdown ้ๆ ท็\n",
|
287 |
+
"BITRATE = 48000 # @param {type:\"integer\"}\n",
|
288 |
+
"# @markdown ไฝฟ็จ็่ฟ็จๆฐ\n",
|
289 |
+
"THREADCOUNT = 8 # @param {type:\"integer\"}\n",
|
290 |
+
"\n",
|
291 |
+
"!python3 trainset_preprocess_pipeline_print.py /content/dataset {BITRATE} {THREADCOUNT} logs/{MODELNAME} True"
|
292 |
+
]
|
293 |
+
},
|
294 |
+
{
|
295 |
+
"cell_type": "code",
|
296 |
+
"execution_count": null,
|
297 |
+
"metadata": {
|
298 |
+
"id": "CrxJqzAUKmPJ"
|
299 |
+
},
|
300 |
+
"outputs": [],
|
301 |
+
"source": [
|
302 |
+
"# @title ๆๅจๆๅ็นๅพ๏ผไธๆจ่๏ผ\n",
|
303 |
+
"# @markdown ๆจกๅๅ\n",
|
304 |
+
"MODELNAME = \"lulu\" # @param {type:\"string\"}\n",
|
305 |
+
"# @markdown ไฝฟ็จ็่ฟ็จๆฐ\n",
|
306 |
+
"THREADCOUNT = 8 # @param {type:\"integer\"}\n",
|
307 |
+
"# @markdown ้ณ้ซๆๅ็ฎๆณ\n",
|
308 |
+
"ALGO = \"harvest\" # @param {type:\"string\"}\n",
|
309 |
+
"\n",
|
310 |
+
"!python3 extract_f0_print.py logs/{MODELNAME} {THREADCOUNT} {ALGO}\n",
|
311 |
+
"\n",
|
312 |
+
"!python3 extract_feature_print.py cpu 1 0 0 logs/{MODELNAME}"
|
313 |
+
]
|
314 |
+
},
|
315 |
+
{
|
316 |
+
"cell_type": "code",
|
317 |
+
"execution_count": null,
|
318 |
+
"metadata": {
|
319 |
+
"id": "IMLPLKOaKj58"
|
320 |
+
},
|
321 |
+
"outputs": [],
|
322 |
+
"source": [
|
323 |
+
"# @title ๆๅจ่ฎญ็ป๏ผไธๆจ่๏ผ\n",
|
324 |
+
"# @markdown ๆจกๅๅ\n",
|
325 |
+
"MODELNAME = \"lulu\" # @param {type:\"string\"}\n",
|
326 |
+
"# @markdown ไฝฟ็จ็GPU\n",
|
327 |
+
"USEGPU = \"0\" # @param {type:\"string\"}\n",
|
328 |
+
"# @markdown ๆนๅคงๅฐ\n",
|
329 |
+
"BATCHSIZE = 32 # @param {type:\"integer\"}\n",
|
330 |
+
"# @markdown ๅๆญข็epoch\n",
|
331 |
+
"MODELEPOCH = 3200 # @param {type:\"integer\"}\n",
|
332 |
+
"# @markdown ไฟๅญepoch้ด้\n",
|
333 |
+
"EPOCHSAVE = 100 # @param {type:\"integer\"}\n",
|
334 |
+
"# @markdown ้ๆ ท็\n",
|
335 |
+
"MODELSAMPLE = \"48k\" # @param {type:\"string\"}\n",
|
336 |
+
"# @markdown ๆฏๅฆ็ผๅญ่ฎญ็ป้\n",
|
337 |
+
"CACHEDATA = 1 # @param {type:\"integer\"}\n",
|
338 |
+
"# @markdown ๆฏๅฆไป
ไฟๅญๆๆฐ็ckptๆไปถ\n",
|
339 |
+
"ONLYLATEST = 0 # @param {type:\"integer\"}\n",
|
340 |
+
"\n",
|
341 |
+
"!python3 train_nsf_sim_cache_sid_load_pretrain.py -e lulu -sr {MODELSAMPLE} -f0 1 -bs {BATCHSIZE} -g {USEGPU} -te {MODELEPOCH} -se {EPOCHSAVE} -pg pretrained/f0G{MODELSAMPLE}.pth -pd pretrained/f0D{MODELSAMPLE}.pth -l {ONLYLATEST} -c {CACHEDATA}"
|
342 |
+
]
|
343 |
+
},
|
344 |
+
{
|
345 |
+
"cell_type": "code",
|
346 |
+
"execution_count": null,
|
347 |
+
"metadata": {
|
348 |
+
"id": "haYA81hySuDl"
|
349 |
+
},
|
350 |
+
"outputs": [],
|
351 |
+
"source": [
|
352 |
+
"# @title ๅ ้คๅ
ถๅฎpth๏ผๅช็้ไธญ็๏ผๆ
็น๏ผไป็ป็ไปฃ็ ๏ผ\n",
|
353 |
+
"# @markdown ๆจกๅๅ\n",
|
354 |
+
"MODELNAME = \"lulu\" # @param {type:\"string\"}\n",
|
355 |
+
"# @markdown ้ไธญๆจกๅepoch\n",
|
356 |
+
"MODELEPOCH = 9600 # @param {type:\"integer\"}\n",
|
357 |
+
"\n",
|
358 |
+
"!echo \"ๅคไปฝ้ไธญ็ๆจกๅใใใ\"\n",
|
359 |
+
"!cp /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/G_{MODELEPOCH}.pth /content/{MODELNAME}_D_{MODELEPOCH}.pth\n",
|
360 |
+
"!cp /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/D_{MODELEPOCH}.pth /content/{MODELNAME}_G_{MODELEPOCH}.pth\n",
|
361 |
+
"\n",
|
362 |
+
"!echo \"ๆญฃๅจๅ ้คใใใ\"\n",
|
363 |
+
"!ls /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}\n",
|
364 |
+
"!rm /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/*.pth\n",
|
365 |
+
"\n",
|
366 |
+
"!echo \"ๆขๅค้ไธญ็ๆจกๅใใใ\"\n",
|
367 |
+
"!mv /content/{MODELNAME}_D_{MODELEPOCH}.pth /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/G_{MODELEPOCH}.pth\n",
|
368 |
+
"!mv /content/{MODELNAME}_G_{MODELEPOCH}.pth /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/D_{MODELEPOCH}.pth\n",
|
369 |
+
"\n",
|
370 |
+
"!echo \"ๅ ้คๅฎๆ\"\n",
|
371 |
+
"!ls /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}"
|
372 |
+
]
|
373 |
+
},
|
374 |
+
{
|
375 |
+
"cell_type": "code",
|
376 |
+
"execution_count": null,
|
377 |
+
"metadata": {
|
378 |
+
"id": "QhSiPTVPoIRh"
|
379 |
+
},
|
380 |
+
"outputs": [],
|
381 |
+
"source": [
|
382 |
+
"# @title ๆธ
้ค้กน็ฎไธๆๆๆไปถ๏ผๅช็้ไธญ็ๆจกๅ๏ผๆ
็น๏ผไป็ป็ไปฃ็ ๏ผ\n",
|
383 |
+
"# @markdown ๆจกๅๅ\n",
|
384 |
+
"MODELNAME = \"lulu\" # @param {type:\"string\"}\n",
|
385 |
+
"# @markdown ้ไธญๆจกๅepoch\n",
|
386 |
+
"MODELEPOCH = 9600 # @param {type:\"integer\"}\n",
|
387 |
+
"\n",
|
388 |
+
"!echo \"ๅคไปฝ้ไธญ็ๆจกๅใใใ\"\n",
|
389 |
+
"!cp /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/G_{MODELEPOCH}.pth /content/{MODELNAME}_D_{MODELEPOCH}.pth\n",
|
390 |
+
"!cp /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/D_{MODELEPOCH}.pth /content/{MODELNAME}_G_{MODELEPOCH}.pth\n",
|
391 |
+
"\n",
|
392 |
+
"!echo \"ๆญฃๅจๅ ้คใใใ\"\n",
|
393 |
+
"!ls /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}\n",
|
394 |
+
"!rm -rf /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/*\n",
|
395 |
+
"\n",
|
396 |
+
"!echo \"ๆขๅค้ไธญ็ๆจกๅใใใ\"\n",
|
397 |
+
"!mv /content/{MODELNAME}_D_{MODELEPOCH}.pth /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/G_{MODELEPOCH}.pth\n",
|
398 |
+
"!mv /content/{MODELNAME}_G_{MODELEPOCH}.pth /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/D_{MODELEPOCH}.pth\n",
|
399 |
+
"\n",
|
400 |
+
"!echo \"ๅ ้คๅฎๆ\"\n",
|
401 |
+
"!ls /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}"
|
402 |
+
]
|
403 |
+
}
|
404 |
+
],
|
405 |
+
"metadata": {
|
406 |
+
"accelerator": "GPU",
|
407 |
+
"colab": {
|
408 |
+
"private_outputs": true,
|
409 |
+
"provenance": []
|
410 |
+
},
|
411 |
+
"gpuClass": "standard",
|
412 |
+
"kernelspec": {
|
413 |
+
"display_name": "Python 3",
|
414 |
+
"name": "python3"
|
415 |
+
},
|
416 |
+
"language_info": {
|
417 |
+
"name": "python"
|
418 |
+
}
|
419 |
+
},
|
420 |
+
"nbformat": 4,
|
421 |
+
"nbformat_minor": 0
|
422 |
+
}
|
Retrieval-based-Voice-Conversion-WebUI/assets/Synthesizer_inputs.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4c5ae8cd034b02bbc325939e9b9debbedb43ee9d71a654daaff8804815bd957d
|
3 |
+
size 122495
|
Retrieval-based-Voice-Conversion-WebUI/assets/hubert/.gitignore
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
*
|
2 |
+
!.gitignore
|
3 |
+
!hubert_inputs.pth
|
Retrieval-based-Voice-Conversion-WebUI/assets/hubert/hubert_inputs.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bbd4741d4be8a71333170c0df5320f605a9d210b96547b391555da078167861f
|
3 |
+
size 169434
|
Retrieval-based-Voice-Conversion-WebUI/assets/pretrained/.gitignore
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
*
|
2 |
+
!.gitignore
|
Retrieval-based-Voice-Conversion-WebUI/assets/pretrained_v2/.gitignore
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
*
|
2 |
+
!.gitignore
|
Retrieval-based-Voice-Conversion-WebUI/assets/rmvpe/.gitignore
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
*
|
2 |
+
!.gitignore
|
3 |
+
!rmvpe_inputs.pth
|
Retrieval-based-Voice-Conversion-WebUI/assets/rmvpe/rmvpe_inputs.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:339fcb7e1476b302e9aecef4a951e918c20852b2e871de5eea13b06e554e0a3a
|
3 |
+
size 33527
|
Retrieval-based-Voice-Conversion-WebUI/assets/uvr5_weights/.gitignore
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
*
|
2 |
+
!.gitignore
|
Retrieval-based-Voice-Conversion-WebUI/assets/weights/.gitignore
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
*
|
2 |
+
!.gitignore
|
Retrieval-based-Voice-Conversion-WebUI/configs/config.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"pth_path": "assets/weights/kikiV1.pth", "index_path": "logs/kikiV1.index", "sg_input_device": "VoiceMeeter Output (VB-Audio Vo (MME)", "sg_output_device": "VoiceMeeter Input (VB-Audio Voi (MME)", "threhold": -45.0, "pitch": 2.0, "rms_mix_rate": 0.0, "index_rate": 0.0, "block_time": 0.52, "crossfade_length": 0.15, "extra_time": 2.46, "n_cpu": 6.0, "use_jit": false, "f0method": "rmvpe"}
|
Retrieval-based-Voice-Conversion-WebUI/configs/config.py
ADDED
@@ -0,0 +1,251 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import argparse
|
2 |
+
import os
|
3 |
+
import sys
|
4 |
+
import json
|
5 |
+
from multiprocessing import cpu_count
|
6 |
+
|
7 |
+
import torch
|
8 |
+
|
9 |
+
try:
|
10 |
+
import intel_extension_for_pytorch as ipex # pylint: disable=import-error, unused-import
|
11 |
+
|
12 |
+
if torch.xpu.is_available():
|
13 |
+
from infer.modules.ipex import ipex_init
|
14 |
+
|
15 |
+
ipex_init()
|
16 |
+
except Exception: # pylint: disable=broad-exception-caught
|
17 |
+
pass
|
18 |
+
import logging
|
19 |
+
|
20 |
+
logger = logging.getLogger(__name__)
|
21 |
+
|
22 |
+
|
23 |
+
version_config_list = [
|
24 |
+
"v1/32k.json",
|
25 |
+
"v1/40k.json",
|
26 |
+
"v1/48k.json",
|
27 |
+
"v2/48k.json",
|
28 |
+
"v2/32k.json",
|
29 |
+
]
|
30 |
+
|
31 |
+
|
32 |
+
def singleton_variable(func):
|
33 |
+
def wrapper(*args, **kwargs):
|
34 |
+
if not wrapper.instance:
|
35 |
+
wrapper.instance = func(*args, **kwargs)
|
36 |
+
return wrapper.instance
|
37 |
+
|
38 |
+
wrapper.instance = None
|
39 |
+
return wrapper
|
40 |
+
|
41 |
+
|
42 |
+
@singleton_variable
|
43 |
+
class Config:
|
44 |
+
def __init__(self):
|
45 |
+
self.device = "cuda:0"
|
46 |
+
self.is_half = True
|
47 |
+
self.use_jit = False
|
48 |
+
self.n_cpu = 0
|
49 |
+
self.gpu_name = None
|
50 |
+
self.json_config = self.load_config_json()
|
51 |
+
self.gpu_mem = None
|
52 |
+
(
|
53 |
+
self.python_cmd,
|
54 |
+
self.listen_port,
|
55 |
+
self.iscolab,
|
56 |
+
self.noparallel,
|
57 |
+
self.noautoopen,
|
58 |
+
self.dml,
|
59 |
+
) = self.arg_parse()
|
60 |
+
self.instead = ""
|
61 |
+
self.x_pad, self.x_query, self.x_center, self.x_max = self.device_config()
|
62 |
+
|
63 |
+
@staticmethod
|
64 |
+
def load_config_json() -> dict:
|
65 |
+
d = {}
|
66 |
+
for config_file in version_config_list:
|
67 |
+
with open(f"configs/{config_file}", "r") as f:
|
68 |
+
d[config_file] = json.load(f)
|
69 |
+
return d
|
70 |
+
|
71 |
+
@staticmethod
|
72 |
+
def arg_parse() -> tuple:
|
73 |
+
exe = sys.executable or "python"
|
74 |
+
parser = argparse.ArgumentParser()
|
75 |
+
parser.add_argument("--port", type=int, default=7865, help="Listen port")
|
76 |
+
parser.add_argument("--pycmd", type=str, default=exe, help="Python command")
|
77 |
+
parser.add_argument("--colab", action="store_true", help="Launch in colab")
|
78 |
+
parser.add_argument(
|
79 |
+
"--noparallel", action="store_true", help="Disable parallel processing"
|
80 |
+
)
|
81 |
+
parser.add_argument(
|
82 |
+
"--noautoopen",
|
83 |
+
action="store_true",
|
84 |
+
help="Do not open in browser automatically",
|
85 |
+
)
|
86 |
+
parser.add_argument(
|
87 |
+
"--dml",
|
88 |
+
action="store_true",
|
89 |
+
help="torch_dml",
|
90 |
+
)
|
91 |
+
cmd_opts = parser.parse_args()
|
92 |
+
|
93 |
+
cmd_opts.port = cmd_opts.port if 0 <= cmd_opts.port <= 65535 else 7865
|
94 |
+
|
95 |
+
return (
|
96 |
+
cmd_opts.pycmd,
|
97 |
+
cmd_opts.port,
|
98 |
+
cmd_opts.colab,
|
99 |
+
cmd_opts.noparallel,
|
100 |
+
cmd_opts.noautoopen,
|
101 |
+
cmd_opts.dml,
|
102 |
+
)
|
103 |
+
|
104 |
+
# has_mps is only available in nightly pytorch (for now) and MasOS 12.3+.
|
105 |
+
# check `getattr` and try it for compatibility
|
106 |
+
@staticmethod
|
107 |
+
def has_mps() -> bool:
|
108 |
+
if not torch.backends.mps.is_available():
|
109 |
+
return False
|
110 |
+
try:
|
111 |
+
torch.zeros(1).to(torch.device("mps"))
|
112 |
+
return True
|
113 |
+
except Exception:
|
114 |
+
return False
|
115 |
+
|
116 |
+
@staticmethod
|
117 |
+
def has_xpu() -> bool:
|
118 |
+
if hasattr(torch, "xpu") and torch.xpu.is_available():
|
119 |
+
return True
|
120 |
+
else:
|
121 |
+
return False
|
122 |
+
|
123 |
+
def use_fp32_config(self):
|
124 |
+
for config_file in version_config_list:
|
125 |
+
self.json_config[config_file]["train"]["fp16_run"] = False
|
126 |
+
with open(f"configs/{config_file}", "r") as f:
|
127 |
+
strr = f.read().replace("true", "false")
|
128 |
+
with open(f"configs/{config_file}", "w") as f:
|
129 |
+
f.write(strr)
|
130 |
+
with open("infer/modules/train/preprocess.py", "r") as f:
|
131 |
+
strr = f.read().replace("3.7", "3.0")
|
132 |
+
with open("infer/modules/train/preprocess.py", "w") as f:
|
133 |
+
f.write(strr)
|
134 |
+
print("overwrite preprocess and configs.json")
|
135 |
+
|
136 |
+
def device_config(self) -> tuple:
|
137 |
+
if torch.cuda.is_available():
|
138 |
+
if self.has_xpu():
|
139 |
+
self.device = self.instead = "xpu:0"
|
140 |
+
self.is_half = True
|
141 |
+
i_device = int(self.device.split(":")[-1])
|
142 |
+
self.gpu_name = torch.cuda.get_device_name(i_device)
|
143 |
+
if (
|
144 |
+
("16" in self.gpu_name and "V100" not in self.gpu_name.upper())
|
145 |
+
or "P40" in self.gpu_name.upper()
|
146 |
+
or "P10" in self.gpu_name.upper()
|
147 |
+
or "1060" in self.gpu_name
|
148 |
+
or "1070" in self.gpu_name
|
149 |
+
or "1080" in self.gpu_name
|
150 |
+
):
|
151 |
+
logger.info("Found GPU %s, force to fp32", self.gpu_name)
|
152 |
+
self.is_half = False
|
153 |
+
self.use_fp32_config()
|
154 |
+
else:
|
155 |
+
logger.info("Found GPU %s", self.gpu_name)
|
156 |
+
self.gpu_mem = int(
|
157 |
+
torch.cuda.get_device_properties(i_device).total_memory
|
158 |
+
/ 1024
|
159 |
+
/ 1024
|
160 |
+
/ 1024
|
161 |
+
+ 0.4
|
162 |
+
)
|
163 |
+
if self.gpu_mem <= 4:
|
164 |
+
with open("infer/modules/train/preprocess.py", "r") as f:
|
165 |
+
strr = f.read().replace("3.7", "3.0")
|
166 |
+
with open("infer/modules/train/preprocess.py", "w") as f:
|
167 |
+
f.write(strr)
|
168 |
+
elif self.has_mps():
|
169 |
+
logger.info("No supported Nvidia GPU found")
|
170 |
+
self.device = self.instead = "mps"
|
171 |
+
self.is_half = False
|
172 |
+
self.use_fp32_config()
|
173 |
+
else:
|
174 |
+
logger.info("No supported Nvidia GPU found")
|
175 |
+
self.device = self.instead = "cpu"
|
176 |
+
self.is_half = False
|
177 |
+
self.use_fp32_config()
|
178 |
+
|
179 |
+
if self.n_cpu == 0:
|
180 |
+
self.n_cpu = cpu_count()
|
181 |
+
|
182 |
+
if self.is_half:
|
183 |
+
# 6Gๆพๅญ้
็ฝฎ
|
184 |
+
x_pad = 3
|
185 |
+
x_query = 10
|
186 |
+
x_center = 60
|
187 |
+
x_max = 65
|
188 |
+
else:
|
189 |
+
# 5Gๆพๅญ้
็ฝฎ
|
190 |
+
x_pad = 1
|
191 |
+
x_query = 6
|
192 |
+
x_center = 38
|
193 |
+
x_max = 41
|
194 |
+
|
195 |
+
if self.gpu_mem is not None and self.gpu_mem <= 4:
|
196 |
+
x_pad = 1
|
197 |
+
x_query = 5
|
198 |
+
x_center = 30
|
199 |
+
x_max = 32
|
200 |
+
if self.dml:
|
201 |
+
logger.info("Use DirectML instead")
|
202 |
+
if (
|
203 |
+
os.path.exists(
|
204 |
+
"runtime\Lib\site-packages\onnxruntime\capi\DirectML.dll"
|
205 |
+
)
|
206 |
+
== False
|
207 |
+
):
|
208 |
+
try:
|
209 |
+
os.rename(
|
210 |
+
"runtime\Lib\site-packages\onnxruntime",
|
211 |
+
"runtime\Lib\site-packages\onnxruntime-cuda",
|
212 |
+
)
|
213 |
+
except:
|
214 |
+
pass
|
215 |
+
try:
|
216 |
+
os.rename(
|
217 |
+
"runtime\Lib\site-packages\onnxruntime-dml",
|
218 |
+
"runtime\Lib\site-packages\onnxruntime",
|
219 |
+
)
|
220 |
+
except:
|
221 |
+
pass
|
222 |
+
# if self.device != "cpu":
|
223 |
+
import torch_directml
|
224 |
+
|
225 |
+
self.device = torch_directml.device(torch_directml.default_device())
|
226 |
+
self.is_half = False
|
227 |
+
else:
|
228 |
+
if self.instead:
|
229 |
+
logger.info(f"Use {self.instead} instead")
|
230 |
+
if (
|
231 |
+
os.path.exists(
|
232 |
+
"runtime\Lib\site-packages\onnxruntime\capi\onnxruntime_providers_cuda.dll"
|
233 |
+
)
|
234 |
+
== False
|
235 |
+
):
|
236 |
+
try:
|
237 |
+
os.rename(
|
238 |
+
"runtime\Lib\site-packages\onnxruntime",
|
239 |
+
"runtime\Lib\site-packages\onnxruntime-dml",
|
240 |
+
)
|
241 |
+
except:
|
242 |
+
pass
|
243 |
+
try:
|
244 |
+
os.rename(
|
245 |
+
"runtime\Lib\site-packages\onnxruntime-cuda",
|
246 |
+
"runtime\Lib\site-packages\onnxruntime",
|
247 |
+
)
|
248 |
+
except:
|
249 |
+
pass
|
250 |
+
print("is_half:%s, device:%s" % (self.is_half, self.device))
|
251 |
+
return x_pad, x_query, x_center, x_max
|
Retrieval-based-Voice-Conversion-WebUI/configs/v1/32k.json
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"fp16_run": true,
|
11 |
+
"lr_decay": 0.999875,
|
12 |
+
"segment_size": 12800,
|
13 |
+
"init_lr_ratio": 1,
|
14 |
+
"warmup_epochs": 0,
|
15 |
+
"c_mel": 45,
|
16 |
+
"c_kl": 1.0
|
17 |
+
},
|
18 |
+
"data": {
|
19 |
+
"max_wav_value": 32768.0,
|
20 |
+
"sampling_rate": 32000,
|
21 |
+
"filter_length": 1024,
|
22 |
+
"hop_length": 320,
|
23 |
+
"win_length": 1024,
|
24 |
+
"n_mel_channels": 80,
|
25 |
+
"mel_fmin": 0.0,
|
26 |
+
"mel_fmax": null
|
27 |
+
},
|
28 |
+
"model": {
|
29 |
+
"inter_channels": 192,
|
30 |
+
"hidden_channels": 192,
|
31 |
+
"filter_channels": 768,
|
32 |
+
"n_heads": 2,
|
33 |
+
"n_layers": 6,
|
34 |
+
"kernel_size": 3,
|
35 |
+
"p_dropout": 0,
|
36 |
+
"resblock": "1",
|
37 |
+
"resblock_kernel_sizes": [3,7,11],
|
38 |
+
"resblock_dilation_sizes": [[1,3,5], [1,3,5], [1,3,5]],
|
39 |
+
"upsample_rates": [10,4,2,2,2],
|
40 |
+
"upsample_initial_channel": 512,
|
41 |
+
"upsample_kernel_sizes": [16,16,4,4,4],
|
42 |
+
"use_spectral_norm": false,
|
43 |
+
"gin_channels": 256,
|
44 |
+
"spk_embed_dim": 109
|
45 |
+
}
|
46 |
+
}
|
Retrieval-based-Voice-Conversion-WebUI/configs/v1/40k.json
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"fp16_run": true,
|
11 |
+
"lr_decay": 0.999875,
|
12 |
+
"segment_size": 12800,
|
13 |
+
"init_lr_ratio": 1,
|
14 |
+
"warmup_epochs": 0,
|
15 |
+
"c_mel": 45,
|
16 |
+
"c_kl": 1.0
|
17 |
+
},
|
18 |
+
"data": {
|
19 |
+
"max_wav_value": 32768.0,
|
20 |
+
"sampling_rate": 40000,
|
21 |
+
"filter_length": 2048,
|
22 |
+
"hop_length": 400,
|
23 |
+
"win_length": 2048,
|
24 |
+
"n_mel_channels": 125,
|
25 |
+
"mel_fmin": 0.0,
|
26 |
+
"mel_fmax": null
|
27 |
+
},
|
28 |
+
"model": {
|
29 |
+
"inter_channels": 192,
|
30 |
+
"hidden_channels": 192,
|
31 |
+
"filter_channels": 768,
|
32 |
+
"n_heads": 2,
|
33 |
+
"n_layers": 6,
|
34 |
+
"kernel_size": 3,
|
35 |
+
"p_dropout": 0,
|
36 |
+
"resblock": "1",
|
37 |
+
"resblock_kernel_sizes": [3,7,11],
|
38 |
+
"resblock_dilation_sizes": [[1,3,5], [1,3,5], [1,3,5]],
|
39 |
+
"upsample_rates": [10,10,2,2],
|
40 |
+
"upsample_initial_channel": 512,
|
41 |
+
"upsample_kernel_sizes": [16,16,4,4],
|
42 |
+
"use_spectral_norm": false,
|
43 |
+
"gin_channels": 256,
|
44 |
+
"spk_embed_dim": 109
|
45 |
+
}
|
46 |
+
}
|
Retrieval-based-Voice-Conversion-WebUI/configs/v1/48k.json
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"fp16_run": true,
|
11 |
+
"lr_decay": 0.999875,
|
12 |
+
"segment_size": 11520,
|
13 |
+
"init_lr_ratio": 1,
|
14 |
+
"warmup_epochs": 0,
|
15 |
+
"c_mel": 45,
|
16 |
+
"c_kl": 1.0
|
17 |
+
},
|
18 |
+
"data": {
|
19 |
+
"max_wav_value": 32768.0,
|
20 |
+
"sampling_rate": 48000,
|
21 |
+
"filter_length": 2048,
|
22 |
+
"hop_length": 480,
|
23 |
+
"win_length": 2048,
|
24 |
+
"n_mel_channels": 128,
|
25 |
+
"mel_fmin": 0.0,
|
26 |
+
"mel_fmax": null
|
27 |
+
},
|
28 |
+
"model": {
|
29 |
+
"inter_channels": 192,
|
30 |
+
"hidden_channels": 192,
|
31 |
+
"filter_channels": 768,
|
32 |
+
"n_heads": 2,
|
33 |
+
"n_layers": 6,
|
34 |
+
"kernel_size": 3,
|
35 |
+
"p_dropout": 0,
|
36 |
+
"resblock": "1",
|
37 |
+
"resblock_kernel_sizes": [3,7,11],
|
38 |
+
"resblock_dilation_sizes": [[1,3,5], [1,3,5], [1,3,5]],
|
39 |
+
"upsample_rates": [10,6,2,2,2],
|
40 |
+
"upsample_initial_channel": 512,
|
41 |
+
"upsample_kernel_sizes": [16,16,4,4,4],
|
42 |
+
"use_spectral_norm": false,
|
43 |
+
"gin_channels": 256,
|
44 |
+
"spk_embed_dim": 109
|
45 |
+
}
|
46 |
+
}
|
Retrieval-based-Voice-Conversion-WebUI/configs/v2/32k.json
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"fp16_run": true,
|
11 |
+
"lr_decay": 0.999875,
|
12 |
+
"segment_size": 12800,
|
13 |
+
"init_lr_ratio": 1,
|
14 |
+
"warmup_epochs": 0,
|
15 |
+
"c_mel": 45,
|
16 |
+
"c_kl": 1.0
|
17 |
+
},
|
18 |
+
"data": {
|
19 |
+
"max_wav_value": 32768.0,
|
20 |
+
"sampling_rate": 32000,
|
21 |
+
"filter_length": 1024,
|
22 |
+
"hop_length": 320,
|
23 |
+
"win_length": 1024,
|
24 |
+
"n_mel_channels": 80,
|
25 |
+
"mel_fmin": 0.0,
|
26 |
+
"mel_fmax": null
|
27 |
+
},
|
28 |
+
"model": {
|
29 |
+
"inter_channels": 192,
|
30 |
+
"hidden_channels": 192,
|
31 |
+
"filter_channels": 768,
|
32 |
+
"n_heads": 2,
|
33 |
+
"n_layers": 6,
|
34 |
+
"kernel_size": 3,
|
35 |
+
"p_dropout": 0,
|
36 |
+
"resblock": "1",
|
37 |
+
"resblock_kernel_sizes": [3,7,11],
|
38 |
+
"resblock_dilation_sizes": [[1,3,5], [1,3,5], [1,3,5]],
|
39 |
+
"upsample_rates": [10,8,2,2],
|
40 |
+
"upsample_initial_channel": 512,
|
41 |
+
"upsample_kernel_sizes": [20,16,4,4],
|
42 |
+
"use_spectral_norm": false,
|
43 |
+
"gin_channels": 256,
|
44 |
+
"spk_embed_dim": 109
|
45 |
+
}
|
46 |
+
}
|
Retrieval-based-Voice-Conversion-WebUI/configs/v2/48k.json
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"fp16_run": true,
|
11 |
+
"lr_decay": 0.999875,
|
12 |
+
"segment_size": 17280,
|
13 |
+
"init_lr_ratio": 1,
|
14 |
+
"warmup_epochs": 0,
|
15 |
+
"c_mel": 45,
|
16 |
+
"c_kl": 1.0
|
17 |
+
},
|
18 |
+
"data": {
|
19 |
+
"max_wav_value": 32768.0,
|
20 |
+
"sampling_rate": 48000,
|
21 |
+
"filter_length": 2048,
|
22 |
+
"hop_length": 480,
|
23 |
+
"win_length": 2048,
|
24 |
+
"n_mel_channels": 128,
|
25 |
+
"mel_fmin": 0.0,
|
26 |
+
"mel_fmax": null
|
27 |
+
},
|
28 |
+
"model": {
|
29 |
+
"inter_channels": 192,
|
30 |
+
"hidden_channels": 192,
|
31 |
+
"filter_channels": 768,
|
32 |
+
"n_heads": 2,
|
33 |
+
"n_layers": 6,
|
34 |
+
"kernel_size": 3,
|
35 |
+
"p_dropout": 0,
|
36 |
+
"resblock": "1",
|
37 |
+
"resblock_kernel_sizes": [3,7,11],
|
38 |
+
"resblock_dilation_sizes": [[1,3,5], [1,3,5], [1,3,5]],
|
39 |
+
"upsample_rates": [12,10,2,2],
|
40 |
+
"upsample_initial_channel": 512,
|
41 |
+
"upsample_kernel_sizes": [24,20,4,4],
|
42 |
+
"use_spectral_norm": false,
|
43 |
+
"gin_channels": 256,
|
44 |
+
"spk_embed_dim": 109
|
45 |
+
}
|
46 |
+
}
|
Retrieval-based-Voice-Conversion-WebUI/docker-compose.yml
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
version: "3.8"
|
2 |
+
services:
|
3 |
+
rvc:
|
4 |
+
build:
|
5 |
+
context: .
|
6 |
+
dockerfile: Dockerfile
|
7 |
+
container_name: rvc
|
8 |
+
volumes:
|
9 |
+
- ./weights:/app/assets/weights
|
10 |
+
- ./opt:/app/opt
|
11 |
+
# - ./dataset:/app/dataset # you can use this folder in order to provide your dataset for model training
|
12 |
+
ports:
|
13 |
+
- 7865:7865
|
14 |
+
deploy:
|
15 |
+
resources:
|
16 |
+
reservations:
|
17 |
+
devices:
|
18 |
+
- driver: nvidia
|
19 |
+
count: 1
|
20 |
+
capabilities: [gpu]
|
Retrieval-based-Voice-Conversion-WebUI/docs/.DS_Store
ADDED
Binary file (6.15 kB). View file
|
|
Retrieval-based-Voice-Conversion-WebUI/docs/cn/Changelog_CN.md
ADDED
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
### 20231006ๆดๆฐ
|
2 |
+
|
3 |
+
ๆไปฌๅถไฝไบไธไธช็จไบๅฎๆถๅๅฃฐ็็้ขgo-realtime-gui.bat/gui_v1.py๏ผไบๅฎไธๆฉๅฐฑๅญๅจไบ๏ผ๏ผๆฌๆฌกๆดๆฐ้็นไนไผๅไบๅฎๆถๅๅฃฐ็ๆง่ฝใๅฏนๆฏ0813็๏ผ
|
4 |
+
- 1ใไผไผๅ็้ขๆไฝ๏ผๅๆฐ็ญๆดๆฐ๏ผ่ฐๆดๅๆฐไธ้่ฆไธญๆญขๅๅฏๅจ๏ผ๏ผๆๅ ่ฝฝๆจกๅ๏ผๅทฒๅ ่ฝฝ่ฟ็ๆจกๅไธ้่ฆ้ๆฐๅ ่ฝฝ๏ผ๏ผๅขๅ ๅๅบฆๅ ๅญๅๆฐ๏ผๅๅบฆๅ่พๅ
ฅ้ณ้ข้ ่ฟ๏ผ
|
5 |
+
- 2ใไผๅ่ชๅธฆ้ๅชๆๆไธ้ๅบฆ
|
6 |
+
- 3ใๅคงๅน
ไผๅๆจ็้ๅบฆ
|
7 |
+
|
8 |
+
ๆณจๆ่พๅ
ฅ่พๅบ่ฎพๅคๅบ่ฏฅ้ๆฉๅ็ง็ฑปๅ๏ผไพๅฆ้ฝ้MME็ฑปๅใ
|
9 |
+
|
10 |
+
1006็ๆฌๆดไฝ็ๆดๆฐไธบ๏ผ
|
11 |
+
- 1ใ็ปง็ปญๆๅrmvpe้ณ้ซๆๅ็ฎๆณๆๆ๏ผๅฏนไบ็ทไฝ้ณๆๆดๅคง็ๆๅ
|
12 |
+
- 2ใไผๅๆจ็็้ขๅธๅฑ
|
13 |
+
|
14 |
+
### 20230813ๆดๆฐ
|
15 |
+
1-ๅธธ่งbugไฟฎๅค
|
16 |
+
- ไฟๅญ้ข็ๆป่ฝฎๆฐๆไฝๆนไธบ1 ๆป่ฝฎๆฐๆไฝๆนไธบ2
|
17 |
+
- ไฟฎๅคๆ pretrainๆจกๅ่ฎญ็ปๆฅ้
|
18 |
+
- ๅขๅ ไผดๅฅไบบๅฃฐๅ็ฆปๅฎๆฏๆธ
็ๆพๅญ
|
19 |
+
- faissไฟๅญ่ทฏๅพ็ปๅฏน่ทฏๅพๆนไธบ็ธๅฏน่ทฏๅพ
|
20 |
+
- ๆฏๆ่ทฏๅพๅ
ๅซ็ฉบๆ ผ๏ผ่ฎญ็ป้่ทฏๅพ+ๅฎ้ชๅ็งฐๅๆฏๆ๏ผไธๅไผๆฅ้๏ผ
|
21 |
+
- filelistๅๆถๅผบๅถutf8็ผ็
|
22 |
+
- ่งฃๅณๅฎๆถๅๅฃฐไธญๅผๅฏ็ดขๅผๅฏผ่ด็CPUๆๅคงๅ ็จ้ฎ้ข
|
23 |
+
|
24 |
+
2-้็นๆดๆฐ
|
25 |
+
- ่ฎญ็ปๅบๅฝๅๆๅผบๅผๆบไบบๅฃฐ้ณ้ซๆๅๆจกๅRMVPE๏ผๅนถ็จไบRVC็่ฎญ็ปใ็ฆป็บฟ/ๅฎๆถๆจ็๏ผๆฏๆpytorch/onnx/DirectML
|
26 |
+
- ้่ฟpytorch-dmlๆฏๆAๅกๅIๅก็
|
27 |
+
๏ผ1๏ผๅฎๆถๅๅฃฐ๏ผ2๏ผๆจ็๏ผ3๏ผไบบๅฃฐไผดๅฅๅ็ฆป๏ผ4๏ผ่ฎญ็ปๆๆชๆฏๆ๏ผไผๅๆข่ณCPU่ฎญ็ป๏ผ้่ฟonnx_dmlๆฏๆrmvpe_gpu็ๆจ็
|
28 |
+
|
29 |
+
### 20230618ๆดๆฐ
|
30 |
+
- v2ๅขๅ 32kๅ48kไธคไธชๆฐ้ข่ฎญ็ปๆจกๅ
|
31 |
+
- ไฟฎๅค้f0ๆจกๅๆจ็ๆฅ้
|
32 |
+
- ๅฏนไบ่ถ
่ฟไธๅฐๆถ็่ฎญ็ป้็็ดขๅผๅปบ็ซ็ฏ่๏ผ่ชๅจkmeans็ผฉๅฐ็นๅพๅค็ไปฅๅ ้็ดขๅผ่ฎญ็ปใๅ ๅ
ฅๅๆฅ่ฏข
|
33 |
+
- ้้ไธไธชไบบๅฃฐ่ฝฌๅไป็ฉๅ
ทไปๅบ
|
34 |
+
- ๆฐๆฎๅค็ๅ้คๅผๅธธๅผๅ็
|
35 |
+
- onnxๅฏผๅบ้้กนๅก
|
36 |
+
|
37 |
+
ๅคฑ่ดฅ็ๅฎ้ช๏ผ
|
38 |
+
- ~~็นๅพๆฃ็ดขๅขๅ ๆถๅบ็ปดๅบฆ๏ผๅฏ๏ผๆฒกๅฅๆๆ~~
|
39 |
+
- ~~็นๅพๆฃ็ดขๅขๅ PCAR้็ปดๅฏ้้กน๏ผๅฏ๏ผๆฐๆฎๅคง็จkmeans็ผฉๅฐๆฐๆฎ้๏ผๆฐๆฎๅฐ้็ปดๆไฝ่ๆถๆฏ็ไธ็ๅน้
่ๆถ่ฟๅค~~
|
40 |
+
- ~~ๆฏๆonnxๆจ็๏ผ้ๅธฆไป
ๆจ็็ๅฐๅ็ผฉๅ
๏ผ๏ผๅฏ๏ผ็ๆnsf่ฟๆฏ้่ฆpytorch~~
|
41 |
+
- ~~่ฎญ็ปๆถๅจ้ณ้ซใgenderใeqใๅชๅฃฐ็ญๆน้ขๅฏน่พๅ
ฅ่ฟ่ก้ๆบๅขๅผบ๏ผๅฏ๏ผๆฒกๅฅๆๆ~~
|
42 |
+
- ~~ๆฅๅ
ฅๅฐๅๅฃฐ็ ๅจ่ฐ็ :ๅฏ๏ผๆๆๅๅทฎ~~
|
43 |
+
|
44 |
+
todolist๏ผ
|
45 |
+
- ~~่ฎญ็ป้้ณ้ซ่ฏๅซๆฏๆcrepe๏ผๅทฒ็ป่ขซRMVPEๅไปฃ๏ผไธ้่ฆ~~
|
46 |
+
- ~~ๅค่ฟ็จharvestๆจ็๏ผๅทฒ็ป่ขซRMVPEๅไปฃ๏ผไธ้่ฆ~~
|
47 |
+
- ~~crepe็็ฒพๅบฆๆฏๆๅRVC-configๅๆญฅ๏ผๅทฒ็ป่ขซRMVPEๅไปฃ๏ผไธ้่ฆใๆฏๆ่ฟไธช่ฟ่ฆๅๆญฅtorchcrepe็ๅบ๏ผ้บป็ฆ~~
|
48 |
+
- ๅฏนๆฅF0็ผ่พๅจ
|
49 |
+
|
50 |
+
|
51 |
+
### 20230528ๆดๆฐ
|
52 |
+
- ๅขๅ v2็jupyter notebook๏ผ้ฉๆchangelog๏ผๅขๅ ไธไบ็ฏๅขไพ่ต
|
53 |
+
- ๅขๅ ๅผๅธใๆธ
่พ
้ณใ้ฝฟ้ณไฟๆคๆจกๅผ
|
54 |
+
- ๆฏๆcrepe-fullๆจ็
|
55 |
+
- UVR5ไบบๅฃฐไผดๅฅๅ็ฆปๅ ไธ3ไธชๅปๅปถ่ฟๆจกๅๅMDX-Netๅปๆททๅๆจกๅ๏ผๅขๅ HP3ไบบๅฃฐๆๅๆจกๅ
|
56 |
+
- ็ดขๅผๅ็งฐๅขๅ ็ๆฌๅๅฎ้ชๅ็งฐ
|
57 |
+
- ไบบๅฃฐไผดๅฅๅ็ฆปใๆจ็ๆน้ๅฏผๅบๅขๅ ้ณ้ขๅฏผๅบๆ ผๅผ้้กน
|
58 |
+
- ๅบๅผ32kๆจกๅ็่ฎญ็ป
|
59 |
+
|
60 |
+
### 20230513ๆดๆฐ
|
61 |
+
- ๆธ
้คไธ้ฎๅ
ๅ
้จ่็ๆฌruntimeๅ
ๆฎ็็lib.infer_packๅuvr5_pack
|
62 |
+
- ไฟฎๅค่ฎญ็ป้้ขๅค็ไผชๅค่ฟ็จ็bug
|
63 |
+
- ๅขๅ harvest่ฏๅซ้ณ้ซๅฏ้้่ฟไธญๅผๆปคๆณขๅๅผฑๅ้ณ็ฐ่ฑก๏ผๅฏ่ฐๆดไธญๅผๆปคๆณขๅๅพ
|
64 |
+
- ๅฏผๅบ้ณ้ขๅขๅ ๅๅค็้้ๆ ท
|
65 |
+
- ่ฎญ็ปn_cpu่ฟ็จๆฐไป"ไป
่ฐๆดf0ๆๅ"ๆนไธบ"่ฐๆดๆฐๆฎ้ขๅค็ๅf0ๆๅ"
|
66 |
+
- ่ชๅจๆฃๆตlogsๆไปถๅคนไธ็index่ทฏๅพ๏ผๆไพไธๆๅ่กจๅ่ฝ
|
67 |
+
- tab้กตๅขๅ "ๅธธ่ง้ฎ้ข่งฃ็ญ"๏ผไนๅฏๅ่github-rvc-wiki๏ผ
|
68 |
+
- ็ธๅ่ทฏๅพ็่พๅ
ฅ้ณ้ขๆจ็ๅขๅ ไบ้ณ้ซ็ผๅญ๏ผ็จ้๏ผไฝฟ็จharvest้ณ้ซๆๅ๏ผๆดไธชpipelineไผ็ปๅๆผซ้ฟไธ้ๅค็้ณ้ซๆๅ่ฟ็จ๏ผๅฆๆไธไฝฟ็จ็ผๅญ๏ผๅฎ้ชไธๅ้ณ่ฒใ็ดขๅผใ้ณ้ซไธญๅผๆปคๆณขๅๅพๅๆฐ็็จๆทๅจ็ฌฌไธๆฌกๆต่ฏๅ็็ญๅพ
็ปๆไผ้ๅธธ็่ฆ๏ผ
|
69 |
+
|
70 |
+
### 20230514ๆดๆฐ
|
71 |
+
- ้ณ้ๅ
็ปๅฏน้ฝ่พๅ
ฅๆททๅ๏ผๅฏไปฅ็ผ่งฃโ่พๅ
ฅ้้ณ่พๅบๅฐๅน
ๅบฆๅชๅฃฐโ็้ฎ้ขใๅฆๆ่พๅ
ฅ้ณ้ข่ๆฏๅบๅชๅคงๅไธๅปบ่ฎฎๅผๅฏ๏ผ้ป่ฎคไธๅผๅฏ๏ผๅผไธบ1ๅฏ่งไธบไธๅผๅฏ๏ผ๏ผ
|
72 |
+
- ๆฏๆๆ็
งๆๅฎ้ข็ไฟๅญๆๅ็ๅฐๆจกๅ๏ผๅๅฆไฝ ๆณๅฐ่ฏไธๅepochไธ็ๆจ็ๆๆ๏ผไฝๆฏไธๆณไฟๅญๆๆๅคงcheckpointๅนถไธๆฏๆฌก้ฝ่ฆckptๆๅทฅๅค็ๆๅๅฐๆจกๅ๏ผ่ฟ้กนๅ่ฝไผ้ๅธธๅฎ็จ๏ผ
|
73 |
+
- ้่ฟ่ฎพ็ฝฎ็ฏๅขๅ้่งฃๅณๆๅก็ซฏๅผไบ็ณป็ปๅ
จๅฑไปฃ็ๅฏผ่ดๆต่งๅจ่ฟๆฅ้่ฏฏ็้ฎ้ข
|
74 |
+
- ๆฏๆv2้ข่ฎญ็ปๆจกๅ๏ผ็ฎๅๅชๅ
ฌๅผไบ40k็ๆฌ่ฟ่กๆต่ฏ๏ผๅฆๅค2ไธช้ๆ ท็่ฟๆฒกๆ่ฎญ็ปๅฎๅ
จ๏ผ
|
75 |
+
- ๆจ็ๅ้ๅถ่ถ
่ฟ1็่ฟๅคง้ณ้
|
76 |
+
- ๅพฎ่ฐๆฐๆฎ้ขๅค็ๅๆฐ
|
77 |
+
|
78 |
+
|
79 |
+
### 20230409ๆดๆฐ
|
80 |
+
- ไฟฎๆญฃ่ฎญ็ปๅๆฐ๏ผๆๅๆพๅกๅนณๅๅฉ็จ็๏ผA100ๆ้ซไป25%ๆๅ่ณ90%ๅทฆๅณ๏ผV100:50%->90%ๅทฆๅณ๏ผ2060S:60%->85%ๅทฆๅณ๏ผP40:25%->95%ๅทฆๅณ๏ผ่ฎญ็ป้ๅบฆๆพ่ๆๅ
|
81 |
+
- ไฟฎๆญฃๅๆฐ๏ผๆปbatch_sizeๆนไธบๆฏๅผ ๅก็batch_size
|
82 |
+
- ไฟฎๆญฃtotal_epoch๏ผๆๅคง้ๅถ100่งฃ้่ณ1000๏ผ้ป่ฎค10ๆๅ่ณ้ป่ฎค20
|
83 |
+
- ไฟฎๅคckptๆๅ่ฏๅซๆฏๅฆๅธฆ้ณ้ซ้่ฏฏๅฏผ่ดๆจ็ๅผๅธธ็้ฎ้ข
|
84 |
+
- ไฟฎๅคๅๅธๅผ่ฎญ็ปๆฏไธชrank้ฝไฟๅญไธๆฌกckpt๏ฟฝ๏ฟฝ๏ฟฝ้ฎ้ข
|
85 |
+
- ็นๅพๆๅ่ฟ่กnan็นๅพ่ฟๆปค
|
86 |
+
- ไฟฎๅค้้ณ่พๅ
ฅ่พๅบ้ๆบ่พ
้ณorๅชๅฃฐ็้ฎ้ข๏ผ่็ๆจกๅ้่ฆ้ๅ่ฎญ็ป้้่ฎญ๏ผ
|
87 |
+
|
88 |
+
### 20230416ๆดๆฐ
|
89 |
+
- ๆฐๅขๆฌๅฐๅฎๆถๅๅฃฐ่ฟทไฝ GUI๏ผๅๅปgo-realtime-gui.batๅฏๅจ
|
90 |
+
- ่ฎญ็ปๆจ็ๅๅฏน<50Hz็้ขๆฎต่ฟ่กๆปคๆณข่ฟๆปค
|
91 |
+
- ่ฎญ็ปๆจ็้ณ้ซๆๅpyworldๆไฝ้ณ้ซไป้ป่ฎค80ไธ้่ณ50,50-80hz้ด็็ทๅฃฐไฝ้ณไธไผๅ
|
92 |
+
- WebUIๆฏๆๆ นๆฎ็ณป็ปๅบๅๅๆด่ฏญ่จ๏ผ็ฐๆฏๆen_US๏ผja_JP๏ผzh_CN๏ผzh_HK๏ผzh_SG๏ผzh_TW๏ผไธๆฏๆ็้ป่ฎคen_US๏ผ
|
93 |
+
- ไฟฎๆญฃ้จๅๆพๅก่ฏๅซ๏ผไพๅฆV100-16G่ฏๅซๅคฑ่ดฅ๏ผP4่ฏๅซๅคฑ่ดฅ๏ผ
|
94 |
+
|
95 |
+
### 20230428ๆดๆฐ
|
96 |
+
- ๅ็บงfaiss็ดขๅผ่ฎพ็ฝฎ๏ผ้ๅบฆๆดๅฟซ๏ผ่ดจ้ๆด้ซ
|
97 |
+
- ๅๆถtotal_npyไพ่ต๏ผๅ็ปญๅไบซๆจกๅไธๅ้่ฆๅกซๅtotal_npy
|
98 |
+
- ่งฃ้16็ณป้ๅถใ4GๆพๅญGPU็ปๅฐ4G็ๆจ็่ฎพ็ฝฎใ
|
99 |
+
- ไฟฎๅค้จๅ้ณ้ขๆ ผๅผไธUVR5ไบบๅฃฐไผดๅฅๅ็ฆป็bug
|
100 |
+
- ๅฎๆถๅๅฃฐ่ฟทไฝ guiๅขๅ ๅฏน้40kไธไธๆๆ ้ณ้ซๆจกๅ็ๆฏๆ
|
101 |
+
|
102 |
+
### ๅ็ปญ่ฎกๅ๏ผ
|
103 |
+
ๅ่ฝ๏ผ
|
104 |
+
- ๆฏๆๅคไบบ่ฎญ็ป้้กนๅก๏ผ่ณๅค4ไบบ๏ผ
|
105 |
+
|
106 |
+
ๅบๆจก๏ผ
|
107 |
+
- ๆถ้ๅผๅธwavๅ ๅ
ฅ่ฎญ็ป้ไฟฎๆญฃๅผๅธๅๅฃฐ็ต้ณ็้ฎ้ข
|
108 |
+
- ๆไปฌๆญฃๅจ่ฎญ็ปๅขๅ ไบๆญๅฃฐ่ฎญ็ป้็ๅบๆจก๏ผๆชๆฅไผๅ
ฌๅผ
|
109 |
+
|
Retrieval-based-Voice-Conversion-WebUI/docs/cn/faq.md
ADDED
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
## Q1:ffmpeg error/utf8 error.
|
2 |
+
|
3 |
+
ๅคงๆฆ็ไธๆฏffmpeg้ฎ้ข๏ผ่ๆฏ้ณ้ข่ทฏๅพ้ฎ้ข๏ผ<br>
|
4 |
+
ffmpeg่ฏปๅ่ทฏๅพๅธฆ็ฉบๆ ผใ()็ญ็นๆฎ็ฌฆๅท๏ผๅฏ่ฝๅบ็ฐffmpeg error๏ผ่ฎญ็ป้้ณ้ขๅธฆไธญๆ่ทฏๅพ๏ผๅจๅๅ
ฅfilelist.txt็ๆถๅๅฏ่ฝๅบ็ฐutf8 error๏ผ<br>
|
5 |
+
|
6 |
+
## Q2:ไธ้ฎ่ฎญ็ป็ปๆๆฒกๆ็ดขๅผ
|
7 |
+
|
8 |
+
ๆพ็คบ"Training is done. The program is closed."ๅๆจกๅ่ฎญ็ปๆๅ๏ผๅ็ปญ็ดง้ป็ๆฅ้ๆฏๅ็๏ผ<br>
|
9 |
+
|
10 |
+
ไธ้ฎ่ฎญ็ป็ปๆๅฎๆๆฒกๆaddedๅผๅคด็็ดขๅผๆไปถ๏ผๅฏ่ฝๆฏๅ ไธบ่ฎญ็ป้ๅคชๅคงๅกไฝไบๆทปๅ ็ดขๅผ็ๆญฅ้ชค๏ผๅทฒ้่ฟๆนๅค็add็ดขๅผ่งฃๅณๅ
ๅญadd็ดขๅผๅฏนๅ
ๅญ้ๆฑ่ฟๅคง็้ฎ้ขใไธดๆถๅฏๅฐ่ฏๅๆฌก็นๅป"่ฎญ็ป็ดขๅผ"ๆ้ฎใ<br>
|
11 |
+
|
12 |
+
## Q3:่ฎญ็ป็ปๆๆจ็ๆฒก็ๅฐ่ฎญ็ป้็้ณ่ฒ
|
13 |
+
็นๅทๆฐ้ณ่ฒๅ็็๏ผๅฆๆ่ฟๆฒกๆ็็่ฎญ็ปๆๆฒกๆๆฅ้๏ผๆงๅถๅฐๅwebui็ๆชๅพ๏ผlogs/ๅฎ้ชๅไธ็log๏ผ้ฝๅฏไปฅๅ็ปๅผๅ่
็็ใ<br>
|
14 |
+
|
15 |
+
## Q4:ๅฆไฝๅไบซๆจกๅ
|
16 |
+
โโrvc_root/logs/ๅฎ้ชๅ ไธ้ขๅญๅจ็pthไธๆฏ็จๆฅๅไบซๆจกๅ็จๆฅๆจ็็๏ผ่ๆฏไธบไบๅญๅจๅฎ้ช็ถๆไพๅค็ฐ๏ผไปฅๅ็ปง็ปญ่ฎญ็ป็จ็ใ็จๆฅๅไบซ็ๆจกๅๅบ่ฏฅๆฏweightsๆไปถๅคนไธๅคงๅฐไธบ60+MB็pthๆไปถ๏ผ<br>
|
17 |
+
โโๅ็ปญๅฐๆweights/exp_name.pthๅlogs/exp_name/added_xxx.indexๅๅนถๆๅ
ๆweights/exp_name.zip็ๅปๅกซๅindex็ๆญฅ้ชค๏ผ้ฃไนzipๆไปถ็จๆฅๅไบซ๏ผไธ่ฆๅไบซpthๆไปถ๏ผ้ค้ๆฏๆณๆขๆบๅจ็ปง็ปญ่ฎญ็ป๏ผ<br>
|
18 |
+
โโๅฆๆไฝ ๆlogsๆไปถๅคนไธ็ๅ ็พMB็pthๆไปถๅคๅถ/ๅไบซๅฐweightsๆไปถๅคนไธๅผบ่ก็จไบๆจ็๏ผๅฏ่ฝไผๅบ็ฐf0๏ผtgt_sr็ญๅ็งkeyไธๅญๅจ็ๆฅ้ใไฝ ้่ฆ็จckpt้้กนๅกๆไธ้ข๏ผๆๅทฅๆ่ชๅจ๏ผๆฌๅฐlogsไธๅฆๆ่ฝๆพๅฐ็ธๅ
ณไฟกๆฏๅไผ่ชๅจ๏ผ้ๆฉๆฏๅฆๆบๅธฆ้ณ้ซใ็ฎๆ ้ณ้ข้ๆ ท็็้้กนๅ่ฟ่กckptๅฐๆจกๅๆๅ๏ผ่พๅ
ฅ่ทฏๅพๅกซGๅผๅคด็้ฃไธช๏ผ๏ผๆๅๅฎๅจweightsๆไปถๅคนไธไผๅบ็ฐ60+MB็pthๆไปถ๏ผๅทๆฐ้ณ่ฒๅๅฏไปฅ้ๆฉไฝฟ็จใ<br>
|
19 |
+
|
20 |
+
## Q5:Connection Error.
|
21 |
+
ไน่ฎธไฝ ๅ
ณ้ญไบๆงๅถๅฐ๏ผ้ป่ฒ็ชๅฃ๏ผใ<br>
|
22 |
+
|
23 |
+
## Q6:WebUIๅผนๅบExpecting value: line 1 column 1 (char 0).
|
24 |
+
่ฏทๅ
ณ้ญ็ณป็ปๅฑๅ็ฝไปฃ็/ๅ
จๅฑไปฃ็ใ<br>
|
25 |
+
|
26 |
+
่ฟไธชไธไป
ๆฏๅฎขๆท็ซฏ็ไปฃ็๏ผไนๅ
ๆฌๆๅก็ซฏ็ไปฃ็๏ผไพๅฆไฝ ไฝฟ็จautodl่ฎพ็ฝฎไบhttp_proxyๅhttps_proxyๅญฆๆฏๅ ้๏ผไฝฟ็จๆถไน้่ฆunsetๅ
ณๆ๏ผ<br>
|
27 |
+
|
28 |
+
## Q7:ไธ็จWebUIๅฆไฝ้่ฟๅฝไปค่ฎญ็ปๆจ็
|
29 |
+
่ฎญ็ป่ๆฌ๏ผ<br>
|
30 |
+
ๅฏๅ
่ท้WebUI๏ผๆถๆฏ็ชๅ
ไผๆพ็คบๆฐๆฎ้ๅค็ๅ่ฎญ็ป็จๅฝไปค่ก๏ผ<br>
|
31 |
+
|
32 |
+
ๆจ็่ๆฌ๏ผ<br>
|
33 |
+
https://huggingface.co/lj1995/VoiceConversionWebUI/blob/main/myinfer.py<br>
|
34 |
+
|
35 |
+
ไพๅญ๏ผ<br>
|
36 |
+
|
37 |
+
runtime\python.exe myinfer.py 0 "E:\codes\py39\RVC-beta\todo-songs\1111.wav" "E:\codes\py39\logs\mi-test\added_IVF677_Flat_nprobe_7.index" harvest "test.wav" "weights/mi-test.pth" 0.6 cuda:0 True<br>
|
38 |
+
|
39 |
+
f0up_key=sys.argv[1]<br>
|
40 |
+
input_path=sys.argv[2]<br>
|
41 |
+
index_path=sys.argv[3]<br>
|
42 |
+
f0method=sys.argv[4]#harvest or pm<br>
|
43 |
+
opt_path=sys.argv[5]<br>
|
44 |
+
model_path=sys.argv[6]<br>
|
45 |
+
index_rate=float(sys.argv[7])<br>
|
46 |
+
device=sys.argv[8]<br>
|
47 |
+
is_half=bool(sys.argv[9])<br>
|
48 |
+
|
49 |
+
## Q8:Cuda error/Cuda out of memory.
|
50 |
+
ๅฐๆฆ็ๆฏcuda้
็ฝฎ้ฎ้ขใ่ฎพๅคไธๆฏๆ๏ผๅคงๆฆ็ๆฏๆพๅญไธๅค๏ผout of memory๏ผ๏ผ<br>
|
51 |
+
|
52 |
+
่ฎญ็ป็่ฏ็ผฉๅฐbatch size๏ผๅฆๆ็ผฉๅฐๅฐ1่ฟไธๅคๅช่ฝๆดๆขๆพๅก่ฎญ็ป๏ผ๏ผๆจ็็่ฏ้
ๆ
็ผฉๅฐconfig.py็ปๅฐพ็x_pad๏ผx_query๏ผx_center๏ผx_maxใ4Gไปฅไธๆพๅญ๏ผไพๅฆ1060๏ผ3G๏ผๅๅ็ง2Gๆพๅก๏ผๅฏไปฅ็ดๆฅๆพๅผ๏ผ4Gๆพๅญๆพๅก่ฟๆๆใ<br>
|
53 |
+
|
54 |
+
## Q9:total_epoch่ฐๅคๅฐๆฏ่พๅฅฝ
|
55 |
+
|
56 |
+
ๅฆๆ่ฎญ็ป้้ณ่ดจๅทฎๅบๅชๅคง๏ผ20~30่ถณๅคไบ๏ผ่ฐๅคช้ซ๏ผๅบๆจก้ณ่ดจๆ ๆณๅธฆ้ซไฝ ็ไฝ้ณ่ดจ่ฎญ็ป้<br>
|
57 |
+
ๅฆๆ่ฎญ็ป้้ณ่ดจ้ซๅบๅชไฝๆถ้ฟๅค๏ผๅฏไปฅ่ฐ้ซ๏ผ200ๆฏok็๏ผ่ฎญ็ป้ๅบฆๅพๅฟซ๏ผๆข็ถไฝ ๆๆกไปถๅๅค้ซ้ณ่ดจ่ฎญ็ป้๏ผๆพๅกๆณๅฟ
ๆกไปถไนไธ้๏ผ่ฏๅฎไธๅจไนๅคไธไบ่ฎญ็ปๆถ้ด๏ผ<br>
|
58 |
+
|
59 |
+
## Q10:้่ฆๅคๅฐ่ฎญ็ป้ๆถ้ฟ
|
60 |
+
โโๆจ่10min่ณ50min<br>
|
61 |
+
โโไฟ่ฏ้ณ่ดจ้ซๅบๅชไฝ็ๆ
ๅตไธ๏ผๅฆๆๆไธชไบบ็น่ฒ็้ณ่ฒ็ปไธ๏ผๅๅคๅค็ๅ<br>
|
62 |
+
โโ้ซๆฐดๅนณ็่ฎญ็ป้๏ผ็ฒพ็ฎ+้ณ่ฒๆ็น่ฒ๏ผ๏ผ5min่ณ10minไนๆฏok็๏ผไปๅบไฝ่
ๆฌไบบๅฐฑ็ปๅธธ่ฟไน็ฉ<br>
|
63 |
+
โโไนๆไบบๆฟ1min่ณ2min็ๆฐๆฎๆฅ่ฎญ็ปๅนถไธ่ฎญ็ปๆๅ็๏ผไฝๆฏๆๅ็ป้ชๆฏๅ
ถไปไบบไธๅฏๅค็ฐ็๏ผไธๅคชๅ
ทๅคๅ่ไปทๅผใ่ฟ่ฆๆฑ่ฎญ็ป้้ณ่ฒ็น่ฒ้ๅธธๆๆพ๏ผๆฏๅฆ่ฏด้ซ้ขๆฐๅฃฐ่พๆๆพ็่่ๅฐๅฅณ้ณ๏ผ๏ผไธ้ณ่ดจ้ซ๏ผ<br>
|
64 |
+
โโ1minไปฅไธๆถ้ฟๆฐๆฎ็ฎๅๆฒก่งๆไบบๅฐ่ฏ๏ผๆๅ๏ผ่ฟใไธๅปบ่ฎฎ่ฟ่ก่ฟ็ง้ฌผ็่กไธบใ<br>
|
65 |
+
|
66 |
+
## Q11:index rateๅนฒๅ็จ็๏ผๆไน่ฐ๏ผ็งๆฎ๏ผ
|
67 |
+
โโๅฆๆๅบๆจกๅๆจ็ๆบ็้ณ่ดจ้ซไบ่ฎญ็ป้็้ณ่ดจ๏ผไปไปฌๅฏไปฅๅธฆ้ซๆจ็็ปๆ็้ณ่ดจ๏ผไฝไปฃไปทๅฏ่ฝๆฏ้ณ่ฒๅพๅบๆจก/ๆจ็ๆบ็้ณ่ฒ้ ๏ผ่ฟ็ง็ฐ่ฑกๅซๅ"้ณ่ฒๆณ้ฒ"๏ผ<br>
|
68 |
+
โโindex rate็จๆฅๅๅ/่งฃๅณ้ณ่ฒๆณ้ฒ้ฎ้ขใ่ฐๅฐ1๏ผๅ็่ฎบไธไธๅญๅจๆจ็ๆบ็้ณ่ฒๆณ้ฒ้ฎ้ข๏ผไฝ้ณ่ดจๆดๅพๅไบ่ฎญ็ป้ใๅฆๆ่ฎญ็ป้้ณ่ดจๆฏๆจ็ๆบไฝ๏ผๅindex rate่ฐ้ซๅฏ่ฝ้ไฝ้ณ่ดจใ่ฐๅฐ0๏ผๅไธๅ
ทๅคๅฉ็จๆฃ็ดขๆททๅๆฅไฟๆค่ฎญ็ป้้ณ่ฒ็ๆๆ๏ผ<br>
|
69 |
+
โโๅฆๆ่ฎญ็ป้ไผ่ดจๆถ้ฟๅค๏ผๅฏ่ฐ้ซtotal_epoch๏ผๆญคๆถๆจกๅๆฌ่บซไธๅคชไผๅผ็จๆจ็ๆบๅๅบๆจก็้ณ่ฒ๏ผๅพๅฐๅญๅจ"้ณ่ฒๆณ้ฒ"้ฎ้ข๏ผๆญคๆถindex_rateไธ้่ฆ๏ผไฝ ็่ณๅฏไปฅไธๅปบ็ซ/ๅไบซindex็ดขๅผๆไปถใ<br>
|
70 |
+
|
71 |
+
## Q11:ๆจ็ๆไน้gpu
|
72 |
+
config.pyๆไปถ้device cuda:ๅ้ข้ๆฉๅกๅท๏ผ<br>
|
73 |
+
ๅกๅทๅๆพๅก็ๆ ๅฐๅ
ณ็ณป๏ผๅจ่ฎญ็ป้้กนๅก็ๆพๅกไฟกๆฏๆ ้่ฝ็ๅฐใ<br>
|
74 |
+
|
75 |
+
## Q12:ๅฆไฝๆจ็่ฎญ็ปไธญ้ดไฟๅญ็pth
|
76 |
+
้่ฟckpt้้กนๅกๆไธ้ขๆๅๅฐๆจกๅใ<br>
|
77 |
+
|
78 |
+
|
79 |
+
## Q13:ๅฆไฝไธญๆญๅ็ปง็ปญ่ฎญ็ป
|
80 |
+
็ฐ้ถๆฎตๅช่ฝๅ
ณ้ญWebUIๆงๅถๅฐๅๅปgo-web.bat้ๅฏ็จๅบใ็ฝ้กตๅๆฐไน่ฆๅทๆฐ้ๆฐๅกซๅ๏ผ<br>
|
81 |
+
็ปง็ปญ่ฎญ็ป๏ผ็ธๅ็ฝ้กตๅๆฐ็น่ฎญ็ปๆจกๅ๏ผๅฐฑไผๆฅ็ไธๆฌก็checkpoint็ปง็ปญ่ฎญ็ปใ<br>
|
82 |
+
|
83 |
+
## Q14:่ฎญ็ปๆถๅบ็ฐๆไปถ้กต้ข/ๅ
ๅญerror
|
84 |
+
่ฟ็จๅผๅคชๅคไบ๏ผๅ
ๅญ็ธไบใไฝ ๅฏ่ฝๅฏไปฅ้่ฟๅฆไธๆนๅผ่งฃๅณ<br>
|
85 |
+
1ใ"ๆๅ้ณ้ซๅๅค็ๆฐๆฎไฝฟ็จ็CPU่ฟ็จๆฐ" ้
ๆ
ๆไฝ๏ผ<br>
|
86 |
+
2ใ่ฎญ็ป้้ณ้ขๆๅทฅๅไธไธ๏ผไธ่ฆๅคช้ฟใ<br>
|
87 |
+
|
88 |
+
|
89 |
+
## Q15:ๅฆไฝไธญ้ๅ ๆฐๆฎ่ฎญ็ป
|
90 |
+
1ใๆๆๆฐๆฎๆฐๅปบไธไธชๅฎ้ชๅ๏ผ<br>
|
91 |
+
2ใๆท่ดไธไธๆฌก็ๆๆฐ็้ฃไธชGๅDๆไปถ๏ผๆ่
ไฝ ๆณๅบไบๅชไธชไธญ้ดckpt่ฎญ็ป๏ผไนๅฏไปฅๆท่ดไธญ้ด็๏ผๅฐๆฐๅฎ้ชๅ๏ผไธ<br>
|
92 |
+
3ใไธ้ฎ่ฎญ็ปๆฐๅฎ้ชๅ๏ผไปไผ็ปง็ปญไธไธๆฌก็ๆๆฐ่ฟๅบฆ่ฎญ็ปใ<br>
|
93 |
+
|
94 |
+
## Q16: error about llvmlite.dll
|
95 |
+
|
96 |
+
OSError: Could not load shared object file: llvmlite.dll
|
97 |
+
|
98 |
+
FileNotFoundError: Could not find module lib\site-packages\llvmlite\binding\llvmlite.dll (or one of its dependencies). Try using the full path with constructor syntax.
|
99 |
+
|
100 |
+
winๅนณๅฐไผๆฅ่ฟไธช้๏ผ่ฃ
ไธhttps://aka.ms/vs/17/release/vc_redist.x64.exe่ฟไธชๅ้ๅฏWebUIๅฐฑๅฅฝไบใ
|
101 |
+
|
102 |
+
## Q17: RuntimeError: The expanded size of the tensor (17280) must match the existing size (0) at non-singleton dimension 1. Target sizes: [1, 17280]. Tensor sizes: [0]
|
103 |
+
|
104 |
+
wavs16kๆไปถๅคนไธ๏ผๆพๅฐๆไปถๅคงๅฐๆพ่ๆฏๅ
ถไป้ฝๅฐ็ไธไบ้ณ้ขๆไปถ๏ผๅ ๆ๏ผ็นๅป่ฎญ็ปๆจกๅ๏ผๅฐฑไธไผๆฅ้ไบ๏ผไธ่ฟ็ฑไบไธ้ฎๆต็จไธญๆญไบไฝ ่ฎญ็ปๅฎๆจกๅ่ฟ่ฆ็น่ฎญ็ป็ดขๅผใ
|
105 |
+
|
106 |
+
## Q18: RuntimeError: The size of tensor a (24) must match the size of tensor b (16) at non-singleton dimension 2
|
107 |
+
|
108 |
+
ไธ่ฆไธญ้ๅๆด้ๆ ท็็ปง็ปญ่ฎญ็ปใๅฆๆไธๅฎ่ฆๅๆด๏ผๅบๆดๆขๅฎ้ชๅไปๅคด่ฎญ็ปใๅฝ็ถไฝ ไนๅฏไปฅๆไธๆฌกๆๅ็้ณ้ซๅ็นๅพ๏ผ0/1/2/2b folders๏ผๆท่ด่ฟๅปๅ ้่ฎญ็ปๆต็จใ
|
Retrieval-based-Voice-Conversion-WebUI/docs/en/Changelog_EN.md
ADDED
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
### 2023-10-06
|
2 |
+
- We have created a GUI for real-time voice change: go-realtime-gui.bat/gui_v1.py (Note that you should choose the same type of input and output device, e.g. MME and MME).
|
3 |
+
- We trained a better pitch extract RMVPE model.
|
4 |
+
- Optimize inference GUI layout.
|
5 |
+
|
6 |
+
### 2023-08-13
|
7 |
+
1-Regular bug fix
|
8 |
+
- Change the minimum total epoch number to 1, and change the minimum total epoch number to 2
|
9 |
+
- Fix training errors of not using pre-train models
|
10 |
+
- After accompaniment vocals separation, clear graphics memory
|
11 |
+
- Change faiss save path absolute path to relative path
|
12 |
+
- Support path containing spaces (both training set path and experiment name are supported, and errors will no longer be reported)
|
13 |
+
- Filelist cancels mandatory utf8 encoding
|
14 |
+
- Solve the CPU consumption problem caused by faiss searching during real-time voice changes
|
15 |
+
|
16 |
+
2-Key updates
|
17 |
+
- Train the current strongest open-source vocal pitch extraction model RMVPE, and use it for RVC training, offline/real-time inference, supporting PyTorch/Onnx/DirectML
|
18 |
+
- Support for AMD and Intel graphics cards through Pytorch_DML
|
19 |
+
|
20 |
+
(1) Real time voice change (2) Inference (3) Separation of vocal accompaniment (4) Training not currently supported, will switch to CPU training; supports RMVPE inference of gpu by Onnx_Dml
|
21 |
+
|
22 |
+
|
23 |
+
### 2023-06-18
|
24 |
+
- New pretrained v2 models: 32k and 48k
|
25 |
+
- Fix non-f0 model inference errors
|
26 |
+
- For training-set exceeding 1 hour, do automatic minibatch-kmeans to reduce feature shape, so that index training, adding, and searching will be much faster.
|
27 |
+
- Provide a toy vocal2guitar huggingface space
|
28 |
+
- Auto delete outlier short cut training-set audios
|
29 |
+
- Onnx export tab
|
30 |
+
|
31 |
+
Failed experiments:
|
32 |
+
- ~~Feature retrieval: add temporal feature retrieval: not effective~~
|
33 |
+
- ~~Feature retrieval: add PCAR dimensionality reduction: searching is even slower~~
|
34 |
+
- ~~Random data augmentation when training: not effective~~
|
35 |
+
|
36 |
+
todolist๏ผ
|
37 |
+
- ~~Vocos-RVC (tiny vocoder): not effective~~
|
38 |
+
- ~~Crepe support for training๏ผreplaced by RMVPE~~
|
39 |
+
- ~~Half precision crepe inference๏ผreplaced by RMVPE. And hard to achive.~~
|
40 |
+
- F0 editor support
|
41 |
+
|
42 |
+
### 2023-05-28
|
43 |
+
- Add v2 jupyter notebook, korean changelog, fix some environment requirments
|
44 |
+
- Add voiceless consonant and breath protection mode
|
45 |
+
- Support crepe-full pitch detect
|
46 |
+
- UVR5 vocal separation: support dereverb models and de-echo models
|
47 |
+
- Add experiment name and version on the name of index
|
48 |
+
- Support users to manually select export format of output audios when batch voice conversion processing and UVR5 vocal separation
|
49 |
+
- v1 32k model training is no more supported
|
50 |
+
|
51 |
+
### 2023-05-13
|
52 |
+
- Clear the redundant codes in the old version of runtime in the one-click-package: lib.infer_pack and uvr5_pack
|
53 |
+
- Fix pseudo multiprocessing bug in training set preprocessing
|
54 |
+
- Adding median filtering radius adjustment for harvest pitch recognize algorithm
|
55 |
+
- Support post processing resampling for exporting audio
|
56 |
+
- Multi processing "n_cpu" setting for training is changed from "f0 extraction" to "data preprocessing and f0 extraction"
|
57 |
+
- Automatically detect the index paths under the logs folder and provide a drop-down list function
|
58 |
+
- Add "Frequently Asked Questions and Answers" on the tab page (you can also refer to github RVC wiki)
|
59 |
+
- When inference, harvest pitch is cached when using same input audio path (purpose: using harvest pitch extraction, the entire pipeline will go through a long and repetitive pitch extraction process. If caching is not used, users who experiment with different timbre, index, and pitch median filtering radius settings will experience a very painful waiting process after the first inference)
|
60 |
+
|
61 |
+
### 2023-05-14
|
62 |
+
- Use volume envelope of input to mix or replace the volume envelope of output (can alleviate the problem of "input muting and output small amplitude noise". If the input audio background noise is high, it is not recommended to turn it on, and it is not turned on by default (1 can be considered as not turned on)
|
63 |
+
- Support saving extracted small models at a specified frequency (if you want to see the performance under different epochs, but do not want to save all large checkpoints and manually extract small models by ckpt-processing every time, this feature will be very practical)
|
64 |
+
- Resolve the issue of "connection errors" caused by the server's global proxy by setting environment variables
|
65 |
+
- Supports pre-trained v2 models (currently only 40k versions are publicly available for testing, and the other two sampling rates have not been fully trained yet)
|
66 |
+
- Limit excessive volume exceeding 1 before inference
|
67 |
+
- Slightly adjusted the settings of training-set preprocessing
|
68 |
+
|
69 |
+
|
70 |
+
#######################
|
71 |
+
|
72 |
+
History changelogs:
|
73 |
+
|
74 |
+
### 2023-04-09
|
75 |
+
- Fixed training parameters to improve GPU utilization rate: A100 increased from 25% to around 90%, V100: 50% to around 90%, 2060S: 60% to around 85%, P40: 25% to around 95%; significantly improved training speed
|
76 |
+
- Changed parameter: total batch_size is now per GPU batch_size
|
77 |
+
- Changed total_epoch: maximum limit increased from 100 to 1000; default increased from 10 to 20
|
78 |
+
- Fixed issue of ckpt extraction recognizing pitch incorrectly, causing abnormal inference
|
79 |
+
- Fixed issue of distributed training saving ckpt for each rank
|
80 |
+
- Applied nan feature filtering for feature extraction
|
81 |
+
- Fixed issue with silent input/output producing random consonants or noise (old models need to retrain with a new dataset)
|
82 |
+
|
83 |
+
### 2023-04-16 Update
|
84 |
+
- Added local real-time voice changing mini-GUI, start by double-clicking go-realtime-gui.bat
|
85 |
+
- Applied filtering for frequency bands below 50Hz during training and inference
|
86 |
+
- Lowered the minimum pitch extraction of pyworld from the default 80 to 50 for training and inference, allowing male low-pitched voices between 50-80Hz not to be muted
|
87 |
+
- WebUI supports changing languages according to system locale (currently supporting en_US, ja_JP, zh_CN, zh_HK, zh_SG, zh_TW; defaults to en_US if not supported)
|
88 |
+
- Fixed recognition of some GPUs (e.g., V100-16G recognition failure, P4 recognition failure)
|
89 |
+
|
90 |
+
### 2023-04-28 Update
|
91 |
+
- Upgraded faiss index settings for faster speed and higher quality
|
92 |
+
- Removed dependency on total_npy; future model sharing will not require total_npy input
|
93 |
+
- Unlocked restrictions for the 16-series GPUs, providing 4GB inference settings for 4GB VRAM GPUs
|
94 |
+
- Fixed bug in UVR5 vocal accompaniment separation for certain audio formats
|
95 |
+
- Real-time voice changing mini-GUI now supports non-40k and non-lazy pitch models
|
96 |
+
|
97 |
+
### Future Plans:
|
98 |
+
Features:
|
99 |
+
- Add option: extract small models for each epoch save
|
100 |
+
- Add option: export additional mp3 to the specified path during inference
|
101 |
+
- Support multi-person training tab (up to 4 people)
|
102 |
+
|
103 |
+
Base model:
|
104 |
+
- Collect breathing wav files to add to the training dataset to fix the issue of distorted breath sounds
|
105 |
+
- We are currently training a base model with an extended singing dataset, which will be released in the future
|
Retrieval-based-Voice-Conversion-WebUI/docs/en/README.en.md
ADDED
@@ -0,0 +1,194 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div align="center">
|
2 |
+
|
3 |
+
<h1>Retrieval-based-Voice-Conversion-WebUI</h1>
|
4 |
+
An easy-to-use Voice Conversion framework based on VITS.<br><br>
|
5 |
+
|
6 |
+
[![madewithlove](https://img.shields.io/badge/made_with-%E2%9D%A4-red?style=for-the-badge&labelColor=orange
|
7 |
+
)](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI)
|
8 |
+
|
9 |
+
<img src="https://counter.seku.su/cmoe?name=rvc&theme=r34" /><br>
|
10 |
+
|
11 |
+
[![Open In Colab](https://img.shields.io/badge/Colab-F9AB00?style=for-the-badge&logo=googlecolab&color=525252)](https://colab.research.google.com/github/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/blob/main/Retrieval_based_Voice_Conversion_WebUI.ipynb)
|
12 |
+
[![Licence](https://img.shields.io/github/license/RVC-Project/Retrieval-based-Voice-Conversion-WebUI?style=for-the-badge)](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/blob/main/LICENSE)
|
13 |
+
[![Huggingface](https://img.shields.io/badge/๐ค%20-Spaces-yellow.svg?style=for-the-badge)](https://huggingface.co/lj1995/VoiceConversionWebUI/tree/main/)
|
14 |
+
|
15 |
+
[![Discord](https://img.shields.io/badge/RVC%20Developers-Discord-7289DA?style=for-the-badge&logo=discord&logoColor=white)](https://discord.gg/HcsmBBGyVk)
|
16 |
+
|
17 |
+
</div>
|
18 |
+
|
19 |
+
------
|
20 |
+
[**Changelog**](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/blob/main/docs/Changelog_EN.md) | [**FAQ (Frequently Asked Questions)**](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/wiki/FAQ-(Frequently-Asked-Questions))
|
21 |
+
|
22 |
+
[**English**](../en/README.en.md) | [**ไธญๆ็ฎไฝ**](../../README.md) | [**ๆฅๆฌ่ช**](../jp/README.ja.md) | [**ํ๊ตญ์ด**](../kr/README.ko.md) ([**้ๅ่ช**](../kr/README.ko.han.md)) | [**Tรผrkรงe**](../tr/README.tr.md)
|
23 |
+
|
24 |
+
|
25 |
+
Check our [Demo Video](https://www.bilibili.com/video/BV1pm4y1z7Gm/) here!
|
26 |
+
|
27 |
+
Training/Inference WebUI๏ผgo-web.bat
|
28 |
+
|
29 |
+
![image](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/assets/129054828/00387c1c-51b1-4010-947d-3f3ecac95b87)
|
30 |
+
|
31 |
+
Realtime Voice Conversion GUI๏ผgo-realtime-gui.bat
|
32 |
+
|
33 |
+
![image](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/assets/129054828/143246a9-8b42-4dd1-a197-430ede4d15d7)
|
34 |
+
|
35 |
+
> The dataset for the pre-training model uses nearly 50 hours of high quality VCTK open source dataset.
|
36 |
+
|
37 |
+
> High quality licensed song datasets will be added to training-set one after another for your use, without worrying about copyright infringement.
|
38 |
+
|
39 |
+
> Please look forward to the pretrained base model of RVCv3, which has larger parameters, more training data, better results, unchanged inference speed, and requires less training data for training.
|
40 |
+
|
41 |
+
## Summary
|
42 |
+
This repository has the following features:
|
43 |
+
+ Reduce tone leakage by replacing the source feature to training-set feature using top1 retrieval;
|
44 |
+
+ Easy and fast training, even on relatively poor graphics cards;
|
45 |
+
+ Training with a small amount of data also obtains relatively good results (>=10min low noise speech recommended);
|
46 |
+
+ Supporting model fusion to change timbres (using ckpt processing tab->ckpt merge);
|
47 |
+
+ Easy-to-use Webui interface;
|
48 |
+
+ Use the UVR5 model to quickly separate vocals and instruments.
|
49 |
+
+ Use the most powerful High-pitch Voice Extraction Algorithm [InterSpeech2023-RMVPE](#Credits) to prevent the muted sound problem. Provides the best results (significantly) and is faster, with even lower resource consumption than Crepe_full.
|
50 |
+
+ AMD/Intel graphics cards acceleration supported.
|
51 |
+
+ Intel ARC graphics cards acceleration with IPEX supported.
|
52 |
+
|
53 |
+
## Preparing the environment
|
54 |
+
The following commands need to be executed in the environment of Python version 3.8 or higher.
|
55 |
+
|
56 |
+
(Windows/Linux)
|
57 |
+
First install the main dependencies through pip:
|
58 |
+
```bash
|
59 |
+
# Install PyTorch-related core dependencies, skip if installed
|
60 |
+
# Reference: https://pytorch.org/get-started/locally/
|
61 |
+
pip install torch torchvision torchaudio
|
62 |
+
|
63 |
+
#For Windows + Nvidia Ampere Architecture(RTX30xx), you need to specify the cuda version corresponding to pytorch according to the experience of https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/21
|
64 |
+
#pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117
|
65 |
+
|
66 |
+
#For Linux + AMD Cards, you need to use the following pytorch versions:
|
67 |
+
#pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm5.4.2
|
68 |
+
```
|
69 |
+
|
70 |
+
Then can use poetry to install the other dependencies:
|
71 |
+
```bash
|
72 |
+
# Install the Poetry dependency management tool, skip if installed
|
73 |
+
# Reference: https://python-poetry.org/docs/#installation
|
74 |
+
curl -sSL https://install.python-poetry.org | python3 -
|
75 |
+
|
76 |
+
# Install the project dependencies
|
77 |
+
poetry install
|
78 |
+
```
|
79 |
+
|
80 |
+
You can also use pip to install them:
|
81 |
+
```bash
|
82 |
+
|
83 |
+
for Nvidia graphics cards
|
84 |
+
pip install -r requirements.txt
|
85 |
+
|
86 |
+
for AMD/Intel graphics cards on Windows (DirectML)๏ผ
|
87 |
+
pip install -r requirements-dml.txt
|
88 |
+
|
89 |
+
for Intel ARC graphics cards on Linux / WSL using Python 3.10:
|
90 |
+
pip install -r requirements-ipex.txt
|
91 |
+
|
92 |
+
for AMD graphics cards on Linux (ROCm):
|
93 |
+
pip install -r requirements-amd.txt
|
94 |
+
```
|
95 |
+
|
96 |
+
------
|
97 |
+
Mac users can install dependencies via `run.sh`:
|
98 |
+
```bash
|
99 |
+
sh ./run.sh
|
100 |
+
```
|
101 |
+
|
102 |
+
## Preparation of other Pre-models
|
103 |
+
RVC requires other pre-models to infer and train.
|
104 |
+
|
105 |
+
```bash
|
106 |
+
#Download all needed models from https://huggingface.co/lj1995/VoiceConversionWebUI/tree/main/
|
107 |
+
python tools/download_models.py
|
108 |
+
```
|
109 |
+
|
110 |
+
Or just download them by yourself from our [Huggingface space](https://huggingface.co/lj1995/VoiceConversionWebUI/tree/main/).
|
111 |
+
|
112 |
+
Here's a list of Pre-models and other files that RVC needs:
|
113 |
+
```bash
|
114 |
+
./assets/hubert/hubert_base.pt
|
115 |
+
|
116 |
+
./assets/pretrained
|
117 |
+
|
118 |
+
./assets/uvr5_weights
|
119 |
+
|
120 |
+
Additional downloads are required if you want to test the v2 version of the model.
|
121 |
+
|
122 |
+
./assets/pretrained_v2
|
123 |
+
|
124 |
+
If you want to test the v2 version model (the v2 version model has changed the input from the 256 dimensional feature of 9-layer Hubert+final_proj to the 768 dimensional feature of 12-layer Hubert, and has added 3 period discriminators), you will need to download additional features
|
125 |
+
|
126 |
+
./assets/pretrained_v2
|
127 |
+
|
128 |
+
#If you are using Windows, you may also need these two files, skip if FFmpeg and FFprobe are installed
|
129 |
+
ffmpeg.exe
|
130 |
+
|
131 |
+
https://huggingface.co/lj1995/VoiceConversionWebUI/blob/main/ffmpeg.exe
|
132 |
+
|
133 |
+
ffprobe.exe
|
134 |
+
|
135 |
+
https://huggingface.co/lj1995/VoiceConversionWebUI/blob/main/ffprobe.exe
|
136 |
+
|
137 |
+
If you want to use the latest SOTA RMVPE vocal pitch extraction algorithm, you need to download the RMVPE weights and place them in the RVC root directory
|
138 |
+
|
139 |
+
https://huggingface.co/lj1995/VoiceConversionWebUI/blob/main/rmvpe.pt
|
140 |
+
|
141 |
+
For AMD/Intel graphics cards users you need download:
|
142 |
+
|
143 |
+
https://huggingface.co/lj1995/VoiceConversionWebUI/blob/main/rmvpe.onnx
|
144 |
+
|
145 |
+
```
|
146 |
+
|
147 |
+
Intel ARC graphics cards users needs to run `source /opt/intel/oneapi/setvars.sh` command before starting Webui.
|
148 |
+
|
149 |
+
Then use this command to start Webui:
|
150 |
+
```bash
|
151 |
+
python infer-web.py
|
152 |
+
```
|
153 |
+
|
154 |
+
If you are using Windows or macOS, you can download and extract `RVC-beta.7z` to use RVC directly by using `go-web.bat` on windows or `sh ./run.sh` on macOS to start Webui.
|
155 |
+
|
156 |
+
## ROCm Support for AMD graphic cards (Linux only)
|
157 |
+
To use ROCm on Linux install all required drivers as described [here](https://rocm.docs.amd.com/en/latest/deploy/linux/os-native/install.html).
|
158 |
+
|
159 |
+
On Arch use pacman to install the driver:
|
160 |
+
````
|
161 |
+
pacman -S rocm-hip-sdk rocm-opencl-sdk
|
162 |
+
````
|
163 |
+
|
164 |
+
You might also need to set these environment variables (e.g. on a RX6700XT):
|
165 |
+
````
|
166 |
+
export ROCM_PATH=/opt/rocm
|
167 |
+
export HSA_OVERRIDE_GFX_VERSION=10.3.0
|
168 |
+
````
|
169 |
+
Also make sure your user is part of the `render` and `video` group:
|
170 |
+
````
|
171 |
+
sudo usermod -aG render $USERNAME
|
172 |
+
sudo usermod -aG video $USERNAME
|
173 |
+
````
|
174 |
+
After that you can run the WebUI:
|
175 |
+
```bash
|
176 |
+
python infer-web.py
|
177 |
+
```
|
178 |
+
|
179 |
+
## Credits
|
180 |
+
+ [ContentVec](https://github.com/auspicious3000/contentvec/)
|
181 |
+
+ [VITS](https://github.com/jaywalnut310/vits)
|
182 |
+
+ [HIFIGAN](https://github.com/jik876/hifi-gan)
|
183 |
+
+ [Gradio](https://github.com/gradio-app/gradio)
|
184 |
+
+ [FFmpeg](https://github.com/FFmpeg/FFmpeg)
|
185 |
+
+ [Ultimate Vocal Remover](https://github.com/Anjok07/ultimatevocalremovergui)
|
186 |
+
+ [audio-slicer](https://github.com/openvpi/audio-slicer)
|
187 |
+
+ [Vocal pitch extraction:RMVPE](https://github.com/Dream-High/RMVPE)
|
188 |
+
+ The pretrained model is trained and tested by [yxlllc](https://github.com/yxlllc/RMVPE) and [RVC-Boss](https://github.com/RVC-Boss).
|
189 |
+
|
190 |
+
## Thanks to all contributors for their efforts
|
191 |
+
<a href="https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/graphs/contributors" target="_blank">
|
192 |
+
<img src="https://contrib.rocks/image?repo=RVC-Project/Retrieval-based-Voice-Conversion-WebUI" />
|
193 |
+
</a>
|
194 |
+
|
Retrieval-based-Voice-Conversion-WebUI/docs/en/faiss_tips_en.md
ADDED
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
faiss tuning TIPS
|
2 |
+
==================
|
3 |
+
# about faiss
|
4 |
+
faiss is a library of neighborhood searches for dense vectors, developed by facebook research, which efficiently implements many approximate neighborhood search methods.
|
5 |
+
Approximate Neighbor Search finds similar vectors quickly while sacrificing some accuracy.
|
6 |
+
|
7 |
+
## faiss in RVC
|
8 |
+
In RVC, for the embedding of features converted by HuBERT, we search for embeddings similar to the embedding generated from the training data and mix them to achieve a conversion that is closer to the original speech. However, since this search takes time if performed naively, high-speed conversion is realized by using approximate neighborhood search.
|
9 |
+
|
10 |
+
# implementation overview
|
11 |
+
In '/logs/your-experiment/3_feature256' where the model is located, features extracted by HuBERT from each voice data are located.
|
12 |
+
From here we read the npy files in order sorted by filename and concatenate the vectors to create big_npy. (This vector has shape [N, 256].)
|
13 |
+
After saving big_npy as /logs/your-experiment/total_fea.npy, train it with faiss.
|
14 |
+
|
15 |
+
In this article, I will explain the meaning of these parameters.
|
16 |
+
|
17 |
+
# Explanation of the method
|
18 |
+
## index factory
|
19 |
+
An index factory is a unique faiss notation that expresses a pipeline that connects multiple approximate neighborhood search methods as a string.
|
20 |
+
This allows you to try various approximate neighborhood search methods simply by changing the index factory string.
|
21 |
+
In RVC it is used like this:
|
22 |
+
|
23 |
+
```python
|
24 |
+
index = faiss.index_factory(256, "IVF%s,Flat" % n_ivf)
|
25 |
+
```
|
26 |
+
Among the arguments of index_factory, the first is the number of dimensions of the vector, the second is the index factory string, and the third is the distance to use.
|
27 |
+
|
28 |
+
For more detailed notation
|
29 |
+
https://github.com/facebookresearch/faiss/wiki/The-index-factory
|
30 |
+
|
31 |
+
## index for distance
|
32 |
+
There are two typical indexes used as similarity of embedding as follows.
|
33 |
+
|
34 |
+
- Euclidean distance (METRIC_L2)
|
35 |
+
- inner product (METRIC_INNER_PRODUCT)
|
36 |
+
|
37 |
+
Euclidean distance takes the squared difference in each dimension, sums the differences in all dimensions, and then takes the square root. This is the same as the distance in 2D and 3D that we use on a daily basis.
|
38 |
+
The inner product is not used as an index of similarity as it is, and the cosine similarity that takes the inner product after being normalized by the L2 norm is generally used.
|
39 |
+
|
40 |
+
Which is better depends on the case, but cosine similarity is often used in embedding obtained by word2vec and similar image retrieval models learned by ArcFace. If you want to do l2 normalization on vector X with numpy, you can do it with the following code with eps small enough to avoid 0 division.
|
41 |
+
|
42 |
+
```python
|
43 |
+
X_normed = X / np.maximum(eps, np.linalg.norm(X, ord=2, axis=-1, keepdims=True))
|
44 |
+
```
|
45 |
+
|
46 |
+
Also, for the index factory, you can change the distance index used for calculation by choosing the value to pass as the third argument.
|
47 |
+
|
48 |
+
```python
|
49 |
+
index = faiss.index_factory(dimention, text, faiss.METRIC_INNER_PRODUCT)
|
50 |
+
```
|
51 |
+
|
52 |
+
## IVF
|
53 |
+
IVF (Inverted file indexes) is an algorithm similar to the inverted index in full-text search.
|
54 |
+
During learning, the search target is clustered with kmeans, and Voronoi partitioning is performed using the cluster center. Each data point is assigned a cluster, so we create a dictionary that looks up the data points from the clusters.
|
55 |
+
|
56 |
+
For example, if clusters are assigned as follows
|
57 |
+
|index|Cluster|
|
58 |
+
|-----|-------|
|
59 |
+
|1|A|
|
60 |
+
|2|B|
|
61 |
+
|3|A|
|
62 |
+
|4|C|
|
63 |
+
|5|B|
|
64 |
+
|
65 |
+
The resulting inverted index looks like this:
|
66 |
+
|
67 |
+
|cluster|index|
|
68 |
+
|-------|-----|
|
69 |
+
|A|1, 3|
|
70 |
+
|B|2, 5|
|
71 |
+
|C|4|
|
72 |
+
|
73 |
+
When searching, we first search n_probe clusters from the clusters, and then calculate the distances for the data points belonging to each cluster.
|
74 |
+
|
75 |
+
# recommend parameter
|
76 |
+
There are official guidelines on how to choose an index, so I will explain accordingly.
|
77 |
+
https://github.com/facebookresearch/faiss/wiki/Guidelines-to-choose-an-index
|
78 |
+
|
79 |
+
For datasets below 1M, 4bit-PQ is the most efficient method available in faiss as of April 2023.
|
80 |
+
Combining this with IVF, narrowing down the candidates with 4bit-PQ, and finally recalculating the distance with an accurate index can be described by using the following index factory.
|
81 |
+
|
82 |
+
```python
|
83 |
+
index = faiss.index_factory(256, "IVF1024,PQ128x4fs,RFlat")
|
84 |
+
```
|
85 |
+
|
86 |
+
## Recommended parameters for IVF
|
87 |
+
Consider the case of too many IVFs. For example, if coarse quantization by IVF is performed for the number of data, this is the same as a naive exhaustive search and is inefficient.
|
88 |
+
For 1M or less, IVF values are recommended between 4*sqrt(N) ~ 16*sqrt(N) for N number of data points.
|
89 |
+
|
90 |
+
Since the calculation time increases in proportion to the number of n_probes, please consult with the accuracy and choose appropriately. Personally, I don't think RVC needs that much accuracy, so n_probe = 1 is fine.
|
91 |
+
|
92 |
+
## FastScan
|
93 |
+
FastScan is a method that enables high-speed approximation of distances by Cartesian product quantization by performing them in registers.
|
94 |
+
Cartesian product quantization performs clustering independently for each d dimension (usually d = 2) during learning, calculates the distance between clusters in advance, and creates a lookup table. At the time of prediction, the distance of each dimension can be calculated in O(1) by looking at the lookup table.
|
95 |
+
So the number you specify after PQ usually specifies half the dimension of the vector.
|
96 |
+
|
97 |
+
For a more detailed description of FastScan, please refer to the official documentation.
|
98 |
+
https://github.com/facebookresearch/faiss/wiki/Fast-accumulation-of-PQ-and-AQ-codes-(FastScan)
|
99 |
+
|
100 |
+
## RFlat
|
101 |
+
RFlat is an instruction to recalculate the rough distance calculated by FastScan with the exact distance specified by the third argument of index factory.
|
102 |
+
When getting k neighbors, k*k_factor points are recalculated.
|
Retrieval-based-Voice-Conversion-WebUI/docs/en/faq_en.md
ADDED
@@ -0,0 +1,119 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
## Q1:ffmpeg error/utf8 error.
|
2 |
+
It is most likely not a FFmpeg issue, but rather an audio path issue;
|
3 |
+
|
4 |
+
FFmpeg may encounter an error when reading paths containing special characters like spaces and (), which may cause an FFmpeg error; and when the training set's audio contains Chinese paths, writing it into filelist.txt may cause a utf8 error.<br>
|
5 |
+
|
6 |
+
## Q2:Cannot find index file after "One-click Training".
|
7 |
+
If it displays "Training is done. The program is closed," then the model has been trained successfully, and the subsequent errors are fake;
|
8 |
+
|
9 |
+
The lack of an 'added' index file after One-click training may be due to the training set being too large, causing the addition of the index to get stuck; this has been resolved by using batch processing to add the index, which solves the problem of memory overload when adding the index. As a temporary solution, try clicking the "Train Index" button again.<br>
|
10 |
+
|
11 |
+
## Q3:Cannot find the model in โInferencing timbreโ after training
|
12 |
+
Click โRefresh timbre listโ and check again; if still not visible, check if there are any errors during training and send screenshots of the console, web UI, and logs/experiment_name/*.log to the developers for further analysis.<br>
|
13 |
+
|
14 |
+
## Q4:How to share a model/How to use others' models?
|
15 |
+
The pth files stored in rvc_root/logs/experiment_name are not meant for sharing or inference, but for storing the experiment checkpoits for reproducibility and further training. The model to be shared should be the 60+MB pth file in the weights folder;
|
16 |
+
|
17 |
+
In the future, weights/exp_name.pth and logs/exp_name/added_xxx.index will be merged into a single weights/exp_name.zip file to eliminate the need for manual index input; so share the zip file, not the pth file, unless you want to continue training on a different machine;
|
18 |
+
|
19 |
+
Copying/sharing the several hundred MB pth files from the logs folder to the weights folder for forced inference may result in errors such as missing f0, tgt_sr, or other keys. You need to use the ckpt tab at the bottom to manually or automatically (if the information is found in the logs/exp_name), select whether to include pitch infomation and target audio sampling rate options and then extract the smaller model. After extraction, there will be a 60+ MB pth file in the weights folder, and you can refresh the voices to use it.<br>
|
20 |
+
|
21 |
+
## Q5:Connection Error.
|
22 |
+
You may have closed the console (black command line window).<br>
|
23 |
+
|
24 |
+
## Q6:WebUI popup 'Expecting value: line 1 column 1 (char 0)'.
|
25 |
+
Please disable system LAN proxy/global proxy and then refresh.<br>
|
26 |
+
|
27 |
+
## Q7:How to train and infer without the WebUI?
|
28 |
+
Training script:<br>
|
29 |
+
You can run training in WebUI first, and the command-line versions of dataset preprocessing and training will be displayed in the message window.<br>
|
30 |
+
|
31 |
+
Inference script:<br>
|
32 |
+
https://huggingface.co/lj1995/VoiceConversionWebUI/blob/main/myinfer.py<br>
|
33 |
+
|
34 |
+
|
35 |
+
e.g.<br>
|
36 |
+
|
37 |
+
runtime\python.exe myinfer.py 0 "E:\codes\py39\RVC-beta\todo-songs\1111.wav" "E:\codes\py39\logs\mi-test\added_IVF677_Flat_nprobe_7.index" harvest "test.wav" "weights/mi-test.pth" 0.6 cuda:0 True<br>
|
38 |
+
|
39 |
+
|
40 |
+
f0up_key=sys.argv[1]<br>
|
41 |
+
input_path=sys.argv[2]<br>
|
42 |
+
index_path=sys.argv[3]<br>
|
43 |
+
f0method=sys.argv[4]#harvest or pm<br>
|
44 |
+
opt_path=sys.argv[5]<br>
|
45 |
+
model_path=sys.argv[6]<br>
|
46 |
+
index_rate=float(sys.argv[7])<br>
|
47 |
+
device=sys.argv[8]<br>
|
48 |
+
is_half=bool(sys.argv[9])<br>
|
49 |
+
|
50 |
+
## Q8:Cuda error/Cuda out of memory.
|
51 |
+
There is a small chance that there is a problem with the CUDA configuration or the device is not supported; more likely, there is not enough memory (out of memory).<br>
|
52 |
+
|
53 |
+
For training, reduce the batch size (if reducing to 1 is still not enough, you may need to change the graphics card); for inference, adjust the x_pad, x_query, x_center, and x_max settings in the config.py file as needed. 4G or lower memory cards (e.g. 1060(3G) and various 2G cards) can be abandoned, while 4G memory cards still have a chance.<br>
|
54 |
+
|
55 |
+
## Q9:How many total_epoch are optimal?
|
56 |
+
If the training dataset's audio quality is poor and the noise floor is high, 20-30 epochs are sufficient. Setting it too high won't improve the audio quality of your low-quality training set.<br>
|
57 |
+
|
58 |
+
If the training set audio quality is high, the noise floor is low, and there is sufficient duration, you can increase it. 200 is acceptable (since training is fast, and if you're able to prepare a high-quality training set, your GPU likely can handle a longer training duration without issue).<br>
|
59 |
+
|
60 |
+
## Q10:How much training set duration is needed?
|
61 |
+
|
62 |
+
A dataset of around 10min to 50min is recommended.<br>
|
63 |
+
|
64 |
+
With guaranteed high sound quality and low bottom noise, more can be added if the dataset's timbre is uniform.<br>
|
65 |
+
|
66 |
+
For a high-level training set (lean + distinctive tone), 5min to 10min is fine.<br>
|
67 |
+
|
68 |
+
There are some people who have trained successfully with 1min to 2min data, but the success is not reproducible by others and is not very informative. <br>This requires that the training set has a very distinctive timbre (e.g. a high-frequency airy anime girl sound) and the quality of the audio is high;
|
69 |
+
Data of less than 1min duration has not been successfully attempted so far. This is not recommended.<br>
|
70 |
+
|
71 |
+
|
72 |
+
## Q11:What is the index rate for and how to adjust it?
|
73 |
+
If the tone quality of the pre-trained model and inference source is higher than that of the training set, they can bring up the tone quality of the inference result, but at the cost of a possible tone bias towards the tone of the underlying model/inference source rather than the tone of the training set, which is generally referred to as "tone leakage".<br>
|
74 |
+
|
75 |
+
The index rate is used to reduce/resolve the timbre leakage problem. If the index rate is set to 1, theoretically there is no timbre leakage from the inference source and the timbre quality is more biased towards the training set. If the training set has a lower sound quality than the inference source, then a higher index rate may reduce the sound quality. Turning it down to 0 does not have the effect of using retrieval blending to protect the training set tones.<br>
|
76 |
+
|
77 |
+
If the training set has good audio quality and long duration, turn up the total_epoch, when the model itself is less likely to refer to the inferred source and the pretrained underlying model, and there is little "tone leakage", the index_rate is not important and you can even not create/share the index file.<br>
|
78 |
+
|
79 |
+
## Q12:How to choose the gpu when inferring?
|
80 |
+
In the config.py file, select the card number after "device cuda:".<br>
|
81 |
+
|
82 |
+
The mapping between card number and graphics card can be seen in the graphics card information section of the training tab.<br>
|
83 |
+
|
84 |
+
## Q13:How to use the model saved in the middle of training?
|
85 |
+
Save via model extraction at the bottom of the ckpt processing tab.
|
86 |
+
|
87 |
+
## Q14:File/memory error(when training)?
|
88 |
+
Too many processes and your memory is not enough. You may fix it by:
|
89 |
+
|
90 |
+
1ใdecrease the input in field "Threads of CPU".
|
91 |
+
|
92 |
+
2ใpre-cut trainset to shorter audio files.
|
93 |
+
|
94 |
+
## Q15: How to continue training using more data
|
95 |
+
|
96 |
+
step1: put all wav data to path2.
|
97 |
+
|
98 |
+
step2: exp_name2+path2 -> process dataset and extract feature.
|
99 |
+
|
100 |
+
step3: copy the latest G and D file of exp_name1 (your previous experiment) into exp_name2 folder.
|
101 |
+
|
102 |
+
step4: click "train the model", and it will continue training from the beginning of your previous exp model epoch.
|
103 |
+
|
104 |
+
## Q16: error about llvmlite.dll
|
105 |
+
|
106 |
+
OSError: Could not load shared object file: llvmlite.dll
|
107 |
+
|
108 |
+
FileNotFoundError: Could not find module lib\site-packages\llvmlite\binding\llvmlite.dll (or one of its dependencies). Try using the full path with constructor syntax.
|
109 |
+
|
110 |
+
The issue will happen in windows, install https://aka.ms/vs/17/release/vc_redist.x64.exe and it will be fixed.
|
111 |
+
|
112 |
+
## Q17: RuntimeError: The expanded size of the tensor (17280) must match the existing size (0) at non-singleton dimension 1. Target sizes: [1, 17280]. Tensor sizes: [0]
|
113 |
+
|
114 |
+
Delete the wav files whose size is significantly smaller than others, and that won't happen again. Than click "train the model"and "train the index".
|
115 |
+
|
116 |
+
## Q18: RuntimeError: The size of tensor a (24) must match the size of tensor b (16) at non-singleton dimension 2
|
117 |
+
|
118 |
+
Do not change the sampling rate and then continue training. If it is necessary to change, the exp name should be changed and the model will be trained from scratch. You can also copy the pitch and features (0/1/2/2b folders) extracted last time to accelerate the training process.
|
119 |
+
|
Retrieval-based-Voice-Conversion-WebUI/docs/en/training_tips_en.md
ADDED
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Instructions and tips for RVC training
|
2 |
+
======================================
|
3 |
+
This TIPS explains how data training is done.
|
4 |
+
|
5 |
+
# Training flow
|
6 |
+
I will explain along the steps in the training tab of the GUI.
|
7 |
+
|
8 |
+
## step1
|
9 |
+
Set the experiment name here.
|
10 |
+
|
11 |
+
You can also set here whether the model should take pitch into account.
|
12 |
+
If the model doesn't consider pitch, the model will be lighter, but not suitable for singing.
|
13 |
+
|
14 |
+
Data for each experiment is placed in `/logs/your-experiment-name/`.
|
15 |
+
|
16 |
+
## step2a
|
17 |
+
Loads and preprocesses audio.
|
18 |
+
|
19 |
+
### load audio
|
20 |
+
If you specify a folder with audio, the audio files in that folder will be read automatically.
|
21 |
+
For example, if you specify `C:Users\hoge\voices`, `C:Users\hoge\voices\voice.mp3` will be loaded, but `C:Users\hoge\voices\dir\voice.mp3` will Not loaded.
|
22 |
+
|
23 |
+
Since ffmpeg is used internally for reading audio, if the extension is supported by ffmpeg, it will be read automatically.
|
24 |
+
After converting to int16 with ffmpeg, convert to float32 and normalize between -1 to 1.
|
25 |
+
|
26 |
+
### denoising
|
27 |
+
The audio is smoothed by scipy's filtfilt.
|
28 |
+
|
29 |
+
### Audio Split
|
30 |
+
First, the input audio is divided by detecting parts of silence that last longer than a certain period (max_sil_kept=5 seconds?). After splitting the audio on silence, split the audio every 4 seconds with an overlap of 0.3 seconds. For audio separated within 4 seconds, after normalizing the volume, convert the wav file to `/logs/your-experiment-name/0_gt_wavs` and then convert it to 16k sampling rate to `/logs/your-experiment-name/1_16k_wavs ` as a wav file.
|
31 |
+
|
32 |
+
## step2b
|
33 |
+
### Extract pitch
|
34 |
+
Extract pitch information from wav files. Extract the pitch information (=f0) using the method built into parselmouth or pyworld and save it in `/logs/your-experiment-name/2a_f0`. Then logarithmically convert the pitch information to an integer between 1 and 255 and save it in `/logs/your-experiment-name/2b-f0nsf`.
|
35 |
+
|
36 |
+
### Extract feature_print
|
37 |
+
Convert the wav file to embedding in advance using HuBERT. Read the wav file saved in `/logs/your-experiment-name/1_16k_wavs`, convert the wav file to 256-dimensional features with HuBERT, and save in npy format in `/logs/your-experiment-name/3_feature256`.
|
38 |
+
|
39 |
+
## step3
|
40 |
+
train the model.
|
41 |
+
### Glossary for Beginners
|
42 |
+
In deep learning, the data set is divided and the learning proceeds little by little. In one model update (step), batch_size data are retrieved and predictions and error corrections are performed. Doing this once for a dataset counts as one epoch.
|
43 |
+
|
44 |
+
Therefore, the learning time is the learning time per step x (the number of data in the dataset / batch size) x the number of epochs. In general, the larger the batch size, the more stable the learning becomes (learning time per step รท batch size) becomes smaller, but it uses more GPU memory. GPU RAM can be checked with the nvidia-smi command. Learning can be done in a short time by increasing the batch size as much as possible according to the machine of the execution environment.
|
45 |
+
|
46 |
+
### Specify pretrained model
|
47 |
+
RVC starts training the model from pretrained weights instead of from 0, so it can be trained with a small dataset.
|
48 |
+
|
49 |
+
By default
|
50 |
+
|
51 |
+
- If you consider pitch, it loads `rvc-location/pretrained/f0G40k.pth` and `rvc-location/pretrained/f0D40k.pth`.
|
52 |
+
- If you don't consider pitch, it loads `rvc-location/pretrained/f0G40k.pth` and `rvc-location/pretrained/f0D40k.pth`.
|
53 |
+
|
54 |
+
When learning, model parameters are saved in `logs/your-experiment-name/G_{}.pth` and `logs/your-experiment-name/D_{}.pth` for each save_every_epoch, but by specifying this path, you can start learning. You can restart or start training from model weights learned in a different experiment.
|
55 |
+
|
56 |
+
### learning index
|
57 |
+
RVC saves the HuBERT feature values used during training, and during inference, searches for feature values that are similar to the feature values used during learning to perform inference. In order to perform this search at high speed, the index is learned in advance.
|
58 |
+
For index learning, we use the approximate neighborhood search library faiss. Read the feature value of `logs/your-experiment-name/3_feature256` and use it to learn the index, and save it as `logs/your-experiment-name/add_XXX.index`.
|
59 |
+
|
60 |
+
(From the 20230428update version, it is read from the index, and saving / specifying is no longer necessary.)
|
61 |
+
|
62 |
+
### Button description
|
63 |
+
- Train model: After executing step2b, press this button to train the model.
|
64 |
+
- Train feature index: After training the model, perform index learning.
|
65 |
+
- One-click training: step2b, model training and feature index training all at once.
|
Retrieval-based-Voice-Conversion-WebUI/docs/fr/Changelog_FR.md
ADDED
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
### 2023-08-13
|
2 |
+
1-Corrections rรฉguliรจres de bugs
|
3 |
+
- Modification du nombre total d'รฉpoques minimum ร 1 et changement du nombre total d'รฉpoques minimum ร 2
|
4 |
+
- Correction des erreurs d'entraรฎnement sans utiliser de modรจles prรฉ-entraรฎnรฉs
|
5 |
+
- Aprรจs la sรฉparation des voix d'accompagnement, libรฉration de la mรฉmoire graphique
|
6 |
+
- Changement du chemin absolu d'enregistrement de faiss en chemin relatif
|
7 |
+
- Prise en charge des chemins contenant des espaces (le chemin du jeu de donnรฉes d'entraรฎnement et le nom de l'expรฉrience sont pris en charge, et aucune erreur ne sera signalรฉe)
|
8 |
+
- La liste de fichiers annule l'encodage utf8 obligatoire
|
9 |
+
- Rรฉsolution du problรจme de consommation de CPU causรฉ par la recherche faiss lors des changements de voix en temps rรฉel
|
10 |
+
|
11 |
+
2-Mises ร jour clรฉs
|
12 |
+
- Entraรฎnement du modรจle d'extraction de hauteur vocale open-source le plus puissant actuel, RMVPE, et utilisation pour l'entraรฎnement, l'infรฉrence hors ligne/en temps rรฉel de RVC, supportant PyTorch/Onnx/DirectML
|
13 |
+
- Prise en charge des cartes graphiques AMD et Intel via Pytorch_DML
|
14 |
+
|
15 |
+
(1) Changement de voix en temps rรฉel (2) Infรฉrence (3) Sรฉparation de l'accompagnement vocal (4) L'entraรฎnement n'est pas actuellement pris en charge, passera ร l'entraรฎnement CPU; prend en charge l'infรฉrence RMVPE de la GPU par Onnx_Dml
|
16 |
+
|
17 |
+
### 2023-06-18
|
18 |
+
- Nouveaux modรจles prรฉ-entraรฎnรฉs v2 : 32k et 48k
|
19 |
+
- Correction des erreurs d'infรฉrence du modรจle non-f0
|
20 |
+
- Pour un jeu de donnรฉes d'entraรฎnement dรฉpassant 1 heure, rรฉalisation automatique de minibatch-kmeans pour rรฉduire la forme des caractรฉristiques, afin que l'entraรฎnement, l'ajout et la recherche d'index soient beaucoup plus rapides.
|
21 |
+
- Fourniture d'un espace huggingface vocal2guitar jouet
|
22 |
+
- Suppression automatique des audios de jeu de donnรฉes d'entraรฎnement court-circuitant les valeurs aberrantes
|
23 |
+
- Onglet d'exportation Onnx
|
24 |
+
|
25 |
+
Expรฉriences รฉchouรฉes:
|
26 |
+
- ~~Rรฉcupรฉration de caractรฉristiques : ajout de la rรฉcupรฉration de caractรฉristiques temporelles : non efficace~~
|
27 |
+
- ~~Rรฉcupรฉration de caractรฉristiques : ajout de la rรฉduction de dimensionnalitรฉ PCAR : la recherche est encore plus lente~~
|
28 |
+
- ~~Augmentation alรฉatoire des donnรฉes lors de l'entraรฎnement : non efficace~~
|
29 |
+
|
30 |
+
Liste de tรขches:
|
31 |
+
- ~~Vocos-RVC (vocodeur minuscule) : non efficace~~
|
32 |
+
- ~~Support de Crepe pour l'entraรฎnement : remplacรฉ par RMVPE~~
|
33 |
+
- ~~Infรฉrence de prรฉcision ร moitiรฉ crepe : remplacรฉe par RMVPE. Et difficile ร rรฉaliser.~~
|
34 |
+
- Support de l'รฉditeur F0
|
35 |
+
|
36 |
+
### 2023-05-28
|
37 |
+
- Ajout d'un cahier v2, changelog corรฉen, correction de certaines exigences environnementales
|
38 |
+
- Ajout d'un mode de protection des consonnes muettes et de la respiration
|
39 |
+
- Support de la dรฉtection de hauteur crepe-full
|
40 |
+
- Sรฉparation vocale UVR5 : support des modรจles de dรฉrรฉverbรฉration et de dรฉsรฉcho
|
41 |
+
- Ajout du nom de l'expรฉrience et de la version sur le nom de l'index
|
42 |
+
- Support pour les utilisateurs de sรฉlectionner manuellement le format d'exportation des audios de sortie lors du traitement de conversion vocale en lots et de la sรฉparation vocale UVR5
|
43 |
+
- L'entraรฎnement du modรจle v1 32k n'est plus pris en charge
|
44 |
+
|
45 |
+
### 2023-05-13
|
46 |
+
- Nettoyage des codes redondants de l'ancienne version du runtime dans le package en un clic : lib.infer_pack et uvr5_pack
|
47 |
+
- Correction du bug de multiprocessus pseudo dans la prรฉparation du jeu de donnรฉes d'entraรฎnement
|
48 |
+
- Ajout de l'ajustement du rayon de filtrage mรฉdian pour l'algorithme de reconnaissance de hauteur de rรฉcolte
|
49 |
+
- Prise en charge du rรฉรฉchantillonnage post-traitement pour l'exportation audio
|
50 |
+
- Rรฉglage de multi-traitement "n_cpu" pour l'entraรฎnement est passรฉ de "extraction f0" ร "prรฉtraitement des donnรฉes et extraction f0"
|
51 |
+
- Dรฉtection automatique des chemins d'index sous le dossier de logs et fourniture d'une fonction de liste dรฉroulante
|
52 |
+
- Ajout de "Questions frรฉquemment posรฉes et rรฉponses" sur la page d'onglet (vous pouvez รฉgalement consulter le wiki github RVC)
|
53 |
+
- Lors de l'infรฉrence, la hauteur de la rรฉcolte est mise en cache lors de l'utilisation du mรชme chemin d'accรจs audio d'entrรฉe (objectif : en utilisant l'extraction de
|
54 |
+
|
55 |
+
la hauteur de la rรฉcolte, l'ensemble du pipeline passera par un long processus d'extraction de la hauteur rรฉpรฉtitif. Si la mise en cache n'est pas utilisรฉe, les utilisateurs qui expรฉrimentent diffรฉrents timbres, index, et rรฉglages de rayon de filtrage mรฉdian de hauteur connaรฎtront un processus d'attente trรจs douloureux aprรจs la premiรจre infรฉrence)
|
56 |
+
|
57 |
+
### 2023-05-14
|
58 |
+
- Utilisation de l'enveloppe de volume de l'entrรฉe pour mixer ou remplacer l'enveloppe de volume de la sortie (peut attรฉnuer le problรจme du "muet en entrรฉe et bruit de faible amplitude en sortie". Si le bruit de fond de l'audio d'entrรฉe est รฉlevรฉ, il n'est pas recommandรฉ de l'activer, et il n'est pas activรฉ par dรฉfaut (1 peut รชtre considรฉrรฉ comme n'รฉtant pas activรฉ)
|
59 |
+
- Prise en charge de la sauvegarde des modรจles extraits ร une frรฉquence spรฉcifiรฉe (si vous voulez voir les performances sous diffรฉrentes รฉpoques, mais que vous ne voulez pas sauvegarder tous les grands points de contrรดle et extraire manuellement les petits modรจles par ckpt-processing ร chaque fois, cette fonctionnalitรฉ sera trรจs pratique)
|
60 |
+
- Rรฉsolution du problรจme des "erreurs de connexion" causรฉes par le proxy global du serveur en dรฉfinissant des variables d'environnement
|
61 |
+
- Prise en charge des modรจles prรฉ-entraรฎnรฉs v2 (actuellement, seule la version 40k est disponible au public pour les tests, et les deux autres taux d'รฉchantillonnage n'ont pas encore รฉtรฉ entiรจrement entraรฎnรฉs)
|
62 |
+
- Limite le volume excessif dรฉpassant 1 avant l'infรฉrence
|
63 |
+
- Rรฉglages lรฉgรจrement ajustรฉs de la prรฉparation du jeu de donnรฉes d'entraรฎnement
|
64 |
+
|
65 |
+
#######################
|
66 |
+
|
67 |
+
Historique des changelogs:
|
68 |
+
|
69 |
+
### 2023-04-09
|
70 |
+
- Correction des paramรจtres d'entraรฎnement pour amรฉliorer le taux d'utilisation du GPU : A100 est passรฉ de 25% ร environ 90%, V100 : de 50% ร environ 90%, 2060S : de 60% ร environ 85%, P40 : de 25% ร environ 95% ; amรฉlioration significative de la vitesse d'entraรฎnement
|
71 |
+
- Changement de paramรจtre : la taille de batch_size totale est maintenant la taille de batch_size par GPU
|
72 |
+
- Changement de total_epoch : la limite maximale est passรฉe de 100 ร 1000 ; la valeur par dรฉfaut est passรฉe de 10 ร 20
|
73 |
+
- Correction du problรจme d'extraction de ckpt reconnaissant la hauteur de maniรจre incorrecte, causant une infรฉrence anormale
|
74 |
+
- Correction du problรจme d'entraรฎnement distribuรฉ sauvegardant ckpt pour chaque rang
|
75 |
+
- Application du filtrage des caractรฉristiques nan pour l'extraction des caractรฉristiques
|
76 |
+
- Correction du problรจme d'entrรฉe/sortie silencieuse produisant des consonnes alรฉatoires ou du bruit (les anciens modรจles doivent รชtre rรฉentraรฎnรฉs avec un nouveau jeu de donnรฉes)
|
77 |
+
|
78 |
+
### 2023-04-16 Mise ร jour
|
79 |
+
- Ajout d'une mini-interface graphique pour le changement de voix en temps rรฉel, dรฉmarrage par double-clic sur go-realtime-gui.bat
|
80 |
+
- Application d'un filtrage pour les bandes de frรฉquences infรฉrieures ร 50Hz pendant l'entraรฎnement et l'infรฉrence
|
81 |
+
- Abaissement de l'extraction de hauteur minimale de pyworld du dรฉfaut 80 ร 50 pour l'entraรฎnement et l'infรฉrence, permettant aux voix masculines graves entre 50-80Hz de ne pas รชtre mises en sourdine
|
82 |
+
- WebUI prend en charge le changement de langue en fonction des paramรจtres rรฉgionaux du systรจme (prise en charge actuelle de en_US, ja_JP, zh_CN, zh_HK, zh_SG, zh_TW ; dรฉfaut ร en_US si non pris en charge)
|
83 |
+
- Correction de la reconnaissance de certains GPU (par exemple, รฉchec de reconnaissance V100-16G, รฉchec de reconnaissance P4)
|
84 |
+
|
85 |
+
### 2023-04-28 Mise ร jour
|
86 |
+
- Mise ร niveau des paramรจtres d'index de faiss pour une vitesse plus rapide et une meilleure qualitรฉ
|
87 |
+
- Suppression de la dรฉpendance ร total_npy ; le partage futur de modรจles ne nรฉcessitera pas d'entrรฉe total
|
88 |
+
|
89 |
+
_npy
|
90 |
+
- Levรฉe des restrictions pour les GPU de la sรฉrie 16, fournissant des paramรจtres d'infรฉrence de 4 Go pour les GPU VRAM de 4 Go
|
91 |
+
- Correction d'un bug dans la sรฉparation vocale d'accompagnement UVR5 pour certains formats audio
|
92 |
+
- La mini-interface de changement de voix en temps rรฉel prend maintenant en charge les modรจles de hauteur non-40k et non-lazy
|
93 |
+
|
94 |
+
### Plans futurs :
|
95 |
+
Fonctionnalitรฉs :
|
96 |
+
- Ajouter une option : extraire de petits modรจles pour chaque sauvegarde d'รฉpoque
|
97 |
+
- Ajouter une option : exporter un mp3 supplรฉmentaire vers le chemin spรฉcifiรฉ pendant l'infรฉrence
|
98 |
+
- Prise en charge de l'onglet d'entraรฎnement multi-personnes (jusqu'ร 4 personnes)
|
99 |
+
|
100 |
+
Modรจle de base :
|
101 |
+
- Collecter des fichiers wav de respiration pour les ajouter au jeu de donnรฉes d'entraรฎnement pour rรฉsoudre le problรจme des sons de respiration dรฉformรฉs
|
102 |
+
- Nous entraรฎnons actuellement un modรจle de base avec un jeu de donnรฉes de chant รฉtendu, qui sera publiรฉ ร l'avenir
|
Retrieval-based-Voice-Conversion-WebUI/docs/fr/README.fr.md
ADDED
@@ -0,0 +1,146 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div align="center">
|
2 |
+
|
3 |
+
<h1>Retrieval-based-Voice-Conversion-WebUI</h1>
|
4 |
+
Un framework simple et facile ร utiliser pour la conversion vocale (modificateur de voix) basรฉ sur VITS<br><br>
|
5 |
+
|
6 |
+
[![madewithlove](https://img.shields.io/badge/made_with-%E2%9D%A4-red?style=for-the-badge&labelColor=orange
|
7 |
+
)](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI)
|
8 |
+
|
9 |
+
<img src="https://counter.seku.su/cmoe?name=rvc&theme=r34" /><br>
|
10 |
+
|
11 |
+
[![Open In Colab](https://img.shields.io/badge/Colab-F9AB00?style=for-the-badge&logo=googlecolab&color=525252)](https://colab.research.google.com/github/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/blob/main/Retrieval_based_Voice_Conversion_WebUI.ipynb)
|
12 |
+
[![Licence](https://img.shields.io/badge/LICENSE-MIT-green.svg?style=for-the-badge)](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/blob/main/LICENSE)
|
13 |
+
[![Huggingface](https://img.shields.io/badge/๐ค%20-Spaces-yellow.svg?style=for-the-badge)](https://huggingface.co/lj1995/VoiceConversionWebUI/tree/main/)
|
14 |
+
|
15 |
+
[![Discord](https://img.shields.io/badge/RVC%20Developers-Discord-7289DA?style=for-the-badge&logo=discord&logoColor=white)](https://discord.gg/HcsmBBGyVk)
|
16 |
+
|
17 |
+
[**Journal de mise ร jour**](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/blob/main/docs/Changelog_CN.md) | [**FAQ**](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/wiki/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98%E8%A7%A3%E7%AD%94) | [**AutoDLยทFormation d'un chanteur AI pour 5 centimes**](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/wiki/Autodl%E8%AE%AD%E7%BB%83RVC%C2%B7AI%E6%AD%8C%E6%89%8B%E6%95%99%E7%A8%8B) | [**Enregistrement des expรฉriences comparatives**](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/wiki/%E5%AF%B9%E7%85%A7%E5%AE%9E%E9%AA%8C%C2%B7%E5%AE%9E%E9%AA%8C%E8%AE%B0%E5%BD%95)) | [**Dรฉmonstration en ligne**](https://huggingface.co/spaces/Ricecake123/RVC-demo)
|
18 |
+
|
19 |
+
</div>
|
20 |
+
|
21 |
+
------
|
22 |
+
|
23 |
+
[**English**](./docs/en/README.en.md) |[ **ไธญๆ็ฎไฝ**](./docs/cn/README.md) | [**ๆฅๆฌ่ช**](./docs/jp/README.ja.md) | [**ํ๊ตญ์ด**](./docs/kr/README.ko.md) ([**้ๅ่ช**](./docs/kr/README.ko.han.md)) | [**Turc**](./docs/tr/README.tr.md)
|
24 |
+
|
25 |
+
Cliquez ici pour voir notre [vidรฉo de dรฉmonstration](https://www.bilibili.com/video/BV1pm4y1z7Gm/) !
|
26 |
+
|
27 |
+
> Conversion vocale en temps rรฉel avec RVC : [w-okada/voice-changer](https://github.com/w-okada/voice-changer)
|
28 |
+
|
29 |
+
> Le modรจle de base est formรฉ avec prรจs de 50 heures de donnรฉes VCTK de haute qualitรฉ et open source. Aucun souci concernant les droits d'auteur, n'hรฉsitez pas ร l'utiliser.
|
30 |
+
|
31 |
+
> Attendez-vous au modรจle de base RVCv3 : plus de paramรจtres, plus de donnรฉes, de meilleurs rรฉsultats, une vitesse d'infรฉrence presque identique, et nรฉcessite moins de donnรฉes pour la formation.
|
32 |
+
|
33 |
+
## Introduction
|
34 |
+
Ce dรฉpรดt a les caractรฉristiques suivantes :
|
35 |
+
+ Utilise le top1 pour remplacer les caractรฉristiques de la source d'entrรฉe par les caractรฉristiques de l'ensemble d'entraรฎnement pour รฉliminer les fuites de timbre vocal.
|
36 |
+
+ Peut รชtre formรฉ rapidement mรชme sur une carte graphique relativement moins performante.
|
37 |
+
+ Obtient de bons rรฉsultats mรชme avec peu de donnรฉes pour la formation (il est recommandรฉ de collecter au moins 10 minutes de donnรฉes vocales avec un faible bruit de fond).
|
38 |
+
+ Peut changer le timbre vocal en fusionnant des modรจles (avec l'aide de l'onglet ckpt-merge).
|
39 |
+
+ Interface web simple et facile ร utiliser.
|
40 |
+
+ Peut appeler le modรจle UVR5 pour sรฉparer rapidement la voix et l'accompagnement.
|
41 |
+
+ Utilise l'algorithme de pitch vocal le plus avancรฉ [InterSpeech2023-RMVPE](#projets-rรฉfรฉrencรฉs) pour รฉliminer les problรจmes de voix muette. Meilleurs rรฉsultats, plus rapide que crepe_full, et moins gourmand en ressources.
|
42 |
+
+ Support d'accรฉlรฉration pour les cartes A et I.
|
43 |
+
|
44 |
+
## Configuration de l'environnement
|
45 |
+
Exรฉcutez les commandes suivantes dans un environnement Python de version supรฉrieure ร 3.8.
|
46 |
+
|
47 |
+
(Windows/Linux)
|
48 |
+
Installez d'abord les dรฉpendances principales via pip :
|
49 |
+
```bash
|
50 |
+
# Installez Pytorch et ses dรฉpendances essentielles, sautez si dรฉjร installรฉ.
|
51 |
+
# Voir : https://pytorch.org/get-started/locally/
|
52 |
+
pip install torch torchvision torchaudio
|
53 |
+
|
54 |
+
# Pour les utilisateurs de Windows avec une architecture Nvidia Ampere (RTX30xx), en se basant sur l'expรฉrience #21, spรฉcifiez la version CUDA correspondante pour Pytorch.
|
55 |
+
# pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117
|
56 |
+
```
|
57 |
+
|
58 |
+
Vous pouvez utiliser poetry pour installer les dรฉpendances :
|
59 |
+
```bash
|
60 |
+
# Installez l'outil de gestion des dรฉpendances Poetry, sautez si dรฉjร installรฉ.
|
61 |
+
# Voir : https://python-poetry.org/docs/#installation
|
62 |
+
curl -sSL https://install.python-poetry.org | python3 -
|
63 |
+
|
64 |
+
# Installez les dรฉpendances avec poetry.
|
65 |
+
poetry install
|
66 |
+
```
|
67 |
+
|
68 |
+
Ou vous pouvez utiliser pip pour installer les dรฉpendances :
|
69 |
+
```bash
|
70 |
+
Cartes Nvidia :
|
71 |
+
|
72 |
+
pip install -r requirements.txt
|
73 |
+
|
74 |
+
Cartes AMD/Intel :
|
75 |
+
pip install -
|
76 |
+
|
77 |
+
r requirements-dml.txt
|
78 |
+
|
79 |
+
```
|
80 |
+
|
81 |
+
------
|
82 |
+
Les utilisateurs de Mac peuvent exรฉcuter `run.sh` pour installer les dรฉpendances :
|
83 |
+
```bash
|
84 |
+
sh ./run.sh
|
85 |
+
```
|
86 |
+
|
87 |
+
## Prรฉparation d'autres modรจles prรฉ-entraรฎnรฉs
|
88 |
+
RVC nรฉcessite d'autres modรจles prรฉ-entraรฎnรฉs pour l'infรฉrence et la formation.
|
89 |
+
|
90 |
+
Vous pouvez tรฉlรฉcharger ces modรจles depuis notre [espace Hugging Face](https://huggingface.co/lj1995/VoiceConversionWebUI/tree/main/).
|
91 |
+
|
92 |
+
Voici une liste des modรจles et autres fichiers requis par RVC :
|
93 |
+
```bash
|
94 |
+
./assets/hubert/hubert_base.pt
|
95 |
+
|
96 |
+
./assets/pretrained
|
97 |
+
|
98 |
+
./assets/uvr5_weights
|
99 |
+
|
100 |
+
Pour tester la version v2 du modรจle, tรฉlรฉchargez รฉgalement :
|
101 |
+
|
102 |
+
./assets/pretrained_v2
|
103 |
+
|
104 |
+
Si vous utilisez Windows, vous pourriez avoir besoin de ces fichiers pour ffmpeg et ffprobe, sautez cette รฉtape si vous avez dรฉjร installรฉ ffmpeg et ffprobe. Les utilisateurs d'ubuntu/debian peuvent installer ces deux bibliothรจques avec apt install ffmpeg. Les utilisateurs de Mac peuvent les installer avec brew install ffmpeg (prรฉrequis : avoir installรฉ brew).
|
105 |
+
|
106 |
+
./ffmpeg
|
107 |
+
|
108 |
+
https://huggingface.co/lj1995/VoiceConversionWebUI/blob/main/ffmpeg.exe
|
109 |
+
|
110 |
+
./ffprobe
|
111 |
+
|
112 |
+
https://huggingface.co/lj1995/VoiceConversionWebUI/blob/main/ffprobe.exe
|
113 |
+
|
114 |
+
Si vous souhaitez utiliser le dernier algorithme RMVPE de pitch vocal, tรฉlรฉchargez les paramรจtres du modรจle de pitch et placez-les dans le rรฉpertoire racine de RVC.
|
115 |
+
|
116 |
+
https://huggingface.co/lj1995/VoiceConversionWebUI/blob/main/rmvpe.pt
|
117 |
+
|
118 |
+
Les utilisateurs de cartes AMD/Intel nรฉcessitant l'environnement DML doivent tรฉlรฉcharger :
|
119 |
+
|
120 |
+
https://huggingface.co/lj1995/VoiceConversionWebUI/blob/main/rmvpe.onnx
|
121 |
+
|
122 |
+
```
|
123 |
+
Ensuite, exรฉcutez la commande suivante pour dรฉmarrer WebUI :
|
124 |
+
```bash
|
125 |
+
python infer-web.py
|
126 |
+
```
|
127 |
+
|
128 |
+
Si vous utilisez Windows ou macOS, vous pouvez tรฉlรฉcharger et extraire `RVC-beta.7z`. Les utilisateurs de Windows peuvent exรฉcuter `go-web.bat` pour dรฉmarrer WebUI, tandis que les utilisateurs de macOS peuvent exรฉcuter `sh ./run.sh`.
|
129 |
+
|
130 |
+
Il y a รฉgalement un `Guide facile pour les dรฉbutants.doc` inclus pour rรฉfรฉrence.
|
131 |
+
|
132 |
+
## Crรฉdits
|
133 |
+
+ [ContentVec](https://github.com/auspicious3000/contentvec/)
|
134 |
+
+ [VITS](https://github.com/jaywalnut310/vits)
|
135 |
+
+ [HIFIGAN](https://github.com/jik876/hifi-gan)
|
136 |
+
+ [Gradio](https://github.com/gradio-app/gradio)
|
137 |
+
+ [FFmpeg](https://github.com/FFmpeg/FFmpeg)
|
138 |
+
+ [Ultimate Vocal Remover](https://github.com/Anjok07/ultimatevocalremovergui)
|
139 |
+
+ [audio-slicer](https://github.com/openvpi/audio-slicer)
|
140 |
+
+ [Extraction de la hauteur vocale : RMVPE](https://github.com/Dream-High/RMVPE)
|
141 |
+
+ Le modรจle prรฉ-entraรฎnรฉ a รฉtรฉ formรฉ et testรฉ par [yxlllc](https://github.com/yxlllc/RMVPE) et [RVC-Boss](https://github.com/RVC-Boss).
|
142 |
+
|
143 |
+
## Remerciements ร tous les contributeurs pour leurs efforts
|
144 |
+
<a href="https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/graphs/contributors" target="_blank">
|
145 |
+
<img src="https://contrib.rocks/image?repo=RVC-Project/Retrieval-based-Voice-Conversion-WebUI" />
|
146 |
+
</a>
|
Retrieval-based-Voice-Conversion-WebUI/docs/fr/faiss_tips_fr.md
ADDED
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Conseils de rรฉglage pour faiss
|
2 |
+
==================
|
3 |
+
# ร propos de faiss
|
4 |
+
faiss est une bibliothรจque de recherches de voisins pour les vecteurs denses, dรฉveloppรฉe par Facebook Research, qui implรฉmente efficacement de nombreuses mรฉthodes de recherche de voisins approximatifs.
|
5 |
+
La recherche de voisins approximatifs trouve rapidement des vecteurs similaires tout en sacrifiant une certaine prรฉcision.
|
6 |
+
|
7 |
+
## faiss dans RVC
|
8 |
+
Dans RVC, pour l'incorporation des caractรฉristiques converties par HuBERT, nous recherchons des incorporations similaires ร l'incorporation gรฉnรฉrรฉe ร partir des donnรฉes d'entraรฎnement et les mixons pour obtenir une conversion plus proche de la parole originale. Cependant, cette recherche serait longue si elle รฉtait effectuรฉe de maniรจre naรฏve, donc une conversion ร haute vitesse est rรฉalisรฉe en utilisant une recherche de voisinage approximatif.
|
9 |
+
|
10 |
+
# Vue d'ensemble de la mise en ลuvre
|
11 |
+
Dans '/logs/votre-expรฉrience/3_feature256' oรน le modรจle est situรฉ, les caractรฉristiques extraites par HuBERT de chaque donnรฉe vocale sont situรฉes.
|
12 |
+
ร partir de lร , nous lisons les fichiers npy dans un ordre triรฉ par nom de fichier et concatรฉnons les vecteurs pour crรฉer big_npy. (Ce vecteur a la forme [N, 256].)
|
13 |
+
Aprรจs avoir sauvegardรฉ big_npy comme /logs/votre-expรฉrience/total_fea.npy, nous l'entraรฎnons avec faiss.
|
14 |
+
|
15 |
+
Dans cet article, j'expliquerai la signification de ces paramรจtres.
|
16 |
+
|
17 |
+
# Explication de la mรฉthode
|
18 |
+
## Usine d'index
|
19 |
+
Une usine d'index est une notation unique de faiss qui exprime un pipeline qui relie plusieurs mรฉthodes de recherche de voisinage approximatif sous forme de chaรฎne.
|
20 |
+
Cela vous permet d'essayer diverses mรฉthodes de recherche de voisinage approximatif simplement en changeant la chaรฎne de l'usine d'index.
|
21 |
+
Dans RVC, elle est utilisรฉe comme ceci :
|
22 |
+
|
23 |
+
```python
|
24 |
+
index = faiss.index_factory(256, "IVF%s,Flat" % n_ivf)
|
25 |
+
```
|
26 |
+
|
27 |
+
Parmi les arguments de index_factory, le premier est le nombre de dimensions du vecteur, le second est la chaรฎne de l'usine d'index, et le troisiรจme est la distance ร utiliser.
|
28 |
+
|
29 |
+
Pour une notation plus dรฉtaillรฉe :
|
30 |
+
https://github.com/facebookresearch/faiss/wiki/The-index-factory
|
31 |
+
|
32 |
+
## Index pour la distance
|
33 |
+
Il existe deux index typiques utilisรฉs comme similaritรฉ de l'incorporation comme suit :
|
34 |
+
|
35 |
+
- Distance euclidienne (METRIC_L2)
|
36 |
+
- Produit intรฉrieur (METRIC_INNER_PRODUCT)
|
37 |
+
|
38 |
+
La distance euclidienne prend la diffรฉrence au carrรฉ dans chaque dimension, somme les diffรฉrences dans toutes les dimensions, puis prend la racine carrรฉe. C'est la mรชme chose que la distance en 2D et 3D que nous utilisons au quotidien.
|
39 |
+
Le produit intรฉrieur n'est pas utilisรฉ comme index de similaritรฉ tel quel, et la similaritรฉ cosinus qui prend le produit intรฉrieur aprรจs avoir รฉtรฉ normalisรฉ par la norme L2 est gรฉnรฉralement utilisรฉe.
|
40 |
+
|
41 |
+
Lequel est le mieux dรฉpend du cas, mais la similaritรฉ cosinus est souvent utilisรฉe dans l'incorporation obtenue par word2vec et des modรจles de rรฉcupรฉration d'images similaires appris par ArcFace. Si vous voulez faire une normalisation l2 sur le vecteur X avec numpy, vous pouvez le faire avec le code suivant avec eps suffisamment petit pour รฉviter une division par 0.
|
42 |
+
|
43 |
+
```python
|
44 |
+
X_normed = X / np.maximum(eps, np.linalg.norm(X, ord=2, axis=-1, keepdims=True))
|
45 |
+
```
|
46 |
+
|
47 |
+
De plus, pour l'usine d'index, vous pouvez changer l'index de distance utilisรฉ pour le calcul en choisissant la valeur ร passer comme troisiรจme argument.
|
48 |
+
|
49 |
+
```python
|
50 |
+
index = faiss.index_factory(dimention, texte, faiss.METRIC_INNER_PRODUCT)
|
51 |
+
```
|
52 |
+
|
53 |
+
## IVF
|
54 |
+
IVF (Inverted file indexes) est un algorithme similaire ร l'index inversรฉ dans la recherche en texte intรฉgral.
|
55 |
+
Lors de l'apprentissage, la cible de recherche est regroupรฉe avec kmeans, et une partition de Voronoi est effectuรฉe en utilisant le centre du cluster. Chaque point de donnรฉes est attribuรฉ ร un cluster, nous crรฉons donc un dictionnaire qui permet de rechercher les points de donnรฉes ร partir des clusters.
|
56 |
+
|
57 |
+
Par exemple, si des clusters sont attribuรฉs comme suit :
|
58 |
+
|index|Cluster|
|
59 |
+
|-----|-------|
|
60 |
+
|1|A|
|
61 |
+
|2|B|
|
62 |
+
|3|A|
|
63 |
+
|4|C|
|
64 |
+
|5|B|
|
65 |
+
|
66 |
+
L'index inversรฉ rรฉsultant ressemble ร ceci :
|
67 |
+
|
68 |
+
|cluster|index|
|
69 |
+
|-------|-----|
|
70 |
+
|A|1, 3|
|
71 |
+
|B|2, 5|
|
72 |
+
|C|4|
|
73 |
+
|
74 |
+
Lors de la recherche, nous recherchons d'abord n_probe clusters parmi les clusters, puis nous calculons les distances pour les points de donnรฉes appartenant ร chaque cluster.
|
75 |
+
|
76 |
+
# Recommandation de paramรจtre
|
77 |
+
Il existe des directives officielles sur la faรงon de choisir un index, je vais donc expliquer en consรฉquence.
|
78 |
+
https://github.com/facebookresearch/faiss/wiki/Guidelines-to-choose-an-index
|
79 |
+
|
80 |
+
Pour les ensembles de donnรฉes infรฉrieurs ร 1M, 4bit-PQ est la mรฉthode la plus efficace disponible dans faiss en avril 2023.
|
81 |
+
En combinant cela avec IVF, en rรฉduisant les candidats avec 4bit-PQ, et enfin en recalculant la distance avec un index prรฉcis, on peut le dรฉcrire en utilisant l'usine d'index suivante.
|
82 |
+
|
83 |
+
```python
|
84 |
+
index = faiss.index_factory(256, "IVF1024,PQ128x4fs,RFlat")
|
85 |
+
```
|
86 |
+
|
87 |
+
## Paramรจtres recommandรฉs pour IVF
|
88 |
+
Considรฉrez le cas de trop d'IVF. Par exemple, si une quantification grossiรจre par IVF est effectuรฉe pour le nombre de donnรฉes, cela revient ร une recherche exhaustive naรฏve et est inefficace.
|
89 |
+
Pour 1M ou moins, les valeurs IVF sont recommandรฉes entre 4*sqrt(N) ~ 16*sqrt(N) pour N nombre de points de donnรฉes.
|
90 |
+
|
91 |
+
Comme le temps de calcul augmente proportionnellement au nombre de n_probes, veuillez consulter la prรฉcision et choisir de maniรจre appropriรฉe. Personnellement, je ne pense pas que RVC ait besoin de tant de prรฉcision, donc n_probe = 1 est bien.
|
92 |
+
|
93 |
+
## FastScan
|
94 |
+
FastScan est une mรฉthode qui permet d'approximer rapidement les distances par quantification de produit cartรฉsien en les effectuant dans les registres.
|
95 |
+
La quantification du produit cartรฉsien effectue un regroupement indรฉpendamment
|
96 |
+
|
97 |
+
pour chaque dimension d (gรฉnรฉralement d = 2) pendant l'apprentissage, calcule la distance entre les clusters ร l'avance, et crรฉe une table de recherche. Au moment de la prรฉdiction, la distance de chaque dimension peut รชtre calculรฉe en O(1) en consultant la table de recherche.
|
98 |
+
Le nombre que vous spรฉcifiez aprรจs PQ spรฉcifie gรฉnรฉralement la moitiรฉ de la dimension du vecteur.
|
99 |
+
|
100 |
+
Pour une description plus dรฉtaillรฉe de FastScan, veuillez consulter la documentation officielle.
|
101 |
+
https://github.com/facebookresearch/faiss/wiki/Fast-accumulation-of-PQ-and-AQ-codes-(FastScan)
|
102 |
+
|
103 |
+
## RFlat
|
104 |
+
RFlat est une instruction pour recalculer la distance approximative calculรฉe par FastScan avec la distance exacte spรฉcifiรฉe par le troisiรจme argument de l'usine d'index.
|
105 |
+
Lors de l'obtention de k voisins, k*k_factor points sont recalculรฉs.
|
Retrieval-based-Voice-Conversion-WebUI/docs/fr/faq_fr.md
ADDED
@@ -0,0 +1,169 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
## Q1: Erreur ffmpeg/erreur utf8.
|
2 |
+
Il s'agit trรจs probablement non pas d'un problรจme liรฉ ร FFmpeg, mais d'un problรจme liรฉ au chemin de l'audio ;
|
3 |
+
|
4 |
+
FFmpeg peut rencontrer une erreur lors de la lecture de chemins contenant des caractรจres spรฉciaux tels que des espaces et (), ce qui peut provoquer une erreur FFmpeg ; et lorsque l'audio du jeu d'entraรฎnement contient des chemins en chinois, l'รฉcrire dans filelist.txt peut provoquer une erreur utf8.<br>
|
5 |
+
|
6 |
+
## Q2: Impossible de trouver le fichier index aprรจs "Entraรฎnement en un clic".
|
7 |
+
Si l'affichage indique "L'entraรฎnement est terminรฉ. Le programme est fermรฉ", alors le modรจle a รฉtรฉ formรฉ avec succรจs, et les erreurs subsรฉquentes sont fausses ;
|
8 |
+
|
9 |
+
L'absence d'un fichier index 'ajoutรฉ' aprรจs un entraรฎnement en un clic peut รชtre due au fait que le jeu d'entraรฎnement est trop grand, ce qui bloque l'ajout de l'index ; cela a รฉtรฉ rรฉsolu en utilisant un traitement par lots pour ajouter l'index, ce qui rรฉsout le problรจme de surcharge de mรฉmoire lors de l'ajout de l'index. Comme solution temporaire, essayez de cliquer ร nouveau sur le bouton "Entraรฎner l'index".<br>
|
10 |
+
|
11 |
+
## Q3: Impossible de trouver le modรจle dans โInfรฉrence du timbreโ aprรจs l'entraรฎnement
|
12 |
+
Cliquez sur โActualiser la liste des timbresโ et vรฉrifiez ร nouveau ; si vous ne le voyez toujours pas, vรฉrifiez s'il y a des erreurs pendant l'entraรฎnement et envoyez des captures d'รฉcran de la console, de l'interface utilisateur web, et des logs/nom_de_l'expรฉrience/*.log aux dรฉveloppeurs pour une analyse plus approfondie.<br>
|
13 |
+
|
14 |
+
## Q4: Comment partager un modรจle/Comment utiliser les modรจles d'autres personnes ?
|
15 |
+
Les fichiers pth stockรฉs dans rvc_root/logs/nom_de_l'expรฉrience ne sont pas destinรฉs ร รชtre partagรฉs ou infรฉrรฉs, mais ร stocker les points de contrรดle de l'expรฉrience pour la reproductibilitรฉ et l'entraรฎnement ultรฉrieur. Le modรจle ร partager doit รชtre le fichier pth de 60+MB dans le dossier des poids ;
|
16 |
+
|
17 |
+
ร l'avenir, les poids/nom_de_l'expรฉrience.pth et les logs/nom_de_l'expรฉrience/ajoutรฉ_xxx.index seront fusionnรฉs en un seul fichier poids/nom_de_l'expรฉrience.zip pour รฉliminer le besoin d'une entrรฉe d'index manuelle ; partagez donc le fichier zip, et non le fichier pth, sauf si vous souhaitez continuer l'entraรฎnement sur une machine diffรฉrente ;
|
18 |
+
|
19 |
+
Copier/partager les fichiers pth de plusieurs centaines de Mo du dossier des logs au dossier des poids pour une infรฉrence forcรฉe peut entraรฎner des erreurs telles que des f0, tgt_sr, ou d'autres clรฉs manquantes. Vous devez utiliser l'onglet ckpt en bas pour sรฉlectionner manuellement ou automatiquement (si l'information se trouve dans les logs/nom_de_l'expรฉrience), si vous souhaitez inclure les informations sur la hauteur et les options de taux d'รฉchantillonnage audio cible, puis extraire le modรจle plus petit. Aprรจs extraction, il y aura un fichier pth de 60+ MB dans le dossier des poids, et vous pouvez actualiser les voix pour l'utiliser.<br>
|
20 |
+
|
21 |
+
## Q5: Erreur de connexion.
|
22 |
+
Il se peut que vous ayez fermรฉ la console (fenรชtre de ligne de commande noire).<br>
|
23 |
+
|
24 |
+
## Q6: WebUI affiche 'Expecting value: line 1 column 1 (char 0)'.
|
25 |
+
Veuillez dรฉsactiver le proxy systรจme LAN/proxy global puis rafraรฎchir.<br>
|
26 |
+
|
27 |
+
## Q7: Comment s'entraรฎner et dรฉduire sans le WebUI ?
|
28 |
+
Script d'entraรฎnement :<br>
|
29 |
+
Vous pouvez d'abord lancer l'entraรฎnement dans WebUI, et les versions en ligne de commande de la prรฉparation du jeu de donnรฉes et de l'entraรฎnement seront affichรฉes dans la fenรชtre de message.<br>
|
30 |
+
|
31 |
+
Script d'infรฉrence :<br>
|
32 |
+
https://huggingface.co/lj1995/VoiceConversionWebUI/blob/main/myinfer.py<br>
|
33 |
+
|
34 |
+
Par exemple :<br>
|
35 |
+
|
36 |
+
runtime\python.exe myinfer.py 0 "E:\codes\py39\RVC-beta\todo-songs\1111.wav" "E:\codes\py39\logs\mi-test\added_IVF677_Flat_nprobe_7.index" rรฉcolte "test.wav" "weights/mi-test.pth" 0.6 cuda:0 True<br>
|
37 |
+
|
38 |
+
f0up_key=sys.argv[1]<br>
|
39 |
+
input_path=sys.argv[2]<br>
|
40 |
+
index_path=sys.argv[3]<br>
|
41 |
+
f0method=sys.argv[4]#rรฉcolte ou pm<br>
|
42 |
+
opt_path=sys.argv[5]<br>
|
43 |
+
model_path=sys.argv[6]<br>
|
44 |
+
index_rate=float(sys.argv[7])<br>
|
45 |
+
device=sys.argv[8]<br>
|
46 |
+
is_half=bool(sys.argv[9])<br>
|
47 |
+
|
48 |
+
### Explication des arguments :
|
49 |
+
|
50 |
+
1. **Numรฉro de voix cible** : `0` (dans cet exemple)
|
51 |
+
2. **Chemin du fichier audio d'entrรฉe** : `"C:\ YOUR PATH FOR THE ROOT (RVC0813Nvidia)\INPUTS_VOCAL\vocal.wav"`
|
52 |
+
3. **Chemin du fichier index** : `"C:\ YOUR PATH FOR THE ROOT (RVC0813Nvidia)\logs\Hagrid.index"`
|
53 |
+
4. **Mรฉthode pour l'extraction du pitch (F0)** : `harvest` (dans cet exemple)
|
54 |
+
5. **Chemin de sortie pour le fichier audio traitรฉ** : `"C:\ YOUR PATH FOR THE ROOT (RVC0813Nvidia)\INPUTS_VOCAL\test.wav"`
|
55 |
+
6. **Chemin du modรจle** : `"C:\ YOUR PATH FOR THE ROOT (RVC0813Nvidia)\weights\HagridFR.pth"`
|
56 |
+
7. **Taux d'index** : `0.6` (dans cet exemple)
|
57 |
+
8. **Pรฉriphรฉrique pour l'exรฉcution (GPU/CPU)** : `cuda:0` pour une carte NVIDIA, par exemple.
|
58 |
+
9. **Protection des droits d'auteur (True/False)**.
|
59 |
+
|
60 |
+
<!-- Pour myinfer nouveau models :
|
61 |
+
|
62 |
+
runtime\python.exe myinfer.py 0 "C:\ YOUR PATH FOR THE ROOT (RVC0813Nvidia)\INPUTS_VOCAL\vocal.wav" "C:\ YOUR PATH FOR THE ROOT (RVC0813Nvidia)\logs\Hagrid.index" harvest "C:\ YOUR PATH FOR THE ROOT (RVC0813Nvidia)\INPUTS_VOCAL\test.wav" "C:\ YOUR PATH FOR THE ROOT (RVC0813Nvidia)\weights\HagridFR.pth" 0.6 cuda:0 True 5 44100 44100 1.0 1.0 True
|
63 |
+
|
64 |
+
|
65 |
+
f0up_key=sys.argv[1]
|
66 |
+
input_path = sys.argv[2]
|
67 |
+
index_path = sys.argv[3]
|
68 |
+
f0method = sys.argv[4]
|
69 |
+
opt_path = sys.argv[5]
|
70 |
+
model_path = sys.argv[6]
|
71 |
+
index_rate = float(sys.argv[7])
|
72 |
+
device = sys.argv[8]
|
73 |
+
is_half = bool(sys.argv[9])
|
74 |
+
filter_radius = int(sys.argv[10])
|
75 |
+
tgt_sr = int(sys.argv[11])
|
76 |
+
resample_sr = int(sys.argv[12])
|
77 |
+
rms_mix_rate = float(sys.argv[13])
|
78 |
+
version = sys.argv[14]
|
79 |
+
protect = sys.argv[15].lower() == 'false' # change for true if needed
|
80 |
+
|
81 |
+
### Explication des arguments :
|
82 |
+
|
83 |
+
1. **Numรฉro de voix cible** : `0` (dans cet exemple)
|
84 |
+
2. **Chemin du fichier audio d'entrรฉe** : `"C:\ YOUR PATH FOR THE ROOT (RVC0813Nvidia)\INPUTS_VOCAL\vocal.wav"`
|
85 |
+
3. **Chemin du fichier index** : `"C:\ YOUR PATH FOR THE ROOT (RVC0813Nvidia)\logs\Hagrid.index"`
|
86 |
+
4. **Mรฉthode pour l'extraction du pitch (F0)** : `harvest` (dans cet exemple)
|
87 |
+
5. **Chemin de sortie pour le fichier audio traitรฉ** : `"C:\ YOUR PATH FOR THE ROOT (RVC0813Nvidia)\INPUTS_VOCAL\test.wav"`
|
88 |
+
6. **Chemin du modรจle** : `"C:\ YOUR PATH FOR THE ROOT (RVC0813Nvidia)\weights\HagridFR.pth"`
|
89 |
+
7. **Taux d'index** : `0.6` (dans cet exemple)
|
90 |
+
8. **Pรฉriphรฉrique pour l'exรฉcution (GPU/CPU)** : `cuda:0` pour une carte NVIDIA, par exemple.
|
91 |
+
9. **Protection des droits d'auteur (True/False)**.
|
92 |
+
10. **Rayon du filtre** : `5` (dans cet exemple)
|
93 |
+
11. **Taux d'รฉchantillonnage cible** : `44100` (dans cet exemple)
|
94 |
+
12. **Taux d'รฉchantillonnage pour le rรฉรฉchantillonnage** : `44100` (dans cet exemple)
|
95 |
+
13. **Taux de mixage RMS** : `1.0` (dans cet exemple)
|
96 |
+
14. **Version** : `1.0` (dans cet exemple)
|
97 |
+
15. **Protection** : `True` (dans cet exemple)
|
98 |
+
|
99 |
+
Assurez-vous de remplacer les chemins par ceux correspondant ร votre configuration et d'ajuster les autres paramรจtres selon vos besoins.
|
100 |
+
-->
|
101 |
+
|
102 |
+
## Q8: Erreur Cuda/Mรฉmoire Cuda รฉpuisรฉe.
|
103 |
+
Il y a une faible chance qu'il y ait un problรจme avec la configuration CUDA ou que le dispositif ne soit pas pris en charge ; plus probablement, il n'y a pas assez de mรฉmoire (manque de mรฉmoire).<br>
|
104 |
+
|
105 |
+
Pour l'entraรฎnement, rรฉduisez la taille du lot (si la rรฉduction ร 1 n'est toujours pas suffisante, vous devrez peut-รชtre changer la carte graphique) ; pour l'infรฉrence, ajustez les paramรจtres x_pad, x_query, x_center, et x_max dans le fichier config.py selon les besoins. Les cartes mรฉmoire de 4 Go ou moins (par exemple 1060(3G) et diverses cartes de 2 Go) peuvent รชtre abandonnรฉes, tandis que les cartes mรฉmoire de 4 Go ont encore une chance.<br>
|
106 |
+
|
107 |
+
## Q9: Combien de total_epoch sont optimaux ?
|
108 |
+
Si la qualitรฉ audio du jeu d'entraรฎnement est mรฉdiocre et que le niveau de bruit est รฉlevรฉ, 20-30 รฉpoques sont suffisantes. Le fixer trop haut n'amรฉliorera pas la qualitรฉ audio de votre jeu d'entraรฎnement de faible qualitรฉ.<br>
|
109 |
+
|
110 |
+
Si la qualitรฉ audio du jeu d'entraรฎnement est รฉlevรฉe, le niveau de bruit est faible, et la durรฉe est suffisante, vous pouvez l'augmenter. 200 est acceptable (puisque l'entraรฎnement est rapide, et si vous รชtes capable de prรฉparer un jeu d'entraรฎnement de haute qualitรฉ, votre GPU peut probablement gรฉrer une durรฉe d'entraรฎnement plus longue sans problรจme).<br>
|
111 |
+
|
112 |
+
## Q10: Quelle durรฉe de jeu d'entraรฎnement est nรฉcessaire ?
|
113 |
+
Un jeu d'environ 10 min ร 50 min est recommandรฉ.<br>
|
114 |
+
|
115 |
+
Avec une garantie de haute qualitรฉ sonore et de faible bruit de fond, plus peut รชtre ajoutรฉ si le timbre du jeu est uniforme.<br>
|
116 |
+
|
117 |
+
Pour un jeu d'entraรฎnement de haut niveau (ton maigre + ton distinctif), 5 min ร 10 min sont suffisantes.<br>
|
118 |
+
|
119 |
+
Il y a des personnes qui ont rรฉussi ร s'entraรฎner avec des donnรฉes de 1 min ร 2 min, mais le succรจs n'est pas reproductible par d'autres et n'est pas trรจs informatif. <br>Cela nรฉcessite que le jeu d'entraรฎnement ait un timbre trรจs distinctif (par exemple, un son de fille d'anime aรฉrien ร haute frรฉquence) et que la qualitรฉ de l'audio soit รฉlevรฉe ;
|
120 |
+
Aucune tentative rรฉussie n'a รฉtรฉ faite jusqu'ร prรฉsent avec des donnรฉes de moins de 1 min. Cela n'est pas recommandรฉ.<br>
|
121 |
+
|
122 |
+
## Q11: ร quoi sert le taux d'index et comment l'ajuster ?
|
123 |
+
Si la qualitรฉ tonale du modรจle prรฉ-entraรฎnรฉ et de la source d'infรฉrence est supรฉrieure ร celle du jeu d'entraรฎnement, ils peuvent amรฉliorer la qualitรฉ tonale du rรฉsultat d'infรฉrence, mais au prix d'un possible biais tonal vers le ton du modรจle sous-jacent/source d'infรฉrence plutรดt que le ton du jeu d'entraรฎnement, ce qui est gรฉnรฉralement appelรฉ "fuite de ton".<br>
|
124 |
+
|
125 |
+
Le taux d'index est utilisรฉ pour rรฉduire/rรฉsoudre le problรจme de la fuite de timbre. Si le taux d'index est fixรฉ ร 1, thรฉoriquement il n'y a pas de fuite de timbre de la source d'infรฉrence et la qualitรฉ du timbre est plus biaisรฉe vers le jeu d'entraรฎnement. Si le jeu d'entraรฎnement a une qualitรฉ sonore infรฉrieure ร celle de la source d'infรฉrence, alors un taux d'index plus รฉlevรฉ peut rรฉduire la qualitรฉ sonore. Le rรฉduire ร 0 n'a pas l'effet d'utiliser le mรฉlange de rรฉcupรฉration pour protรฉger les tons du jeu d'entraรฎnement.<br>
|
126 |
+
|
127 |
+
Si le jeu d'entraรฎnement a une bonne qualitรฉ audio et une longue durรฉe, augmentez le total_epoch, lorsque le modรจle lui-mรชme est moins susceptible de se rรฉfรฉrer ร la source dรฉduite et au modรจle sous-jacent prรฉ-entraรฎnรฉ, et qu'il y a peu de "fuite de ton", le taux d'index n'est pas important et vous pouvez mรชme ne pas crรฉer/partager le fichier index.<br>
|
128 |
+
|
129 |
+
## Q12: Comment choisir le gpu lors de l'infรฉrence ?
|
130 |
+
Dans le fichier config.py, sรฉlectionnez le numรฉro de carte aprรจs "device cuda:".<br>
|
131 |
+
|
132 |
+
La correspondance entre le numรฉro de carte et la carte graphique peut รชtre vue dans la section d'information de la carte graphique de l'onglet d'entraรฎnement.<br>
|
133 |
+
|
134 |
+
## Q13: Comment utiliser le modรจle sauvegardรฉ au milieu de l'entraรฎnement ?
|
135 |
+
Sauvegardez via l'extraction de modรจle en bas de l'onglet de traitement ckpt.
|
136 |
+
|
137 |
+
## Q14: Erreur de fichier/erreur de mรฉmoire (lors de l'entraรฎnement) ?
|
138 |
+
Il y a trop de processus et votre mรฉmoire n'est pas suffisante. Vous pouvez le corriger en :
|
139 |
+
|
140 |
+
1. Diminuer l'entrรฉe dans le champ "Threads of CPU".
|
141 |
+
|
142 |
+
2. Prรฉ-dรฉcouper le jeu d'entraรฎnement en fichiers audio plus courts.
|
143 |
+
|
144 |
+
## Q15: Comment poursuivre l'entraรฎnement avec plus de donnรฉes
|
145 |
+
|
146 |
+
รฉtape 1 : mettre toutes les donnรฉes wav dans path2.
|
147 |
+
|
148 |
+
รฉtape 2 : exp_name2+path2 -> traiter le jeu de donnรฉes et extraire la caractรฉristique.
|
149 |
+
|
150 |
+
รฉtape 3 : copier les derniers fichiers G et D de exp_name1 (votre expรฉrience prรฉcรฉdente) dans le dossier exp_name2.
|
151 |
+
|
152 |
+
รฉtape 4 : cliquez sur "entraรฎner le modรจle", et il continuera l'entraรฎnement depuis le dรฉbut de votre รฉpoque de modรจle exp prรฉcรฉdente.
|
153 |
+
|
154 |
+
## Q16: erreur ร propos de llvmlite.dll
|
155 |
+
|
156 |
+
OSError: Impossible de charger le fichier objet partagรฉ : llvmlite.dll
|
157 |
+
|
158 |
+
FileNotFoundError: Impossible de trouver le module lib\site-packages\llvmlite\binding\llvmlite.dll (ou l'une de ses dรฉpendances). Essayez d'utiliser la syntaxe complรจte du constructeur.
|
159 |
+
|
160 |
+
Le problรจme se produira sous Windows, installez https://aka.ms/vs/17/release/vc_redist.x64.exe et il sera corrigรฉ.
|
161 |
+
|
162 |
+
## Q17: RuntimeError: La taille รฉtendue du tensor (17280) doit correspondre ร la taille existante (0) ร la dimension non-singleton 1. Tailles cibles : [1, 17280]. Tailles des tensors : [0]
|
163 |
+
|
164 |
+
Supprimez les fichiers wav dont la taille est nettement infรฉrieure ร celle des autres, et cela ne se reproduira plus. Ensuite, cliquez sur "entraรฎner le modรจle" et "entraรฎner l'index".
|
165 |
+
|
166 |
+
## Q18: RuntimeError: La taille du tensor a (24) doit correspondre ร la taille du tensor b (16) ร la dimension non-singleton 2
|
167 |
+
|
168 |
+
Ne changez pas le taux d'รฉchantillonnage puis continuez l'entraรฎnement. S'il est nรฉcessaire de changer, le nom de l'expรฉrience doit รชtre modifiรฉ et le modรจle sera formรฉ ร partir de zรฉro. Vous pouvez รฉgalement copier les hauteurs et caractรฉristiques (dossiers 0/1/2/2b) extraites la derniรจre fois pour accรฉlรฉrer le processus d'entraรฎnement.
|
169 |
+
|
Retrieval-based-Voice-Conversion-WebUI/docs/fr/training_tips_fr.md
ADDED
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Instructions et conseils pour la formation RVC
|
2 |
+
======================================
|
3 |
+
Ces conseils expliquent comment se dรฉroule la formation des donnรฉes.
|
4 |
+
|
5 |
+
# Flux de formation
|
6 |
+
Je vais expliquer selon les รฉtapes de l'onglet de formation de l'interface graphique.
|
7 |
+
|
8 |
+
## รฉtape 1
|
9 |
+
Dรฉfinissez ici le nom de l'expรฉrience.
|
10 |
+
|
11 |
+
Vous pouvez รฉgalement dรฉfinir ici si le modรจle doit prendre en compte le pitch.
|
12 |
+
Si le modรจle ne considรจre pas le pitch, le modรจle sera plus lรฉger, mais pas adaptรฉ au chant.
|
13 |
+
|
14 |
+
Les donnรฉes de chaque expรฉrience sont placรฉes dans `/logs/nom-de-votre-experience/`.
|
15 |
+
|
16 |
+
## รฉtape 2a
|
17 |
+
Charge et prรฉ-traite l'audio.
|
18 |
+
|
19 |
+
### charger l'audio
|
20 |
+
Si vous spรฉcifiez un dossier avec de l'audio, les fichiers audio de ce dossier seront lus automatiquement.
|
21 |
+
Par exemple, si vous spรฉcifiez `C:Users\hoge\voices`, `C:Users\hoge\voices\voice.mp3` sera chargรฉ, mais `C:Users\hoge\voices\dir\voice.mp3` ne sera pas chargรฉ.
|
22 |
+
|
23 |
+
Comme ffmpeg est utilisรฉ en interne pour lire l'audio, si l'extension est prise en charge par ffmpeg, elle sera lue automatiquement.
|
24 |
+
Aprรจs la conversion en int16 avec ffmpeg, convertir en float32 et normaliser entre -1 et 1.
|
25 |
+
|
26 |
+
### dรฉbruitage
|
27 |
+
L'audio est lissรฉ par filtfilt de scipy.
|
28 |
+
|
29 |
+
### Sรฉparation audio
|
30 |
+
Tout d'abord, l'audio d'entrรฉe est divisรฉ en dรฉtectant des parties de silence qui durent plus d'une certaine pรฉriode (max_sil_kept = 5 secondes ?). Aprรจs avoir sรฉparรฉ l'audio sur le silence, sรฉparez l'audio toutes les 4 secondes avec un chevauchement de 0,3 seconde. Pour l'audio sรฉparรฉ en 4 secondes, aprรจs normalisation du volume, convertir le fichier wav en `/logs/nom-de-votre-experience/0_gt_wavs` puis le convertir ร un taux d'รฉchantillonnage de 16k dans `/logs/nom-de-votre-experience/1_16k_wavs` sous forme de fichier wav.
|
31 |
+
|
32 |
+
## รฉtape 2b
|
33 |
+
### Extraire le pitch
|
34 |
+
Extrait les informations de pitch des fichiers wav. Extraire les informations de pitch (=f0) en utilisant la mรฉthode intรฉgrรฉe dans parselmouth ou pyworld et les sauvegarder dans `/logs/nom-de-votre-experience/2a_f0`. Convertissez ensuite logarithmiquement les informations de pitch en un entier entre 1 et 255 et sauvegardez-le dans `/logs/nom-de-votre-experience/2b-f0nsf`.
|
35 |
+
|
36 |
+
### Extraire l'empreinte de caractรฉristique
|
37 |
+
Convertissez le fichier wav en incorporation ร l'avance en utilisant HuBERT. Lisez le fichier wav sauvegardรฉ dans `/logs/nom-de-votre-experience/1_16k_wavs`, convertissez le fichier wav en caractรฉristiques de dimension 256 avec HuBERT, et sauvegardez au format npy dans `/logs/nom-de-votre-experience/3_feature256`.
|
38 |
+
|
39 |
+
## รฉtape 3
|
40 |
+
former le modรจle.
|
41 |
+
### Glossaire pour les dรฉbutants
|
42 |
+
Dans l'apprentissage profond, l'ensemble de donnรฉes est divisรฉ et l'apprentissage progresse petit ร petit. Dans une mise ร jour de modรจle (รฉtape), les donnรฉes de batch_size sont rรฉcupรฉrรฉes et des prรฉdictions et corrections d'erreur sont effectuรฉes. Faire cela une fois pour un ensemble de donnรฉes compte comme une รฉpoque.
|
43 |
+
|
44 |
+
Par consรฉquent, le temps d'apprentissage est le temps d'apprentissage par รฉtape x (le nombre de donnรฉes dans l'ensemble de donnรฉes / taille du lot) x le nombre d'รฉpoques. En gรฉnรฉral, plus la taille du lot est grande, plus l'apprentissage devient stable (temps d'apprentissage par รฉtape รท taille du lot) devient plus petit, mais il utilise plus de mรฉmoire GPU. La RAM GPU peut รชtre vรฉrifiรฉe avec la commande nvidia-smi. L'apprentissage peut รชtre effectuรฉ en peu de temps en augmentant la taille du lot autant que possible selon la machine de l'environnement d'exรฉcution.
|
45 |
+
|
46 |
+
### Spรฉcifier le modรจle prรฉ-entraรฎnรฉ
|
47 |
+
RVC commence ร former le modรจle ร partir de poids prรฉ-entraรฎnรฉs plutรดt que de zรฉro, il peut donc รชtre formรฉ avec un petit ensemble de donnรฉes.
|
48 |
+
|
49 |
+
Par dรฉfaut :
|
50 |
+
|
51 |
+
- Si vous considรฉrez le pitch, il charge `rvc-location/pretrained/f0G40k.pth` et `rvc-location/pretrained/f0D40k.pth`.
|
52 |
+
- Si vous ne considรฉrez pas le pitch, il charge `rvc-location/pretrained/f0G40k.pth` et `rvc-location/pretrained/f0D40k.pth`.
|
53 |
+
|
54 |
+
Lors de l'apprentissage, les paramรจtres du modรจle sont sauvegardรฉs dans `logs/nom-de-votre-experience/G_{}.pth` et `logs/nom-de-votre-experience/D_{}.pth` pour chaque save_every_epoch, mais en spรฉcifiant ce chemin, vous pouvez dรฉmarrer l'apprentissage. Vous pouvez redรฉmarrer ou commencer ร former ร partir de poids de modรจle appris lors d'une expรฉrience diffรฉrente.
|
55 |
+
|
56 |
+
### Index d'apprentissage
|
57 |
+
RVC sauvegarde les valeurs de caractรฉristique HuBERT utilisรฉes lors de la formation, et pendant l'infรฉrence, recherche les valeurs de caractรฉristique qui sont similaires aux valeurs de caractรฉristique utilisรฉes lors de l'apprentissage pour effectuer l'infรฉrence. Afin d'effectuer cette recherche ร haute vitesse, l'index est appris ร l'avance.
|
58 |
+
Pour l'apprentissage d'index, nous utilisons la bibliothรจque de recherche de voisinage approximatif faiss. Lisez la valeur de caractรฉristique de `logs/nom-de-votre-experience/3_feature256` et utilisez-la pour apprendre l'index, et sauvegardez-la sous `logs/nom-de-votre-experience/add_XXX.index`.
|
59 |
+
|
60 |
+
(ร partir de la version de mise ร jour 20230428, elle est lue ร partir de l'index, et la sauvegarde / spรฉcification n'est plus nรฉcessaire.)
|
61 |
+
|
62 |
+
### Description du bouton
|
63 |
+
- Former le modรจle : aprรจs avoir exรฉcutรฉ l'รฉtape 2b, appuyez sur ce bouton pour former le modรจle.
|
64 |
+
- Former l'index de caractรฉristique : aprรจs avoir formรฉ le modรจle, effectuez un apprentissage d'index.
|
65 |
+
- Formation en un clic : รฉtape 2b, formation du modรจle et formation de l'index de caractรฉristique tout d'un coup.```
|
Retrieval-based-Voice-Conversion-WebUI/docs/jp/README.ja.md
ADDED
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div align="center">
|
2 |
+
|
3 |
+
<h1>Retrieval-based-Voice-Conversion-WebUI</h1>
|
4 |
+
VITSใซๅบใฅใไฝฟใใใใ้ณๅฃฐๅคๆ๏ผvoice changer๏ผframework<br><br>
|
5 |
+
|
6 |
+
[![madewithlove](https://img.shields.io/badge/made_with-%E2%9D%A4-red?style=for-the-badge&labelColor=orange
|
7 |
+
)](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI)
|
8 |
+
|
9 |
+
<img src="https://counter.seku.su/cmoe?name=rvc&theme=r34" /><br>
|
10 |
+
|
11 |
+
[![Open In Colab](https://img.shields.io/badge/Colab-F9AB00?style=for-the-badge&logo=googlecolab&color=525252)](https://colab.research.google.com/github/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/blob/main/Retrieval_based_Voice_Conversion_WebUI.ipynb)
|
12 |
+
[![Licence](https://img.shields.io/github/license/RVC-Project/Retrieval-based-Voice-Conversion-WebUI?style=for-the-badge)](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/blob/main/LICENSE)
|
13 |
+
[![Huggingface](https://img.shields.io/badge/๐ค%20-Spaces-yellow.svg?style=for-the-badge)](https://huggingface.co/lj1995/VoiceConversionWebUI/tree/main/)
|
14 |
+
|
15 |
+
[![Discord](https://img.shields.io/badge/RVC%20Developers-Discord-7289DA?style=for-the-badge&logo=discord&logoColor=white)](https://discord.gg/HcsmBBGyVk)
|
16 |
+
|
17 |
+
</div>
|
18 |
+
|
19 |
+
------
|
20 |
+
|
21 |
+
[**ๆดๆฐๆฅ่ช**](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/blob/main/docs/Changelog_CN.md)
|
22 |
+
|
23 |
+
[**English**](../en/README.en.md) | [**ไธญๆ็ฎไฝ**](../../README.md) | [**ๆฅๆฌ่ช**](../jp/README.ja.md) | [**ํ๊ตญ์ด**](../kr/README.ko.md) ([**้ๅ่ช**](../kr/README.ko.han.md)) | [**Tรผrkรงe**](../tr/README.tr.md)
|
24 |
+
|
25 |
+
> ใใขๅ็ปใฏ[ใใกใ](https://www.bilibili.com/video/BV1pm4y1z7Gm/)ใงใ่ฆงใใ ใใใ
|
26 |
+
|
27 |
+
> RVCใซใใใชใขใซใฟใคใ ้ณๅฃฐๅคๆ: [w-okada/voice-changer](https://github.com/w-okada/voice-changer)
|
28 |
+
|
29 |
+
> ่ไฝๆจฉไพตๅฎณใๅฟ้
ใใใใจใชใไฝฟ็จใงใใใใใซใๅบๅบใขใใซใฏ็ด50ๆ้ใฎ้ซๅ่ณชใชใชใผใใณใฝใผในใใผใฟใปใใใง่จ็ทดใใใฆใใพใใ
|
30 |
+
|
31 |
+
> ไปๅพใใๆฌกใ
ใจไฝฟ็จ่จฑๅฏใฎใใ้ซๅ่ณชใชๆญๅฃฐใฎ่ณๆ้ใ่ฟฝๅ ใใๅบๅบใขใใซใ่จ็ทดใใไบๅฎใงใใ
|
32 |
+
|
33 |
+
## ใฏใใใซ
|
34 |
+
ๆฌใชใใธใใชใซใฏไธ่จใฎ็นๅพดใใใใพใใ
|
35 |
+
|
36 |
+
+ Top1ๆค็ดขใ็จใใใใจใงใ็ใฎ็นๅพด้ใ่จ็ทด็จใใผใฟใปใใ็นๅพด้ใซๅคๆใใใใผใณใชใผใฑใผใธใๅๆธใใพใใ
|
37 |
+
+ ๆฏ่ผ็่ฒงๅผฑใชGPUใงใใ้ซ้ใใค็ฐกๅใซ่จ็ทดใงใใพใใ
|
38 |
+
+ ๅฐ้ใฎใใผใฟใปใใใใใงใใๆฏ่ผ็่ฏใ็ตๆใๅพใใใจใใงใใพใใ๏ผ10ๅไปฅไธใฎใใคใบใฎๅฐใชใ้ณๅฃฐใๆจๅฅจใใพใใ๏ผ
|
39 |
+
+ ใขใใซใ่ๅใใใใจใงใ้ณๅฃฐใๆททใใใใจใใงใใพใใ๏ผckpt processingใฟใใฎใckpt mergeใไฝฟ็จใใพใใ๏ผ
|
40 |
+
+ ไฝฟใใใใWebUIใ
|
41 |
+
+ UVR5 ModelใๅซใใงใใใใใไบบใฎๅฃฐใจBGMใ็ด ๆฉใๅ้ขใงใใพใใ
|
42 |
+
|
43 |
+
## ็ฐๅขๆง็ฏ
|
44 |
+
Poetryใงไพๅญ้ขไฟใใคใณในใใผใซใใใใจใใๅงใใใพใใ
|
45 |
+
|
46 |
+
ไธ่จใฎใณใใณใใฏใPython3.8ไปฅไธใฎ็ฐๅขใงๅฎ่กใใๅฟ
่ฆใใใใพใ:
|
47 |
+
```bash
|
48 |
+
# PyTorch้ข้ฃใฎไพๅญ้ขไฟใใคใณในใใผใซใใคใณในใใผใซๆธใฎๅ ดๅใฏ็็ฅใ
|
49 |
+
# ๅ็
งๅ
: https://pytorch.org/get-started/locally/
|
50 |
+
pip install torch torchvision torchaudio
|
51 |
+
|
52 |
+
#Windows๏ผ Nvidia Ampere Architecture(RTX30xx)ใฎๅ ดๅใ #21 ใซๅพใใpytorchใซๅฏพๅฟใใcuda versionใๆๅฎใใๅฟ
่ฆใใใใพใใ
|
53 |
+
#pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117
|
54 |
+
|
55 |
+
# PyTorch้ข้ฃใฎไพๅญ้ขไฟใใคใณในใใผใซใใคใณในใใผใซๆธใฎๅ ดๅใฏ็็ฅใ
|
56 |
+
# ๅ็
งๅ
: https://python-poetry.org/docs/#installation
|
57 |
+
curl -sSL https://install.python-poetry.org | python3 -
|
58 |
+
|
59 |
+
# Poetry็ต็ฑใงไพๅญ้ขไฟใใคใณในใใผใซ
|
60 |
+
poetry install
|
61 |
+
```
|
62 |
+
|
63 |
+
pipใงใไพๅญ้ขไฟใฎใคใณในใใผใซใๅฏ่ฝใงใ:
|
64 |
+
|
65 |
+
```bash
|
66 |
+
pip install -r requirements.txt
|
67 |
+
```
|
68 |
+
|
69 |
+
## ๅบๅบmodelsใๆบๅ
|
70 |
+
RVCใฏๆจ่ซ/่จ็ทดใฎใใใซใๆงใ
ใชไบๅ่จ็ทดใ่กใฃใๅบๅบใขใใซใๅฟ
่ฆใจใใพใใ
|
71 |
+
|
72 |
+
modelsใฏ[Hugging Face space](https://huggingface.co/lj1995/VoiceConversionWebUI/tree/main/)ใใใใฆใณใญใผใใงใใพใใ
|
73 |
+
|
74 |
+
ไปฅไธใฏใRVCใซๅฟ
่ฆใชๅบๅบใขใใซใใใฎไปใฎใใกใคใซใฎไธ่ฆงใงใใ
|
75 |
+
```bash
|
76 |
+
./assets/hubert/hubert_base.pt
|
77 |
+
|
78 |
+
./assets/pretrained
|
79 |
+
|
80 |
+
./assets/uvr5_weights
|
81 |
+
|
82 |
+
V2ใฎใขใใซใไฝฟ็จใใใซใฏใ่ฟฝๅ ใงใใกใคใซใใใฆใณใญใผใใใๅฟ
่ฆใใใใพใ
|
83 |
+
|
84 |
+
./assets/pretrained_v2
|
85 |
+
|
86 |
+
# ffmpegใใใงใซinstallใใใฆใใๅ ดๅใฏ็็ฅ
|
87 |
+
./ffmpeg
|
88 |
+
```
|
89 |
+
ใใฎๅพใไธ่จใฎใณใใณใใงWebUIใ่ตทๅใใพใใ
|
90 |
+
```bash
|
91 |
+
python infer-web.py
|
92 |
+
```
|
93 |
+
Windowsใใไฝฟใใฎๆนใฏใ็ดๆฅ`RVC-beta.7z`ใใใฆใณใญใผใๅพใซๅฑ้ใใ`go-web.bat`ใใฏใชใใฏใใใใจใงใWebUIใ่ตทๅใใใใจใใงใใพใใ(7zipใๅฟ
่ฆใงใใ)
|
94 |
+
|
95 |
+
ใพใใใชใใธใใชใซ[ๅฐ็ฝ็ฎๆๆ็จ.doc](./ๅฐ็ฝ็ฎๆๆ็จ.doc)ใใใใพใใฎใงใๅ่ใซใใฆใใ ใใ๏ผไธญๅฝ่ช็ใฎใฟ๏ผใ
|
96 |
+
|
97 |
+
## ๅ่ใใญใธใงใฏใ
|
98 |
+
+ [ContentVec](https://github.com/auspicious3000/contentvec/)
|
99 |
+
+ [VITS](https://github.com/jaywalnut310/vits)
|
100 |
+
+ [HIFIGAN](https://github.com/jik876/hifi-gan)
|
101 |
+
+ [Gradio](https://github.com/gradio-app/gradio)
|
102 |
+
+ [FFmpeg](https://github.com/FFmpeg/FFmpeg)
|
103 |
+
+ [Ultimate Vocal Remover](https://github.com/Anjok07/ultimatevocalremovergui)
|
104 |
+
+ [audio-slicer](https://github.com/openvpi/audio-slicer)
|
105 |
+
|
106 |
+
## ่ฒข็ฎ่
(contributor)ใฎ็ๆงใฎๅฐฝๅใซๆ่ฌใใพใ
|
107 |
+
<a href="https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/graphs/contributors" target="_blank">
|
108 |
+
<img src="https://contrib.rocks/image?repo=RVC-Project/Retrieval-based-Voice-Conversion-WebUI" />
|
109 |
+
</a>
|
Retrieval-based-Voice-Conversion-WebUI/docs/jp/faiss_tips_ja.md
ADDED
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
faiss tuning TIPS
|
2 |
+
==================
|
3 |
+
# about faiss
|
4 |
+
faissใฏfacebook researchใฎ้็บใใใๅฏใชใใฏใใซใซๅฏพใใ่ฟๅๆข็ดขใใพใจใใใฉใคใใฉใชใงใๅคใใฎ่ฟไผผ่ฟๅๆข็ดขใฎๆๆณใๅน็็ใซๅฎ่ฃ
ใใฆใใพใใ
|
5 |
+
่ฟไผผ่ฟๅๆข็ดขใฏใใ็จๅบฆ็ฒพๅบฆใ็ ็ฒใซใใชใใ้ซ้ใซ้กไผผใใใใฏใใซใๆขใใพใใ
|
6 |
+
|
7 |
+
## faiss in RVC
|
8 |
+
RVCใงใฏHuBERTใงๅคๆใใ็นๅพด้ใฎEmbeddingใซๅฏพใใๅญฆ็ฟใใผใฟใใ็ๆใใใEmbeddingใจ้กไผผใใใใฎใๆค็ดขใใๆททใใใใจใงใใๅ
ใฎ้ณๅฃฐใซ่ฟใๅคๆใๅฎ็พใใฆใใพใใใใ ใใใฎๆค็ดขใฏๆ็ดใซ่กใใจๆ้ใใใใใใใ่ฟไผผ่ฟๅๆข็ดขใ็จใใใใจใง้ซ้ใชๅคๆใๅฎ็พใใฆใใพใใ
|
9 |
+
|
10 |
+
# ๅฎ่ฃ
ใฎoverview
|
11 |
+
ใขใใซใ้
็ฝฎใใใฆใใ '/logs/your-experiment/3_feature256'ใซใฏๅ้ณๅฃฐใใผใฟใใHuBERTใงๆฝๅบใใใ็นๅพด้ใ้
็ฝฎใใใฆใใพใใ
|
12 |
+
ใใใใnpyใใกใคใซใใใกใคใซๅใงใฝใผใใใ้ ็ชใง่ชญใฟ่พผใฟใใใฏใใซใ้ฃ็ตใใฆbig_npyใไฝๆใfaissใๅญฆ็ฟใใใพใใ(ใใฎใใฏใใซใฎshapeใฏ[N, 256]ใงใใ)
|
13 |
+
|
14 |
+
ๆฌTipsใงใฏใพใใใใใฎใใฉใกใผใฟใฎๆๅณใ่งฃ่ชฌใใพใใ
|
15 |
+
|
16 |
+
# ๆๆณใฎ่งฃ่ชฌ
|
17 |
+
## index factory
|
18 |
+
index factoryใฏ่คๆฐใฎ่ฟไผผ่ฟๅๆข็ดขใฎๆๆณใ็นใใใใคใใฉใคใณใstringใง่กจ่จใใfaiss็ฌ่ชใฎ่จๆณใงใใ
|
19 |
+
ใใใซใใใindex factoryใฎๆๅญๅใๅคๆดใใใ ใใงๆงใ
ใช่ฟไผผ่ฟๅๆข็ดขใฎๆๆณใ่ฉฆใใพใใ
|
20 |
+
RVCใงใฏไปฅไธใฎใใใซไฝฟใใใฆใใพใใ
|
21 |
+
|
22 |
+
```python
|
23 |
+
index = faiss.index_factory(256, "IVF%s,Flat" % n_ivf)
|
24 |
+
```
|
25 |
+
index_factoryใฎๅผๆฐใฎใใกใ1ใค็ฎใฏใใฏใใซใฎๆฌกๅ
ๆฐใ2ใค็ฎใฏindex factoryใฎๆๅญๅใงใ3ใค็ฎใซใฏ็จใใ่ท้ขใๆๅฎใใใใจใใงใใพใใ
|
26 |
+
|
27 |
+
ใใ่ฉณ็ดฐใช่จๆณใซใคใใฆใฏ
|
28 |
+
https://github.com/facebookresearch/faiss/wiki/The-index-factory
|
29 |
+
|
30 |
+
## ่ท้ขๆๆจ
|
31 |
+
embeddingใฎ้กไผผๅบฆใจใใฆ็จใใใใไปฃ่กจ็ใชๆๆจใจใใฆไปฅไธใฎไบใคใใใใพใใ
|
32 |
+
|
33 |
+
- ใฆใผใฏใชใใ่ท้ข(METRIC_L2)
|
34 |
+
- ๅ
็ฉ(METRIC_INNER_PRODUCT)
|
35 |
+
|
36 |
+
ใฆใผใฏใชใใ่ท้ขใงใฏๅๆฌกๅ
ใซใใใฆไบไนใฎๅทฎใใจใใๅ
จๆฌกๅ
ใฎๅทฎใ่ถณใใฆใใๅนณๆนๆ นใใจใใพใใใใใฏๆฅๅธธ็ใซ็จใใ2ๆฌกๅ
ใ3ๆฌกๅ
ใงใฎ่ท้ขใจๅใใงใใ
|
37 |
+
ๅ
็ฉใฏใใฎใพใพใงใฏ้กไผผๅบฆใฎๆๆจใจใใฆ็จใใใไธ่ฌ็ใซใฏL2ใใซใ ใงๆญฃ่ฆๅใใฆใใๅ
็ฉใใจใใณใตใคใณ้กไผผๅบฆใ็จใใพใใ
|
38 |
+
|
39 |
+
ใฉใกใใใใใใฏๅ ดๅใซใใใพใใใword2vec็ญใงๅพใใใembeddingใArcFace็ญใงๅญฆ็ฟใใ้กไผผ็ปๅๆค็ดขใฎใขใใซใงใฏใณใตใคใณ้กไผผๅบฆใ็จใใใใใใจใๅคใใงใใใใฏใใซXใซๅฏพใใฆl2ๆญฃ่ฆๅใnumpyใง่กใๅ ดๅใฏใ0 divisionใ้ฟใใใใใซๅๅใซๅฐใใชๅคใepsใจใใฆไปฅไธใฎใณใผใใงๅฏ่ฝใงใใ
|
40 |
+
|
41 |
+
```python
|
42 |
+
X_normed = X / np.maximum(eps, np.linalg.norm(X, ord=2, axis=-1, keepdims=True))
|
43 |
+
```
|
44 |
+
|
45 |
+
ใพใใindex factoryใซใฏ็ฌฌ3ๅผๆฐใซๆธกใๅคใ้ธใถใใจใง่จ็ฎใซ็จใใ่ท้ขๆๆจใๅคๆดใงใใพใใ
|
46 |
+
|
47 |
+
```python
|
48 |
+
index = faiss.index_factory(dimention, text, faiss.METRIC_INNER_PRODUCT)
|
49 |
+
```
|
50 |
+
|
51 |
+
## IVF
|
52 |
+
IVF(Inverted file indexes)ใฏๅ
จๆๆค็ดขใซใใใ่ปข็ฝฎใคใณใใใฏในใจไผผใใใใชใขใซใดใชใบใ ใงใใ
|
53 |
+
ๅญฆ็ฟๆใซใฏๆค็ดขๅฏพ่ฑกใซๅฏพใใฆkmeansใงใฏใฉในใฟใชใณใฐใ่กใใใฏใฉในใฟไธญๅฟใ็จใใฆใใญใใคๅๅฒใ่กใใพใใๅใใผใฟ็นใซใฏไธใคใใคใฏใฉในใฟใๅฒใๅฝใฆใใใใฎใงใใฏใฉในใฟใใใใผใฟ็นใ้ๅผใใใ่พๆธใไฝๆใใพใใ
|
54 |
+
|
55 |
+
ไพใใฐไปฅไธใฎใใใซใฏใฉในใฟใๅฒใๅฝใฆใใใๅ ดๅ
|
56 |
+
|index|ใฏใฉในใฟ|
|
57 |
+
|-----|-------|
|
58 |
+
|1|A|
|
59 |
+
|2|B|
|
60 |
+
|3|A|
|
61 |
+
|4|C|
|
62 |
+
|5|B|
|
63 |
+
|
64 |
+
ไฝๆใใใ่ปข็ฝฎใคใณใใใฏในใฏไปฅไธใฎใใใซใชใใพใใ
|
65 |
+
|
66 |
+
|ใฏใฉในใฟ|index|
|
67 |
+
|-------|-----|
|
68 |
+
|A|1, 3|
|
69 |
+
|B|2, 5|
|
70 |
+
|C|4|
|
71 |
+
|
72 |
+
ๆค็ดขๆใซใฏใพใใฏใฉในใฟใใn_probeๅใฎใฏใฉในใฟใๆค็ดขใใๆฌกใซใใใใใฎใฏใฉในใฟใซๅฑใใใใผใฟ็นใซใคใใฆ่ท้ขใ่จ็ฎใใพใใ
|
73 |
+
|
74 |
+
# ๆจๅฅจใใใใใฉใกใผใฟ
|
75 |
+
indexใฎ้ธใณๆนใซใคใใฆใฏๅ
ฌๅผใซใฌใคใใฉใคใณใใใใฎใงใใใใซๆบใใฆ่ชฌๆใใพใใ
|
76 |
+
https://github.com/facebookresearch/faiss/wiki/Guidelines-to-choose-an-index
|
77 |
+
|
78 |
+
1Mไปฅไธใฎใใผใฟใปใใใซใใใฆใฏ4bit-PQใ2023ๅนด4ๆๆ็นใงใฏfaissใงๅฉ็จใงใใๆใๅน็็ใชๆๆณใงใใ
|
79 |
+
ใใใIVFใจ็ตใฟๅใใใ4bit-PQใงๅ่ฃใ็ตใใๆๅพใซๆญฃ็ขบใชๆๆจใง่ท้ขใๅ่จ็ฎใใใซใฏไปฅไธใฎindex factoryใ็จใใใใจใง่จ่ผใงใใพใใ
|
80 |
+
|
81 |
+
```python
|
82 |
+
index = faiss.index_factory(256, "IVF1024,PQ128x4fs,RFlat")
|
83 |
+
```
|
84 |
+
|
85 |
+
## IVFใฎๆจๅฅจใใฉใกใผใฟ
|
86 |
+
IVFใฎๆฐใๅคใใใๅ ดๅใใใจใใฐใใผใฟๆฐใฎๆฐใ ใIVFใซใใ็ฒ้ๅญๅใ่กใใจใใใใฏๆ็ดใชๅ
จๆข็ดขใจๅใใซใชใๅน็ใๆชใใงใใ
|
87 |
+
1Mไปฅไธใฎๅ ดๅใงใฏIVFใฎๅคใฏใใผใฟ็นใฎๆฐNใซๅฏพใใฆ4*sqrt(N) ~ 16*sqrt(N)ใซๆจๅฅจใใฆใใพใใ
|
88 |
+
|
89 |
+
n_probeใฏn_probeใฎๆฐใซๆฏไพใใฆ่จ็ฎๆ้ใๅขใใใฎใงใ็ฒพๅบฆใจ็ธ่ซใใฆ้ฉๅใซ้ธใใงใใ ใใใๅไบบ็ใซใฏRVCใซใใใฆใใใพใง็ฒพๅบฆใฏๅฟ
่ฆใชใใจๆใใฎใงn_probe = 1ใง่ฏใใจๆใใพใใ
|
90 |
+
|
91 |
+
## FastScan
|
92 |
+
FastScanใฏ็ด็ฉ้ๅญๅใงๅคงใพใใซ่ท้ขใ่ฟไผผใใใฎใใใฌใธในใฟๅ
ใง่กใใใจใซใใ้ซ้ใซ่กใใใใซใใๆๆณใงใใ
|
93 |
+
็ด็ฉ้ๅญๅใฏๅญฆ็ฟๆใซdๆฌกๅ
ใใจ(้ๅธธใฏd=2)ใซ็ฌ็ซใใฆใฏใฉในใฟใชใณใฐใ่กใใใฏใฉในใฟๅๅฃซใฎ่ท้ขใไบๅ่จ็ฎใใฆlookup tableใไฝๆใใพใใไบๆธฌๆใฏlookup tableใ่ฆใใใจใงๅๆฌกๅ
ใฎ่ท้ขใO(1)ใง่จ็ฎใงใใพใใ
|
94 |
+
ใใฎใใใPQใฎๆฌกใซๆๅฎใใๆฐๅญใฏ้ๅธธใใฏใใซใฎๅๅใฎๆฌกๅ
ใๆๅฎใใพใใ
|
95 |
+
|
96 |
+
FastScanใซ้ขใใใใ่ฉณ็ดฐใช่ชฌๆใฏๅ
ฌๅผใฎใใญใฅใกใณใใๅ็
งใใฆใใ ใใใ
|
97 |
+
https://github.com/facebookresearch/faiss/wiki/Fast-accumulation-of-PQ-and-AQ-codes-(FastScan)
|
98 |
+
|
99 |
+
## RFlat
|
100 |
+
RFlatใฏFastScanใง่จ็ฎใใๅคงใพใใช่ท้ขใใindex factoryใฎ็ฌฌไธๅผๆฐใงๆๅฎใใๆญฃ็ขบใช่ท้ขใงๅ่จ็ฎใใๆ็คบใงใใ
|
101 |
+
kๅใฎ่ฟๅใๅๅพใใ้ใฏใk*k_factorๅใฎ็นใซใคใใฆๅ่จ็ฎใ่กใใใพใใ
|
Retrieval-based-Voice-Conversion-WebUI/docs/jp/training_tips_ja.md
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
RVCใฎ่จ็ทดใซใใใ่ชฌๆใใใใณTIPS
|
2 |
+
===============================
|
3 |
+
ๆฌTIPSใงใฏใฉใฎใใใซใใผใฟใฎ่จ็ทดใ่กใใใฆใใใใ่ชฌๆใใพใใ
|
4 |
+
|
5 |
+
# ่จ็ทดใฎๆตใ
|
6 |
+
GUIใฎ่จ็ทดใฟใใฎstepใซๆฒฟใฃใฆ่ชฌๆใใพใใ
|
7 |
+
|
8 |
+
## step1
|
9 |
+
ๅฎ้จๅใฎ่จญๅฎใ่กใใพใใ
|
10 |
+
|
11 |
+
ใพใใใขใใซใซ้ณ้ซใฌใคใ(ใใใ)ใ่ๆ
ฎใใใใใใใใง่จญๅฎใงใใพใใ่ๆ
ฎใใใชใๅ ดๅใฏใขใใซใฏ่ปฝ้ใซใชใใพใใใๆญๅฑใซใฏๅใใชใใชใใพใใ
|
12 |
+
|
13 |
+
ๅๅฎ้จใฎใใผใฟใฏ`/logs/ๅฎ้จๅ/`ใซ้
็ฝฎใใใพใใ
|
14 |
+
|
15 |
+
## step2a
|
16 |
+
้ณๅฃฐใฎ่ชญใฟ่พผใฟใจๅๅฆ็ใ่กใใพใใ
|
17 |
+
|
18 |
+
### load audio
|
19 |
+
้ณๅฃฐใฎใใใใฉใซใใๆๅฎใใใจใใใฎใใฉใซใๅ
ใซใใ้ณๅฃฐใใกใคใซใ่ชๅใง่ชญใฟ่พผใฟใพใใ
|
20 |
+
ไพใใฐ`C:Users\hoge\voices`ใๆๅฎใใๅ ดๅใ`C:Users\hoge\voices\voice.mp3`ใฏ่ชญใฟ่พผใพใใพใใใ`C:Users\hoge\voices\dir\voice.mp3`ใฏ่ชญใฟ่พผใพใใพใใใ
|
21 |
+
|
22 |
+
้ณๅฃฐใฎ่ชญใฟ่พผใฟใซใฏๅ
้จใงffmpegใๅฉ็จใใฆใใใฎใงใffmpegใงๅฏพๅฟใใฆใใๆกๅผตๅญใงใใใฐ่ชๅ็ใซ่ชญใฟ่พผใพใใพใใ
|
23 |
+
ffmpegใงint16ใซๅคๆใใๅพใfloat32ใซๅคๆใใ-1 ~ 1ใฎ้ใซๆญฃ่ฆๅใใใพใใ
|
24 |
+
|
25 |
+
### denoising
|
26 |
+
้ณๅฃฐใซใคใใฆscipyใฎfiltfiltใซใใๅนณๆปๅใ่กใใพใใ
|
27 |
+
|
28 |
+
### ้ณๅฃฐใฎๅๅฒ
|
29 |
+
ๅ
ฅๅใใ้ณๅฃฐใฏใพใใไธๅฎๆ้(max_sil_kept=5็ง?)ใใ้ทใ็ก้ณใ็ถใ้จๅใๆค็ฅใใฆ้ณๅฃฐใๅๅฒใใพใใ็ก้ณใง้ณๅฃฐใๅๅฒใใๅพใฏใ0.3็งใฎoverlapใๅซใ4็งใใจใซ้ณๅฃฐใๅๅฒใใพใใ4็งไปฅๅ
ใซๅบๅใใใ้ณๅฃฐใฏใ้ณ้ใฎๆญฃ่ฆๅใ่กใฃใๅพwavใใกใคใซใ`/logs/ๅฎ้จๅ/0_gt_wavs`ใซใใใใใ16kใฎใตใณใใชใณใฐใฌใผใใซๅคๆใใฆ`/logs/ๅฎ้จๅ/1_16k_wavs`ใซwavใใกใคใซใงไฟๅญใใพใใ
|
30 |
+
|
31 |
+
## step2b
|
32 |
+
### ใใใใฎๆฝๅบ
|
33 |
+
wavใใกใคใซใใใใใ(้ณใฎ้ซไฝ)ใฎๆ
ๅ ฑใๆฝๅบใใพใใparselmouthใpyworldใซๅ
่ตใใใฆใใๆๆณใงใใใๆ
ๅ ฑ(=f0)ใๆฝๅบใใ`/logs/ๅฎ้จๅ/2a_f0`ใซไฟๅญใใพใใใใฎๅพใใใใๆ
ๅ ฑใๅฏพๆฐใงๅคๆใใฆ1~255ใฎๆดๆฐใซๅคๆใใ`/logs/ๅฎ้จๅ/2b-f0nsf`ใซไฟๅญใใพใใ
|
34 |
+
|
35 |
+
### feature_printใฎๆฝๅบ
|
36 |
+
HuBERTใ็จใใฆwavใใกใคใซใไบๅใซembeddingใซๅคๆใใพใใ`/logs/ๅฎ้จๅ/1_16k_wavs`ใซไฟๅญใใwavใใกใคใซใ่ชญใฟ่พผใฟใHuBERTใงwavใใกใคใซใ256ๆฌกๅ
ใฎ็นๅพด้ใซๅคๆใใnpyๅฝขๅผใง`/logs/ๅฎ้จๅ/3_feature256`ใซไฟๅญใใพใใ
|
37 |
+
|
38 |
+
## step3
|
39 |
+
ใขใใซใฎใใฌใผใใณใฐใ่กใใพใใ
|
40 |
+
### ๅๅฟ่
ๅใ็จ่ช่งฃ่ชฌ
|
41 |
+
ๆทฑๅฑคๅญฆ็ฟใงใฏใใผใฟใปใใใๅๅฒใใๅฐใใใคๅญฆ็ฟใ้ฒใใฆใใใพใใไธๅใฎใขใใซใฎๆดๆฐ(step)ใงใฏใbatch_sizeๅใฎใใผใฟใๅใๅบใไบๆธฌใจ่ชคๅทฎใฎไฟฎๆญฃใ่กใใพใใใใใใใผใฟใปใใใซๅฏพใใฆไธ้ใ่กใใจไธepochใจๆฐใใพใใ
|
42 |
+
|
43 |
+
ใใฎใใใๅญฆ็ฟๆ้ใฏ 1stepๅฝใใใฎๅญฆ็ฟๆ้ x (ใใผใฟใปใใๅ
ใฎใใผใฟๆฐ รท ใใใใตใคใบ) x epochๆฐ ใใใใพใใไธ่ฌใซใใใใตใคใบใๅคงใใใใใปใฉๅญฆ็ฟใฏๅฎๅฎใใ(1stepๅฝใใใฎๅญฆ็ฟๆ้รทใใใใตใคใบ)ใฏๅฐใใใชใใพใใใใใฎๅGPUใฎใกใขใชใๅคใไฝฟ็จใใพใใGPUใฎRAMใฏnvidia-smiใณใใณใ็ญใง็ขบ่ชใงใใพใใๅฎ่ก็ฐๅขใฎใใทใณใซๅใใใฆใใใใตใคใบใใงใใใ ใๅคงใใใใใจใใ็ญๆ้ใงๅญฆ็ฟใๅฏ่ฝใงใใ
|
44 |
+
|
45 |
+
### pretrained modelใฎๆๅฎ
|
46 |
+
RVCใงใฏใขใใซใฎ่จ็ทดใ0ใใใงใฏใชใใไบๅๅญฆ็ฟๆธใฟใฎ้ใฟใใ้ๅงใใใใใๅฐใชใใใผใฟใปใใใงๅญฆ็ฟใ่กใใพใใ
|
47 |
+
|
48 |
+
ใใใฉใซใใงใฏ
|
49 |
+
|
50 |
+
- ้ณ้ซใฌใคใใ่ๆ
ฎใใๅ ดๅใ`RVCใฎใใๅ ดๆ/pretrained/f0G40k.pth`ใจ`RVCใฎใใๅ ดๆ/pretrained/f0D40k.pth`ใ่ชญใฟ่พผใฟใพใใ
|
51 |
+
- ้ณ้ซใฌใคใใ่ๆ
ฎใใชใๅ ดๅใ`RVCใฎใใๅ ดๆ/pretrained/G40k.pth`ใจ`RVCใฎใใๅ ดๆ/pretrained/D40k.pth`ใ่ชญใฟ่พผใฟใพใใ
|
52 |
+
|
53 |
+
ๅญฆ็ฟๆใฏsave_every_epochใใจใซใขใใซใฎใใฉใกใผใฟใ`logs/ๅฎ้จๅ/G_{}.pth`ใจ`logs/ๅฎ้จๅ/D_{}.pth`ใซไฟๅญใใใพใใใใใฎใในใๆๅฎใใใใจใงๅญฆ็ฟใๅ้ใใใใใใใใฏ้ใๅฎ้จใงๅญฆ็ฟใใใขใใซใฎ้ใฟใใๅญฆ็ฟใ้ๅงใงใใพใใ
|
54 |
+
|
55 |
+
### indexใฎๅญฆ็ฟ
|
56 |
+
RVCใงใฏๅญฆ็ฟๆใซไฝฟใใใHuBERTใฎ็นๅพด้ใไฟๅญใใๆจ่ซๆใฏๅญฆ็ฟๆใฎ็นๅพด้ใใ่ฟใ็นๅพด้ใๆขใใฆใใฆๆจ่ซใ่กใใพใใใใฎๆค็ดขใ้ซ้ใซ่กใใใใซไบๅใซindexใฎๅญฆ็ฟใ่กใใพใใ
|
57 |
+
indexใฎๅญฆ็ฟใซใฏ่ฟไผผ่ฟๅๆข็ดขใฉใคใใฉใชใฎfaissใ็จใใพใใ`/logs/ๅฎ้จๅ/3_feature256`ใฎ็นๅพด้ใ่ชญใฟ่พผใฟใใใใ็จใใฆๅญฆ็ฟใใindexใ`/logs/ๅฎ้จๅ/add_XXX.index`ใจใใฆไฟๅญใใพใใ
|
58 |
+
(20230428updateใใtotal_fea.npyใฏindexใใ่ชญใฟ่พผใใฎใงไธ่ฆใซใชใใพใใใ)
|
59 |
+
|
60 |
+
### ใใฟใณใฎ่ชฌๆ
|
61 |
+
- ใขใใซใฎใใฌใผใใณใฐ: step2bใพใงใๅฎ่กใใๅพใใใฎใใฟใณใๆผใใจใขใใซใฎๅญฆ็ฟใ่กใใพใใ
|
62 |
+
- ็นๅพดใคใณใใใฏในใฎใใฌใผใใณใฐ: ใขใใซใฎใใฌใผใใณใฐๅพใindexใฎๅญฆ็ฟใ่กใใพใใ
|
63 |
+
- ใฏใณใฏใชใใฏใใฌใผใใณใฐ: step2bใพใงใจใขใใซใฎใใฌใผใใณใฐใ็นๅพดใคใณใใใฏในใฎใใฌใผใใณใฐใไธๆฌใง่กใใพใใ
|
64 |
+
|
Retrieval-based-Voice-Conversion-WebUI/docs/kr/Changelog_KO.md
ADDED
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
### 2023-08-13
|
2 |
+
1-์ ๊ธฐ์ ์ธ ๋ฒ๊ทธ ์์
|
3 |
+
- ์ต์ ์ด ์ํฌํฌ ์๋ฅผ 1๋ก ๋ณ๊ฒฝํ๊ณ , ์ต์ ์ด ์ํฌํฌ ์๋ฅผ 2๋ก ๋ณ๊ฒฝํฉ๋๋ค.
|
4 |
+
- ์ฌ์ ํ๋ จ(pre-train) ๋ชจ๋ธ์ ์ฌ์ฉํ์ง ์๋ ํ๋ จ ์ค๋ฅ ์์
|
5 |
+
- ๋ฐ์ฃผ ๋ณด์ปฌ ๋ถ๋ฆฌ ํ ๊ทธ๋ํฝ ๋ฉ๋ชจ๋ฆฌ ์ง์ฐ๊ธฐ
|
6 |
+
- ํ์ด์ฆ ์ ์ฅ ๊ฒฝ๋ก ์ ๋ ๊ฒฝ๋ก๋ฅผ ์๋ ๊ฒฝ๋ก๋ก ๋ณ๊ฒฝ
|
7 |
+
- ๊ณต๋ฐฑ์ด ํฌํจ๋ ๊ฒฝ๋ก ์ง์(ํ๋ จ ์ธํธ ๊ฒฝ๋ก์ ์คํ ์ด๋ฆ ๋ชจ๋ ์ง์๋๋ฉฐ ๋ ์ด์ ์ค๋ฅ๊ฐ ๋ณด๊ณ ๋์ง ์์)
|
8 |
+
- ํ์ผ ๋ชฉ๋ก์์ ํ์ utf8 ์ธ์ฝ๋ฉ ์ทจ์
|
9 |
+
- ์ค์๊ฐ ์์ฑ ๋ณ๊ฒฝ ์ค faiss ๊ฒ์์ผ๋ก ์ธํ CPU ์๋ชจ ๋ฌธ์ ํด๊ฒฐ
|
10 |
+
|
11 |
+
2-ํค ์
๋ฐ์ดํธ
|
12 |
+
- ํ์ฌ ๊ฐ์ฅ ๊ฐ๋ ฅํ ์คํ ์์ค ๋ณด์ปฌ ํผ์น ์ถ์ถ ๋ชจ๋ธ RMVPE๋ฅผ ํ๋ จํ๊ณ , ์ด๋ฅผ RVC ํ๋ จ, ์คํ๋ผ์ธ/์ค์๊ฐ ์ถ๋ก ์ ์ฌ์ฉํ๋ฉฐ, PyTorch/Onx/DirectML์ ์ง์ํฉ๋๋ค.
|
13 |
+
- ํ์ดํ ์น_DML์ ํตํ AMD ๋ฐ ์ธํ
๊ทธ๋ํฝ ์นด๋ ์ง์
|
14 |
+
(1) ์ค์๊ฐ ์์ฑ ๋ณํ (2) ์ถ๋ก (3) ๋ณด์ปฌ ๋ฐ์ฃผ ๋ถ๋ฆฌ (4) ํ์ฌ ์ง์๋์ง ์๋ ํ๋ จ์ CPU ํ๋ จ์ผ๋ก ์ ํ, Onnx_Dml์ ํตํ gpu์ RMVPE ์ถ๋ก ์ง์
|
15 |
+
|
16 |
+
### 2023๋
6์ 18์ผ ์
๋ฐ์ดํธ
|
17 |
+
|
18 |
+
- v2 ๋ฒ์ ์์ ์๋ก์ด 32k์ 48k ์ฌ์ ํ์ต ๋ชจ๋ธ์ ์ถ๊ฐ.
|
19 |
+
- non-f0 ๋ชจ๋ธ๋ค์ ์ถ๋ก ์ค๋ฅ ์์ .
|
20 |
+
- ํ์ต ์ธํธ๊ฐ 1์๊ฐ์ ๋์ด๊ฐ๋ ๊ฒฝ์ฐ, ์ธ๋ฑ์ค ์์ฑ ๋จ๊ณ์์ minibatch-kmeans์ ์ฌ์ฉํด, ํ์ต์๋ ๊ฐ์ํ.
|
21 |
+
- [huggingface](https://huggingface.co/spaces/lj1995/vocal2guitar)์์ vocal2guitar ์ ๊ณต.
|
22 |
+
- ๋ฐ์ดํฐ ์ฒ๋ฆฌ ๋จ๊ณ์์ ์ด์ ๊ฐ ์๋์ผ๋ก ์ ๊ฑฐ.
|
23 |
+
- ONNX๋ก ๋ด๋ณด๋ด๋(export) ์ต์
ํญ ์ถ๊ฐ.
|
24 |
+
|
25 |
+
์
๋ฐ์ดํธ์ ์ ์ฉ๋์ง ์์์ง๋ง ์๋ํ ๊ฒ๋ค :
|
26 |
+
|
27 |
+
- ~~์๊ณ์ด ์ฐจ์์ ์ถ๊ฐํ์ฌ ํน์ง ๊ฒ์์ ์งํํ์ง๋ง, ์ ์๋ฏธํ ํจ๊ณผ๋ ์์์ต๋๋ค.~~
|
28 |
+
- ~~PCA ์ฐจ์ ์ถ์๋ฅผ ์ถ๊ฐํ์ฌ ํน์ง ๊ฒ์์ ์งํํ์ง๋ง, ์ ์๋ฏธํ ํจ๊ณผ๋ ์์์ต๋๋ค.~~
|
29 |
+
- ~~ONNX ์ถ๋ก ์ ์ง์ํ๋ ๊ฒ์ ์คํจํ์ต๋๋ค. nsf ์์ฑ์, Pytorch๊ฐ ํ์ํ๊ธฐ ๋๋ฌธ์
๋๋ค.~~
|
30 |
+
- ~~ํ๋ จ ์ค์ ์
๋ ฅ์ ๋ํ ์๊ณ , ์ฑ๋ณ, ์ดํ๋ผ์ด์ , ๋
ธ์ด์ฆ ๋ฑ ๋ฌด์์๋ก ๊ฐํํ๋ ๊ฒ์, ์ ์๋ฏธํ ํจ๊ณผ๋ ์์์ต๋๋ค.~~
|
31 |
+
|
32 |
+
์ถํ ์
๋ฐ์ดํธ ๋ชฉ๋ก:
|
33 |
+
|
34 |
+
- ~~Vocos-RVC (์ํ ๋ณด์ฝ๋) ํตํฉ ์์ .~~
|
35 |
+
- ~~ํ์ต ๋จ๊ณ์ ์๊ณ ์ธ์์ ์ํ Crepe ์ง์ ์์ .~~
|
36 |
+
- ~~Crepe์ ์ ๋ฐ๋๋ฅผ REC-config์ ๋๊ธฐํํ์ฌ ์ง์ ์์ .~~
|
37 |
+
- FO ์๋ํฐ ์ง์ ์์ .
|
38 |
+
|
39 |
+
### 2023๋
5์ 28์ผ ์
๋ฐ์ดํธ
|
40 |
+
|
41 |
+
- v2 jupyter notebook ์ถ๊ฐ, ํ๊ตญ์ด ์
๋ฐ์ดํธ ๋ก๊ทธ ์ถ๊ฐ, ์์กด์ฑ ๋ชจ๋ ์ผ๋ถ ์์ .
|
42 |
+
- ๋ฌด์ฑ์ ๋ฐ ์จ์๋ฆฌ ๋ณดํธ ๋ชจ๋ ์ถ๊ฐ.
|
43 |
+
- crepe-full pitch ๊ฐ์ง ์ง์.
|
44 |
+
- UVR5 ๋ณด์ปฌ ๋ถ๋ฆฌ: ๋๋ฒ๋ธ ๋ฐ ๋-์์ฝ ๋ชจ๋ธ ์ง์.
|
45 |
+
- index ์ด๋ฆ์ experiment ์ด๋ฆ๊ณผ ๋ฒ์ ์ถ๊ฐ.
|
46 |
+
- ๋ฐฐ์น ์์ฑ ๋ณํ ์ฒ๋ฆฌ ๋ฐ UVR5 ๋ณด์ปฌ ๋ถ๋ฆฌ ์, ์ฌ์ฉ์๊ฐ ์๋์ผ๋ก ์ถ๋ ฅ ์ค๋์ค์ ๋ด๋ณด๋ด๊ธฐ(export) ํ์์ ์ ํํ ์ ์๋๋ก ์ง์.
|
47 |
+
- 32k ํ๋ จ ๋ชจ๋ธ ์ง์ ์ข
๋ฃ.
|
48 |
+
|
49 |
+
### 2023๋
5์ 13์ผ ์
๋ฐ์ดํธ
|
50 |
+
|
51 |
+
- ์ํด๋ฆญ ํจํค์ง์ ์ด์ ๋ฒ์ ๋ฐํ์ ๋ด, ๋ถํ์ํ ์ฝ๋(lib.infer_pack ๋ฐ uvr5_pack) ์ ๊ฑฐ.
|
52 |
+
- ํ๋ จ ์ธํธ ์ ์ฒ๋ฆฌ์ ์ ์ฌ ๋ค์ค ์ฒ๋ฆฌ ๋ฒ๊ทธ ์์ .
|
53 |
+
- Harvest ํผ์น ์ธ์ ์๊ณ ๋ฆฌ์ฆ์ ๋ํ ์ค์์ ํํฐ๋ง ๋ฐ๊ฒฝ ์กฐ์ ์ถ๊ฐ.
|
54 |
+
- ์ค๋์ค ๋ด๋ณด๋ผ ๋, ํ์ฒ๋ฆฌ ๋ฆฌ์ํ๋ง ์ง์.
|
55 |
+
- ํ๋ จ์ ๋ํ ๋ค์ค ์ฒ๋ฆฌ "n_cpu" ์ค์ ์ด "f0 ์ถ์ถ"์์ "๋ฐ์ดํฐ ์ ์ฒ๋ฆฌ ๋ฐ f0 ์ถ์ถ"๋ก ๋ณ๊ฒฝ.
|
56 |
+
- logs ํด๋ ํ์ ์ธ๋ฑ์ค ๊ฒฝ๋ก๋ฅผ ์๋์ผ๋ก ๊ฐ์ง ๋ฐ ๋๋กญ๋ค์ด ๋ชฉ๋ก ๊ธฐ๋ฅ ์ ๊ณต.
|
57 |
+
- ํญ ํ์ด์ง์ "์์ฃผ ๋ฌป๋ ์ง๋ฌธ๊ณผ ๋ต๋ณ" ์ถ๊ฐ. (github RVC wiki ์ฐธ์กฐ ๊ฐ๋ฅ)
|
58 |
+
- ๋์ผํ ์
๋ ฅ ์ค๋์ค ๊ฒฝ๋ก๋ฅผ ์ฌ์ฉํ ๋ ์ถ๋ก , Harvest ํผ์น๋ฅผ ์บ์.
|
59 |
+
(์ฃผ์: Harvest ํผ์น ์ถ์ถ์ ์ฌ์ฉํ๋ฉด ์ ์ฒด ํ์ดํ๋ผ์ธ์ ๊ธธ๊ณ ๋ฐ๋ณต์ ์ธ ํผ์น ์ถ์ถ ๊ณผ์ ์ ๊ฑฐ์น๊ฒ๋ฉ๋๋ค. ์บ์ฑ์ ํ์ง ์๋๋ค๋ฉด, ์ฒซ inference ์ดํ์ ๋จ๊ณ์์ timbre, ์ธ๋ฑ์ค, ํผ์น ์ค์์ ํํฐ๋ง ๋ฐ๊ฒฝ ์ค์ ๋ฑ ๋๊ธฐ์๊ฐ์ด ์์ฒญ๋๊ฒ ๊ธธ์ด์ง๋๋ค!)
|
60 |
+
|
61 |
+
### 2023๋
5์ 14์ผ ์
๋ฐ์ดํธ
|
62 |
+
|
63 |
+
- ์
๋ ฅ์ ๋ณผ๋ฅจ ์บก์์ ์ฌ์ฉํ์ฌ ์ถ๋ ฅ์ ๋ณผ๋ฅจ ์บก์์ ํผํฉํ๊ฑฐ๋ ๋์ฒด. (์
๋ ฅ์ด ๋ฌด์์ด๊ฑฐ๋ ์ถ๋ ฅ์ ๋
ธ์ด์ฆ ๋ฌธ์ ๋ฅผ ์ต์ํ ํ ์ ์์ต๋๋ค. ์
๋ ฅ ์ค๋์ค์ ๋ฐฐ๊ฒฝ ๋
ธ์ด์ฆ(์์)๊ฐ ํฐ ๊ฒฝ์ฐ ํด๋น ๊ธฐ๋ฅ์ ์ฌ์ฉํ์ง ์๋ ๊ฒ์ด ์ข์ต๋๋ค. ๊ธฐ๋ณธ์ ์ผ๋ก ๋นํ์ฑํ ๋์ด์๋ ์ต์
์
๋๋ค. (1: ๋นํ์ฑํ ์ํ))
|
64 |
+
- ์ถ์ถ๋ ์ํ ๋ชจ๋ธ์ ์ง์ ๋ ๋น๋๋ก ์ ์ฅํ๋ ๊ธฐ๋ฅ์ ์ง์. (๋ค์ํ ์ํญ ํ์์์ ์ฑ๋ฅ์ ๋ณด๋ ค๊ณ ํ์ง๋ง ๋ชจ๋ ๋ํ ์ฒดํฌํฌ์ธํธ๋ฅผ ์ ์ฅํ๊ณ ๋งค๋ฒ ckpt ์ฒ๋ฆฌ๋ฅผ ํตํด ์ํ ๋ชจ๋ธ์ ์๋์ผ๋ก ์ถ์ถํ๊ณ ์ถ์ง ์์ ๊ฒฝ์ฐ ์ด ๊ธฐ๋ฅ์ ๋งค์ฐ ์ ์ฉํฉ๋๋ค)
|
65 |
+
- ํ๊ฒฝ ๋ณ์๋ฅผ ์ค์ ํ์ฌ ์๋ฒ์ ์ ์ญ ํ๋ก์๋ก ์ธํ "์ฐ๊ฒฐ ์ค๋ฅ" ๋ฌธ์ ํด๊ฒฐ.
|
66 |
+
- ์ฌ์ ํ๋ จ๋ v2 ๋ชจ๋ธ ์ง์. (ํ์ฌ 40k ๋ฒ์ ๋ง ํ
์คํธ๋ฅผ ์ํด ๊ณต๊ฐ์ ์ผ๋ก ์ฌ์ฉ ๊ฐ๋ฅํ๋ฉฐ, ๋ค๋ฅธ ๋ ๊ฐ์ ์ํ๋ง ๋น์จ์ ์์ง ์์ ํ ํ๋ จ๋์ง ์์ ๋ณด๏ฟฝ๏ฟฝ๏ฟฝ๋์์ต๋๋ค.)
|
67 |
+
- ์ถ๋ก ์ , 1์ ์ด๊ณผํ๋ ๊ณผ๋ํ ๋ณผ๋ฅจ ์ ํ.
|
68 |
+
- ๋ฐ์ดํฐ ์ ์ฒ๋ฆฌ ๋งค๊ฐ๋ณ์ ๋ฏธ์ธ ์กฐ์ .
|
69 |
+
|
70 |
+
### 2023๋
4์ 9์ผ ์
๋ฐ์ดํธ
|
71 |
+
|
72 |
+
- GPU ์ด์ฉ๋ฅ ํฅ์์ ์ํด ํ๋ จ ํ๋ผ๋ฏธํฐ ์์ : A100์ 25%์์ ์ฝ 90%๋ก ์ฆ๊ฐ, V100: 50%์์ ์ฝ 90%๋ก ์ฆ๊ฐ, 2060S: 60%์์ ์ฝ 85%๋ก ์ฆ๊ฐ, P40: 25%์์ ์ฝ 95%๋ก ์ฆ๊ฐ.
|
73 |
+
ํ๋ จ ์๋๊ฐ ํฌ๊ฒ ํฅ์.
|
74 |
+
- ๋งค๊ฐ๋ณ์ ๊ธฐ์ค ๋ณ๊ฒฝ: total batch_size๋ GPU๋น batch_size๋ฅผ ์๋ฏธ.
|
75 |
+
- total_epoch ๋ณ๊ฒฝ: ์ต๋ ํ๋๊ฐ 100์์ 1000์ผ๋ก ์ฆ๊ฐ. ๊ธฐ๋ณธ๊ฐ์ด 10์์ 20์ผ๋ก ์ฆ๊ฐ.
|
76 |
+
- ckpt ์ถ์ถ์ด ํผ์น๋ฅผ ์๋ชป ์ธ์ํ์ฌ ๋น์ ์์ ์ธ ์ถ๋ก ์ ์ ๋ฐํ๋ ๋ฌธ์ ์์ .
|
77 |
+
- ๋ถ์ฐ ํ๋ จ ๊ณผ์ ์์ ๊ฐ ๋ญํฌ๋ง๋ค ckpt๋ฅผ ์ ์ฅํ๋ ๋ฌธ์ ์์ .
|
78 |
+
- ํน์ฑ ์ถ์ถ ๊ณผ์ ์ ๋๋
ธ ํน์ฑ ํํฐ๋ง ์ ์ฉ.
|
79 |
+
- ๋ฌด์ ์
๋ ฅ/์ถ๋ ฅ์ด ๋๋คํ๊ฒ ์์์ ์์ฑํ๋ ๋ฌธ์ ์์ . (์ด์ ๋ชจ๋ธ์ ์ ๋ฐ์ดํฐ์
์ผ๋ก ๋ค์ ํ๋ จํด์ผ ํฉ๋๋ค)
|
80 |
+
|
81 |
+
### 2023๋
4์ 16์ผ ์
๋ฐ์ดํธ
|
82 |
+
|
83 |
+
- ๋ก์ปฌ ์ค์๊ฐ ์์ฑ ๋ณ๊ฒฝ ๋ฏธ๋-GUI ์ถ๊ฐ, go-realtime-gui.bat๋ฅผ ๋๋ธ ํด๋ฆญํ์ฌ ์์.
|
84 |
+
- ํ๋ จ ๋ฐ ์ถ๋ก ์ค 50Hz ์ดํ์ ์ฃผํ์ ๋์ญ์ ๋ํด ํํฐ๋ง ์ ์ฉ.
|
85 |
+
- ํ๋ จ ๋ฐ ์ถ๋ก ์ pyworld ์ต์ ํผ์น ์ถ์ถ์ ๊ธฐ๋ณธ 80์์ 50์ผ๋ก ๋ฎ์ถค. ์ด๋ก ์ธํด, 50-80Hz ์ฌ์ด์ ๋จ์ฑ ์ ์์ด ๋ฌด์ํ๋์ง ์์ต๋๋ค.
|
86 |
+
- ์์คํ
์ง์ญ์ ๋ฐ๋ฅธ WebUI ์ธ์ด ๋ณ๊ฒฝ ์ง์. (ํ์ฌ en_US, ja_JP, zh_CN, zh_HK, zh_SG, zh_TW๋ฅผ ์ง์ํ๋ฉฐ, ์ง์๋์ง ์๋ ๊ฒฝ์ฐ ๊ธฐ๋ณธ๊ฐ์ en_US)
|
87 |
+
- ์ผ๋ถ GPU์ ์ธ์ ์์ . (์: V100-16G ์ธ์ ์คํจ, P4 ์ธ์ ์คํจ)
|
88 |
+
|
89 |
+
### 2023๋
4์ 28์ผ ์
๋ฐ์ดํธ
|
90 |
+
|
91 |
+
- Faiss ์ธ๋ฑ์ค ์ค์ ์
๊ทธ๋ ์ด๋๋ก ์๋๊ฐ ๋ ๋นจ๋ผ์ง๊ณ ํ์ง์ด ํฅ์.
|
92 |
+
- total_npy์ ๋ํ ์์กด์ฑ ์ ๊ฑฐ. ์ถํ์ ๋ชจ๋ธ ๊ณต์ ๋ total_npy ์
๋ ฅ์ ํ์๋ก ํ์ง ์์ต๋๋ค.
|
93 |
+
- 16 ์๋ฆฌ์ฆ GPU์ ๋ํ ์ ํ ํด์ , 4GB VRAM GPU์ ๋ํ 4GB ์ถ๋ก ์ค์ ์ ๊ณต.
|
94 |
+
- ์ผ๋ถ ์ค๋์ค ํ์์ ๋ํ UVR5 ๋ณด์ปฌ ๋๋ฐ ๋ถ๋ฆฌ์์์ ๋ฒ๊ทธ ์์ .
|
95 |
+
- ์ค์๊ฐ ์์ฑ ๋ณ๊ฒฝ ๋ฏธ๋-GUI๋ ์ด์ non-40k ๋ฐ non-lazy ํผ์น ๋ชจ๋ธ์ ์ง์ํฉ๋๋ค.
|
96 |
+
|
97 |
+
### ์ถํ ๊ณํ
|
98 |
+
|
99 |
+
Features:
|
100 |
+
|
101 |
+
- ๋ค์ค ์ฌ์ฉ์ ํ๋ จ ํญ ์ง์.(์ต๋ 4๋ช
)
|
102 |
+
|
103 |
+
Base model:
|
104 |
+
|
105 |
+
- ํ๋ จ ๋ฐ์ดํฐ์
์ ์จ์๋ฆฌ wav ํ์ผ์ ์ถ๊ฐํ์ฌ, ๋ณด์ปฌ์ ํธํก์ด ๋
ธ์ด์ฆ๋ก ๋ณํ๋๋ ๋ฌธ์ ์์ .
|
106 |
+
- ๋ณด์ปฌ ํ๋ จ ์ธํธ์ ๊ธฐ๋ณธ ๋ชจ๋ธ์ ์ถ๊ฐํ๊ธฐ ์ํ ์์
์ ์งํ์ค์ด๋ฉฐ, ์ด๋ ํฅํ์ ๋ฐํ๋ ์์ .
|