Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save causes error. #63

Closed
rafstahelin opened this issue Sep 6, 2023 · 5 comments
Closed

Save causes error. #63

rafstahelin opened this issue Sep 6, 2023 · 5 comments

Comments

@rafstahelin
Copy link

Anybody know how to avoid this error? On latest webui version. Is there a conflict?

[Config-Presets] Changed to: SDXL --- 1024x1024
Traceback (most recent call last):
File "D:\auto1111 SDXL\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 422, in run_predict
output = await app.get_blocks().process_api(
File "D:\auto1111 SDXL\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1323, in process_api
result = await self.call_function(
File "D:\auto1111 SDXL\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1051, in call_function
prediction = await anyio.to_thread.run_sync(
File "D:\auto1111 SDXL\stable-diffusion-webui\venv\lib\site-packages\anyio\to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "D:\auto1111 SDXL\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "D:\auto1111 SDXL\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 807, in run
result = context.run(func, *args)
File "D:\auto1111 SDXL\stable-diffusion-webui\extensions\Config-Presets\scripts\config_presets.py", line 1138, in func
new_setting_map[component_id] = modules.sd_samplers.samplers_map[new_value.lower()]
AttributeError: 'int' object has no attribute 'lower'

@Zyin055
Copy link
Owner

Zyin055 commented Sep 7, 2023

I cannot replicate your error on A1111 1.6.0 or the latest commit (as of 9/7/23). Can you provide more information that may help?

The error is complaining that a sampler is a number/index instead of a string.

@rafstahelin
Copy link
Author

i just add a new preset
chrome_MU0dfSTfQ1
chrome_fXoKluWyKq
Attached the error screengrab and my extensions. Assuming it is a conflict with another extension

@Jimmni
Copy link

Jimmni commented Sep 19, 2023

Same for me. Automatic1111 v1.6.0, any attempt to save just throws up errors and nothing gets saved.

@killakrust
Copy link

killakrust commented Sep 29, 2023

Getting the same error myself. I've tried disabling all other extensions to see if there was a clash, but no luck.

Not sure if this helps, but the error returned is show below:
image

Would love to see this fixed, as this extension saves so much time when I'm using A1111. Love it.

Zyin055 added a commit that referenced this issue Nov 19, 2023
-fixed issue where sampler was returned as an int (index) instead of a str (name) before A1111 1.6.0(?) #63
-added check for malformed JSON in config file, which could prevent the Web UI from booting up
-added `controlnet_type_filter_radio` to default custom tracked components config file #70
@Zyin055
Copy link
Owner

Zyin055 commented Nov 19, 2023

I finally managed to replicate this error in my Automatic1111 1.5 installation (the fix works for both A1111 1.5 and 1.6.0). Since I was able to reproduce it the error on my end, I was able to make a fix for it.

@rafstahelin @Jimmni @killakrust Please update your Config Presets extension and see if the issue is resolved for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants