fix: docker

This commit is contained in:
wataru 2023-06-18 17:11:44 +09:00
parent df199516c2
commit dd7a343c65
3 changed files with 6 additions and 5 deletions

View File

@ -43,8 +43,6 @@ ADD dummy /
RUN git clone https://github.com/w-okada/voice-changer.git -b v.1.5.3.5a RUN git clone https://github.com/w-okada/voice-changer.git -b v.1.5.3.5a
ADD /setup.sh /voice-changer/server
ADD /exec.sh /voice-changer/server
RUN chmod 0777 /voice-changer/server RUN chmod 0777 /voice-changer/server
WORKDIR /voice-changer/server WORKDIR /voice-changer/server
@ -64,4 +62,9 @@ RUN git clone https://github.com/yxlllc/DDSP-SVC.git DDSP-SVC
RUN cd DDSP-SVC && git checkout e716efb14aee747492bc6ac1deb07506c26ed550 && cd - RUN cd DDSP-SVC && git checkout e716efb14aee747492bc6ac1deb07506c26ed550 && cd -
RUN git clone https://github.com/liujing04/Retrieval-based-Voice-Conversion-WebUI.git RVC RUN git clone https://github.com/liujing04/Retrieval-based-Voice-Conversion-WebUI.git RVC
RUN cd RVC && git checkout 563c64ded9925085f547b13ecafb8eb9c182952b && cd - RUN cd RVC && git checkout 563c64ded9925085f547b13ecafb8eb9c182952b && cd -
ADD /setup.sh /voice-changer/server
ADD /exec.sh /voice-changer/server
ENTRYPOINT ["/bin/bash", "setup.sh"] ENTRYPOINT ["/bin/bash", "setup.sh"]

View File

@ -2,7 +2,7 @@
set -eu set -eu
cp -r /weights/* /voice-changer/server/ # cp -r /weights/* /voice-changer/server/
# /bin/bash # /bin/bash
python3 MMVCServerSIO.py $@ python3 MMVCServerSIO.py $@

View File

@ -21,7 +21,6 @@ if [ "${USE_GPU}" = "on" ]; then
echo "VC Client start...(with gpu)" echo "VC Client start...(with gpu)"
docker run -it --rm --gpus all --shm-size=1024M \ docker run -it --rm --gpus all --shm-size=1024M \
-v `pwd`/docker_vcclient/weights:/weights \
-e EX_IP="`hostname -I`" \ -e EX_IP="`hostname -I`" \
-e EX_PORT=${EX_PORT} \ -e EX_PORT=${EX_PORT} \
-e LOCAL_UID=$(id -u $USER) \ -e LOCAL_UID=$(id -u $USER) \
@ -37,7 +36,6 @@ if [ "${USE_GPU}" = "on" ]; then
else else
echo "VC Client start...(cpu)" echo "VC Client start...(cpu)"
docker run -it --rm --shm-size=1024M \ docker run -it --rm --shm-size=1024M \
-v `pwd`/docker_vcclient/weights:/weights \
-e EX_IP="`hostname -I`" \ -e EX_IP="`hostname -I`" \
-e EX_PORT=${EX_PORT} \ -e EX_PORT=${EX_PORT} \
-e LOCAL_UID=$(id -u $USER) \ -e LOCAL_UID=$(id -u $USER) \