Open MrKuenning opened 1 year ago
Thanks for the feedback it should pull from the custom directory, so I don't think that is the issue.
Thanks for the feedback it should pull from the custom directory, so I don't think that is the issue.
- Is this only when you first start up your server and visit for a first time? This happened after reboot as well as any time I went to the tab.
- Does it work after you hit the refresh button? Refresh did nothing.
- Are you running the latest version of webUI? (I had to make changes due to the new gradio version) Yes I am running 1.6, (Build listed in screenshot above)
However, after updating today, the tab has disappeared completely. I tried restarting the UI and I dont even see it listed in the UI tab settings.
----------------------------------------------------------------------------
venv "E:\AI\A1111\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.6.0
Commit hash: 5ef669de080814067961f28357256e8fe27544f4
Checking ReActor requirements... Ok
Install sd-masonry...
Found version v1
You are up to date with the most recent release.
Launching Web UI with arguments: --listen --port 7799 --api --update-check --xformers --medvram-sdxl --enable-insecure-extension-access --disable-safe-unpickle --styles-file E:\AI\MODELS\styles-full.csv --ckpt-dir E:\AI\MODELS\Stable-diffusion --lora-dir E:\AI\MODELS\LoRA --embeddings-dir E:\AI\MODELS\Embeddings
Loading weights [0fd6e22bff] from E:\AI\MODELS\Stable-diffusion\Z-Inpainting\GeFeMi V2.1 Inpainting.safetensors
3440 1440
1390
Creating model from config: E:\AI\A1111\configs\v1-inpainting-inference.yaml
Applying attention optimization: xformers... done.
*** Error executing callback ui_tabs_callback for E:\AI\A1111\extensions\sd-masonry\scripts\main.py
Traceback (most recent call last):
File "E:\AI\A1111\modules\script_callbacks.py", line 166, in ui_tabs_callback
res += c.callback() or []
File "E:\AI\A1111\extensions\sd-masonry\scripts\main.py", line 153, in on_ui_tabs
html = refresh_images(1)
File "E:\AI\A1111\extensions\sd-masonry\scripts\main.py", line 147, in refresh_images
return get_page(page_index)
File "E:\AI\A1111\extensions\sd-masonry\scripts\main.py", line 120, in get_page
parameters = parse_generation_parameters(geninfo)
File "E:\AI\A1111\modules\generation_parameters_copypaste.py", line 244, in parse_generation_parameters
found_styles, prompt, negative_prompt = shared.prompt_styles.extract_styles_from_prompt(prompt, negative_prompt)
File "E:\AI\A1111\modules\styles.py", line 123, in extract_styles_from_prompt
is_match, new_prompt, new_neg_prompt = extract_style_from_prompts(style, prompt, negative_prompt)
File "E:\AI\A1111\modules\styles.py", line 59, in extract_style_from_prompts
match_positive, extracted_positive = extract_style_text_from_prompt(style.prompt, prompt)
File "E:\AI\A1111\modules\styles.py", line 39, in extract_style_text_from_prompt
left, right = stripped_style_text.split("{prompt}", 2)
ValueError: too many values to unpack (expected 2)
---
Running on local URL: http://0.0.0.0:7799
Model loaded in 11.9s (load weights from disk: 2.1s, create model: 0.5s, apply weights to model: 2.8s, apply half(): 1.0s, load VAE: 0.1s, load textual inversion embeddings: 4.5s, calculate empty prompt: 0.8s).
One of the updates II made was to include the prompt and meta as part of the lighbox. It looks like somehow it is unable to parse what ever meta is provided in one of your photos. As this is a core function provided by A111 I cannot change it, the best I can do is put a try: catch: around this process and ignore any files that are not parseable.
I pushed that change.
Are you able to provide an image that this fails on?
So it parses all of the photo during the webUI boot?
Here is a photo in my output folder. I will try to clear my output folder and restart the UI and see if that resolves it. Then I will try to remove and re-add the extension.
After clearing out my output folder the TAB showed back up.
I generated this image.
Went to the tab and hit refresh and the console spit out this:
File "E:\AI\A1111\venv\lib\site-packages\gradio\routes.py", line 488, in run_predict
output = await app.get_blocks().process_api(
File "E:\AI\A1111\venv\lib\site-packages\gradio\blocks.py", line 1431, in process_api
result = await self.call_function(
File "E:\AI\A1111\venv\lib\site-packages\gradio\blocks.py", line 1103, in call_function
prediction = await anyio.to_thread.run_sync(
File "E:\AI\A1111\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "E:\AI\A1111\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "E:\AI\A1111\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 867, in run
result = context.run(func, *args)
File "E:\AI\A1111\venv\lib\site-packages\gradio\utils.py", line 707, in wrapper
response = f(*args, **kwargs)
File "E:\AI\A1111\extensions\sd-masonry\scripts\main.py", line 147, in refresh_images
return get_page(page_index)
File "E:\AI\A1111\extensions\sd-masonry\scripts\main.py", line 120, in get_page
parameters = parse_generation_parameters(geninfo)
File "E:\AI\A1111\modules\generation_parameters_copypaste.py", line 244, in parse_generation_parameters
found_styles, prompt, negative_prompt = shared.prompt_styles.extract_styles_from_prompt(prompt, negative_prompt)
File "E:\AI\A1111\modules\styles.py", line 123, in extract_styles_from_prompt
is_match, new_prompt, new_neg_prompt = extract_style_from_prompts(style, prompt, negative_prompt)
File "E:\AI\A1111\modules\styles.py", line 59, in extract_style_from_prompts
match_positive, extracted_positive = extract_style_text_from_prompt(style.prompt, prompt)
File "E:\AI\A1111\modules\styles.py", line 39, in extract_style_text_from_prompt
left, right = stripped_style_text.split("{prompt}", 2)
ValueError: too many values to unpack (expected 2)
The Tab says error.
I updated to your build 6c8d8404 and restarted the web UI. No errors in the console or un the UI, but I don't see any images.
Having this same issue. The spinning wheel will go for a bit, then after it is done and goes away I have no images. I also use the Infinite Image Browser extension and it loads all my images just fine as best I can see.
No errors or other information appears to be shown in the terminal window.
@jwvanderbeck Do you put your output images in the default directory or somewhere else?
Does your txt2img directory have subfolders or are all your files flat in the output folder?
They are to a custom location, and have subfolders using the option in A111 that outputs them to dated subfolders
Using standard output with dated sub-folders. This happens on first load. If stepping to other page it is okay and stops spinning. Pushing "first page" button enters first page flawlessly. Pressing "first page" button again makes the spinner go round and round. Same if using "last page" button twice.
The tab never loads. I do use a custom output folder in the settings.
Arguments: --listen --port 7799 --api --xformers --medvram-sdxl --enable-insecure-extension-access --disable-safe-unpickle --styles-file E:\AI\MODELS\styles-full.csv --ckpt-dir E:\AI\MODELS\Stable-diffusion --lora-dir E:\AI\MODELS\LoRA --embeddings-dir E:\AI\MODELS\Embeddings
Output directory for T2I E:\AI\Output\Txt2img
I get no errors in the console.