logging cleanup

Signed-off-by: Vladimir Mandic <mandic00@live.com>
pull/3866/head
Vladimir Mandic 2025-04-05 07:13:39 -04:00
parent 69ec66f58a
commit 263b841129
5 changed files with 10 additions and 6 deletions

View File

@ -1,6 +1,6 @@
# Change Log for SD.Next
## Update for 2025-04-04
## Update for 2025-04-05
- Video: add FasterCache and PAB support to WanDB and LTX models
- ZLUDA: add more GPUs to recognized list
@ -11,6 +11,8 @@
- Gallery: add max-columns in settings for gradio gallery components
- Styles: resize and bring quick-ui to forward on hover
- Logging: fix debug logging
- Logging: logging cleanup
- Params: Reset default guidance-rescale from 0.7 to 0.0
## Update for 2025-04-03

View File

@ -76,6 +76,8 @@ class OptionInfo:
value = [value]
for v in value:
if v not in choices:
if isinstance(choices, list) and 'All' in choices or 'all' in choices: # may be added dynamically
continue
log.debug(f'Setting validation: "{opt}"="{v}" default="{self.default}" choices={choices}')
# return False
minimum = args.get("minimum", None)

View File

@ -41,7 +41,7 @@ class StableDiffusionProcessing:
# guidance
cfg_scale: float = 6.0,
cfg_end: float = 1,
diffusers_guidance_rescale: float = 0.7,
diffusers_guidance_rescale: float = 0.0,
pag_scale: float = 0.0,
pag_adaptive: float = 0.5,
# styles

View File

@ -181,7 +181,7 @@ def create_advanced_inputs(tab, base=True):
cfg_scale, cfg_end = None, None
with gr.Row():
image_cfg_scale = gr.Slider(minimum=0.0, maximum=30.0, step=0.1, label='Refine guidance', value=6.0, elem_id=f"{tab}_image_cfg_scale")
diffusers_guidance_rescale = gr.Slider(minimum=0.0, maximum=1.0, step=0.05, label='Rescale guidance', value=0.7, elem_id=f"{tab}_image_cfg_rescale", visible=shared.native)
diffusers_guidance_rescale = gr.Slider(minimum=0.0, maximum=1.0, step=0.05, label='Rescale guidance', value=0.0, elem_id=f"{tab}_image_cfg_rescale", visible=shared.native)
with gr.Row():
diffusers_pag_scale = gr.Slider(minimum=0.0, maximum=30.0, step=0.05, label='Attention guidance', value=0.0, elem_id=f"{tab}_pag_scale", visible=shared.native)
diffusers_pag_adaptive = gr.Slider(minimum=0.0, maximum=1.0, step=0.05, label='Adaptive scaling', value=0.5, elem_id=f"{tab}_pag_adaptive", visible=shared.native)

View File

@ -156,7 +156,7 @@ def initialize():
def load_model():
if not shared.opts.sd_checkpoint_autoload and shared.cmd_opts.ckpt is None:
log.info('Model auto load disabled')
log.info('Model: auto load disabled')
else:
shared.state.begin('Load')
thread_model = Thread(target=lambda: shared.sd_model)
@ -333,8 +333,8 @@ def start_ui():
if public_ip is not None:
shared.log.info(f'Public URL: {proto}://{public_ip}:{shared.cmd_opts.port}')
if shared.cmd_opts.docs:
shared.log.info(f'API Docs: {local_url[:-1]}/docs') # pylint: disable=unsubscriptable-object
shared.log.info(f'API ReDocs: {local_url[:-1]}/redocs') # pylint: disable=unsubscriptable-object
shared.log.info(f'API docs: {local_url[:-1]}/docs') # pylint: disable=unsubscriptable-object
shared.log.info(f'API redocs: {local_url[:-1]}/redocs') # pylint: disable=unsubscriptable-object
if share_url is not None:
shared.log.info(f'Share URL: {share_url}')
# shared.log.debug(f'Gradio functions: registered={len(shared.demo.fns)}')