mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-01-23 05:25:01 +03:00
WIP: docker support v1.5.x trial 3
This commit is contained in:
parent
becbbb24b2
commit
d72784a0f8
@ -26,10 +26,14 @@ RUN pip install matplotlib==3.6.3
|
||||
ADD /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
|
||||
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/G_v15_best.pth /MMVC_Trainer/fine_model/
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
set -eu
|
||||
|
||||
DOCKER_IMAGE=dannadori/trainer:20230205_131656
|
||||
DOCKER_IMAGE=dannadori/trainer:20230209_214044
|
||||
# DOCKER_IMAGE=trainer
|
||||
|
||||
docker run --gpus all --rm -ti \
|
||||
|
@ -6,7 +6,7 @@
|
||||
"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: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: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",
|
||||
|
Loading…
Reference in New Issue
Block a user