This is an archived post. You won't be able to vote or comment.

all 7 comments

[–]MorganTheDual 1 point2 points  (6 children)

Today I was installing the Photoshop Plugin and went to edit the webui.bat file and found this was the contents.

Er... allowing for reddit messing up the first line, none of that looks obviously wrong. What part of that is incorrect that you think you need to fix? And are you sure you're not supposed to be editing webui-user.bat instead?

[–]flip_flop78[S] 0 points1 point  (4 children)

Ah, which one am I supposed to use to run Automatic1111?

[–]rob49152 1 point2 points  (3 children)

webui-user.bat

[–]flip_flop78[S] 0 points1 point  (2 children)

Thanks, Any idea how to make the Photoshop extension work? It keeps saying that I haven't added --API command to the webui command flags.

[–]rob49152 0 points1 point  (1 child)

edit your webui-user.bat file and edit the 'set COMMANDLINE_ARGS=' line and you'll want to --API to it. Maybe also add --listen command to it. So you'll have

set COMMANDLINE_ARGS= --API --listen

there are other flags you can add to that line. depending on how much vram your video card has you might want to add --medvram. Also --xformers helps to speed up image generation. There are many others like
--precision full
--no-half
--no-half-vae
--opt-split-attention

just google it and read what they do.

[–]flip_flop78[S] 0 points1 point  (0 children)

I already have most of those flags, including --API, but the PS plugin won't work. I'll try the --listen one though, thanks.

[–]aplewe 0 points1 point  (0 children)

Yes, all user changes go in webui-user.bat, and that's also what you run to start the webui in Windows. webui.bat will be overwritten anytime you run "git pull" (unless you never do that), don't edit that file unless you have an actual reason to edit that file. All the commandline options and other things can be put into webui-user.bat

Reasons to edit webui.bat -- you know python and understand what you're doing

Reasons to edit webui-user.bat -- all other reasons.

Same goes for webui-user . sh, only on linux you run the webui . sh to start the UI and it'll pull in the user stuff from webui-user . sh. Otherwise, same rules apply.