Applied changes according to comments on PR

This commit is contained in:
Lukas 2024-12-22 12:17:57 +01:00
parent df33b6749a
commit d150bd0886
4 changed files with 4 additions and 9 deletions

View File

@ -14,6 +14,6 @@ RUN groupadd --system --gid 1000 webui && \
chown -R webui:webui .
USER 1000:1000
RUN ./webui.sh --prepare-environment-only --skip-torch-cuda-test
RUN ./webui.sh --exit --skip-torch-cuda-test
CMD [ "./webui.sh", "--skip-prepare-environment" ]
CMD [ "./webui.sh", "--skip-prepare-environment", "--listen" ]

View File

@ -34,9 +34,6 @@ def main():
launch_utils.startup_timer.record("initial startup")
if args.prepare_environment_only:
print("Setting up requirements wihout starting server as --setup-only flag was passed")
with launch_utils.startup_timer.subcategory("prepare environment"):
if not args.skip_prepare_environment:
prepare_environment()
@ -44,8 +41,7 @@ def main():
if args.test_server:
configure_for_tests()
if not args.prepare_environment_only:
start()
start()
if __name__ == "__main__":

View File

@ -126,4 +126,3 @@ parser.add_argument("--skip-load-model-at-start", action='store_true', help="if
parser.add_argument("--unix-filenames-sanitization", action='store_true', help="allow any symbols except '/' in filenames. May conflict with your browser and file system")
parser.add_argument("--filenames-max-length", type=int, default=128, help='maximal length of filenames of saved images. If you override it, it can conflict with your file system')
parser.add_argument("--no-prompt-history", action='store_true', help="disable read prompt from last generation feature; settings this argument will not create '--data_path/params.txt' file")
parser.add_argument("--prepare-environment-only", action='store_true', help="launch.py argument: only prepare environment without launching webui run with --skip-torch-cuda-test")

View File

@ -10,7 +10,7 @@
#clone_dir="stable-diffusion-webui"
# Commandline arguments for webui.py, for example: export COMMANDLINE_ARGS="--medvram --opt-split-attention"
export COMMANDLINE_ARGS="--listen"
#export COMMANDLINE_ARGS=""
# python3 executable
#python_cmd="python3"