WIP: docker support v1.5.x trial 3

This commit is contained in:
wataru 2023-02-09 21:43:02 +09:00
parent becbbb24b2
commit d72784a0f8
3 changed files with 7 additions and 3 deletions

View File

@ -26,10 +26,14 @@ RUN pip install matplotlib==3.6.3
ADD /warmup.py / ADD /warmup.py /
RUN python3 warmup.py RUN python3 warmup.py
ADD dummy /
RUN git clone --depth 1 -b v1.5.0.0_SiFiGAN https://github.com/isletennos/MMVC_Trainer.git RUN git clone --depth 1 -b v1.5.0.0_SiFiGAN https://github.com/isletennos/MMVC_Trainer.git
WORKDIR /MMVC_Trainer/ WORKDIR /MMVC_Trainer/
RUN git checkout 1109f1201e1ee9008ee61dc221d620eb1c93d7d0 #RUN git checkout 1109f1201e1ee9008ee61dc221d620eb1c93d7d0
RUN git checkout f28a1514b6731c36bd68989c600bff0a3b217d75
ADD /model/D_v15_best.pth /MMVC_Trainer/fine_model/ ADD /model/D_v15_best.pth /MMVC_Trainer/fine_model/
ADD /model/G_v15_best.pth /MMVC_Trainer/fine_model/ ADD /model/G_v15_best.pth /MMVC_Trainer/fine_model/

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
set -eu set -eu
DOCKER_IMAGE=dannadori/trainer:20230205_131656 DOCKER_IMAGE=dannadori/trainer:20230209_214044
# DOCKER_IMAGE=trainer # DOCKER_IMAGE=trainer
docker run --gpus all --rm -ti \ docker run --gpus all --rm -ti \

View File

@ -6,7 +6,7 @@
"scripts": { "scripts": {
"build:docker": "date +%Y%m%d%H%M%S > docker/dummy && DOCKER_BUILDKIT=1 docker build -f docker/Dockerfile docker/ -t voice-changer", "build:docker": "date +%Y%m%d%H%M%S > docker/dummy && DOCKER_BUILDKIT=1 docker build -f docker/Dockerfile docker/ -t voice-changer",
"build:docker:onnx": "DOCKER_BUILDKIT=1 docker build -f docker_onnx/Dockerfile docker/ -t onnx-converter", "build:docker:onnx": "DOCKER_BUILDKIT=1 docker build -f docker_onnx/Dockerfile docker/ -t onnx-converter",
"build:docker:trainer": "DOCKER_BUILDKIT=1 docker build -f docker_trainer/Dockerfile docker_trainer/ -t trainer", "build:docker:trainer": "date +%Y%m%d%H%M%S > docker_trainer/dummy && DOCKER_BUILDKIT=1 docker build -f docker_trainer/Dockerfile docker_trainer/ -t trainer",
"copy:frontend": "docker run -v `pwd`/frontend/dist:/frontend/dist --entrypoint /bin/bash -ti voice-changer -c \"cp -r /voice-changer-internal/frontend/dist/* /frontend/dist\"", "copy:frontend": "docker run -v `pwd`/frontend/dist:/frontend/dist --entrypoint /bin/bash -ti voice-changer -c \"cp -r /voice-changer-internal/frontend/dist/* /frontend/dist\"",
"copy:backend": "docker run -v `pwd`/demo:/demo --entrypoint /bin/bash -ti voice-changer -c \"cp -r /voice-changer-internal/voice-change-service/* /demo/ && rm -rf /demo/MMVC_Trainer/.git && rm -rf /demo/MMVC_Trainer/.gitignore \"", "copy:backend": "docker run -v `pwd`/demo:/demo --entrypoint /bin/bash -ti voice-changer -c \"cp -r /voice-changer-internal/voice-change-service/* /demo/ && rm -rf /demo/MMVC_Trainer/.git && rm -rf /demo/MMVC_Trainer/.gitignore \"",
"create:demo": "run-p copy:frontend copy:backend", "create:demo": "run-p copy:frontend copy:backend",