mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-01-23 05:25:01 +03:00
update
This commit is contained in:
parent
8312189942
commit
fa6944ce9e
@ -10,6 +10,7 @@ GROUP_ID=${LOCAL_GID:-9001}
|
|||||||
echo "exec with [UID : $USER_ID, GID: $GROUP_ID]"
|
echo "exec with [UID : $USER_ID, GID: $GROUP_ID]"
|
||||||
useradd -u $USER_ID -o -m user
|
useradd -u $USER_ID -o -m user
|
||||||
groupmod -g $GROUP_ID user
|
groupmod -g $GROUP_ID user
|
||||||
|
chmod uog+rwx tmp_dir
|
||||||
|
|
||||||
#su user
|
#su user
|
||||||
#echo "parameter: $@"
|
#echo "parameter: $@"
|
||||||
|
@ -24,8 +24,8 @@ if [ "${USE_GPU}" = "on" ]; then
|
|||||||
-e EX_PORT=${EX_PORT} \
|
-e EX_PORT=${EX_PORT} \
|
||||||
-e LOCAL_UID=$(id -u $USER) \
|
-e LOCAL_UID=$(id -u $USER) \
|
||||||
-e LOCAL_GID=$(id -g $USER) \
|
-e LOCAL_GID=$(id -g $USER) \
|
||||||
-v `pwd`/docker_folder/model_dir:/voice-changer/server/model_dir
|
-v `pwd`/docker_folder/model_dir:/voice-changer/server/model_dir \
|
||||||
-v `pwd`/docker_folder/pretrain:/voice-changer/server/pretrain
|
-v `pwd`/docker_folder/pretrain:/voice-changer/server/pretrain \
|
||||||
-p ${EX_PORT}:18888 \
|
-p ${EX_PORT}:18888 \
|
||||||
$DOCKER_IMAGE -p 18888 --https true \
|
$DOCKER_IMAGE -p 18888 --https true \
|
||||||
--content_vec_500 pretrain/checkpoint_best_legacy_500.pt \
|
--content_vec_500 pretrain/checkpoint_best_legacy_500.pt \
|
||||||
@ -47,6 +47,8 @@ else
|
|||||||
-e EX_PORT=${EX_PORT} \
|
-e EX_PORT=${EX_PORT} \
|
||||||
-e LOCAL_UID=$(id -u $USER) \
|
-e LOCAL_UID=$(id -u $USER) \
|
||||||
-e LOCAL_GID=$(id -g $USER) \
|
-e LOCAL_GID=$(id -g $USER) \
|
||||||
|
-v `pwd`/docker_folder/model_dir:/voice-changer/server/model_dir \
|
||||||
|
-v `pwd`/docker_folder/pretrain:/voice-changer/server/pretrain \
|
||||||
-p ${EX_PORT}:18888 \
|
-p ${EX_PORT}:18888 \
|
||||||
$DOCKER_IMAGE -p 18888 --https true \
|
$DOCKER_IMAGE -p 18888 --https true \
|
||||||
--content_vec_500 pretrain/checkpoint_best_legacy_500.pt \
|
--content_vec_500 pretrain/checkpoint_best_legacy_500.pt \
|
||||||
|
Loading…
Reference in New Issue
Block a user