Help! Struggling with the Auto-SD-Paint extension for A1111

Question

As the title suggests, I've been trying to get this plugin working, and I've been having a devil of a time with one final bit.

No matter what I do, I get the message:

auto-sd-paint-ext:WARNING: COMMANDLINE_ARGS does not contain --api, API won't be mounted.

Now, I've edited webui-user both .bat and .sh, I've pasted the exact text into the area, uncommented it, tried it with quotes, without.. everything I can think of, but I still get that message.

UPDATE: Looks like I got it working. For anyone struggling with the same issue, I had to edit the launch.py file, dig around to find the COMMANDLINE_ARGS spot, and have it pass --api.

Soon as I did that, it seemed to load up fine.

UPDATE 2: Okay, so I was unaware I was supposed to launch SD using the bat file. No -wonder- editing it wasn't doing me any good. Thanks for the help!

Posted Nov 8, 2022, 1:06 PM UTC · edited

36
NetLibrarianOP•

If anyone has it working even, if you could copy-paste those specific lines from the webui-user files for me, that would be a huge help.

Thanks!

1
Van-Storm•

Haven't used this extension, but got a similar error message (for --skip-torch-cuda-test) a couple times because I'm on an AMD card. You may have to add --api to the COMMANDLINE_ARGS section of the launch.py file as well. My issue was only cleared when I modified both the launch.py and the webui-user.bat.

1
NetLibrarianOP•

I think this was it. Edited the launch.py and now I'm getting what looks like a success message. Thanks!

2
---Asuka---•

I still get this error even after editing both.

1
Previous_Ad7755•

Here is the fix I found for this problem:

instead of placing your commands in webui-user.bat you do this:

  1. open webui-user.sh
  2. search for "#export COMMANDLINE_ARGS="
  3. remove the #
  4. paste your commands between ""
  5. update by entering "git pull" command in command promt (windows) or Terminal (MacOs) and launch the user interface.if you are on macOS by running this in terminal :cd stable-diffusion-webuigit pull./webui.sh
  6. give an upvote if it helped ;)

update 1: if you get an error launching you might need to add to the ARGS:

--skip-torch-cuda-test

and if this gives you an error when trying to generate. your line of args should look like this:

export COMMANDLINE_ARGS="--skip-torch-cuda-test --no-half --api --gradio-img2img-tool color-sketch --listen "

1
Seraph_95•
1

I got it working. In case anyone else is struggling too here's my webui-user.bat file:

@echo off
set PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=--api --xformers --skip-torch-cuda-test --no-half --listen --gradio-img2img-tool color-sketch
call webui.bat

No changes in launch.py or webui-user.sh

1