forked from w-okada/voice-changer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexec.sh
36 lines (26 loc) · 1.08 KB
/
exec.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
set -eu
MODE=$1
PARAMS=${@:2:($#-1)}
echo "------"
echo "$@"
echo "TYPE: $MODE"
echo "PARAMS: $PARAMS"
# echo "VERBOSE: $VERBOSE"
echo "------"
#cd /voice-changer-internal/voice-change-service
# 起動
if [ "${MODE}" = "MMVC" ] ; then
# if [[ -e /resources/setting.json ]]; then
# echo "指定された設定(setting.json)を使用します。"
# cp /resources/setting.json ../frontend/dist/assets/setting.json
# 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 {} ./'
find /resources/ -type f -name "*.onnx" | xargs -I{} sh -c 'echo "`basename {}`をコピーします。" && cp {} ./'
echo "MMVCを起動します"
python3 MMVCServerSIO.py -t MMVC $PARAMS #2>stderr.txt
elif [ "${MODE}" = "TRAIN" ] ; then
python3 -m tensorboard.main --logdir MMVC_Trainer/logs --port 6006 --host 0.0.0.0 &
python3 MMVCServerSIO.py -t TRAIN $PARAMS
fi