mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-02-02 16:23:58 +03:00
update
This commit is contained in:
parent
5ea920433e
commit
5f540cd162
@ -161,6 +161,10 @@ if __name__ == thisFilename or args.colab == True:
|
||||
sio,
|
||||
other_asgi_app=app_fastapi,
|
||||
static_files={
|
||||
'/assets/icons/github.svg': {
|
||||
'filename':'../frontend/dist/assets/icons/github.svg',
|
||||
'content_type':'image/svg+xml'
|
||||
},
|
||||
'': '../frontend/dist',
|
||||
'/': '../frontend/dist/index.html',
|
||||
}
|
||||
|
14
frontend/dist/index.html
vendored
14
frontend/dist/index.html
vendored
@ -1,13 +1 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ja" style="width: 100%; height: 100%; overflow: hidden">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>voice recorder</title>
|
||||
<script defer src="index.js"></script></head>
|
||||
<body style="width: 100%; height: 100%; margin: 0px">
|
||||
<div id="app" style="width: 100%; height: 100%"></div>
|
||||
<noscript>
|
||||
<strong>javascriptを有効にしてください</strong>
|
||||
</noscript>
|
||||
</body>
|
||||
</html>
|
||||
<!doctype html><html lang="ja" style="width:100%;height:100%;overflow:hidden"><head><meta charset="utf-8"/><title>voice recorder</title><script defer="defer" src="index.js"></script></head><body style="width:100%;height:100%;margin:0"><div id="app" style="width:100%;height:100%"></div><noscript><strong>javascriptを有効にしてください</strong></noscript></body></html>
|
4940
frontend/dist/index.js
vendored
4940
frontend/dist/index.js
vendored
File diff suppressed because one or more lines are too long
21
start2.sh
21
start2.sh
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
set -eu
|
||||
|
||||
DOCKER_IMAGE=dannadori/voice-changer:20221029_233016
|
||||
DOCKER_IMAGE=dannadori/voice-changer:20221103_180651
|
||||
#DOCKER_IMAGE=voice-changer
|
||||
|
||||
|
||||
@ -75,28 +75,11 @@ elif [ "${MODE}" = "MMVC" ]; then
|
||||
# -p ${EX_PORT}:8080 $DOCKER_IMAGE /bin/bash
|
||||
|
||||
fi
|
||||
|
||||
elif [ "${MODE}" = "SOFT_VC" ]; then
|
||||
if [ "${USE_GPU}" = "on" ]; then
|
||||
echo "Start Soft-vc"
|
||||
|
||||
docker run -it --gpus all --shm-size=128M \
|
||||
-v `pwd`/vc_resources:/resources \
|
||||
-e LOCAL_UID=$(id -u $USER) \
|
||||
-e LOCAL_GID=$(id -g $USER) \
|
||||
-e EX_IP="`hostname -I`" \
|
||||
-e EX_PORT=${EX_PORT} \
|
||||
-e VERBOSE=${VERBOSE} \
|
||||
-p ${EX_PORT}:8080 $DOCKER_IMAGE "$@"
|
||||
else
|
||||
echo "Start Soft-vc withou GPU is not supported"
|
||||
fi
|
||||
|
||||
else
|
||||
echo "
|
||||
usage:
|
||||
$0 <MODE> <params...>
|
||||
MODE: select one of ['MMVC_TRAIN', 'MMVC', 'SOFT_VC']
|
||||
MODE: select one of ['MMVC_TRAIN', 'MMVC']
|
||||
" >&2
|
||||
fi
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM dannadori/voice-changer-internal:20221103_041401 as front
|
||||
FROM dannadori/voice-changer-internal:20221103_180551 as front
|
||||
FROM debian:bullseye-slim as base
|
||||
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
@ -17,23 +17,7 @@ echo "------"
|
||||
|
||||
|
||||
# 起動
|
||||
if [ "${MODE}" = "SOFT_VC" ] ; then
|
||||
cd /voice-changer-internal/voice-change-service
|
||||
|
||||
cp -r /resources/* .
|
||||
if [[ -e ./setting.json ]]; then
|
||||
cp ./setting.json ../frontend/dist/assets/setting.json
|
||||
else
|
||||
cp ../frontend/dist/assets/setting_softvc.json ../frontend/dist/assets/setting.json
|
||||
fi
|
||||
if [ "${VERBOSE}" = "on" ]; then
|
||||
echo "SOFT_VCを起動します(verbose)"
|
||||
python3 SoftVcServerSIO.py $PARAMS
|
||||
else
|
||||
echo "SOFT_VCを起動します"
|
||||
python3 SoftVcServerSIO.py $PARAMS 2>stderr.txt
|
||||
fi
|
||||
elif [ "${MODE}" = "MMVC" ] ; then
|
||||
if [ "${MODE}" = "MMVC" ] ; then
|
||||
cd /voice-changer-internal/voice-change-service
|
||||
|
||||
cp -r /resources/* .
|
||||
@ -45,10 +29,10 @@ elif [ "${MODE}" = "MMVC" ] ; then
|
||||
|
||||
if [ "${VERBOSE}" = "on" ]; then
|
||||
echo "MMVCを起動します(verbose)"
|
||||
python3 serverSIO.py $PARAMS
|
||||
python3 MMVCServerSIO.py $PARAMS
|
||||
else
|
||||
echo "MMVCを起動します"
|
||||
python3 serverSIO.py $PARAMS 2>stderr.txt
|
||||
python3 MMVCServerSIO.py $PARAMS $PARAMS 2>stderr.txt
|
||||
fi
|
||||
elif [ "${MODE}" = "MMVC_TRAIN" ] ; then
|
||||
python3 create_dataset_jtalk.py -f train_config -s 24000 -m dataset/multi_speaker_correspondence.txt
|
||||
|
Loading…
Reference in New Issue
Block a user