Open shalim2904 opened 1 month ago
your not the only one with the same issue its happening to me as well and yes i can confirm that with or without using extensions/Integrated extensions it still happens and Going to Different Commit and Switching Branches doesnt help the issue is Still there
same here
i got it to work just Delete all External Extentions and dont use any of the integrated extensions what i mean is that once you launch the UI dont Activate any of integrated Extensions and dont use Any Scripts either if you do it that way it works Normally Without Any Issues at least it works for me when i did that and i came to a conclusion that the Error only Appears when using Scripts&Extentions/Integral extensions but if used without any them and only use HiresFix the error does not appear at all
Just Tried again with the Extensions and Scripts turned on and it didnt Work at all This happened File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\modules_forge\main_thread.py", line 37, in loop
task.work()
File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\modules_forge\main_thread.py", line 26, in work
self.result = self.func(*self.args, self.kwargs)
File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\modules\txt2img.py", line 108, in txt2img_function
processed = modules.scripts.scripts_txt2img.run(p, p.script_args)
File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\modules\scripts.py", line 785, in run
processed = script.run(p, script_args)
File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\scripts\AutoChar.py", line 850, in run
mid_image_face_inpaint = inpaint(last_image_batch, mask_face, inpaint_face_size[0],
File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\scripts\AutoChar.py", line 809, in inpaint
inpaint_output = process_images(instance_inpaint)
File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\modules\processing.py", line 752, in process_images
res = process_images_inner(p)
File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\modules\processing.py", line 922, in process_images_inner
samples_ddim = p.sample(conditioning=p.c, unconditional_conditioning=p.uc, seeds=p.seeds, subseeds=p.subseeds, subseed_strength=p.subseed_strength, prompts=p.prompts)
File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\modules\processing.py", line 1703, in sample
samples = self.sampler.sample_img2img(self, self.init_latent, x, conditioning, unconditional_conditioning, image_conditioning=self.image_conditioning)
File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\modules\sd_samplers_timesteps.py", line 142, in sample_img2img
samples = self.launch_sampling(t_enc + 1, lambda: self.func(self.model_wrap_cfg, xi, extra_args=self.sampler_extra_args, disable=False, callback=self.callback_state, extra_params_kwargs))
File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\modules\sd_samplers_common.py", line 263, in launch_sampling
return func()
File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\modules\sd_samplers_timesteps.py", line 142, in
Stable diffusion model failed to load Running on local URL: http://127.0.0.1:7860
To create a public link, set share=True
in launch()
.
Startup time: 41.7s (prepare environment: 20.5s, import torch: 4.9s, import gradio: 1.2s, setup paths: 3.7s, initialize shared: 0.2s, other imports: 0.6s, load scripts: 9.0s, create ui: 1.2s, gradio launch: 0.3s).
Checkpoint AutoMixV3.3.safetensors [b0feb46ee2] not found; loading fallback comfyui_checkpoints\stable_cascade_stage_b.safetensors [6c218dc948]
Loading weights [6c218dc948] from D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\models\Stable-diffusion\comfyui_checkpoints\stable_cascade_stage_b.safetensors
loading stable diffusion model: KeyError
Traceback (most recent call last):
File "threading.py", line 973, in _bootstrap
File "threading.py", line 1016, in _bootstrap_inner
File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\venv\lib\site-packages\anyio_backends_asyncio.py", line 807, in run
result = context.run(func, args)
File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\venv\lib\site-packages\gradio\utils.py", line 707, in wrapper
response = f(args, *kwargs)
File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\modules\ui.py", line 1178, in
Stable diffusion model failed to load
Checkpoint AutoMixV3.3.safetensors [b0feb46ee2] not found; loading fallback comfyui_checkpoints\stable_cascade_stage_b.safetensors [6c218dc948]
Loading weights [6c218dc948] from D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\models\Stable-diffusion\comfyui_checkpoints\stable_cascade_stage_b.safetensors
loading stable diffusion model: KeyError
Traceback (most recent call last):
File "threading.py", line 973, in _bootstrap
File "threading.py", line 1016, in _bootstrap_inner
File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\venv\lib\site-packages\anyio_backends_asyncio.py", line 807, in run
result = context.run(func, args)
File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\venv\lib\site-packages\gradio\utils.py", line 707, in wrapper
response = f(args, *kwargs)
File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\modules\ui_extra_networks.py", line 703, in pages_html
create_html()
File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\modules\ui_extra_networks.py", line 699, in create_html
ui.pages_contents = [pg.create_html(ui.tabname) for pg in ui.stored_extra_pages]
File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\modules\ui_extra_networks.py", line 699, in
Stable diffusion model failed to load
Checkpoint AutoMixV3.3.safetensors [b0feb46ee2] not found; loading fallback comfyui_checkpoints\stable_cascade_stage_b.safetensors [6c218dc948]
Loading weights [6c218dc948] from D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\models\Stable-diffusion\comfyui_checkpoints\stable_cascade_stage_b.safetensors
Traceback (most recent call last):
File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\venv\lib\site-packages\gradio\routes.py", line 488, in run_predict
output = await app.get_blocks().process_api(
File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\venv\lib\site-packages\gradio\blocks.py", line 1431, in process_api
result = await self.call_function(
File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\venv\lib\site-packages\gradio\blocks.py", line 1103, in call_function
prediction = await anyio.to_thread.run_sync(
File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\venv\lib\site-packages\anyio\to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\venv\lib\site-packages\anyio_backends_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\venv\lib\site-packages\anyio_backends_asyncio.py", line 807, in run
result = context.run(func, args)
File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\venv\lib\site-packages\gradio\utils.py", line 707, in wrapper
response = f(args, kwargs)
File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\modules\ui_extra_networks.py", line 703, in pages_html
create_html()
File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\modules\ui_extra_networks.py", line 699, in create_html
ui.pages_contents = [pg.create_html(ui.tabname) for pg in ui.stored_extra_pages]
File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\modules\ui_extra_networks.py", line 699, in
Stable diffusion model failed to load
Traceback (most recent call last):
File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\venv\lib\site-packages\gradio\routes.py", line 488, in run_predict
output = await app.get_blocks().process_api(
File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\venv\lib\site-packages\gradio\blocks.py", line 1431, in process_api
result = await self.call_function(
File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\venv\lib\site-packages\gradio\blocks.py", line 1103, in call_function
prediction = await anyio.to_thread.run_sync(
File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\venv\lib\site-packages\anyio\to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\venv\lib\site-packages\anyio_backends_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\venv\lib\site-packages\anyio_backends_asyncio.py", line 807, in run
result = context.run(func, args)
File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\venv\lib\site-packages\gradio\utils.py", line 707, in wrapper
response = f(args, kwargs)
File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\modules\ui_extra_networks.py", line 703, in pages_html
create_html()
File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\modules\ui_extra_networks.py", line 699, in create_html
ui.pages_contents = [pg.create_html(ui.tabname) for pg in ui.stored_extra_pages]
File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\modules\ui_extra_networks.py", line 699, in
Stable diffusion model failed to load Traceback (most recent call last): File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\venv\lib\site-packages\gradio\routes.py", line 488, in run_predict output = await app.get_blocks().process_api( File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\venv\lib\site-packages\gradio\blocks.py", line 1431, in process_api result = await self.call_function( File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\venv\lib\site-packages\gradio\blocks.py", line 1103, in call_function prediction = await anyio.to_thread.run_sync( File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\venv\lib\site-packages\anyio\to_thread.py", line 33, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\venv\lib\site-packages\anyio_backends_asyncio.py", line 877, in run_sync_in_worker_thread return await future File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\venv\lib\site-packages\anyio_backends_asyncio.py", line 807, in run result = context.run(func, args) File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\venv\lib\site-packages\gradio\utils.py", line 707, in wrapper response = f(args, **kwargs) File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\modules\ui_extra_networks.py", line 691, in refresh pg.refresh() File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\modules\ui_extra_networks_textual_inversion.py", line 13, in refresh sd_hijack.model_hijack.embedding_db.load_textual_inversion_embeddings(force_reload=True) File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\modules\textual_inversion\textual_inversion.py", line 222, in load_textual_inversion_embeddings self.expected_shape = self.get_expected_shape() File "D:\Stability Matrix\Packages\Stable Diffusion WebUI Forge\modules\textual_inversion\textual_inversion.py", line 154, in get_expected_shape vec = shared.sd_model.cond_stage_model.encode_embedding_init_text(",", 1) AttributeError: 'NoneType' object has no attribute 'cond_stage_model' This is Getting ridicilous forge is officially Broken until they Fix it id suggest using something else in the meantime
I am getting this in txt2img as well: TypeError: 'NoneType' object is not iterable
I figured it comes from torch difference. Your install script installs torch==2.1.2+cu121 I tried upgrading torch==2.3.0 and the issue is no longer present for me.
@georgitsenov , This has happened to me and I'm using latest torch+cu121--To Everyone: this always fixes it for me:
When I get that error, I change checkpoints, click generate, it works, then go back to original checkpoint and it works. *maybe important??: I'm almost always using sd1.5 checkpoints, don't know if that has anything to do with the viability of this workaround.
I got really desperate once when I got the error, cuz up until that point, the error meant you had to reload the UI, which I hate lol so I turned off each extension one-by-one and what ended up doing it was changing checkpoints. Since then, when I get the error, I do the checkpoint switch and it has worked every single time.
hope it helps
Checklist
What happened?
txt2img generation cause TypeError: 'NoneType' object is not iterable it happened at latest build also on build "b9705c5"
Steps to reproduce the problem
What should have happened?
generate image
What browsers do you use to access the UI ?
Mozilla Firefox
Sysinfo
sysinfo-2024-05-12-04-25.json
Console logs
Additional information
No response