Retrieval-based-Voice-Conversion-WebUI
Retrieval-based-Voice-Conversion-WebUI copied to clipboard
The fairseq code error RVC V2 Disconnected
Command '['pip', 'install', '--upgrade', 'fairseq']' returned non-zero exit status 1.
I already to send message gmail Kit Lemonfoot noting can fix this notebook.
Hello! I encountered the same issue, and removing python3.11 from the dependency installation script helped.
Somehow, it attempted to download this library from it, but there were many issues with dependencies.
In any case, here is a solution that works for me in RVC V2 Disconnected
import subprocess
# Downgrade to 3.10.12 until I can get around to properly fixing stuff. Credit to lucynamari and asificare.
# This will 100% break shit, but I do not have the time in my life to properly debug this or anything else in this notebook.
!sudo apt-get update
!sudo apt-get install python3.10 python3.10-distutils python3.10-dev -y
!sudo update-alternatives --install "/usr/bin/python3" python3 "/usr/bin/python3.10" 1
!sudo update-alternatives --set python3 /usr/bin/python3.10
!sudo apt-get install python3-pip -y
packages = ['build-essential', 'ffmpeg', 'aria2']
pip_packages = ['setuptools', 'wheel', 'fairseq', 'faiss-gpu', 'ffmpeg', 'ffmpeg-python', 'praat-parselmouth', 'pyworld', 'numpy==1.23.5', 'numba==0.56.4', 'librosa==0.9.2', 'matplotlib==3.7.0', 'tensorboard']
print("Updating and installing system packages...")
for package in packages:
print(f"Installing {package}...")
subprocess.check_call(['apt-get', 'install', '-qq', '-y', package])
print("Updating and installing pip packages...")
# install packages
for package in pip_packages:
print(f"Installing {package}...")
subprocess.check_call(['pip', 'install', '--upgrade', package])
#Fix torch error on model load
!pip uninstall torch torchvision torchaudio -y
!pip install torch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 --upgrade --index-url https://download.pytorch.org/whl/cu121
print('Packages up to date.')
firsttry = True
Your solution doesn't work anymore... Encountering the same error.