mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-01-23 13:35:12 +03:00
WIP:
This commit is contained in:
parent
2f79283e28
commit
161c25aea9
@ -41,9 +41,9 @@ trainer/dataset/
|
|||||||
└── multi_speaker_correspondence.txt
|
└── multi_speaker_correspondence.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
(2) start.shをrootにコピー
|
(2) start_trainer.shをrootにコピー
|
||||||
|
|
||||||
(3) `bash start.sh`を実行
|
(3) `bash start_trainer.sh`を実行
|
||||||
|
|
||||||
(4) Docker内で次のコマンドを実行
|
(4) Docker内で次のコマンドを実行
|
||||||
batch sizeは適宜調整
|
batch sizeは適宜調整
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
DOCKER_IMAGE=dannadori/trainer:20230131_182050
|
||||||
|
|
||||||
docker run --gpus all --rm -ti \
|
docker run --gpus all --rm -ti \
|
||||||
-v `pwd`/trainer/dataset:/MMVC_Trainer/dataset \
|
-v `pwd`/trainer/dataset:/MMVC_Trainer/dataset \
|
||||||
-v `pwd`/trainer/configs:/MMVC_Trainer/configs \
|
-v `pwd`/trainer/configs:/MMVC_Trainer/configs \
|
||||||
@ -7,7 +12,7 @@ docker run --gpus all --rm -ti \
|
|||||||
-v `pwd`/trainer/logs:/MMVC_Trainer/logs \
|
-v `pwd`/trainer/logs:/MMVC_Trainer/logs \
|
||||||
-v `pwd`/trainer/filelists:/MMVC_Trainer/filelists \
|
-v `pwd`/trainer/filelists:/MMVC_Trainer/filelists \
|
||||||
-p 5000:5000 \
|
-p 5000:5000 \
|
||||||
trainer /bin/bash
|
$DOCKER_IMAGE /bin/bash
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -11,6 +11,7 @@
|
|||||||
"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",
|
||||||
"push:docker": "bash script/001_pushDocker.sh",
|
"push:docker": "bash script/001_pushDocker.sh",
|
||||||
|
"push:docker:trainer": "bash script/002_pushDockerTrainer.sh",
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
7
script/002_pushDockerTrainer.sh
Normal file
7
script/002_pushDockerTrainer.sh
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
data_tag=`date +%Y%m%d_%H%M%S`
|
||||||
|
docker login
|
||||||
|
|
||||||
|
docker tag trainer dannadori/trainer:$data_tag
|
||||||
|
docker push dannadori/trainer:$data_tag
|
Loading…
Reference in New Issue
Block a user