diff --git a/scripts/Settings.py b/scripts/Settings.py index 965ba4d..d651edd 100644 --- a/scripts/Settings.py +++ b/scripts/Settings.py @@ -159,7 +159,7 @@ def layout(): # Default: True") st.session_state["defaults"].general.update_preview = True st.session_state["defaults"].general.update_preview_frequency = st.number_input("Update Preview Frequency", - min_value=1, + min_value=0, value=st.session_state['defaults'].general.update_preview_frequency, help="Specify the frequency at which the image is updated in steps, this is helpful to reduce the \ negative effect updating the preview image has on performance. Default: 10") @@ -327,7 +327,7 @@ def layout(): st.session_state["defaults"].txt2img.update_preview = True st.session_state["defaults"].txt2img.update_preview_frequency = st.number_input("Preview Image Update Frequency", - min_value=1, + min_value=0, value=st.session_state['defaults'].txt2img.update_preview_frequency, help="Set the default value for the frrquency of the preview image updates. Default is: 10") @@ -520,7 +520,7 @@ def layout(): st.session_state["defaults"].img2img.update_preview = True st.session_state["defaults"].img2img.update_preview_frequency = st.number_input("Img2Img Preview Image Update Frequency", - min_value=1, + min_value=0, value=st.session_state['defaults'].img2img.update_preview_frequency, help="Set the default value for the frrquency of the preview image updates. Default is: 10") diff --git a/scripts/img2img.py b/scripts/img2img.py index 389bb34..5c91eed 100644 --- a/scripts/img2img.py +++ b/scripts/img2img.py @@ -455,7 +455,7 @@ def layout(): with st.expander("Preview Settings"): st.session_state["update_preview"] = st.session_state["defaults"].general.update_preview st.session_state["update_preview_frequency"] = st.number_input("Update Image Preview Frequency", - min_value=1, + min_value=0, value=st.session_state['defaults'].img2img.update_preview_frequency, help="Frequency in steps at which the the preview image is updated. By default the frequency \ is set to 1 step.") diff --git a/scripts/txt2img.py b/scripts/txt2img.py index 3dd6283..db7eefb 100644 --- a/scripts/txt2img.py +++ b/scripts/txt2img.py @@ -447,7 +447,7 @@ def layout(): st.session_state["update_preview"] = st.session_state["defaults"].general.update_preview st.session_state["update_preview_frequency"] = st.number_input("Update Image Preview Frequency", - min_value=1, + min_value=0, value=st.session_state['defaults'].txt2img.update_preview_frequency, help="Frequency in steps at which the the preview image is updated. By default the frequency \ is set to 10 step.") diff --git a/scripts/txt2vid.py b/scripts/txt2vid.py index ff0e3f4..c294d86 100644 --- a/scripts/txt2vid.py +++ b/scripts/txt2vid.py @@ -698,7 +698,7 @@ def layout(): st.session_state["update_preview"] = st.session_state["defaults"].general.update_preview st.session_state["update_preview_frequency"] = st.number_input("Update Image Preview Frequency", - min_value=1, + min_value=0, value=st.session_state['defaults'].txt2vid.update_preview_frequency, help="Frequency in steps at which the the preview image is updated. By default the frequency \ is set to 1 step.")