Minimal deps + only essential RVC modules
Browse files- Dockerfile +12 -5
- infer/__init__.py +0 -0
- requirements.txt +5 -10
Dockerfile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
FROM
|
| 2 |
|
| 3 |
ENV DEBIAN_FRONTEND=noninteractive
|
| 4 |
ENV PIP_NO_CACHE_DIR=1
|
|
@@ -14,13 +14,20 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 14 |
|
| 15 |
WORKDIR /app
|
| 16 |
|
| 17 |
-
# Install
|
| 18 |
COPY requirements.txt .
|
| 19 |
RUN pip install --no-cache-dir --timeout=300 -r requirements.txt
|
| 20 |
|
| 21 |
-
# Copy
|
| 22 |
-
COPY infer
|
| 23 |
-
COPY
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
COPY configs ./configs
|
| 25 |
COPY i18n ./i18n
|
| 26 |
|
|
|
|
| 1 |
+
FROM python:3.10-slim
|
| 2 |
|
| 3 |
ENV DEBIAN_FRONTEND=noninteractive
|
| 4 |
ENV PIP_NO_CACHE_DIR=1
|
|
|
|
| 14 |
|
| 15 |
WORKDIR /app
|
| 16 |
|
| 17 |
+
# Install minimal Python dependencies in one go
|
| 18 |
COPY requirements.txt .
|
| 19 |
RUN pip install --no-cache-dir --timeout=300 -r requirements.txt
|
| 20 |
|
| 21 |
+
# Copy only essential RVC modules
|
| 22 |
+
COPY infer/__init__.py infer/
|
| 23 |
+
COPY infer/audio.py infer/
|
| 24 |
+
COPY infer/hubert.py infer/
|
| 25 |
+
COPY infer/rmvpe.py infer/
|
| 26 |
+
COPY infer/fcpe.py infer/
|
| 27 |
+
COPY infer/vc ./infer/vc
|
| 28 |
+
COPY infer/module ./infer/module
|
| 29 |
+
COPY tools/cuda_graph.py tools/
|
| 30 |
+
COPY tools/file_io.py tools/
|
| 31 |
COPY configs ./configs
|
| 32 |
COPY i18n ./i18n
|
| 33 |
|
infer/__init__.py
ADDED
|
File without changes
|
requirements.txt
CHANGED
|
@@ -1,4 +1,8 @@
|
|
| 1 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
numpy>=1.24.0,<2
|
| 3 |
scipy>=1.10.0,<2
|
| 4 |
librosa>=0.10.0,<0.11
|
|
@@ -10,19 +14,10 @@ tqdm>=4.67.0,<5
|
|
| 10 |
huggingface_hub>=0.20.0
|
| 11 |
ffmpeg-python>=0.2.0,<1
|
| 12 |
av>=15.1.0,<16
|
| 13 |
-
einops>=0.8.0,<1
|
| 14 |
onnxruntime>=1.24.4,<2
|
| 15 |
-
opencv-python-headless>=4.10.0,<5
|
| 16 |
scikit-learn>=1.6.0,<2
|
| 17 |
PyYAML>=6.0
|
| 18 |
-
coloredlogs>=15.0,<16
|
| 19 |
-
torchfcpe>=0.0.4,<0.1
|
| 20 |
-
hyper-connections>=0.1.8,<0.4.3
|
| 21 |
-
local-attention>=1.11.0,<2
|
| 22 |
-
networkx>=3.2.0,<4
|
| 23 |
-
matplotlib>=3.8.2,<4
|
| 24 |
|
| 25 |
-
# Gradio & web deps
|
| 26 |
gradio>=4.44.0
|
| 27 |
fastapi>=0.88.0,<0.100
|
| 28 |
uvicorn>=0.20.0,<0.23
|
|
|
|
| 1 |
+
# Minimal RVC inference dependencies
|
| 2 |
+
torch==2.4.1+cpu
|
| 3 |
+
torchaudio==2.4.1+cpu
|
| 4 |
+
--index-url https://download.pytorch.org/whl/cpu
|
| 5 |
+
|
| 6 |
numpy>=1.24.0,<2
|
| 7 |
scipy>=1.10.0,<2
|
| 8 |
librosa>=0.10.0,<0.11
|
|
|
|
| 14 |
huggingface_hub>=0.20.0
|
| 15 |
ffmpeg-python>=0.2.0,<1
|
| 16 |
av>=15.1.0,<16
|
|
|
|
| 17 |
onnxruntime>=1.24.4,<2
|
|
|
|
| 18 |
scikit-learn>=1.6.0,<2
|
| 19 |
PyYAML>=6.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
|
|
|
| 21 |
gradio>=4.44.0
|
| 22 |
fastapi>=0.88.0,<0.100
|
| 23 |
uvicorn>=0.20.0,<0.23
|