jayparmr commited on
Commit
fa6c160
ยท
1 Parent(s): 9f5ea91

Upload 199 files

Browse files
This view is limited to 50 files because it contains too many changes. ย  See raw diff
Files changed (50) hide show
  1. Retrieval-based-Voice-Conversion-WebUI/.env +8 -0
  2. Retrieval-based-Voice-Conversion-WebUI/.github/PULL_REQUEST_TEMPLATE.md +30 -0
  3. Retrieval-based-Voice-Conversion-WebUI/.github/workflows/docker.yml +70 -0
  4. Retrieval-based-Voice-Conversion-WebUI/.github/workflows/genlocale.yml +18 -12
  5. Retrieval-based-Voice-Conversion-WebUI/.github/workflows/pull_format.yml +26 -13
  6. Retrieval-based-Voice-Conversion-WebUI/.github/workflows/push_format.yml +16 -10
  7. Retrieval-based-Voice-Conversion-WebUI/.github/workflows/sync_dev.yml +23 -0
  8. Retrieval-based-Voice-Conversion-WebUI/.github/workflows/unitest.yml +5 -5
  9. Retrieval-based-Voice-Conversion-WebUI/.gitignore +17 -0
  10. Retrieval-based-Voice-Conversion-WebUI/Dockerfile +47 -0
  11. Retrieval-based-Voice-Conversion-WebUI/LICENSE +2 -0
  12. Retrieval-based-Voice-Conversion-WebUI/MITๅ่ฎฎๆšจ็›ธๅ…ณๅผ•็”จๅบ“ๅ่ฎฎ +45 -0
  13. Retrieval-based-Voice-Conversion-WebUI/README.md +90 -21
  14. Retrieval-based-Voice-Conversion-WebUI/Retrieval_based_Voice_Conversion_WebUI.ipynb +401 -379
  15. Retrieval-based-Voice-Conversion-WebUI/Retrieval_based_Voice_Conversion_WebUI_v2.ipynb +422 -0
  16. Retrieval-based-Voice-Conversion-WebUI/assets/Synthesizer_inputs.pth +3 -0
  17. Retrieval-based-Voice-Conversion-WebUI/assets/hubert/.gitignore +3 -0
  18. Retrieval-based-Voice-Conversion-WebUI/assets/hubert/hubert_inputs.pth +3 -0
  19. Retrieval-based-Voice-Conversion-WebUI/assets/pretrained/.gitignore +2 -0
  20. Retrieval-based-Voice-Conversion-WebUI/assets/pretrained_v2/.gitignore +2 -0
  21. Retrieval-based-Voice-Conversion-WebUI/assets/rmvpe/.gitignore +3 -0
  22. Retrieval-based-Voice-Conversion-WebUI/assets/rmvpe/rmvpe_inputs.pth +3 -0
  23. Retrieval-based-Voice-Conversion-WebUI/assets/uvr5_weights/.gitignore +2 -0
  24. Retrieval-based-Voice-Conversion-WebUI/assets/weights/.gitignore +2 -0
  25. Retrieval-based-Voice-Conversion-WebUI/configs/config.json +1 -0
  26. Retrieval-based-Voice-Conversion-WebUI/configs/config.py +251 -0
  27. Retrieval-based-Voice-Conversion-WebUI/configs/v1/32k.json +46 -0
  28. Retrieval-based-Voice-Conversion-WebUI/configs/v1/40k.json +46 -0
  29. Retrieval-based-Voice-Conversion-WebUI/configs/v1/48k.json +46 -0
  30. Retrieval-based-Voice-Conversion-WebUI/configs/v2/32k.json +46 -0
  31. Retrieval-based-Voice-Conversion-WebUI/configs/v2/48k.json +46 -0
  32. Retrieval-based-Voice-Conversion-WebUI/docker-compose.yml +20 -0
  33. Retrieval-based-Voice-Conversion-WebUI/docs/cn/Changelog_CN.md +109 -0
  34. Retrieval-based-Voice-Conversion-WebUI/docs/cn/faq.md +108 -0
  35. Retrieval-based-Voice-Conversion-WebUI/docs/en/Changelog_EN.md +105 -0
  36. Retrieval-based-Voice-Conversion-WebUI/docs/en/README.en.md +194 -0
  37. Retrieval-based-Voice-Conversion-WebUI/docs/en/faiss_tips_en.md +102 -0
  38. Retrieval-based-Voice-Conversion-WebUI/docs/en/faq_en.md +119 -0
  39. Retrieval-based-Voice-Conversion-WebUI/docs/en/training_tips_en.md +65 -0
  40. Retrieval-based-Voice-Conversion-WebUI/docs/fr/Changelog_FR.md +102 -0
  41. Retrieval-based-Voice-Conversion-WebUI/docs/fr/README.fr.md +146 -0
  42. Retrieval-based-Voice-Conversion-WebUI/docs/fr/faiss_tips_fr.md +105 -0
  43. Retrieval-based-Voice-Conversion-WebUI/docs/fr/faq_fr.md +169 -0
  44. Retrieval-based-Voice-Conversion-WebUI/docs/fr/training_tips_fr.md +65 -0
  45. Retrieval-based-Voice-Conversion-WebUI/docs/jp/README.ja.md +109 -0
  46. Retrieval-based-Voice-Conversion-WebUI/docs/jp/faiss_tips_ja.md +101 -0
  47. Retrieval-based-Voice-Conversion-WebUI/docs/jp/training_tips_ja.md +64 -0
  48. Retrieval-based-Voice-Conversion-WebUI/docs/kr/Changelog_KO.md +106 -0
  49. Retrieval-based-Voice-Conversion-WebUI/docs/kr/README.ko.han.md +105 -0
  50. Retrieval-based-Voice-Conversion-WebUI/docs/kr/README.ko.md +117 -0
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 CHANGED
@@ -1,32 +1,38 @@
1
- name: genlocale
2
  on:
3
  push:
4
  branches:
5
  - main
 
6
  jobs:
7
- golangci:
8
- name: genlocale
9
  runs-on: ubuntu-latest
10
  steps:
11
- - name: Check out
12
- uses: actions/checkout@master
13
 
14
  - name: Run locale generation
15
  run: |
16
- python3 extract_locale.py
17
- cd i18n && python3 locale_diff.py
 
18
 
19
  - name: Commit back
20
  if: ${{ !github.head_ref }}
 
21
  continue-on-error: true
22
  run: |
23
  git config --local user.name 'github-actions[bot]'
24
- git config --local user.email '41898282+github-actions[bot]@users.noreply.github.com'
25
  git add --all
26
- git commit -m "๐ŸŽจ ๅŒๆญฅ locale"
27
 
28
  - name: Create Pull Request
29
- if: ${{ !github.head_ref }}
30
  continue-on-error: true
31
- uses: peter-evans/create-pull-request@v4
32
-
 
 
 
 
 
 
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 CHANGED
@@ -1,35 +1,48 @@
1
- name: pull format
2
 
3
- on: [pull_request]
 
 
4
 
5
- permissions:
6
- contents: write
7
  jobs:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  pull_format:
9
  runs-on: ubuntu-latest
 
 
 
10
  continue-on-error: true
 
11
  steps:
12
- - name: checkout
13
  continue-on-error: true
14
  uses: actions/checkout@v3
15
  with:
16
  ref: ${{ github.head_ref }}
17
  fetch-depth: 0
18
-
19
-
20
  - name: Set up Python ${{ matrix.python-version }}
21
  uses: actions/setup-python@v4
22
  with:
23
  python-version: ${{ matrix.python-version }}
24
 
25
  - name: Install Black
26
- run: pip install black
27
 
28
  - name: Run Black
29
  # run: black $(git ls-files '*.py')
30
  run: black .
31
-
32
- - name: Commit Back
33
- uses: stefanzweifel/git-auto-commit-action@v4
34
- with:
35
- commit_message: Apply Code Formatter Change
 
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 CHANGED
@@ -1,16 +1,19 @@
1
- name: push format
2
 
3
  on:
4
  push:
5
  branches:
6
  - main
 
7
 
8
- permissions:
9
- contents: write
10
- pull-requests: write
11
  jobs:
12
  push_format:
13
  runs-on: ubuntu-latest
 
 
 
 
 
14
  steps:
15
  - uses: actions/checkout@v3
16
  with:
@@ -22,7 +25,7 @@ jobs:
22
  python-version: ${{ matrix.python-version }}
23
 
24
  - name: Install Black
25
- run: pip install black
26
 
27
  - name: Run Black
28
  # run: black $(git ls-files '*.py')
@@ -35,12 +38,15 @@ jobs:
35
  git config --local user.email "github-actions[bot]@users.noreply.github.com"
36
  git config --local user.name "github-actions[bot]"
37
  git add --all
38
- git commit -m "Format code"
39
-
40
  - name: Create Pull Request
41
  if: steps.commitback.outcome == 'success'
42
  continue-on-error: true
43
- uses: peter-evans/create-pull-request@v4
44
  with:
45
- body: Apply Code Formatter Change
46
- commit-message: Automatic code format
 
 
 
 
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:
 
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')
 
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 CHANGED
@@ -1,4 +1,4 @@
1
- name: unitest
2
  on: [ push, pull_request ]
3
  jobs:
4
  build:
@@ -7,7 +7,7 @@ jobs:
7
  matrix:
8
  python-version: ["3.8", "3.9", "3.10"]
9
  os: [ubuntu-latest]
10
- fail-fast: false
11
 
12
  steps:
13
  - uses: actions/checkout@master
@@ -30,7 +30,7 @@ jobs:
30
  run: |
31
  mkdir -p logs/mi-test
32
  touch logs/mi-test/preprocess.log
33
- python trainset_preprocess_pipeline_print.py logs/mute/0_gt_wavs 48000 8 logs/mi-test True
34
  touch logs/mi-test/extract_f0_feature.log
35
- python extract_f0_print.py logs/mi-test $(nproc) pm
36
- python extract_feature_print.py cpu 1 0 0 logs/mi-test
 
1
+ name: Unit Test
2
  on: [ push, pull_request ]
3
  jobs:
4
  build:
 
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
 
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 CHANGED
@@ -2,5 +2,22 @@
2
  __pycache__
3
  /TEMP
4
  *.pyd
 
 
 
 
 
 
 
 
 
5
  hubert_base.pt
 
 
 
 
6
  /logs
 
 
 
 
 
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 CHANGED
@@ -1,6 +1,8 @@
1
  MIT License
2
 
3
  Copyright (c) 2023 liujing04
 
 
4
 
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
  of this software and associated documentation files (the "Software"), to deal
 
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
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 CHANGED
@@ -1,34 +1,40 @@
1
  <div align="center">
2
 
3
  <h1>Retrieval-based-Voice-Conversion-WebUI</h1>
4
- ไธ€ไธชๅŸบไบŽVITS็š„็ฎ€ๅ•ๆ˜“็”จ็š„่ฏญ้Ÿณ่ฝฌๆข๏ผˆๅ˜ๅฃฐๅ™จ๏ผ‰ๆก†ๆžถ<br><br>
5
 
6
- [![madewithlove](https://forthebadge.com/images/badges/built-with-love.svg)](https://github.com/liujing04/Retrieval-based-Voice-Conversion-WebUI)
 
7
 
8
  <img src="https://counter.seku.su/cmoe?name=rvc&theme=r34" /><br>
9
 
10
- [![Open In Colab](https://img.shields.io/badge/Colab-F9AB00?style=for-the-badge&logo=googlecolab&color=525252)](https://colab.research.google.com/github/liujing04/Retrieval-based-Voice-Conversion-WebUI/blob/main/Retrieval_based_Voice_Conversion_WebUI.ipynb)
11
- [![Licence](https://img.shields.io/github/license/liujing04/Retrieval-based-Voice-Conversion-WebUI?style=for-the-badge)](https://github.com/liujing04/Retrieval-based-Voice-Conversion-WebUI/blob/main/%E4%BD%BF%E7%94%A8%E9%9C%80%E9%81%B5%E5%AE%88%E7%9A%84%E5%8D%8F%E8%AE%AE-LICENSE.txt)
12
  [![Huggingface](https://img.shields.io/badge/๐Ÿค—%20-Spaces-yellow.svg?style=for-the-badge)](https://huggingface.co/lj1995/VoiceConversionWebUI/tree/main/)
13
 
14
  [![Discord](https://img.shields.io/badge/RVC%20Developers-Discord-7289DA?style=for-the-badge&logo=discord&logoColor=white)](https://discord.gg/HcsmBBGyVk)
15
 
 
 
16
  </div>
17
 
18
  ------
19
 
20
- [**ๆ›ดๆ–ฐๆ—ฅๅฟ—**](https://github.com/liujing04/Retrieval-based-Voice-Conversion-WebUI/blob/main/Changelog_CN.md)
 
 
21
 
22
- [**English**](./docs/README.en.md) | [**ไธญๆ–‡็ฎ€ไฝ“**](./README.md) | [**ๆ—ฅๆœฌ่ชž**](./docs/README.ja.md) | [**ํ•œ๊ตญ์–ด**](./docs/README.ko.md) ([**้Ÿ“ๅœ‹่ชž**](./docs/README.ko.han.md))
23
 
 
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ๅฐๆ—ถ็š„ๅผ€ๆบ้ซ˜่ดจ้‡VCTK่ฎญ็ปƒ้›†่ฎญ็ปƒ๏ผŒๆ— ็‰ˆๆƒๆ–น้ข็š„้กพ่™‘๏ผŒ่ฏทๅคงๅฎถๆ”พๅฟƒไฝฟ็”จ
30
 
31
- > ๅŽ็ปญไผš้™†็ปญๅŠ ๅ…ฅ้ซ˜่ดจ้‡ๆœ‰ๆŽˆๆƒๆญŒๅฃฐ่ฎญ็ปƒ้›†่ฎญ็ปƒๅบ•ๆจก
32
 
33
  ## ็ฎ€ไป‹
34
  ๆœฌไป“ๅบ“ๅ…ทๆœ‰ไปฅไธ‹็‰น็‚น
@@ -38,11 +44,14 @@
38
  + ๅฏไปฅ้€š่ฟ‡ๆจกๅž‹่žๅˆๆฅๆ”นๅ˜้Ÿณ่‰ฒ(ๅ€ŸๅŠฉckptๅค„็†้€‰้กนๅกไธญ็š„ckpt-merge)
39
  + ็ฎ€ๅ•ๆ˜“็”จ็š„็ฝ‘้กต็•Œ้ข
40
  + ๅฏ่ฐƒ็”จUVR5ๆจกๅž‹ๆฅๅฟซ้€Ÿๅˆ†็ฆปไบบๅฃฐๅ’Œไผดๅฅ
 
 
41
 
42
  ## ็Žฏๅขƒ้…็ฝฎ
43
- ๆŽจ่ไฝฟ็”จpoetry้…็ฝฎ็Žฏๅขƒใ€‚
44
 
45
- ไปฅไธ‹ๆŒ‡ไปค้œ€ๅœจPython็‰ˆๆœฌๅคงไบŽ3.8็š„็Žฏๅขƒไธญๆ‰ง่กŒ:
 
46
  ```bash
47
  # ๅฎ‰่ฃ…PytorchๅŠๅ…ถๆ ธๅฟƒไพ่ต–๏ผŒ่‹ฅๅทฒๅฎ‰่ฃ…ๅˆ™่ทณ่ฟ‡
48
  # ๅ‚่€ƒ่‡ช: https://pytorch.org/get-started/locally/
@@ -50,7 +59,10 @@ pip install torch torchvision torchaudio
50
 
51
  #ๅฆ‚ๆžœๆ˜ฏwin็ณป็ปŸ+Nvidia Ampereๆžถๆž„(RTX30xx)๏ผŒๆ นๆฎ #21 ็š„็ป้ชŒ๏ผŒ้œ€่ฆๆŒ‡ๅฎšpytorchๅฏนๅบ”็š„cuda็‰ˆๆœฌ
52
  #pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117
 
53
 
 
 
54
  # ๅฎ‰่ฃ… Poetry ไพ่ต–็ฎก็†ๅทฅๅ…ท, ่‹ฅๅทฒๅฎ‰่ฃ…ๅˆ™่ทณ่ฟ‡
55
  # ๅ‚่€ƒ่‡ช: https://python-poetry.org/docs/#installation
56
  curl -sSL https://install.python-poetry.org | python3 -
@@ -59,12 +71,25 @@ curl -sSL https://install.python-poetry.org | python3 -
59
  poetry install
60
  ```
61
 
62
- ไฝ ไนŸๅฏไปฅ้€š่ฟ‡pipๆฅๅฎ‰่ฃ…ไพ่ต–๏ผš
 
 
 
 
 
 
63
 
64
- **ๆณจๆ„**: `MacOS`ไธ‹`faiss 1.7.2`็‰ˆๆœฌไผšๅฏผ่‡ดๆŠ›ๅ‡บๆฎต้”™่ฏฏ๏ผŒๅœจๆ‰‹ๅŠจๅฎ‰่ฃ…ๆ—ถ่ฏทไฝฟ็”จๅ‘ฝไปค`pip install faiss-cpu==1.7.0`ๆŒ‡ๅฎšไฝฟ็”จ`1.7.0`็‰ˆๆœฌ
 
65
 
 
 
 
 
 
 
66
  ```bash
67
- pip install -r requirements.txt
68
  ```
69
 
70
  ## ๅ…ถไป–้ข„ๆจกๅž‹ๅ‡†ๅค‡
@@ -74,25 +99,67 @@ RVC้œ€่ฆๅ…ถไป–ไธ€ไบ›้ข„ๆจกๅž‹ๆฅๆŽจ็†ๅ’Œ่ฎญ็ปƒใ€‚
74
 
75
  ไปฅไธ‹ๆ˜ฏไธ€ไปฝๆธ…ๅ•๏ผŒๅŒ…ๆ‹ฌไบ†ๆ‰€ๆœ‰RVCๆ‰€้œ€็š„้ข„ๆจกๅž‹ๅ’Œๅ…ถไป–ๆ–‡ไปถ็š„ๅ็งฐ:
76
  ```bash
77
- hubert_base.pt
 
 
 
 
 
 
78
 
79
- ./pretrained
80
 
81
- ./uvr5_weights
82
 
83
- #ๅฆ‚ๆžœไฝ ๆญฃๅœจไฝฟ็”จWindows๏ผŒๅˆ™ไฝ ๅฏ่ƒฝ้œ€่ฆ่ฟ™ไธชๆ–‡ไปถ๏ผŒ่‹ฅffmpegๅ’Œffprobeๅทฒๅฎ‰่ฃ…ๅˆ™่ทณ่ฟ‡; ubuntu/debian ็”จๆˆทๅฏไปฅ้€š่ฟ‡apt install ffmpegๆฅๅฎ‰่ฃ…่ฟ™2ไธชๅบ“
84
  ./ffmpeg
85
 
 
 
86
  ./ffprobe
 
 
 
 
 
 
 
 
 
 
 
87
  ```
88
  ไน‹ๅŽไฝฟ็”จไปฅไธ‹ๆŒ‡ไปคๆฅๅฏๅŠจWebUI:
89
  ```bash
90
  python infer-web.py
91
  ```
92
- ๅฆ‚ๆžœไฝ ๆญฃๅœจไฝฟ็”จWindows๏ผŒไฝ ๅฏไปฅ็›ดๆŽฅไธ‹่ฝฝๅนถ่งฃๅŽ‹`RVC-beta.7z`๏ผŒ่ฟ่กŒ`go-web.bat`ไปฅๅฏๅŠจWebUIใ€‚
 
 
93
 
94
  ไป“ๅบ“ๅ†…่ฟ˜ๆœ‰ไธ€ไปฝ`ๅฐ็™ฝ็ฎ€ๆ˜“ๆ•™็จ‹.doc`ไปฅไพ›ๅ‚่€ƒใ€‚
95
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
96
  ## ๅ‚่€ƒ้กน็›ฎ
97
  + [ContentVec](https://github.com/auspicious3000/contentvec/)
98
  + [VITS](https://github.com/jaywalnut310/vits)
@@ -101,8 +168,10 @@ python infer-web.py
101
  + [FFmpeg](https://github.com/FFmpeg/FFmpeg)
102
  + [Ultimate Vocal Remover](https://github.com/Anjok07/ultimatevocalremovergui)
103
  + [audio-slicer](https://github.com/openvpi/audio-slicer)
 
 
104
 
105
  ## ๆ„Ÿ่ฐขๆ‰€ๆœ‰่ดก็Œฎ่€…ไฝœๅ‡บ็š„ๅŠชๅŠ›
106
- <a href="https://github.com/liujing04/Retrieval-based-Voice-Conversion-WebUI/graphs/contributors" target="_blank">
107
- <img src="https://contrib.rocks/image?repo=liujing04/Retrieval-based-Voice-Conversion-WebUI" />
108
  </a>
 
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
  ๆœฌไป“ๅบ“ๅ…ทๆœ‰ไปฅไธ‹็‰น็‚น
 
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/
 
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 -
 
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
  ## ๅ…ถไป–้ข„ๆจกๅž‹ๅ‡†ๅค‡
 
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)
 
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 CHANGED
@@ -1,381 +1,403 @@
1
  {
2
- "nbformat": 4,
3
- "nbformat_minor": 0,
4
- "metadata": {
5
- "colab": {
6
- "private_outputs": true,
7
- "provenance": []
8
- },
9
- "kernelspec": {
10
- "name": "python3",
11
- "display_name": "Python 3"
12
- },
13
- "language_info": {
14
- "name": "python"
15
- },
16
- "accelerator": "GPU",
17
- "gpuClass": "standard"
18
  },
19
- "cells": [
20
- {
21
- "cell_type": "markdown",
22
- "source": [
23
- "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/liujing04/Retrieval-based-Voice-Conversion-WebUI/blob/main/Retrieval_based_Voice_Conversion_WebUI.ipynb)"
24
- ],
25
- "metadata": {
26
- "id": "ZFFCx5J80SGa"
27
- }
28
- },
29
- {
30
- "cell_type": "code",
31
- "execution_count": null,
32
- "metadata": {
33
- "id": "GmFP6bN9dvOq"
34
- },
35
- "outputs": [],
36
- "source": [
37
- "#@title ๆŸฅ็œ‹ๆ˜พๅก\n",
38
- "!nvidia-smi"
39
- ]
40
- },
41
- {
42
- "cell_type": "code",
43
- "source": [
44
- "#@title ๅฎ‰่ฃ…ไพ่ต–\n",
45
- "!apt-get -y install build-essential python3-dev ffmpeg\n",
46
- "!pip3 install --upgrade setuptools wheel\n",
47
- "!pip3 install --upgrade pip\n",
48
- "!pip3 install faiss-gpu fairseq gradio ffmpeg ffmpeg-python praat-parselmouth pyworld numpy==1.23.5 numba==0.56.4 librosa==0.9.2"
49
- ],
50
- "metadata": {
51
- "id": "wjddIFr1oS3W"
52
- },
53
- "execution_count": null,
54
- "outputs": []
55
- },
56
- {
57
- "cell_type": "code",
58
- "source": [
59
- "#@title ๅ…‹้š†ไป“ๅบ“\n",
60
- "\n",
61
- "!git clone --depth=1 -b stable https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI\n",
62
- "%cd /content/Retrieval-based-Voice-Conversion-WebUI\n",
63
- "!mkdir -p pretrained uvr5_weights"
64
- ],
65
- "metadata": {
66
- "id": "ge_97mfpgqTm"
67
- },
68
- "execution_count": null,
69
- "outputs": []
70
- },
71
- {
72
- "cell_type": "code",
73
- "source": [
74
- "#@title ๆ›ดๆ–ฐไป“ๅบ“๏ผˆไธ€่ˆฌๆ— ้œ€ๆ‰ง่กŒ๏ผ‰\n",
75
- "!git pull"
76
- ],
77
- "metadata": {
78
- "id": "BLDEZADkvlw1"
79
- },
80
- "execution_count": null,
81
- "outputs": []
82
- },
83
- {
84
- "cell_type": "code",
85
- "source": [
86
- "#@title ๅฎ‰่ฃ…aria2\n",
87
- "!apt -y install -qq aria2"
88
- ],
89
- "metadata": {
90
- "id": "pqE0PrnuRqI2"
91
- },
92
- "execution_count": null,
93
- "outputs": []
94
- },
95
- {
96
- "cell_type": "code",
97
- "source": [
98
- "#@title ไธ‹่ฝฝๅบ•ๆจก\n",
99
- "!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",
100
- "!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",
101
- "!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",
102
- "!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",
103
- "!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",
104
- "!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",
105
- "!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",
106
- "!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",
107
- "!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",
108
- "!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",
109
- "!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",
110
- "!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"
111
- ],
112
- "metadata": {
113
- "id": "UG3XpUwEomUz"
114
- },
115
- "execution_count": null,
116
- "outputs": []
117
- },
118
- {
119
- "cell_type": "code",
120
- "source": [
121
- "#@title ไธ‹่ฝฝไบบๅฃฐๅˆ†็ฆปๆจกๅž‹\n",
122
- "!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",
123
- "!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"
124
- ],
125
- "metadata": {
126
- "id": "HugjmZqZRuiF"
127
- },
128
- "execution_count": null,
129
- "outputs": []
130
- },
131
- {
132
- "cell_type": "code",
133
- "source": [
134
- "#@title ไธ‹่ฝฝhubert_base\n",
135
- "!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"
136
- ],
137
- "metadata": {
138
- "id": "2RCaT9FTR0ej"
139
- },
140
- "execution_count": null,
141
- "outputs": []
142
- },
143
- {
144
- "cell_type": "code",
145
- "source": [
146
- "#@title ๆŒ‚่ฝฝ่ฐทๆญŒไบ‘็›˜\n",
147
- "\n",
148
- "from google.colab import drive\n",
149
- "drive.mount('/content/drive')"
150
- ],
151
- "metadata": {
152
- "id": "jwu07JgqoFON"
153
- },
154
- "execution_count": null,
155
- "outputs": []
156
- },
157
- {
158
- "cell_type": "code",
159
- "source": [
160
- "#@title ไปŽ่ฐทๆญŒไบ‘็›˜ๅŠ ่ฝฝๆ‰“ๅŒ…ๅฅฝ็š„ๆ•ฐๆฎ้›†ๅˆฐ/content/dataset\n",
161
- "\n",
162
- "#@markdown ๆ•ฐๆฎ้›†ไฝ็ฝฎ\n",
163
- "DATASET = \"/content/drive/MyDrive/dataset/lulu20230327_32k.zip\" #@param {type:\"string\"}\n",
164
- "\n",
165
- "!mkdir -p /content/dataset\n",
166
- "!unzip -d /content/dataset -B {DATASET}"
167
- ],
168
- "metadata": {
169
- "id": "Mwk7Q0Loqzjx"
170
- },
171
- "execution_count": null,
172
- "outputs": []
173
- },
174
- {
175
- "cell_type": "code",
176
- "source": [
177
- "#@title ้‡ๅ‘ฝๅๆ•ฐๆฎ้›†ไธญ็š„้‡ๅๆ–‡ไปถ\n",
178
- "!ls -a /content/dataset/\n",
179
- "!rename 's/(\\w+)\\.(\\w+)~(\\d*)/$1_$3.$2/' /content/dataset/*.*~*"
180
- ],
181
- "metadata": {
182
- "id": "PDlFxWHWEynD"
183
- },
184
- "execution_count": null,
185
- "outputs": []
186
- },
187
- {
188
- "cell_type": "code",
189
- "source": [
190
- "#@title ๅฏๅŠจweb\n",
191
- "%cd /content/Retrieval-based-Voice-Conversion-WebUI\n",
192
- "# %load_ext tensorboard\n",
193
- "# %tensorboard --logdir /content/Retrieval-based-Voice-Conversion-WebUI/logs\n",
194
- "!python3 infer-web.py --colab --pycmd python3"
195
- ],
196
- "metadata": {
197
- "id": "7vh6vphDwO0b"
198
- },
199
- "execution_count": null,
200
- "outputs": []
201
- },
202
- {
203
- "cell_type": "code",
204
- "source": [
205
- "#@title ๆ‰‹ๅŠจๅฐ†่ฎญ็ปƒๅŽ็š„ๆจกๅž‹ๆ–‡ไปถๅค‡ไปฝๅˆฐ่ฐทๆญŒไบ‘็›˜\n",
206
- "#@markdown ้œ€่ฆ่‡ชๅทฑๆŸฅ็œ‹logsๆ–‡ไปถๅคนไธ‹ๆจกๅž‹็š„ๆ–‡ไปถๅ๏ผŒๆ‰‹ๅŠจไฟฎๆ”นไธ‹ๆ–นๅ‘ฝไปคๆœซๅฐพ็š„ๆ–‡ไปถๅ\n",
207
- "\n",
208
- "#@markdown ๆจกๅž‹ๅ\n",
209
- "MODELNAME = \"lulu\" #@param {type:\"string\"}\n",
210
- "#@markdown ๆจกๅž‹epoch\n",
211
- "MODELEPOCH = 9600 #@param {type:\"integer\"}\n",
212
- "\n",
213
- "!cp /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/G_{MODELEPOCH}.pth /content/drive/MyDrive/{MODELNAME}_D_{MODELEPOCH}.pth\n",
214
- "!cp /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/D_{MODELEPOCH}.pth /content/drive/MyDrive/{MODELNAME}_G_{MODELEPOCH}.pth\n",
215
- "!cp /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/added_*.index /content/drive/MyDrive/\n",
216
- "!cp /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/total_*.npy /content/drive/MyDrive/\n",
217
- "\n",
218
- "!cp /content/Retrieval-based-Voice-Conversion-WebUI/weights/{MODELNAME}.pth /content/drive/MyDrive/{MODELNAME}{MODELEPOCH}.pth"
219
- ],
220
- "metadata": {
221
- "id": "FgJuNeAwx5Y_"
222
- },
223
- "execution_count": null,
224
- "outputs": []
225
- },
226
- {
227
- "cell_type": "code",
228
- "source": [
229
- "#@title ไปŽ่ฐทๆญŒไบ‘็›˜ๆขๅคpth\n",
230
- "#@markdown ้œ€่ฆ่‡ชๅทฑๆŸฅ็œ‹logsๆ–‡ไปถๅคนไธ‹ๆจกๅž‹็š„ๆ–‡ไปถๅ๏ผŒๆ‰‹ๅŠจไฟฎๆ”นไธ‹ๆ–นๅ‘ฝไปคๆœซๅฐพ็š„ๆ–‡ไปถๅ\n",
231
- "\n",
232
- "#@markdown ๆจกๅž‹ๅ\n",
233
- "MODELNAME = \"lulu\" #@param {type:\"string\"}\n",
234
- "#@markdown ๆจกๅž‹epoch\n",
235
- "MODELEPOCH = 7500 #@param {type:\"integer\"}\n",
236
- "\n",
237
- "!mkdir -p /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}\n",
238
- "\n",
239
- "!cp /content/drive/MyDrive/{MODELNAME}_D_{MODELEPOCH}.pth /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/G_{MODELEPOCH}.pth\n",
240
- "!cp /content/drive/MyDrive/{MODELNAME}_G_{MODELEPOCH}.pth /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/D_{MODELEPOCH}.pth\n",
241
- "!cp /content/drive/MyDrive/*.index /content/\n",
242
- "!cp /content/drive/MyDrive/*.npy /content/\n",
243
- "!cp /content/drive/MyDrive/{MODELNAME}{MODELEPOCH}.pth /content/Retrieval-based-Voice-Conversion-WebUI/weights/{MODELNAME}.pth"
244
- ],
245
- "metadata": {
246
- "id": "OVQoLQJXS7WX"
247
- },
248
- "execution_count": null,
249
- "outputs": []
250
- },
251
- {
252
- "cell_type": "code",
253
- "source": [
254
- "#@title ๆ‰‹ๅŠจ้ข„ๅค„็†๏ผˆไธๆŽจ่๏ผ‰\n",
255
- "#@markdown ๆจกๅž‹ๅ\n",
256
- "MODELNAME = \"lulu\" #@param {type:\"string\"}\n",
257
- "#@markdown ้‡‡ๆ ท็Ž‡\n",
258
- "BITRATE = 48000 #@param {type:\"integer\"}\n",
259
- "#@markdown ไฝฟ็”จ็š„่ฟ›็จ‹ๆ•ฐ\n",
260
- "THREADCOUNT = 8 #@param {type:\"integer\"}\n",
261
- "\n",
262
- "!python3 trainset_preprocess_pipeline_print.py /content/dataset {BITRATE} {THREADCOUNT} logs/{MODELNAME} True\n"
263
- ],
264
- "metadata": {
265
- "id": "ZKAyuKb9J6dz"
266
- },
267
- "execution_count": null,
268
- "outputs": []
269
- },
270
- {
271
- "cell_type": "code",
272
- "source": [
273
- "#@title ๆ‰‹ๅŠจๆๅ–็‰นๅพ๏ผˆไธๆŽจ่๏ผ‰\n",
274
- "#@markdown ๆจกๅž‹ๅ\n",
275
- "MODELNAME = \"lulu\" #@param {type:\"string\"}\n",
276
- "#@markdown ไฝฟ็”จ็š„่ฟ›็จ‹ๆ•ฐ\n",
277
- "THREADCOUNT = 8 #@param {type:\"integer\"}\n",
278
- "#@markdown ้Ÿณ้ซ˜ๆๅ–็ฎ—ๆณ•\n",
279
- "ALGO = \"harvest\" #@param {type:\"string\"}\n",
280
- "\n",
281
- "!python3 extract_f0_print.py logs/{MODELNAME} {THREADCOUNT} {ALGO}\n",
282
- "\n",
283
- "!python3 extract_feature_print.py cpu 1 0 0 logs/{MODELNAME}\n"
284
- ],
285
- "metadata": {
286
- "id": "CrxJqzAUKmPJ"
287
- },
288
- "execution_count": null,
289
- "outputs": []
290
- },
291
- {
292
- "cell_type": "code",
293
- "source": [
294
- "#@title ๆ‰‹ๅŠจ่ฎญ็ปƒ๏ผˆไธๆŽจ่๏ผ‰\n",
295
- "#@markdown ๆจกๅž‹ๅ\n",
296
- "MODELNAME = \"lulu\" #@param {type:\"string\"}\n",
297
- "#@markdown ไฝฟ็”จ็š„GPU\n",
298
- "USEGPU = \"0\" #@param {type:\"string\"}\n",
299
- "#@markdown ๆ‰นๅคงๅฐ\n",
300
- "BATCHSIZE = 32 #@param {type:\"integer\"}\n",
301
- "#@markdown ๅœๆญข็š„epoch\n",
302
- "MODELEPOCH = 3200 #@param {type:\"integer\"}\n",
303
- "#@markdown ไฟๅญ˜epoch้—ด้š”\n",
304
- "EPOCHSAVE = 100 #@param {type:\"integer\"}\n",
305
- "#@markdown ้‡‡ๆ ท็Ž‡\n",
306
- "MODELSAMPLE = \"48k\" #@param {type:\"string\"}\n",
307
- "#@markdown ๆ˜ฏๅฆ็ผ“ๅญ˜่ฎญ็ปƒ้›†\n",
308
- "CACHEDATA = 1 #@param {type:\"integer\"}\n",
309
- "#@markdown ๆ˜ฏๅฆไป…ไฟๅญ˜ๆœ€ๆ–ฐ็š„ckptๆ–‡ไปถ\n",
310
- "ONLYLATEST = 0 #@param {type:\"integer\"}\n",
311
- "\n",
312
- "!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}\n"
313
- ],
314
- "metadata": {
315
- "id": "IMLPLKOaKj58"
316
- },
317
- "execution_count": null,
318
- "outputs": []
319
- },
320
- {
321
- "cell_type": "code",
322
- "source": [
323
- "#@title ๅˆ ้™คๅ…ถๅฎƒpth๏ผŒๅช็•™้€‰ไธญ็š„๏ผˆๆ…Ž็‚น๏ผŒไป”็ป†็œ‹ไปฃ็ ๏ผ‰\n",
324
- "#@markdown ๆจกๅž‹ๅ\n",
325
- "MODELNAME = \"lulu\" #@param {type:\"string\"}\n",
326
- "#@markdown ้€‰ไธญๆจกๅž‹epoch\n",
327
- "MODELEPOCH = 9600 #@param {type:\"integer\"}\n",
328
- "\n",
329
- "!echo \"ๅค‡ไปฝ้€‰ไธญ็š„ๆจกๅž‹ใ€‚ใ€‚ใ€‚\"\n",
330
- "!cp /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/G_{MODELEPOCH}.pth /content/{MODELNAME}_D_{MODELEPOCH}.pth\n",
331
- "!cp /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/D_{MODELEPOCH}.pth /content/{MODELNAME}_G_{MODELEPOCH}.pth\n",
332
- "\n",
333
- "!echo \"ๆญฃๅœจๅˆ ้™คใ€‚ใ€‚ใ€‚\"\n",
334
- "!ls /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}\n",
335
- "!rm /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/*.pth\n",
336
- "\n",
337
- "!echo \"ๆขๅค้€‰ไธญ็š„ๆจกๅž‹ใ€‚ใ€‚ใ€‚\"\n",
338
- "!mv /content/{MODELNAME}_D_{MODELEPOCH}.pth /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/G_{MODELEPOCH}.pth \n",
339
- "!mv /content/{MODELNAME}_G_{MODELEPOCH}.pth /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/D_{MODELEPOCH}.pth\n",
340
- "\n",
341
- "!echo \"ๅˆ ้™คๅฎŒๆˆ\"\n",
342
- "!ls /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}"
343
- ],
344
- "metadata": {
345
- "id": "haYA81hySuDl"
346
- },
347
- "execution_count": null,
348
- "outputs": []
349
- },
350
- {
351
- "cell_type": "code",
352
- "source": [
353
- "#@title ๆธ…้™ค้กน็›ฎไธ‹ๆ‰€ๆœ‰ๆ–‡ไปถ๏ผŒๅช็•™้€‰ไธญ็š„ๆจกๅž‹๏ผˆๆ…Ž็‚น๏ผŒไป”็ป†็œ‹ไปฃ็ ๏ผ‰\n",
354
- "#@markdown ๆจกๅž‹ๅ\n",
355
- "MODELNAME = \"lulu\" #@param {type:\"string\"}\n",
356
- "#@markdown ้€‰ไธญๆจกๅž‹epoch\n",
357
- "MODELEPOCH = 9600 #@param {type:\"integer\"}\n",
358
- "\n",
359
- "!echo \"ๅค‡ไปฝ้€‰ไธญ็š„ๆจกๅž‹ใ€‚ใ€‚ใ€‚\"\n",
360
- "!cp /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/G_{MODELEPOCH}.pth /content/{MODELNAME}_D_{MODELEPOCH}.pth\n",
361
- "!cp /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/D_{MODELEPOCH}.pth /content/{MODELNAME}_G_{MODELEPOCH}.pth\n",
362
- "\n",
363
- "!echo \"ๆญฃๅœจๅˆ ้™คใ€‚ใ€‚ใ€‚\"\n",
364
- "!ls /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}\n",
365
- "!rm -rf /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/*\n",
366
- "\n",
367
- "!echo \"ๆขๅค้€‰ไธญ็š„ๆจกๅž‹ใ€‚ใ€‚ใ€‚\"\n",
368
- "!mv /content/{MODELNAME}_D_{MODELEPOCH}.pth /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/G_{MODELEPOCH}.pth \n",
369
- "!mv /content/{MODELNAME}_G_{MODELEPOCH}.pth /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}/D_{MODELEPOCH}.pth\n",
370
- "\n",
371
- "!echo \"ๅˆ ้™คๅฎŒๆˆ\"\n",
372
- "!ls /content/Retrieval-based-Voice-Conversion-WebUI/logs/{MODELNAME}"
373
- ],
374
- "metadata": {
375
- "id": "QhSiPTVPoIRh"
376
- },
377
- "execution_count": null,
378
- "outputs": []
379
- }
380
- ]
381
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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/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
+ - ๋ณด์ปฌ ํ›ˆ๋ จ ์„ธํŠธ์˜ ๊ธฐ๋ณธ ๋ชจ๋ธ์„ ์ถ”๊ฐ€ํ•˜๊ธฐ ์œ„ํ•œ ์ž‘์—…์„ ์ง„ํ–‰์ค‘์ด๋ฉฐ, ์ด๋Š” ํ–ฅํ›„์— ๋ฐœํ‘œ๋  ์˜ˆ์ •.
Retrieval-based-Voice-Conversion-WebUI/docs/kr/README.ko.han.md ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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/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
+ [**ๆ›ดๆ–ฐๆ—ฅ่ชŒ**](https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/blob/main/docs/Changelog_KO.md)
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
+ > [็คบ็ฏ„ๆ˜ ๅƒ](https://www.bilibili.com/video/BV1pm4y1z7Gm/)์„ ็ขบ่ชํ•ด ๋ณด์„ธ์š”!
25
+
26
+ > RVC๋ฅผๆดป็”จํ•œๅฏฆๆ™‚้–“้Ÿณ่ฒ่ฎŠๆ›: [w-okada/voice-changer](https://github.com/w-okada/voice-changer)
27
+
28
+ > ๅŸบๆœฌ๋ชจ๋ธ์€ 50ๆ™‚้–“ๅ‡้‡์˜ ้ซ˜ๅ“่ณช ์˜คํ”ˆ ์†Œ์Šค VCTK ๋ฐ์ดํ„ฐ์…‹์„ ไฝฟ็”จํ•˜์˜€์œผ๋ฏ€๋กœ, ่‘—ไฝœๆฌŠไธŠ์˜ ๅฟตๆ…ฎ๊ฐ€ ์—†์œผ๋‹ˆ ๅฎ‰ๅฟƒํ•˜๊ณ  ไฝฟ็”จํ•˜์‹œ๊ธฐ ๋ฐ”๋ž๋‹ˆ๋‹ค.
29
+
30
+ > ่‘—ไฝœๆฌŠๅ•้กŒ๊ฐ€ ์—†๋Š” ้ซ˜ๅ“่ณช์˜ ๋…ธ๋ž˜๋ฅผ ไปฅๅพŒ์—๋„ ็นผ็บŒํ•ด์„œ ่จ“็ทดํ•  ่ฑซๅฎš์ž…๋‹ˆ๋‹ค.
31
+
32
+ ## ็ดนไป‹
33
+ ๆœฌRepo๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์€ ็‰นๅพต์„ ๊ฐ€์ง€๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค:
34
+ + top1ๆชข็ดข์„ๅˆฉ็”จํ•˜์—ฌ ๅ…ฅๅŠ›้Ÿณ่‰ฒ็‰นๅพต์„ ่จ“็ทด์„ธํŠธ้Ÿณ่‰ฒ็‰นๅพต์œผ๋กœ ไปฃๆ›ฟํ•˜์—ฌ ้Ÿณ่‰ฒ์˜ๆผๅ‡บ์„ ้˜ฒๆญข;
35
+ + ็›ธๅฐ็š„์œผ๋กœ ๋‚ฎ์€ๆ€ง่ƒฝ์˜ GPU์—์„œ๋„ ๋น ๋ฅธ่จ“็ทดๅฏ่ƒฝ;
36
+ + ์ ์€้‡์˜ ๋ฐ์ดํ„ฐ๋กœ ่จ“็ทดํ•ด๋„ ์ข‹์€ ็ตๆžœ๋ฅผ ์–ป์„ ์ˆ˜ ์žˆ์Œ (ๆœ€ๅฐ10ๅˆ†ไปฅไธŠ์˜ ไฝŽ้›œ์Œ้Ÿณ่ฒ๋ฐ์ดํ„ฐ๋ฅผ ไฝฟ็”จํ•˜๋Š” ๊ฒƒ์„ ๅ‹ธ็Ž);
37
+ + ๋ชจ๋ธ่žๅˆ์„้€šํ•œ ้Ÿณ่‰ฒ์˜ ่ฎŠ่ชฟๅฏ่ƒฝ (ckpt่™•็†ํƒญ->ckptๆททๅˆ้ธๆ“‡);
38
+ + ไฝฟ็”จํ•˜๊ธฐ ์‰ฌ์šด WebUI (์›น ไฝฟ็”จ่€…์ธํ„ฐํŽ˜์ด์Šค);
39
+ + UVR5 ๋ชจ๋ธ์„ ๅˆฉ็”จํ•˜์—ฌ ๋ชฉ์†Œ๋ฆฌ์™€ ่ƒŒๆ™ฏ้Ÿณๆจ‚์˜ ๋น ๋ฅธ ๅˆ†้›ข;
40
+
41
+ ## ็’ฐๅขƒ์˜ๆบ–ๅ‚™
42
+ poetry๋ฅผ้€šํ•ด ไพๅญ˜๋ฅผ่จญ็ฝฎํ•˜๋Š” ๊ฒƒ์„ ๅ‹ธ็Žํ•ฉ๋‹ˆ๋‹ค.
43
+
44
+ ๋‹ค์Œๅ‘ฝไปค์€ Python ๋ฒ„์ „3.8ไปฅไธŠ์˜็’ฐๅขƒ์—์„œ ๅฏฆ่กŒ๋˜์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค:
45
+ ```bash
46
+ # PyTorch ้—œ่ฏไธป่ฆไพๅญ˜่จญ็ฝฎ, ์ด๋ฏธ่จญ็ฝฎ๋˜์–ด ์žˆ๋Š” ๅขƒ้‡ ๊ฑด๋„ˆ๋›ฐ๊ธฐ ๅฏ่ƒฝ
47
+ # ๅƒ็…ง: https://pytorch.org/get-started/locally/
48
+ pip install torch torchvision torchaudio
49
+
50
+ # Windows + Nvidia Ampere Architecture(RTX30xx)๋ฅผ ไฝฟ็”จํ•˜๊ณ  ์žˆ๋‹ค้ข, #21 ์—์„œ ๋ช…์‹œ๋œ ๊ฒƒ๊ณผ ๊ฐ™์ด PyTorch์— ๋งž๋Š” CUDA ๋ฒ„์ „์„ ๆŒ‡ๅฎšํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.
51
+ #pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117
52
+
53
+ # Poetry ่จญ็ฝฎ, ์ด๋ฏธ่จญ็ฝฎ๋˜์–ด ์žˆ๋Š” ๅขƒ้‡ ๊ฑด๋„ˆ๋›ฐ๊ธฐ ๅฏ่ƒฝ
54
+ # Reference: https://python-poetry.org/docs/#installation
55
+ curl -sSL https://install.python-poetry.org | python3 -
56
+
57
+ # ไพๅญ˜่จญ็ฝฎ
58
+ poetry install
59
+ ```
60
+ pip๋ฅผ ๆดป็”จํ•˜์—ฌไพๅญ˜๋ฅผ ่จญ็ฝฎํ•˜์—ฌ๋„ ็„กๅฆจํ•ฉ๋‹ˆ๋‹ค.
61
+
62
+ ```bash
63
+ pip install -r requirements.txt
64
+ ```
65
+
66
+ ## ๅ…ถไป–้ ๅ‚™๋ชจ๋ธๆบ–ๅ‚™
67
+ RVC ๋ชจ๋ธ์€ ๆŽจ่ซ–๊ณผ่จ“็ทด์„ ไพํ•˜์—ฌ ๋‹ค๋ฅธ ้ ๅ‚™๋ชจ๋ธ์ด ๅฟ…่ฆํ•ฉ๋‹ˆ๋‹ค.
68
+
69
+ [Huggingface space](https://huggingface.co/lj1995/VoiceConversionWebUI/tree/main/)๋ฅผ ้€šํ•ด์„œ ๋‹ค์šด๋กœ๋“œ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
70
+
71
+ ๋‹ค์Œ์€ RVC์— ๅฟ…่ฆํ•œ ้ ๅ‚™๋ชจ๋ธ ๋ฐ ๅ…ถไป– ํŒŒ์ผ ็›ฎ้Œ„์ž…๋‹ˆ๋‹ค:
72
+ ```bash
73
+ ./assets/hubert/hubert_base.pt
74
+
75
+ ./assets/pretrained
76
+
77
+ ./assets/uvr5_weights
78
+
79
+ V2 ๋ฒ„์ „ ๋ชจ๋ธ์„ ํ…Œ์ŠคํŠธํ•˜๋ ค๋ฉด ์ถ”๊ฐ€ ๋‹ค์šด๋กœ๋“œ๊ฐ€ ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.
80
+
81
+ ./assets/pretrained_v2
82
+
83
+ # Windows๋ฅผ ไฝฟ็”จํ•˜๋Š”ๅขƒ้‡ ์ด ์‚ฌ์ „๋„ ๅฟ…่ฆํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. FFmpeg๊ฐ€ ่จญ็ฝฎ๋˜์–ด ์žˆ์œผ๋ฉด ๊ฑด๋„ˆ๋›ฐ์–ด๋„ ๋ฉ๋‹ˆ๋‹ค.
84
+ ffmpeg.exe
85
+ ```
86
+ ๊ทธๅพŒ ไปฅไธ‹์˜ ๅ‘ฝไปค์„ ไฝฟ็”จํ•˜์—ฌ WebUI๋ฅผ ๅง‹ไฝœํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค:
87
+ ```bash
88
+ python infer-web.py
89
+ ```
90
+ Windows๋ฅผ ไฝฟ็”จํ•˜๋Š”ๅขƒ้‡ `RVC-beta.7z`๋ฅผ ๋‹ค์šด๋กœ๋“œ ๋ฐ ๅฃ“็ธฎ่งฃ้™คํ•˜์—ฌ RVC๋ฅผ ็›ดๆŽฅไฝฟ็”จํ•˜๊ฑฐ๋‚˜ `go-web.bat`์„ ไฝฟ็”จํ•˜์—ฌ WebUi๋ฅผ ็›ดๆŽฅํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
91
+
92
+ ## ๅƒ่€ƒ
93
+ + [ContentVec](https://github.com/auspicious3000/contentvec/)
94
+ + [VITS](https://github.com/jaywalnut310/vits)
95
+ + [HIFIGAN](https://github.com/jik876/hifi-gan)
96
+ + [Gradio](https://github.com/gradio-app/gradio)
97
+ + [FFmpeg](https://github.com/FFmpeg/FFmpeg)
98
+ + [Ultimate Vocal Remover](https://github.com/Anjok07/ultimatevocalremovergui)
99
+ + [audio-slicer](https://github.com/openvpi/audio-slicer)
100
+ ## ๋ชจ๋“ ๅฏ„่ˆ‡่€…๋ถ„๋“ค์˜ๅ‹žๅŠ›์—ๆ„Ÿ่ฌ๋“œ๋ฆฝ๋‹ˆ๋‹ค
101
+
102
+ <a href="https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/graphs/contributors" target="_blank">
103
+ <img src="https://contrib.rocks/image?repo=RVC-Project/Retrieval-based-Voice-Conversion-WebUI" />
104
+ </a>
105
+
Retrieval-based-Voice-Conversion-WebUI/docs/kr/README.ko.md ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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/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_KO.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์‹œ๊ฐ„ ๊ฐ€๋Ÿ‰์˜ ๊ณ ํ€„๋ฆฌํ‹ฐ ์˜คํ”ˆ ์†Œ์Šค VCTK ๋ฐ์ดํ„ฐ์…‹์„ ์‚ฌ์šฉํ•˜์˜€์œผ๋ฏ€๋กœ, ์ €์ž‘๊ถŒ์ƒ์˜ ์—ผ๋ ค๊ฐ€ ์—†์œผ๋‹ˆ ์•ˆ์‹ฌํ•˜๊ณ  ์‚ฌ์šฉํ•˜์‹œ๊ธฐ ๋ฐ”๋ž๋‹ˆ๋‹ค.
30
+
31
+ > ์ €์ž‘๊ถŒ ๋ฌธ์ œ๊ฐ€ ์—†๋Š” ๊ณ ํ€„๋ฆฌํ‹ฐ์˜ ๋…ธ๋ž˜๋ฅผ ์ดํ›„์—๋„ ๊ณ„์†ํ•ด์„œ ํ›ˆ๋ จํ•  ์˜ˆ์ •์ž…๋‹ˆ๋‹ค.
32
+
33
+ ## ์†Œ๊ฐœ
34
+
35
+ ๋ณธ Repo๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์€ ํŠน์ง•์„ ๊ฐ€์ง€๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค:
36
+
37
+ - top1 ๊ฒ€์ƒ‰์„ ์ด์šฉํ•˜์—ฌ ์ž…๋ ฅ ์Œ์ƒ‰ ํŠน์ง•์„ ํ›ˆ๋ จ ์„ธํŠธ ์Œ์ƒ‰ ํŠน์ง•์œผ๋กœ ๋Œ€์ฒดํ•˜์—ฌ ์Œ์ƒ‰์˜ ๋ˆ„์ถœ์„ ๋ฐฉ์ง€;
38
+ - ์ƒ๋Œ€์ ์œผ๋กœ ๋‚ฎ์€ ์„ฑ๋Šฅ์˜ GPU์—์„œ๋„ ๋น ๋ฅธ ํ›ˆ๋ จ ๊ฐ€๋Šฅ;
39
+ - ์ ์€ ์–‘์˜ ๋ฐ์ดํ„ฐ๋กœ ํ›ˆ๋ จํ•ด๋„ ์ข‹์€ ๊ฒฐ๊ณผ๋ฅผ ์–ป์„ ์ˆ˜ ์žˆ์Œ (์ตœ์†Œ 10๋ถ„ ์ด์ƒ์˜ ์ €์žก์Œ ์Œ์„ฑ ๋ฐ์ดํ„ฐ๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์„ ๊ถŒ์žฅ);
40
+ - ๋ชจ๋ธ ์œตํ•ฉ์„ ํ†ตํ•œ ์Œ์ƒ‰์˜ ๋ณ€์กฐ ๊ฐ€๋Šฅ (ckpt ์ฒ˜๋ฆฌ ํƒญ->ckpt ๋ณ‘ํ•ฉ ์„ ํƒ);
41
+ - ์‚ฌ์šฉํ•˜๊ธฐ ์‰ฌ์šด WebUI (์›น ์ธํ„ฐํŽ˜์ด์Šค);
42
+ - UVR5 ๋ชจ๋ธ์„ ์ด์šฉํ•˜์—ฌ ๋ชฉ์†Œ๋ฆฌ์™€ ๋ฐฐ๊ฒฝ์Œ์•…์˜ ๋น ๋ฅธ ๋ถ„๋ฆฌ;
43
+
44
+ ## ํ™˜๊ฒฝ์˜ ์ค€๋น„
45
+
46
+ poetry๋ฅผ ํ†ตํ•ด dependecies๋ฅผ ์„ค์น˜ํ•˜๋Š” ๊ฒƒ์„ ๊ถŒ์žฅํ•ฉ๋‹ˆ๋‹ค.
47
+
48
+ ๋‹ค์Œ ๋ช…๋ น์€ Python ๋ฒ„์ „ 3.8 ์ด์ƒ์˜ ํ™˜๊ฒฝ์—์„œ ์‹คํ–‰๋˜์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค:
49
+
50
+ ```bash
51
+ # PyTorch ๊ด€๋ จ ์ฃผ์š” dependencies ์„ค์น˜, ์ด๋ฏธ ์„ค์น˜๋˜์–ด ์žˆ๋Š” ๊ฒฝ์šฐ ๊ฑด๋„ˆ๋›ฐ๊ธฐ ๊ฐ€๋Šฅ
52
+ # ์ฐธ์กฐ: https://pytorch.org/get-started/locally/
53
+ pip install torch torchvision torchaudio
54
+
55
+ # Windows + Nvidia Ampere Architecture(RTX30xx)๋ฅผ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ๋‹ค๋ฉด, https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/21 ์—์„œ ๋ช…์‹œ๋œ ๊ฒƒ๊ณผ ๊ฐ™์ด PyTorch์— ๋งž๋Š” CUDA ๋ฒ„์ „์„ ์ง€์ •ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.
56
+ #pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117
57
+
58
+ # Poetry ์„ค์น˜, ์ด๋ฏธ ์„ค์น˜๋˜์–ด ์žˆ๋Š” ๊ฒฝ์šฐ ๊ฑด๋„ˆ๋›ฐ๊ธฐ ๊ฐ€๋Šฅ
59
+ # Reference: https://python-poetry.org/docs/#installation
60
+ curl -sSL https://install.python-poetry.org | python3 -
61
+
62
+ # Dependecies ์„ค์น˜
63
+ poetry install
64
+ ```
65
+
66
+ pip๋ฅผ ํ™œ์šฉํ•˜์—ฌ dependencies๋ฅผ ์„ค์น˜ํ•˜์—ฌ๋„ ๋ฌด๋ฐฉํ•ฉ๋‹ˆ๋‹ค.
67
+
68
+ ```bash
69
+ pip install -r requirements.txt
70
+ ```
71
+
72
+ ## ๊ธฐํƒ€ ์‚ฌ์ „ ๋ชจ๋ธ ์ค€๋น„
73
+
74
+ RVC ๋ชจ๋ธ์€ ์ถ”๋ก ๊ณผ ํ›ˆ๋ จ์„ ์œ„ํ•˜์—ฌ ๋‹ค๋ฅธ ์‚ฌ์ „ ๋ชจ๋ธ์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.
75
+
76
+ [Huggingface space](https://huggingface.co/lj1995/VoiceConversionWebUI/tree/main/)๋ฅผ ํ†ตํ•ด์„œ ๋‹ค์šด๋กœ๋“œ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
77
+
78
+ ๋‹ค์Œ์€ RVC์— ํ•„์š”ํ•œ ์‚ฌ์ „ ๋ชจ๋ธ ๋ฐ ๊ธฐํƒ€ ํŒŒ์ผ ๋ชฉ๋ก์ž…๋‹ˆ๋‹ค:
79
+
80
+ ```bash
81
+ ./assets/hubert/hubert_base.pt
82
+
83
+ ./assets/pretrained
84
+
85
+ ./assets/uvr5_weights
86
+
87
+ V2 ๋ฒ„์ „ ๋ชจ๋ธ์„ ํ…Œ์ŠคํŠธํ•˜๋ ค๋ฉด ์ถ”๊ฐ€ ๋‹ค์šด๋กœ๋“œ๊ฐ€ ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.
88
+
89
+ ./assets/pretrained_v2
90
+
91
+ # Windows๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒฝ์šฐ ์ด ์‚ฌ์ „๋„ ํ•„์š”ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. FFmpeg๊ฐ€ ์„ค์น˜๋˜์–ด ์žˆ์œผ๋ฉด ๊ฑด๋„ˆ๋›ฐ์–ด๋„ ๋ฉ๋‹ˆ๋‹ค.
92
+ ffmpeg.exe
93
+ ```
94
+
95
+ ๊ทธ ํ›„ ์ดํ•˜์˜ ๋ช…๋ น์„ ์‚ฌ์šฉํ•˜์—ฌ WebUI๋ฅผ ์‹œ์ž‘ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค:
96
+
97
+ ```bash
98
+ python infer-web.py
99
+ ```
100
+
101
+ Windows๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒฝ์šฐ `RVC-beta.7z`๋ฅผ ๋‹ค์šด๋กœ๋“œ ๋ฐ ์••์ถ• ํ•ด์ œํ•˜์—ฌ RVC๋ฅผ ์ง์ ‘ ์‚ฌ์šฉํ•˜๊ฑฐ๋‚˜ `go-web.bat`์„ ์‚ฌ์šฉํ•˜์—ฌ WebUi๋ฅผ ์‹œ์ž‘ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
102
+
103
+ ## ์ฐธ๊ณ 
104
+
105
+ - [ContentVec](https://github.com/auspicious3000/contentvec/)
106
+ - [VITS](https://github.com/jaywalnut310/vits)
107
+ - [HIFIGAN](https://github.com/jik876/hifi-gan)
108
+ - [Gradio](https://github.com/gradio-app/gradio)
109
+ - [FFmpeg](https://github.com/FFmpeg/FFmpeg)
110
+ - [Ultimate Vocal Remover](https://github.com/Anjok07/ultimatevocalremovergui)
111
+ - [audio-slicer](https://github.com/openvpi/audio-slicer)
112
+
113
+ ## ๋ชจ๋“  ๊ธฐ์—ฌ์ž ๋ถ„๋“ค์˜ ๋…ธ๋ ฅ์— ๊ฐ์‚ฌ๋“œ๋ฆฝ๋‹ˆ๋‹ค.
114
+
115
+ <a href="https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/graphs/contributors" target="_blank">
116
+ <img src="https://contrib.rocks/image?repo=RVC-Project/Retrieval-based-Voice-Conversion-WebUI" />
117
+ </a>