optimize: some training optimizations (#95) #236
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
name: Unit Test | |
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: true | |
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 | |
wget https://github.com/fumiama/RVC-Models-Downloader/releases/download/v0.2.5/rvcmd_linux_amd64.deb | |
sudo apt -y install ./rvcmd_linux_amd64.deb | |
pip install --force pip==24.0 # fix fairseq installing issue https://github.com/facebookresearch/fairseq/issues/5552 | |
python -m pip install --upgrade setuptools | |
python -m pip install --upgrade wheel | |
pip install torch torchvision torchaudio | |
pip install -r requirements/main.txt | |
rvcmd -notrs -w 1 -notui assets/rvc | |
- name: Test step 1 & 2 | |
run: | | |
mkdir -p logs/mi-test | |
touch logs/mi-test/preprocess.log | |
python infer/modules/train/preprocess.py logs/mute/0_gt_wavs 48000 8 logs/mi-test True 3.7 | |
touch logs/mi-test/extract_f0_feature.log | |
python infer/modules/train/extract/extract_f0_print.py logs/mi-test $(nproc) pm | |
python infer/modules/train/extract_feature_print.py cpu 1 0 0 logs/mi-test v1 True |