mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
xyz grid optimizations
This commit is contained in:
@@ -421,7 +421,7 @@ def reload_model_weights(sd_model=None, info=None):
|
||||
shared.log.debug('Reload model weights skip')
|
||||
skip_next_load = False
|
||||
return
|
||||
shared.log.debug(f'Reload model weights: {sd_model} {info}')
|
||||
shared.log.debug(f'Reload model weights: {sd_model is not None} {info}')
|
||||
from modules import lowvram, sd_hijack
|
||||
checkpoint_info = info or select_checkpoint()
|
||||
if not sd_model:
|
||||
|
||||
+3
-3
@@ -285,9 +285,9 @@ options_templates.update(options_section(('saving-images', "Image options"), {
|
||||
"grid_prevent_empty_spots": OptionInfo(True, "Prevent empty spots in grid (when set to autodetect)"),
|
||||
"n_rows": OptionInfo(-1, "Grid row count; use -1 for autodetect and 0 for it to be same as batch size", gr.Slider, {"minimum": -1, "maximum": 16, "step": 1}),
|
||||
"save_txt": OptionInfo(False, "Create a text file next to every image with generation parameters"),
|
||||
"save_images_before_face_restoration": OptionInfo(True, "Save a copy of image before doing face restoration"),
|
||||
"save_images_before_highres_fix": OptionInfo(True, "Save a copy of image before applying highres fix"),
|
||||
"save_images_before_color_correction": OptionInfo(True, "Save a copy of image before applying color correction to img2img results"),
|
||||
"save_images_before_face_restoration": OptionInfo(False, "Save a copy of image before doing face restoration"),
|
||||
"save_images_before_highres_fix": OptionInfo(False, "Save a copy of image before applying highres fix"),
|
||||
"save_images_before_color_correction": OptionInfo(False, "Save a copy of image before applying color correction to img2img results"),
|
||||
"save_mask": OptionInfo(False, "For inpainting, save a copy of the greyscale mask"),
|
||||
"save_mask_composite": OptionInfo(False, "For inpainting, save a masked composite"),
|
||||
"jpeg_quality": OptionInfo(85, "Quality for saved jpeg images", gr.Slider, {"minimum": 1, "maximum": 100, "step": 1}),
|
||||
|
||||
Reference in New Issue
Block a user