Update README.md
Browse files
README.md
CHANGED
|
@@ -3,5 +3,69 @@ license: mit
|
|
| 3 |
---
|
| 4 |
Hey! This isn't a model really, but it installs RVC in SUPER RECORD fast time on Google Colab! 3 minute install! It zips all the pips and puts them in a zip file, then just downloads the zip file for the next run!
|
| 5 |
|
| 6 |
-
Here
|
| 7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
| 4 |
Hey! This isn't a model really, but it installs RVC in SUPER RECORD fast time on Google Colab! 3 minute install! It zips all the pips and puts them in a zip file, then just downloads the zip file for the next run!
|
| 5 |
|
| 6 |
+
Here is the code I used to create the zip file:
|
| 7 |
|
| 8 |
+
#@title Install dependencies to Google Drive
|
| 9 |
+
RequirementsDriveText="""joblib>=1.1.0
|
| 10 |
+
numba==0.56.4
|
| 11 |
+
numpy==1.23.5
|
| 12 |
+
scipy
|
| 13 |
+
librosa==0.9.1
|
| 14 |
+
llvmlite==0.39.0
|
| 15 |
+
fairseq>=0.12.2
|
| 16 |
+
soundfile>=0.12.1
|
| 17 |
+
ffmpeg-python>=0.2.0
|
| 18 |
+
matplotlib==3.9.4
|
| 19 |
+
matplotlib-inline>=0.1.3
|
| 20 |
+
praat-parselmouth>=0.4.2
|
| 21 |
+
Pillow>=9.1.1
|
| 22 |
+
resampy>=0.4.2
|
| 23 |
+
scikit-learn
|
| 24 |
+
tensorboard==2.19.0
|
| 25 |
+
tqdm>=4.63.1
|
| 26 |
+
sympy==1.13.1
|
| 27 |
+
tabulate>=0.8.10
|
| 28 |
+
PyYAML>=6.0
|
| 29 |
+
absl-py>=1.2.0
|
| 30 |
+
audioread
|
| 31 |
+
colorama>=0.4.5
|
| 32 |
+
pyworld==0.3.2
|
| 33 |
+
av
|
| 34 |
+
torch==2.5.0"""
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
%cd /content
|
| 40 |
+
import os
|
| 41 |
+
from google.colab import drive
|
| 42 |
+
drive.mount('/content/drive')
|
| 43 |
+
|
| 44 |
+
#default installation: /usr/local/lib/python3.10/dist-packages
|
| 45 |
+
|
| 46 |
+
RequirementsFile = open("/content/requirements.txt", "w")
|
| 47 |
+
RequirementsFile.write(RequirementsDriveText)
|
| 48 |
+
RequirementsFile.close()
|
| 49 |
+
|
| 50 |
+
!sudo apt install python3.10 python3.10-venv python3.10-dev python3.10-minimal python3.10-distutils
|
| 51 |
+
!curl -O https://bootstrap.pypa.io/get-pip.py
|
| 52 |
+
!python3.10 get-pip.py
|
| 53 |
+
!python3.10 -m pip install --upgrade pip==24.0
|
| 54 |
+
|
| 55 |
+
if not os.path.exists("/local/lib/python3.10/dist-packages"):
|
| 56 |
+
os.makedirs("/local/lib/python3.10/dist-packages")
|
| 57 |
+
!python3.10 -m pip install -r requirements.txt --target="/local/lib/python3.10/dist-packages"
|
| 58 |
+
if not os.path.exists("/local/lib/python3.11/dist-packages"):
|
| 59 |
+
os.makedirs("/local/lib/python3.11/dist-packages")
|
| 60 |
+
!python -m pip install faiss-cpu==1.7.3 numpy==1.26.4 pydub --target="/local/lib/python3.11/dist-packages"
|
| 61 |
+
|
| 62 |
+
print("Zipping the pip")
|
| 63 |
+
src_dir = "/local"
|
| 64 |
+
zip_path = "/content/dist-packages.zip"
|
| 65 |
+
!zip -r $zip_path $src_dir
|
| 66 |
+
print(f"Zipped to: {zip_path}")
|
| 67 |
+
print("Copying to google drive")
|
| 68 |
+
if not os.path.exists("/content/drive/MyDrive/speed_up_RVC"):
|
| 69 |
+
os.path.makedirs("/content/drive/MyDrive/speed_up_RVC")
|
| 70 |
+
!cp $zip_path "/content/drive/MyDrive/speed_up_RVC"
|
| 71 |
+
print("FINISHED!")
|