mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-01-23 21:45:00 +03:00
commit
d1bd3e9e52
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
DOCKER_IMAGE=dannadori/voice-changer:20221103_235534
|
DOCKER_IMAGE=dannadori/voice-changer:20221104_021706
|
||||||
#DOCKER_IMAGE=voice-changer
|
#DOCKER_IMAGE=voice-changer
|
||||||
|
|
||||||
|
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
# 参考:https://programwiz.org/2022/03/22/how-to-write-shell-script-for-option-parsing/
|
# 参考:https://programwiz.org/2022/03/22/how-to-write-shell-script-for-option-parsing/
|
||||||
|
|
||||||
|
#set -eux
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
MODE=$1
|
MODE=$1
|
||||||
@ -19,23 +20,17 @@ echo "------"
|
|||||||
if [ "${MODE}" = "MMVC" ] ; then
|
if [ "${MODE}" = "MMVC" ] ; then
|
||||||
cd /voice-changer-internal/voice-change-service
|
cd /voice-changer-internal/voice-change-service
|
||||||
|
|
||||||
ls /resources/* >/dev/null 2>&1
|
if [[ -e /resources/setting.json ]]; then
|
||||||
|
echo "指定された設定(setting.json)を使用します。"
|
||||||
if [ $? -ne 0 ]; then
|
cp /resources/setting.json ../frontend/dist/assets/setting.json
|
||||||
echo "デフォルトの設定を使用します。"
|
|
||||||
else
|
|
||||||
echo "指定された設定を使用します。"
|
|
||||||
cp -r /resources/* .
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if [[ -e ./setting.json ]]; then
|
|
||||||
cp ./setting.json ../frontend/dist/assets/setting.json
|
|
||||||
else
|
else
|
||||||
|
echo "デフォルトの設定(setting.json)を使用します。"
|
||||||
cp ../frontend/dist/assets/setting_mmvc.json ../frontend/dist/assets/setting.json
|
cp ../frontend/dist/assets/setting_mmvc.json ../frontend/dist/assets/setting.json
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
find /resources/ -type f -name "config.json" | xargs -I{} sh -c 'echo "config.jsonをコピーします。" && cp {} ./'
|
||||||
|
find /resources/ -type f -name "*.pth" | xargs -I{} sh -c 'echo "`basename {}`をコピーします。" && cp {} ./'
|
||||||
|
|
||||||
if [ "${VERBOSE}" = "on" ]; then
|
if [ "${VERBOSE}" = "on" ]; then
|
||||||
echo "MMVCを起動します(verbose)"
|
echo "MMVCを起動します(verbose)"
|
||||||
python3 MMVCServerSIO.py $PARAMS
|
python3 MMVCServerSIO.py $PARAMS
|
||||||
@ -43,6 +38,7 @@ if [ "${MODE}" = "MMVC" ] ; then
|
|||||||
echo "MMVCを起動します"
|
echo "MMVCを起動します"
|
||||||
python3 MMVCServerSIO.py $PARAMS 2>stderr.txt
|
python3 MMVCServerSIO.py $PARAMS 2>stderr.txt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
elif [ "${MODE}" = "MMVC_TRAIN" ] ; then
|
elif [ "${MODE}" = "MMVC_TRAIN" ] ; then
|
||||||
python3 create_dataset_jtalk.py -f train_config -s 24000 -m dataset/multi_speaker_correspondence.txt
|
python3 create_dataset_jtalk.py -f train_config -s 24000 -m dataset/multi_speaker_correspondence.txt
|
||||||
# date_tag=`date +%Y%m%d%H%M%S`
|
# date_tag=`date +%Y%m%d%H%M%S`
|
||||||
|
Loading…
Reference in New Issue
Block a user