Skip to content

Commit e2f0b23

Browse files
committed
we should probably just remove crepe
1 parent 43d4a3b commit e2f0b23

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

rvc/Dockerfile

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,34 @@
11
# syntax=docker/dockerfile:1
2+
23
FROM nvidia/cuda:11.6.2-cudnn8-runtime-ubuntu20.04
4+
35
EXPOSE 7865
46
WORKDIR /app
57
COPY . .
8+
69
# Install dependencies to add PPAs
710
RUN apt-get update && \
811
apt-get install -y -qq ffmpeg aria2 && apt clean && \
912
apt-get install -y software-properties-common && \
1013
apt-get clean && \
1114
rm -rf /var/lib/apt/lists/*
15+
1216
# Add the deadsnakes PPA to get Python 3.10
1317
RUN add-apt-repository -y ppa:deadsnakes/ppa
18+
1419
# Install Python 3.10 and pip
1520
RUN apt-get update && \
1621
apt-get install -y build-essential python-dev python3-dev python3.10-distutils python3.10-dev python3.10 python3.10-venv curl && \
1722
apt-get clean && \
1823
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1 && \
1924
curl https://bootstrap.pypa.io/get-pip.py | python3.10
25+
2026
# Set Python 3.10 as the default
2127
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.10 1
28+
2229
RUN python3 -m pip install --upgrade pip==24.0
23-
# Install main requirements
2430
RUN python3 -m pip install --no-cache-dir -r requirements.txt
2531

26-
# Create a virtual environment for audio-separator with different librosa version
27-
RUN python3 -m venv /app/venv_separator
28-
# Install audio-separator in the virtual environment
29-
RUN /app/venv_separator/bin/pip install --upgrade pip && \
30-
/app/venv_separator/bin/pip install onnxruntime-gpu audio-separator==0.30.0
31-
32-
# Create a simple wrapper script for audio-separator
33-
RUN echo '#!/bin/bash\n/app/venv_separator/bin/audio-separator "$@"' > /usr/local/bin/audio-separator && \
34-
chmod +x /usr/local/bin/audio-separator
35-
36-
3732
RUN chmod +x /app/scripts/start.sh
3833
VOLUME [ "/app/opt" ]
3934
CMD ["/app/scripts/start.sh"]

rvc/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ joblib>=1.1.0
33
numba==0.56.4
44
numpy==1.23.5
55
scipy
6-
librosa==0.9.1
6+
librosa>=0.10.0,<0.11.0
77
llvmlite==0.39.0
88
fairseq==0.12.2
99
faiss-cpu==1.7.3
@@ -41,7 +41,6 @@ pyworld==0.3.2
4141
httpx
4242
onnxruntime; sys_platform == 'darwin'
4343
onnxruntime-gpu; sys_platform != 'darwin'
44-
torchcrepe==0.0.20
4544
fastapi==0.88
4645
torchfcpe
4746
ffmpy==0.3.1
@@ -50,3 +49,4 @@ av
5049
flask==3.0.2
5150
requests==2.31.0
5251
gunicorn>=20.1.0
52+
audio-separator==0.30.0

0 commit comments

Comments
 (0)