[bug] Extension seems incompatible with TheLastBen's Colab webui instance
if-ai opened this issue · 102 comments
Internal Server Error?
My guess is that is not yet implemented to run in colab notebooks but install flawlessly this thing looks great I wish I could use it inside colab too
Hi, actually, it seems someone was able to run this on colab, although as an extension: #6 not sure how. @Lesteriax, did you use a publicly available notebook for stable diffusion webui?
Hi @seijihariki, I'm actually using paperspace gradient notebook, not colab, my mistake sorry. The fix happened as follows:
I removed --gradio-debug (not sure where this would be found in other notebooks)
added --api in userbat
added --cors-allow-origins=https://1234567886.gradio.ap in userbat
I would basically launch the webui to get the link and then add it in userbat and refresh
Makes sense, thanks for your input! @jvoxel, would you be able to provide us the notebook you used for this error to crop up? Mostly to investigate the issue further.
A similar issue seems to have cropped up on another user of thelastben's colab.
As this seems to be extension related, will move this issue to the extension's repo and mark the other issue as duplicate.
So, instructions for reproducing this bug were provided by @createperhaps on #10:
Describe the bug When I click the openoutpaint tab I see Internal Server Error. The log says "index.html does not exist" but it does.
To Reproduce I ran TheLastBen colab. I click the extensions tab and scroll to openOutpaint Click "install". Click "refresh GUI". Go to the openOutpaint tab. "internal server error" is displayed.
Expected behavior I expect to see the outpaint GUI.
Screenshots If applicable, add screenshots to help explain your problem.
The notebook seems to live at https://github.com/TheLastBen/fast-stable-diffusion. Will try to reproduce this later today.
I'm centralizing discussion on this problem in this issue here.
Thanks @seijihariki, let me know if you have any questions if anything is unclear. I didn't try to reinstall all of Automatic/SD (given it is more widespread, I doubt that would fix it), though I did restart the collab instance and it didn't sort itself out.
I also tried to see if I could run the cor command and see if I could run it from https://zero01101.github.io/openOutpaint/ but I am not super familiar with Python.
TheLastBen offers two servers, I am using the gradio checkbox if that makes a difference.
Is there a way for us to see the “Internal Server Error” you are getting? If you could help us with a screenshot, it would be great! I am currently testing here, but I guess I need to upload a model to gdrive...
Hey Seiji, theLastBen actually downloads the model automatically, but sure.
Here is the log that I see in my colab while I wait, I will get a screenshot in a moment.
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/starlette/responses.py", line 331, in __call__
stat_result = await anyio.to_thread.run_sync(os.stat, self.path)
File "/usr/local/lib/python3.8/dist-packages/anyio/to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/usr/local/lib/python3.8/dist-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "/usr/local/lib/python3.8/dist-packages/anyio/_backends/_asyncio.py", line 867, in run
result = context.run(func, *args)
FileNotFoundError: [Errno 2] No such file or directory: '/content/gdrive/.shortcut-targets-by-id/1eQNT1dJ_FuqEB3Q6vFiZpTVHuVFZ20dr/sd/stablediffusion/extensions/openOutpaint-webUI-extension/app/index.html'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/uvicorn/protocols/http/h11_impl.py", line 404, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "/usr/local/lib/python3.8/dist-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
return await self.app(scope, receive, send)
File "/usr/local/lib/python3.8/dist-packages/fastapi/applications.py", line 270, in __call__
await super().__call__(scope, receive, send)
File "/usr/local/lib/python3.8/dist-packages/starlette/applications.py", line 124, in __call__
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.8/dist-packages/starlette/middleware/errors.py", line 184, in __call__
raise exc
File "/usr/local/lib/python3.8/dist-packages/starlette/middleware/errors.py", line 162, in __call__
await self.app(scope, receive, _send)
File "/usr/local/lib/python3.8/dist-packages/starlette/middleware/gzip.py", line 24, in __call__
await responder(scope, receive, send)
File "/usr/local/lib/python3.8/dist-packages/starlette/middleware/gzip.py", line 43, in __call__
await self.app(scope, receive, self.send_with_gzip)
File "/usr/local/lib/python3.8/dist-packages/starlette/middleware/cors.py", line 84, in __call__
await self.app(scope, receive, send)
File "/usr/local/lib/python3.8/dist-packages/starlette/middleware/exceptions.py", line 75, in __call__
raise exc
File "/usr/local/lib/python3.8/dist-packages/starlette/middleware/exceptions.py", line 64, in __call__
await self.app(scope, receive, sender)
File "/usr/local/lib/python3.8/dist-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
raise e
File "/usr/local/lib/python3.8/dist-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
await self.app(scope, receive, send)
File "/usr/local/lib/python3.8/dist-packages/starlette/routing.py", line 680, in __call__
await route.handle(scope, receive, send)
File "/usr/local/lib/python3.8/dist-packages/starlette/routing.py", line 275, in handle
await self.app(scope, receive, send)
File "/usr/local/lib/python3.8/dist-packages/starlette/routing.py", line 68, in app
await response(scope, receive, send)
File "/usr/local/lib/python3.8/dist-packages/starlette/responses.py", line 334, in __call__
raise RuntimeError(f"File at path {self.path} does not exist.")
RuntimeError: File at path /content/gdrive/.shortcut-targets-by-id/1eQNT1dJ_FuqEB3Q6vFiZpTVHuVFZ20dr/sd/stablediffusion/extensions/openOutpaint-webUI-extension/app/index.html does not exist.
ERROR:uvicorn.error:Exception in ASGI application
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/starlette/responses.py", line 331, in __call__
stat_result = await anyio.to_thread.run_sync(os.stat, self.path)
File "/usr/local/lib/python3.8/dist-packages/anyio/to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/usr/local/lib/python3.8/dist-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "/usr/local/lib/python3.8/dist-packages/anyio/_backends/_asyncio.py", line 867, in run
result = context.run(func, *args)
FileNotFoundError: [Errno 2] No such file or directory: '/content/gdrive/.shortcut-targets-by-id/1eQNT1dJ_FuqEB3Q6vFiZpTVHuVFZ20dr/sd/stablediffusion/extensions/openOutpaint-webUI-extension/app/index.html
yeah, i was actually just trying this all myself; looks like it starts in the install script actually, it's not even finding launch.py??
Error running install.py for extension /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/openOutpaint-webUI-extension.
Command: "/usr/bin/python3" "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/openOutpaint-webUI-extension/install.py"
Error code: 1
stdout: <empty>
stderr: Traceback (most recent call last):
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/openOutpaint-webUI-extension/install.py", line 3, in <module>
from launch import run
ModuleNotFoundError: No module named 'launch'
filesystem wonkiness? i honestly never use colabs so i have next to zero familiarity with them...
Just throwing out ideas here, but it looks like your script plugs into the API via the web. Given that Gradio generates a URL at runtime, can it plug in if there is no URL? I am assuming local automatic111 is a static link, but maybe not. Of course, that wouldn't explain why a local file cannot be found.
Anyway, back to the topic. I started running my colab again, I noticed the cell writes:
openOutpaint init
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Loading weights [288ccaa5] from /content/gdrive/.shortcut-targets-by-id/1eQNT1dJ_FuqEB3Q6vFiZpTVHuVFZ20dr/sd/stable-diffusion-webui/models/Stable-diffusion/SF_EB_1.1_SD50_ema_vae.ckpt
Applying xformers cross attention optimization.
Model loaded.
Loaded a total of 0 textual inversion embeddings.
Embeddings:
Running on local URL: IP removed for privacy
Running on public URL: IP removed for privacy
The bottom link is the one that has been working for me. When I click it I get the error code I mentioned above, about the file not found.
The error code is pathetically not helpful, which is why I didn't include a screenshot in my original post. Refresh button repeats the error code I posted above.
just out of curiosity i tried installing the dreambooth and dreamartist extensions to the colab and got very similar failures
Error running install.py for extension /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd_dreambooth_extension.
Command: "/usr/bin/python3" "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd_dreambooth_extension/install.py"
Error code: 1
stdout: <empty>
stderr: Traceback (most recent call last):
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd_dreambooth_extension/install.py", line 10, in <module>
from launch import run
ModuleNotFoundError: No module named 'launch'
Closing server running on port: 7860
Reloading extensions
Reloading custom scripts
Error loading script: api.py
Traceback (most recent call last):
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/scripts.py", line 195, 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/sd_dreambooth_extension/scripts/api.py", line 10, in <module>
from extensions.sd_dreambooth_extension.dreambooth.sd_to_diff import extract_checkpoint
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd_dreambooth_extension/dreambooth/sd_to_diff.py", line 36, in <module>
from diffusers import (
ImportError: cannot import name 'HeunDiscreteScheduler' from 'diffusers' (/usr/local/lib/python3.8/dist-packages/diffusers/__init__.py)
Error loading script: main.py
Traceback (most recent call last):
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/scripts.py", line 195, 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/sd_dreambooth_extension/scripts/main.py", line 8, in <module>
from extensions.sd_dreambooth_extension.dreambooth.sd_to_diff import extract_checkpoint
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd_dreambooth_extension/dreambooth/sd_to_diff.py", line 36, in <module>
from diffusers import (
ImportError: cannot import name 'HeunDiscreteScheduler' from 'diffusers' (/usr/local/lib/python3.8/dist-packages/diffusers/__init__.py)
Reloading modules: modules.ui
Refreshing Model List
Restarting Gradio
Running on local URL: http://127.0.0.1:7860/
Running on public URL: https://blahblahblah.gradio.app/
This share link expires in 72 hours. For free permanent hosting and GPU upgrades (NEW!), check out Spaces: https://huggingface.co/spaces
Error running install.py for extension /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/DreamArtist-sd-webui-extension.
Command: "/usr/bin/python3" "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/DreamArtist-sd-webui-extension/install.py"
Error code: 1
stdout: <empty>
stderr: Traceback (most recent call last):
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/DreamArtist-sd-webui-extension/install.py", line 1, in <module>
import launch
ModuleNotFoundError: No module named 'launch'
kinda wondering if this is more of a general extensions vs colab thing
Not sure, Tim. I am using aesthetic gradients successfully, web browser successfully, and Dynamic prompts. @zero01101 do you mind confirming if these 3 work for you? Just so we can see if we're on the same page?
hah, google started yelling at me for going over my storage allotment so i kinda deleted my gdrive's SD and colab folders, let me spin those up again to check - assuming "web browser" is the image browser extension?
From what you guys are describing we would only need to make our extension not have to run command line programs.
[Edit]
In this case, specifically, the git submodule pull
Also, yeah, I was using the wrong ipynb it seems.
Worst case, we can use a try catch to catch import exceptions and just run it using import os
when it triggers for compatibility.
If space is an issue I can share my models folder with you. Sd itself is a few gb, but it would at least clear it up a bit.
no worries on space, thanks though :)
dynamic prompts returned an error on install:
Error running install.py for extension /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-dynamic-prompts.
Command: "/usr/bin/python3" "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-dynamic-prompts/install.py"
Error code: 1
stdout: <empty>
stderr: Traceback (most recent call last):
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/sd-dynamic-prompts/install.py", line 1, in <module>
import launch
ModuleNotFoundError: No module named 'launch'
but otherwise does appear to run as expected... it's also the only one of the three with an install.py
script whatsoever lol
Worst case, we can use a try catch to catch import exceptions and just run it using import os when it triggers for compatibility.
:badpokerface: uhhh i will take your word as gospel on that lol, i am still super noob re: all things python
@createperhaps give this new version of the extension a try
:( no luck on my end here, installing the extension throws:
Error running install.py for extension /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/openOutpaint-webUI-extension.
Command: "/usr/bin/python3" "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/openOutpaint-webUI-extension/install.py"
Error code: 1
stdout: <empty>
stderr: Traceback (most recent call last):
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/openOutpaint-webUI-extension/install.py", line 3, in <module>
from modules import scripts
ModuleNotFoundError: No module named 'modules'
and after restarting webUI, it goes back to complaining about index.html
Closing server running on port: 7860
Reloading extensions
Reloading custom scripts
openOutpaint init
Submodule path 'app': checked out '8fbc42744e4cafea38c0b092dc9d8516315e71b9'
Reloading modules: modules.ui
Refreshing Model List
Restarting Gradio
Running on local URL: http://127.0.0.1:7860/
Running on public URL: https://5d5199308a452565.gradio.app/
This share link expires in 72 hours. For free permanent hosting and GPU upgrades (NEW!), check out Spaces: https://huggingface.co/spaces
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/starlette/responses.py", line 331, in __call__
stat_result = await anyio.to_thread.run_sync(os.stat, self.path)
File "/usr/local/lib/python3.8/dist-packages/anyio/to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/usr/local/lib/python3.8/dist-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "/usr/local/lib/python3.8/dist-packages/anyio/_backends/_asyncio.py", line 867, in run
result = context.run(func, *args)
FileNotFoundError: [Errno 2] No such file or directory: '/content/gdrive/MyDrive/sd/stablediffusion/extensions/openOutpaint-webUI-extension/app/index.html'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/uvicorn/protocols/http/h11_impl.py", line 404, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "/usr/local/lib/python3.8/dist-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
return await self.app(scope, receive, send)
File "/usr/local/lib/python3.8/dist-packages/fastapi/applications.py", line 270, in __call__
await super().__call__(scope, receive, send)
File "/usr/local/lib/python3.8/dist-packages/starlette/applications.py", line 124, in __call__
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.8/dist-packages/starlette/middleware/errors.py", line 184, in __call__
raise exc
File "/usr/local/lib/python3.8/dist-packages/starlette/middleware/errors.py", line 162, in __call__
await self.app(scope, receive, _send)
File "/usr/local/lib/python3.8/dist-packages/starlette/middleware/gzip.py", line 24, in __call__
await responder(scope, receive, send)
File "/usr/local/lib/python3.8/dist-packages/starlette/middleware/gzip.py", line 43, in __call__
await self.app(scope, receive, self.send_with_gzip)
File "/usr/local/lib/python3.8/dist-packages/starlette/middleware/exceptions.py", line 75, in __call__
raise exc
File "/usr/local/lib/python3.8/dist-packages/starlette/middleware/exceptions.py", line 64, in __call__
await self.app(scope, receive, sender)
File "/usr/local/lib/python3.8/dist-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
raise e
File "/usr/local/lib/python3.8/dist-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
await self.app(scope, receive, send)
File "/usr/local/lib/python3.8/dist-packages/starlette/routing.py", line 680, in __call__
await route.handle(scope, receive, send)
File "/usr/local/lib/python3.8/dist-packages/starlette/routing.py", line 275, in handle
await self.app(scope, receive, send)
File "/usr/local/lib/python3.8/dist-packages/starlette/routing.py", line 68, in app
await response(scope, receive, send)
File "/usr/local/lib/python3.8/dist-packages/starlette/responses.py", line 334, in __call__
raise RuntimeError(f"File at path {self.path} does not exist.")
RuntimeError: File at path /content/gdrive/MyDrive/sd/stablediffusion/extensions/openOutpaint-webUI-extension/app/index.html does not exist.
ERROR:uvicorn.error:Exception in ASGI application
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/starlette/responses.py", line 331, in __call__
stat_result = await anyio.to_thread.run_sync(os.stat, self.path)
File "/usr/local/lib/python3.8/dist-packages/anyio/to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/usr/local/lib/python3.8/dist-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "/usr/local/lib/python3.8/dist-packages/anyio/_backends/_asyncio.py", line 867, in run
result = context.run(func, *args)
FileNotFoundError: [Errno 2] No such file or directory: '/content/gdrive/MyDrive/sd/stablediffusion/extensions/openOutpaint-webUI-extension/app/index.html'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/uvicorn/protocols/http/h11_impl.py", line 404, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "/usr/local/lib/python3.8/dist-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
return await self.app(scope, receive, send)
File "/usr/local/lib/python3.8/dist-packages/fastapi/applications.py", line 270, in __call__
await super().__call__(scope, receive, send)
File "/usr/local/lib/python3.8/dist-packages/starlette/applications.py", line 124, in __call__
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.8/dist-packages/starlette/middleware/errors.py", line 184, in __call__
raise exc
File "/usr/local/lib/python3.8/dist-packages/starlette/middleware/errors.py", line 162, in __call__
await self.app(scope, receive, _send)
File "/usr/local/lib/python3.8/dist-packages/starlette/middleware/gzip.py", line 24, in __call__
await responder(scope, receive, send)
File "/usr/local/lib/python3.8/dist-packages/starlette/middleware/gzip.py", line 43, in __call__
await self.app(scope, receive, self.send_with_gzip)
File "/usr/local/lib/python3.8/dist-packages/starlette/middleware/exceptions.py", line 75, in __call__
raise exc
File "/usr/local/lib/python3.8/dist-packages/starlette/middleware/exceptions.py", line 64, in __call__
await self.app(scope, receive, sender)
File "/usr/local/lib/python3.8/dist-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
raise e
File "/usr/local/lib/python3.8/dist-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
await self.app(scope, receive, send)
File "/usr/local/lib/python3.8/dist-packages/starlette/routing.py", line 680, in __call__
await route.handle(scope, receive, send)
File "/usr/local/lib/python3.8/dist-packages/starlette/routing.py", line 275, in handle
await self.app(scope, receive, send)
File "/usr/local/lib/python3.8/dist-packages/starlette/routing.py", line 68, in app
await response(scope, receive, send)
File "/usr/local/lib/python3.8/dist-packages/starlette/responses.py", line 334, in __call__
raise RuntimeError(f"File at path {self.path} does not exist.")
RuntimeError: File at path /content/gdrive/MyDrive/sd/stablediffusion/extensions/openOutpaint-webUI-extension/app/index.html does not exist.
Oh god, even the modules file is not included? Would you be able to check where install.py is being executed exactly? @zero01101
index.html
will not be found until we are finally able to fetch the submodule correctly in the environment.
Although I'm late, the update still hasn't worked. Same thing, index.html not found. Have either of you been able to pinpoint the issue? Feel free to use me as a rubber ducky, lol.
Edit: Does it seem colab isn't grabbing a file? Would a manual install work, or is it that colab isn't loading a particular file?
Edit2: what is install.py?
Basically, colab can't run the install script properly. supposedly, if you run a !git submodule update --remote
inside the extension directory on the colab environment, you should be all ok to go.
Ah. Should I add that as a cell, or did you already try that?
You can try adding a cell and running it manually, no problem. It would require a cd to the correct directory, then the git update command from above.
I'm still thinking of how we can resolve this issue in the repo... I will try one more thing, but no guarantees it will actually work.
Right, yeah. From the repo would make more sense. More practical than merging your fix to Ben and all the other ones. Still might be good to know if this works, though.
In the meantime, ...Do you happen to know which directory I need to cd to?
Was testing this, and it seems the rabbit hole goes deeper than I though. How we calculate the base path for the iframe breaks inside the gdrive dir.
Ah. I'm aware that colab can hold files outside drive, it's temporary. Is it possible to download the extension to the colab runtime?
Would you be able to check where install.py is being executed exactly?
i may have missed the point entirely but i added a small debug print() to see precisely what path was being passed and yeah, it's definitely expecting /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/openOutpaint-webUI-extension/install.py
as far as i can tell...
Error running install.py for extension /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/openOutpaint-webUI-extension.
Command: "/usr/bin/python3" "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/openOutpaint-webUI-extension/install.py"
Error code: 1
stdout: debug - sys.argv[0]: /content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/openOutpaint-webUI-extension/install.py
stderr: Traceback (most recent call last):
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/openOutpaint-webUI-extension/install.py", line 4, in <module>
from modules import scripts
ModuleNotFoundError: No module named 'modules'
Oh! I FORGOT to mention. Not sure if this is relevant, but I have one google account (don't tell Google lol) that holds my SD and models. I then share it, and on my root is a shared sd. It makes my base path: /content/gdrive/.shortcut-targets-by-id/1eQNT1dJ_FuqEB3Q6vFiZpTVHuVFZ20dr/sd/stablediffusion/extensions...
(if you were wondering why its longer)
Oh, no issue whatsoever. I am thinking if it would be prudent to just fallback to __file__ for all these broken references... also, @zero01101... It seems /file/
on the external gradio proxy refers to /stablediffusion/
instead of /stable-diffusion-webui/
for some reason.
We would have to do heavy witchery to even begin to untangle why that is.
lmao
possibly a job for documentation?
I actually just copied my extension to the correct folder and it loaded fine...so uh, we all came up with the same conclusion together, didn't we?
Is this worth suggesting to LastBen? He is pretty responsive on his git.
yeah i totally forgot to mention that Enable_API
looks like it's gonna need to be enabled
possibly a job for documentation?
Not really... for now maybe, but this is issue material for ben's repo.
If my guesses are correct this fixes all other extensions as well.
but this is issue material for ben's repo.
oh no argument there; moreso just a "known issue but kind of not our fault, nyah nyah :P"
Oh okay. Yeah, I set the variable to true on my own. I'll get the cd in (more practical than copying), but I should be good. I'll let Ben know.
Thanks, @createperhaps! If you could reference this issue there, it would be great!
It's to the end of Start stable-diffusion cell... just before the try.
that's in the final one, the "start stable-diffusion" cell, at the very bottom of the existing content, you'd just add the %cd
line above the model loading try block
@seijihariki is faster than me lol
Well, for now, will add the documentation
flag. And wontfix
as we have to wait for a fix from ben.
Appreciate the help you two. it really is usually the most stupid problem, ain't it?
Yeah, mainly the ones where everything breaks, but that's life sometimes!
best kind of bug report is "it's in someone else's repo" ;)
TheLastBen/fast-stable-diffusion@1102d50
Not that I am in any position to criticize Ben's code, but what do you think of this solution? I haven't found issues with other plugins, but he quickly CDs over and then CDs back. Looks pretty good.
edit: not sure its working for me, but if anything I can just go back to the last version. Certainly not asking you to fix ben's script again. :)
Update: Ben thinks its an issue with your plugin, and told me to let you know..
'I just tried running it, and I see "{"detail":"Not Found"}" on the outpaint tab.'
Update: Ben thinks its an issue with your plugin, and told me to let you know..
I can try DM'ing him.... Where do you think it would be best to reach to him?
Okay, tomorrow will try speaking to him. For now, you can keep applying that %cd change and it should work.
Added a summary of our findings there (a comment here and a more detailed summary in discussions). This thread does have 61 (62 including this one) comments, after all, so it would be quite a read. He already has his hands full there with his repo, so I hope I can alleviate some of that by providing this summary.
Thank you!
By the way, I noticed that interrogator never works for me on Ben’s collab. I’m not sure if you’re familiar with how the interrogator works but I’m curious if this cd trick will fix that too. Going to test soon.
edit: nvm, it didn't fix it. Not asking you to look into it, just wondered if it might have been fixed with the same cd.
out of curiosity, does the standard A1111 webUI img2img interrogate function work as expected?
Zero,
I found the solution is to run 'pip install transformers==4.19.2'
For some reason there is a bug in 4.20, but I don't know if rolling back breaks anything. Does not appear to.
Doesn't seem related to the cd.
For some reason there is a bug in 4.20, but I don't know if rolling back breaks anything. Does not appear to.
interesting 🤔
Hey guys, @seijihariki , I only ask cause I know you've been doing a lot re: the mouse and I saw you made a branch.
I am getting an error in thelastben again with your changes and it says:
RuntimeError: Error running command.
Command: "git" -C "/content/gdrive/.shortcut-targets-by-id/1eQNT1dJ_FuqEB3Q6vFiZpTVHuVFZ20dr/sd/stable-diffusion-webui/extensions/openOutpaint-webUI-extension" submodule update --init --recursive --remote
Error code: 1
stdout: <empty>
stderr: From https://github.com/zero01101/openOutpaint
84d30bb..395dfad main -> origin/main
96ee01a..77f40a7 testing -> origin/testing
error: Your local changes to the following files would be overwritten by checkout:
.githooks/pre-commit
Please commit your changes or stash them before you switch branches.
Aborting
Unable to checkout '395dfad628141d020e79277c6069822e48834449' in submodule path 'app'
Does this mean anything to you?
I face same error just above. How can help you guys?
That's... Weird. pre-commit shouldn't have broken anything unless hooks are manually set.
For now, you guys can run git checkout origin/main -- .githooks/pre-commit
in the app dir I think, and it will run okay...
Oh, now that I think about it, yeah, probably it is trying to pull a force-pushed branch.
@zero01101, can you modify the install script to only fetch the main branch of the submodule? Preferably, actually, only origin/main HEAD.
For now, you guys can hard reset the testing branch. I'm in a place with very bad internet, so it will take a while between responses.
Please remove the extension dir (extensions/openOutpaint-webui-extension) and install again the extension from webui and you should be fine.
Please remove the extension dir (extensions/openOutpaint-webui-extension) and install again the extension from webui and you should be fine.
Sorry it took me a few hours to try, but whatever you did fixed it.
No problem! Glad to help! But the thing is... I didn't do anything; the repo also has not changed since a day ago ; )
This is an issue that would affect only people who updated the extension in the ~4 hour time window I was writing the cache busting code, as those were the commits replaced with the branch force push.
It seems it may also be transient, then! Still, the easiest and fastest way to get this fixed for now, if you have the problem, is to delete the extension altogether and reinstall it.
This is odd-I didn't update when the error hit me. I also actually had the issue, and noticed I was behind, I thought the update may have fixed my issue. Alas, it didn't.
@zero01101, can you modify the install script to only fetch the main branch of the submodule? Preferably, actually, only origin/main HEAD.
...huh, so i thought that's specifically what
was doing; otherwise both install and main just run pretty much the same submodule update request :/ it's hugely likely i've missed the point however, i'm quite adept at that lolGuys in the extension tab keep getting {"detail":"Not Found"} error. How can ı fix?
@cerarslan open devtools (F12) and run the following command:
console.debug(document.getElementById("openoutpaint-iframe").src)
If you copy-paste, the browser will not allow you to until you type whatever it is asking you to.
I recommend you just type it out. Post here an screenshot of the result
which platform ı have to use for devtools (F12) sir?
@cerarslan devtools would just be in your web browser of choice, just push the f12 key on your keyboard. it's pretty universal between all of them. did you add the directory switch as shown in #11 (comment) ?
for what it's worth, i've just spun up my gdrive copy of the colab with openOutpaint as the only installed extension and i'm not able to reproduce neither the .githooks/precommit
weirdness, nor the {detail:not found} issue - however i did just consider that i'm not using the most up-to-date colab version at this point if ben updated it...
@zero01101, can you modify the install script to only fetch the main branch of the submodule? Preferably, actually, only origin/main HEAD.
...huh, so i thought that's specifically what
was doing; otherwise both install and main just run pretty much the same submodule update request :/ it's hugely likely i've missed the point however, i'm quite adept at that lol
Maybe it is? I hadn't looked into the code more specifically when requesting that, so it may be that only people who have at some point checked out the testing branch are affected. From what I see from the command being run, it seems to indeed only fetch main head.
@zero01101, can you modify the install script to only fetch the main branch of the submodule? Preferably, actually, only origin/main HEAD.
...huh, so i thought that's specifically what
was doing; otherwise both install and main just run pretty much the same submodule update request :/ it's hugely likely i've missed the point however, i'm quite adept at that lol
Maybe it is? I hadn't looked into the code more specifically when requesting that, so it may be that only people who have at some point checked out the testing branch are affected. From what I see from the command being run, it seems to indeed only fetch main head.
Nay, I never got the test branch.
@zero01101 I noticed just now that we ended up not adding anything to the README regarding the colab fix... I think we should add something there.
ACK yeah that's probably a good idea, hold pls added now to both repos
guys sorry to bother you again but in extension tab (openOutpaint) I get ' openOutpaint init
Submodule path 'app': checked out 'dbcd588e29270be325a7f419d966773e0d0fbc80'
and colab side display
openOutpaint init
Submodule path 'app': checked out 'dbcd588e29270be325a7f419d966773e0d0fbc80'
edit: When I just restart to ui, submodule path error is gone but I see still {"detail":"Not Found"} error on extension tab.
Try deleting the whole extension from gdrive and reinstalling via webui
Try deleting the whole extension from gdrive and reinstalling via webui
Not working this time sir :/
@cerarslan open devtools (F12) and run the following command:
console.debug(document.getElementById("openoutpaint-iframe").src)If you copy-paste, the browser will not allow you to until you type whatever it is asking you to.
I recommend you just type it out. Post here an screenshot of the result
Can you try doing this?
And also, check if the %cd still is there. If you reloaded from thelastben's git it will have resetted.
I always compare the latest version of TheLastBen with my own. Enable_API= TRUE and %cd check done. I also changed my lines in webui-user.bat and .sh to COMMANDLINE_ARGS="--api --cors-allow-origins=http://127.0.0.1:3456" this.
When I write on devtools(F12) to console.debug(document.getElementById("openoutpaint-iframe").src) I get syntax error I guess. Btw I didn't copy paste.
Oh, there are two ' in each side in yours. It must a single quote (') or a double quote (") in each side.
'' Is different from "
It's getelementbyid, you are missing the get
Oh... Sorry, can you replace 'document' with 'gradioApp()'?
No issues whatsoever, it was my mistake after all. Hm... I will be offline for some hours here... For now, an undefined src is an issue that I did not expect. Can you do it again but without .src?
Also, I may ask you to join our discord for more help afterwards.