stable-diffusion-webui
stable-diffusion-webui copied to clipboard
[Bug]: Settings UI saves sets invalid value for txt2img sampling steps
What happened?
When saving settings via the new Settings interface in streamlit, the value for txt2img: samling_steps: step
is wrapped in quotes, causing streamlit to interpret the value as a string and complain that not all numerical values are the same type, and preventing use of the txt2img function. Removing the quotes from the value in userconfig_streamlit.yaml
resolves the issue until the next save.
Version
0.0.1 (Default)
What browsers are you seeing the problem on?
Chrome
Where are you running the webui?
Linux
Custom settings
No response
Relevant log output
2022-10-06 11:02:07.390 Uncaught app exception
Traceback (most recent call last):
File "/home/taylor/.conda/envs/ldm/lib/python3.8/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 562, in _run_script
exec(code, module.__dict__)
File "/home/taylor/Repos/stable-diffusion/stable-diffusion-webui/scripts/webui_streamlit.py", line 177, in <module>
layout()
File "/home/taylor/Repos/stable-diffusion/stable-diffusion-webui/scripts/webui_streamlit.py", line 141, in layout
layout()
File "scripts/txt2img.py", line 267, in layout
st.session_state.sampling_steps = st.number_input("Sampling Steps", value=st.session_state.defaults.txt2img.sampling_steps.value,
File "/home/taylor/.conda/envs/ldm/lib/python3.8/site-packages/streamlit/runtime/metrics_util.py", line 231, in wrap
result = callable(*args, **kwargs)
File "/home/taylor/.conda/envs/ldm/lib/python3.8/site-packages/streamlit/elements/number_input.py", line 156, in number_input
return self._number_input(
File "/home/taylor/.conda/envs/ldm/lib/python3.8/site-packages/streamlit/elements/number_input.py", line 210, in _number_input
raise StreamlitAPIException(
streamlit.errors.StreamlitAPIException: All numerical arguments must be of the same type.
`value` has int type.
`min_value` has int type.
`max_value` has NoneType type.
`step` has str type.
Code of Conduct
- [X] I agree to follow this project's Code of Conduct