zero01101 / openOutpaint

local offline javascript and html canvas outpainting gizmo for stable diffusion webUI API 🐠
MIT License
503 stars 44 forks source link

Don't launch on TheLastBen Colab #158

Closed cerarslan closed 1 year ago

cerarslan commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

I did this step

In your webUI installation directory, open webui-user.bat/sh in a text editor, and ensure the line starting with set COMMANDLINE_ARGS= contains the following: --api --cors-allow-origins=http://127.0.0.1:3456, then save the file.

but I couldn't found/understand this step NOTE: the commandline flag --gradio-debug disables custom API routes and completely breaks openOutpaint. if applicable, please remove it from your COMMANDLINE_ARGS before running openOutpaint.

Additional context

openOutpaint init Error loading script: main.py Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/scripts.py", line 205, in load_scripts module = script_loading.load_module(scriptfile.path) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/script_loading.py", line 13, in load_module exec(compiled, module.dict) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/openOutpaint-webUI-extension/scripts/main.py", line 40, in print(run(f'"{git}" -C "' + scripts.basedir() + File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/launch.py", line 64, in run raise RuntimeError(message) RuntimeError: Error running command. Command: "git" -C "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/openOutpaint-webUI-extension" submodule update --init --recursive --remote Error code: 1 stdout: stderr: fatal: destination path '/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/openOutpaint-webUI-extension/app' already exists and is not an empty directory. fatal: clone of 'https://github.com/zero01101/openOutpaint.git' into submodule path '/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/openOutpaint-webUI-extension/app' failed Failed to clone 'app'. Retry scheduled fatal: destination path '/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/openOutpaint-webUI-extension/app' already exists and is not an empty directory. fatal: clone of 'https://github.com/zero01101/openOutpaint.git' into submodule path '/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/openOutpaint-webUI-extension/app' failed Failed to clone 'app' a second time, aborting

seijihariki commented 1 year ago

Hi! have you added the %cd?

Yours seems to be a different problem, but here is a quick fix for some problems TheLastBen colab users were facing with extensions.

seijihariki commented 1 year ago

For now, a fix is to delete on GDrive the folder SD/extensions/the extension/app and run the webui again

cerarslan commented 1 year ago

thank you! Now I can launch and see extension tab on webui but now I see {"detail":"Not Found"} error. Sorry to bother you my newbie questions :(

seijihariki commented 1 year ago

Have you added the %cd from earlier?

seijihariki commented 1 year ago

image

The

%cd /content/gdrive/MyDrive/sd/stable-diffusion-webui

command should be added before the last try: tag.

Remember to also enable the API:

image

seijihariki commented 1 year ago

If that still didn't work, delete the whole extension from your gdrive and reinstall it from the webui extensions tab.

cerarslan commented 1 year ago

After that Enable_API = True and %cd /content/gdrive/MyDrive/sd/stable-diffusion-webui command, I delete extensions folder and reinstalled the extension and it worked now. Thx so much my friend!

seijihariki commented 1 year ago

No problem! Glad to help.

For Colaborators: It seems the installation process has been... A bit unstable recently. Will keep an eye on this and close the issue for now.