xyz grid optimizations

This commit is contained in:
Vladimir Mandic
2023-05-09 10:41:23 -04:00
parent 1288aec459
commit d8a2c32918
5 changed files with 84 additions and 139 deletions
+1 -1
View File
@@ -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
View File
@@ -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}),