Merge pull request #6334 from jchook/exec

Fixes webui.sh to exec LAUNCH_SCRIPT
This commit is contained in:
AUTOMATIC1111 2023-01-05 10:12:25 +03:00 committed by GitHub
commit f3df261508
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -160,10 +160,10 @@ then
printf "\n%s\n" "${delimiter}"
printf "Accelerating launch.py..."
printf "\n%s\n" "${delimiter}"
accelerate launch --num_cpu_threads_per_process=6 "${LAUNCH_SCRIPT}" "$@"
exec accelerate launch --num_cpu_threads_per_process=6 "${LAUNCH_SCRIPT}" "$@"
else
printf "\n%s\n" "${delimiter}"
printf "Launching launch.py..."
printf "\n%s\n" "${delimiter}"
"${python_cmd}" "${LAUNCH_SCRIPT}" "$@"
exec "${python_cmd}" "${LAUNCH_SCRIPT}" "$@"
fi