Spaces:
Runtime error
Runtime error
kevinwang676
commited on
Commit
•
9cdb7bb
1
Parent(s):
5791344
Update Dockerfile
Browse files- Dockerfile +7 -13
Dockerfile
CHANGED
@@ -34,7 +34,7 @@ RUN mkdir -p /content/numbacache
|
|
34 |
RUN chmod -R 777 /content/numbacache
|
35 |
|
36 |
# try fix
|
37 |
-
# PermissionError: [Errno 13] Permission denied: '/.cache' (
|
38 |
RUN mkdir -p /content/demucscache
|
39 |
RUN chmod -R 777 /content/demucscache
|
40 |
RUN ln -s /content/demucscache /.cache
|
@@ -43,7 +43,7 @@ RUN ln -s /content/demucscache /.cache
|
|
43 |
WORKDIR /content
|
44 |
|
45 |
# set environment
|
46 |
-
# PYTORCH_NO_CUDA_MEMORY_CACHING can help users with even smaller RAM such as 2GB
|
47 |
ENV PYTORCH_NO_CUDA_MEMORY_CACHING=1 \
|
48 |
MPLCONFIGDIR=/content/mplconfig \
|
49 |
NUMBA_CACHE_DIR=/content/numbacache
|
@@ -79,7 +79,7 @@ RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://raw.githubuser
|
|
79 |
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://raw.githubusercontent.com/fumiama/Retrieval-based-Voice-Conversion-WebUI/main/infer_pack/transforms.py -d /content/infer_pack -o transforms.py
|
80 |
|
81 |
# download library infer_pipeline.py
|
82 |
-
|
83 |
|
84 |
# download library config.py and util.py
|
85 |
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/spaces/DJQmUKV/rvc-inference/raw/main/config.py -d /content -o config.py
|
@@ -87,15 +87,9 @@ RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co
|
|
87 |
|
88 |
# extract models
|
89 |
RUN mkdir -p model
|
90 |
-
RUN unzip -x
|
91 |
-
RUN mv -v
|
92 |
-
RUN rm
|
93 |
-
RUN unzip -x vae.zip
|
94 |
-
RUN mv -v vae model
|
95 |
-
RUN rm vae.zip
|
96 |
-
RUN unzip -x stefanie_sun.zip
|
97 |
-
RUN mv -v stefanie_sun model
|
98 |
-
RUN rm stefanie_sun.zip
|
99 |
|
100 |
# check /tmp
|
101 |
RUN ls -l /tmp
|
@@ -106,4 +100,4 @@ EXPOSE 7860
|
|
106 |
# run app
|
107 |
CMD ["python", "app.py"]
|
108 |
|
109 |
-
# Enjoy run Gradio!
|
|
|
34 |
RUN chmod -R 777 /content/numbacache
|
35 |
|
36 |
# try fix
|
37 |
+
# PermissionError: [Errno 13] Permission denied: '/.cache' (demucs)
|
38 |
RUN mkdir -p /content/demucscache
|
39 |
RUN chmod -R 777 /content/demucscache
|
40 |
RUN ln -s /content/demucscache /.cache
|
|
|
43 |
WORKDIR /content
|
44 |
|
45 |
# set environment
|
46 |
+
# PYTORCH_NO_CUDA_MEMORY_CACHING is can help users with even smaller RAM such as 2GB (Demucs)
|
47 |
ENV PYTORCH_NO_CUDA_MEMORY_CACHING=1 \
|
48 |
MPLCONFIGDIR=/content/mplconfig \
|
49 |
NUMBA_CACHE_DIR=/content/numbacache
|
|
|
79 |
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://raw.githubusercontent.com/fumiama/Retrieval-based-Voice-Conversion-WebUI/main/infer_pack/transforms.py -d /content/infer_pack -o transforms.py
|
80 |
|
81 |
# download library infer_pipeline.py
|
82 |
+
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/spaces/DJQmUKV/rvc-inference/raw/main/vc_infer_pipeline.py -d /content -o vc_infer_pipeline.py
|
83 |
|
84 |
# download library config.py and util.py
|
85 |
RUN aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/spaces/DJQmUKV/rvc-inference/raw/main/config.py -d /content -o config.py
|
|
|
87 |
|
88 |
# extract models
|
89 |
RUN mkdir -p model
|
90 |
+
RUN unzip -x yanzi.zip
|
91 |
+
RUN mv -v yanzi model
|
92 |
+
RUN rm yanzi.zip
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
|
94 |
# check /tmp
|
95 |
RUN ls -l /tmp
|
|
|
100 |
# run app
|
101 |
CMD ["python", "app.py"]
|
102 |
|
103 |
+
# Enjoy run Gradio!
|