-
-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
174 changed files
with
30,512 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: Build And Push Docker Image | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
# Sequence of patterns matched against refs/tags | ||
tags: | ||
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
packages: write | ||
contents: read | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set time zone | ||
uses: szenius/[email protected] | ||
with: | ||
timezoneLinux: "Asia/Shanghai" | ||
timezoneMacos: "Asia/Shanghai" | ||
timezoneWindows: "China Standard Time" | ||
|
||
# # 如果有 dockerhub 账户,可以在github的secrets中配置下面两个,然后取消下面注释的这几行,并在meta步骤的images增加一行 ${{ github.repository }} | ||
# - name: Login to DockerHub | ||
# uses: docker/login-action@v1 | ||
# with: | ||
# username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
# password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Login to GHCR | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@v4 | ||
with: | ||
images: | | ||
ghcr.io/${{ github.repository }} | ||
# generate Docker tags based on the following events/attributes | ||
# nightly, master, pr-2, 1.2.3, 1.2, 1 | ||
tags: | | ||
type=schedule,pattern=nightly | ||
type=edge | ||
type=ref,event=branch | ||
type=ref,event=pr | ||
type=semver,pattern={{version}} | ||
type=semver,pattern={{major}}.{{minor}} | ||
type=semver,pattern={{major}} | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Build and push | ||
id: docker_build | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
platforms: linux/amd64,linux/arm64 | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: genlocale | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
golangci: | ||
name: genlocale | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out | ||
uses: actions/checkout@master | ||
|
||
- name: Run locale generation | ||
run: | | ||
python3 extract_locale.py | ||
cd i18n && python3 locale_diff.py | ||
- name: Commit back | ||
if: ${{ !github.head_ref }} | ||
continue-on-error: true | ||
run: | | ||
git config --local user.name 'github-actions[bot]' | ||
git config --local user.email '41898282+github-actions[bot]@users.noreply.github.com' | ||
git add --all | ||
git commit -m "🎨 同步 locale" | ||
- name: Create Pull Request | ||
if: ${{ !github.head_ref }} | ||
continue-on-error: true | ||
uses: peter-evans/create-pull-request@v4 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: pull format | ||
|
||
on: [pull_request] | ||
|
||
permissions: | ||
contents: write | ||
jobs: | ||
pull_format: | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
steps: | ||
- name: checkout | ||
continue-on-error: true | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
fetch-depth: 0 | ||
|
||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Black | ||
run: pip install black | ||
|
||
- name: Run Black | ||
# run: black $(git ls-files '*.py') | ||
run: black . | ||
|
||
- name: Commit Back | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: Apply Code Formatter Change |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: push format | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
jobs: | ||
push_format: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{github.ref_name}} | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Black | ||
run: pip install black | ||
|
||
- name: Run Black | ||
# run: black $(git ls-files '*.py') | ||
run: black . | ||
|
||
- name: Commit Back | ||
continue-on-error: true | ||
id: commitback | ||
run: | | ||
git config --local user.email "github-actions[bot]@users.noreply.github.com" | ||
git config --local user.name "github-actions[bot]" | ||
git add --all | ||
git commit -m "Format code" | ||
- name: Create Pull Request | ||
if: steps.commitback.outcome == 'success' | ||
continue-on-error: true | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
body: Apply Code Formatter Change | ||
title: Apply Code Formatter Change | ||
commit-message: Automatic code format |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: unitest | ||
on: [ push, pull_request ] | ||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10"] | ||
os: [ubuntu-latest] | ||
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/checkout@master | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
sudo apt update | ||
sudo apt -y install ffmpeg | ||
sudo apt -y install -qq aria2 | ||
aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/hubert_base.pt -d ./ -o hubert_base.pt | ||
python -m pip install --upgrade pip | ||
python -m pip install --upgrade setuptools | ||
python -m pip install --upgrade wheel | ||
pip install torch torchvision torchaudio | ||
pip install -r requirements.txt | ||
- name: Test step 1 & 2 | ||
run: | | ||
mkdir -p logs/mi-test | ||
touch logs/mi-test/preprocess.log | ||
python trainset_preprocess_pipeline_print.py logs/mute/0_gt_wavs 48000 8 logs/mi-test True | ||
touch logs/mi-test/extract_f0_feature.log | ||
python extract_f0_print.py logs/mi-test $(nproc) pm | ||
python extract_feature_print.py cpu 1 0 0 logs/mi-test v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
.DS_Store | ||
__pycache__ | ||
/TEMP | ||
/DATASETS | ||
/RUNTIME | ||
*.pyd | ||
hubert_base.pt | ||
.venv | ||
alexforkINSTALL.bat | ||
Changelog_CN.md | ||
Changelog_EN.md | ||
Changelog_KO.md | ||
difdep.py | ||
EasierGUI.py | ||
envfilescheck.bat | ||
export_onnx.py | ||
export_onnx_old.py | ||
ffmpeg.exe | ||
ffprobe.exe | ||
Fixes/Launch_Tensorboard.bat | ||
Fixes/LOCAL_CREPE_FIX.bat | ||
Fixes/local_fixes.py | ||
Fixes/tensor-launch.py | ||
gui.py | ||
infer-web — backup.py | ||
infer-webbackup.py | ||
install_easy_dependencies.py | ||
install_easyGUI.bat | ||
installstft.bat | ||
Launch_Tensorboard.bat | ||
listdepend.bat | ||
LOCAL_CREPE_FIX.bat | ||
local_fixes.py | ||
oldinfer.py | ||
onnx_inference_demo.py | ||
Praat.exe | ||
requirementsNEW.txt | ||
rmvpe.pt | ||
run_easiergui.bat | ||
tensor-launch.py | ||
values1.json | ||
使用需遵守的协议-LICENSE.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# syntax=docker/dockerfile:1 | ||
|
||
FROM python:3.10-bullseye | ||
|
||
EXPOSE 7865 | ||
|
||
WORKDIR /app | ||
|
||
COPY . . | ||
|
||
RUN pip3 install -r requirements.txt | ||
|
||
CMD ["python3", "infer-web.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
MIT License | ||
|
||
Copyright (c) 2023 liujing04 | ||
Copyright (c) 2023 源文雨 | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from importlib.util import find_spec, LazyLoader, module_from_spec | ||
from sys import modules | ||
|
||
def lazyload(name): | ||
if name in modules: | ||
return modules[name] | ||
else: | ||
spec = find_spec(name) | ||
loader = LazyLoader(spec.loader) | ||
module = module_from_spec(spec) | ||
modules[name] = module | ||
loader.exec_module(module) | ||
return module |
Oops, something went wrong.