The Find Noise Steps slider om img2img can now be customizable from the config file.

This commit is contained in:
ZeroCool940711 2022-09-21 00:39:27 -07:00
parent e874a2d6a7
commit 2c7b22a540
2 changed files with 9 additions and 1 deletions

View File

@ -244,6 +244,12 @@ img2img:
max_value: 500 max_value: 500
step: 10 step: 10
find_noise_steps:
value: 100
min_value: 0
max_value: 500
step: 10
loopback: True loopback: True
random_seed_loopback: True random_seed_loopback: True
separate_prompts: False separate_prompts: False

View File

@ -410,7 +410,9 @@ def layout():
help="" help=""
) )
noise_mode = noise_mode_list.index(noise_mode) noise_mode = noise_mode_list.index(noise_mode)
find_noise_steps = st.slider("Find Noise Steps", value=100, min_value=1, max_value=500) find_noise_steps = st.slider("Find Noise Steps", value=st.session_state['defaults'].img2img.find_noise_steps.value,
min_value=st.session_state['defaults'].img2img.find_noise_steps.min_value, max_value=st.session_state['defaults'].img2img.find_noise_steps.max_value,
step=st.session_state['defaults'].img2img.find_noise_steps.step)
batch_count = st.slider("Batch count.", min_value=st.session_state['defaults'].img2img.batch_count.min_value, max_value=st.session_state['defaults'].img2img.batch_count.max_value, batch_count = st.slider("Batch count.", min_value=st.session_state['defaults'].img2img.batch_count.min_value, max_value=st.session_state['defaults'].img2img.batch_count.max_value,
value=st.session_state['defaults'].img2img.batch_count.value, step=st.session_state['defaults'].img2img.batch_count.step, value=st.session_state['defaults'].img2img.batch_count.value, step=st.session_state['defaults'].img2img.batch_count.step,
help="How many iterations or batches of images to generate in total.") help="How many iterations or batches of images to generate in total.")