From 829a6dc046fedfa570e7261d9b2afcc685acefd3 Mon Sep 17 00:00:00 2001 From: Manuel Schmid <9307310+mashb1t@users.noreply.github.com> Date: Tue, 23 Jul 2024 18:12:54 +0200 Subject: [PATCH 1/4] feat: add checkbox, config and handling for saving only the final enhanced image (#61) --- args_manager.py | 2 +- language/en.json | 3 +++ modules/async_worker.py | 52 ++++++++++++++++++++++++--------------- modules/config.py | 6 +++++ modules/private_logger.py | 4 +-- webui.py | 7 ++++++ 6 files changed, 51 insertions(+), 23 deletions(-) diff --git a/args_manager.py b/args_manager.py index f74782cdb..dea851dc4 100644 --- a/args_manager.py +++ b/args_manager.py @@ -17,7 +17,7 @@ args_parser.parser.add_argument("--theme", type=str, help="launches the UI with light or dark theme", default=None) args_parser.parser.add_argument("--disable-image-log", action='store_true', - help="Prevent writing images and logs to hard drive.") + help="Prevent writing images and logs to the outputs folder.") args_parser.parser.add_argument("--disable-analytics", action='store_true', help="Disables analytics for Gradio.") diff --git a/language/en.json b/language/en.json index 332a558de..203db7445 100644 --- a/language/en.json +++ b/language/en.json @@ -69,6 +69,9 @@ "Read wildcards in order": "Read wildcards in order", "Black Out NSFW": "Black Out NSFW", "Use black image if NSFW is detected.": "Use black image if NSFW is detected.", + "Save only final enhanced image": "Save only final enhanced image", + "Save Metadata to Images": "Save Metadata to Images", + "Adds parameters to generated images allowing manual regeneration.": "Adds parameters to generated images allowing manual regeneration.", "\ud83d\udcda History Log": "\uD83D\uDCDA History Log", "Image Style": "Image Style", "Fooocus V2": "Fooocus V2", diff --git a/modules/async_worker.py b/modules/async_worker.py index 7560c310e..e6050b806 100644 --- a/modules/async_worker.py +++ b/modules/async_worker.py @@ -96,6 +96,7 @@ def __init__(self, args): self.inpaint_advanced_masking_checkbox = args.pop() self.invert_mask_checkbox = args.pop() self.inpaint_erode_or_dilate = args.pop() + self.save_final_enhanced_image_only = args.pop() if not args_manager.args.disable_image_log else False self.save_metadata_to_images = args.pop() if not args_manager.args.disable_metadata else False self.metadata_scheme = MetadataScheme( args.pop()) if not args_manager.args.disable_metadata else MetadataScheme.FOOOCUS @@ -278,7 +279,7 @@ def build_image_wall(async_task): def process_task(all_steps, async_task, callback, controlnet_canny_path, controlnet_cpds_path, current_task_id, denoising_strength, final_scheduler_name, goals, initial_latent, steps, switch, positive_cond, negative_cond, task, loras, tiled, use_expansion, width, height, base_progress, preparation_steps, - total_count, show_intermediate_results): + total_count, show_intermediate_results, persist_image=True): if async_task.last_stop is not False: ldm_patched.modules.model_management.interrupt_current_processing() if 'cn' in goals: @@ -315,9 +316,8 @@ def process_task(all_steps, async_task, callback, controlnet_canny_path, control if modules.config.default_black_out_nsfw or async_task.black_out_nsfw: progressbar(async_task, current_progress, 'Checking for NSFW content ...') imgs = default_censor(imgs) - progressbar(async_task, current_progress, - f'Saving image {current_task_id + 1}/{total_count} to system ...') - img_paths = save_and_log(async_task, height, imgs, task, use_expansion, width, loras) + progressbar(async_task, current_progress, f'Saving image {current_task_id + 1}/{total_count} to system ...') + img_paths = save_and_log(async_task, height, imgs, task, use_expansion, width, loras, persist_image) yield_result(async_task, img_paths, current_progress, async_task.black_out_nsfw, False, do_not_show_finished_images=not show_intermediate_results or async_task.disable_intermediate_results) @@ -333,7 +333,7 @@ def apply_patch_settings(async_task): async_task.adaptive_cfg ) - def save_and_log(async_task, height, imgs, task, use_expansion, width, loras) -> list: + def save_and_log(async_task, height, imgs, task, use_expansion, width, loras, persist_image=True) -> list: img_paths = [] for x in imgs: d = [('Prompt', 'prompt', task['log_positive_prompt']), @@ -388,7 +388,7 @@ def save_and_log(async_task, height, imgs, task, use_expansion, width, loras) -> d.append(('Metadata Scheme', 'metadata_scheme', async_task.metadata_scheme.value if async_task.save_metadata_to_images else async_task.save_metadata_to_images)) d.append(('Version', 'version', 'Fooocus v' + fooocus_version.version)) - img_paths.append(log(x, d, metadata_parser, async_task.output_format, task)) + img_paths.append(log(x, d, metadata_parser, async_task.output_format, task, persist_image)) return img_paths @@ -963,7 +963,7 @@ def process_enhance(all_steps, async_task, callback, controlnet_canny_path, cont inpaint_engine, inpaint_respective_field, inpaint_strength, prompt, negative_prompt, final_scheduler_name, goals, height, img, mask, preparation_steps, steps, switch, tiled, total_count, use_expansion, use_style, - use_synthetic_refiner, width, show_intermediate_results=True): + use_synthetic_refiner, width, show_intermediate_results=True, persist_image=True): base_model_additional_loras = [] inpaint_head_model_path = None inpaint_parameterized = inpaint_engine != 'None' # inpaint_engine = None, improve detail @@ -985,7 +985,7 @@ def process_enhance(all_steps, async_task, callback, controlnet_canny_path, cont progressbar(async_task, current_progress, 'Checking for NSFW content ...') img = default_censor(img) progressbar(async_task, current_progress, f'Saving image {current_task_id + 1}/{total_count} to system ...') - uov_image_path = log(img, d, output_format=async_task.output_format) + uov_image_path = log(img, d, output_format=async_task.output_format, persist_image=persist_image) yield_result(async_task, uov_image_path, current_progress, async_task.black_out_nsfw, False, do_not_show_finished_images=not show_intermediate_results or async_task.disable_intermediate_results) return current_progress, img, prompt, negative_prompt @@ -1019,7 +1019,8 @@ def process_enhance(all_steps, async_task, callback, controlnet_canny_path, cont final_scheduler_name, goals, initial_latent, steps, switch, task_enhance['c'], task_enhance['uc'], task_enhance, loras, tiled, use_expansion, width, height, current_progress, - preparation_steps, total_count, show_intermediate_results) + preparation_steps, total_count, show_intermediate_results, + persist_image) del task_enhance['c'], task_enhance['uc'] # Save memory return current_progress, imgs[0], prompt, negative_prompt @@ -1027,7 +1028,7 @@ def process_enhance(all_steps, async_task, callback, controlnet_canny_path, cont def enhance_upscale(all_steps, async_task, base_progress, callback, controlnet_canny_path, controlnet_cpds_path, current_task_id, denoising_strength, done_steps_inpainting, done_steps_upscaling, enhance_steps, prompt, negative_prompt, final_scheduler_name, height, img, preparation_steps, switch, tiled, - total_count, use_expansion, use_style, use_synthetic_refiner, width): + total_count, use_expansion, use_style, use_synthetic_refiner, width, persist_image=True): # reset inpaint worker to prevent tensor size issues and not mix upscale and inpainting inpaint_worker.current_task = None @@ -1045,7 +1046,7 @@ def enhance_upscale(all_steps, async_task, base_progress, callback, controlnet_c controlnet_cpds_path, current_progress, current_task_id, denoising_strength, False, 'None', 0.0, 0.0, prompt, negative_prompt, final_scheduler_name, goals_enhance, height, img, None, preparation_steps, steps, switch, tiled, total_count, - use_expansion, use_style, use_synthetic_refiner, width) + use_expansion, use_style, use_synthetic_refiner, width, persist_image=persist_image) except ldm_patched.modules.model_management.InterruptProcessingException: if async_task.last_stop == 'skip': @@ -1168,6 +1169,8 @@ def handler(async_task: AsyncTask): current_progress += 1 progressbar(async_task, current_progress, 'Image processing ...') + should_enhance = async_task.enhance_checkbox and (async_task.enhance_uov_method != flags.disabled.casefold() or len(async_task.enhance_ctrls) > 0) + if 'vary' in goals: async_task.uov_input_image, denoising_strength, initial_latent, width, height, current_progress = apply_vary( async_task, async_task.uov_method, denoising_strength, async_task.uov_input_image, switch, @@ -1273,8 +1276,8 @@ def callback(step, x0, x, total_steps, y): int(current_progress + async_task.callback_steps), f'Sampling step {step + 1}/{total_steps}, image {current_task_id + 1}/{total_count} ...', y)]) - should_enhance = async_task.enhance_checkbox and (async_task.enhance_uov_method != flags.disabled.casefold() or len(async_task.enhance_ctrls) > 0) show_intermediate_results = len(tasks) > 1 or should_enhance + persist_image = not should_enhance or not async_task.save_final_enhanced_image_only for current_task_id, task in enumerate(tasks): progressbar(async_task, current_progress, f'Preparing task {current_task_id + 1}/{async_task.image_number} ...') @@ -1287,7 +1290,8 @@ def callback(step, x0, x, total_steps, y): initial_latent, async_task.steps, switch, task['c'], task['uc'], task, loras, tiled, use_expansion, width, height, current_progress, preparation_steps, - async_task.image_number, show_intermediate_results) + async_task.image_number, show_intermediate_results, + persist_image) current_progress = int(preparation_steps + (100 - preparation_steps) / float(all_steps) * async_task.steps * (current_task_id + 1)) images_to_enhance += imgs @@ -1314,8 +1318,12 @@ def callback(step, x0, x, total_steps, y): active_enhance_tabs = len(async_task.enhance_ctrls) should_process_enhance_uov = async_task.enhance_uov_method != flags.disabled.casefold() + enhance_uov_before = False + enhance_uov_after = False if should_process_enhance_uov: active_enhance_tabs += 1 + enhance_uov_before = async_task.enhance_uov_processing_order == flags.enhancement_uov_before + enhance_uov_after = async_task.enhance_uov_processing_order == flags.enhancement_uov_after total_count = len(images_to_enhance) * active_enhance_tabs base_progress = current_progress @@ -1330,13 +1338,14 @@ def callback(step, x0, x, total_steps, y): last_enhance_prompt = async_task.prompt last_enhance_negative_prompt = async_task.negative_prompt - if should_process_enhance_uov and async_task.enhance_uov_processing_order == flags.enhancement_uov_before: + if enhance_uov_before: current_task_id += 1 + persist_image = not async_task.save_final_enhanced_image_only or active_enhance_tabs == 0 current_task_id, done_steps_inpainting, done_steps_upscaling, img, exception_result = enhance_upscale( all_steps, async_task, base_progress, callback, controlnet_canny_path, controlnet_cpds_path, current_task_id, denoising_strength, done_steps_inpainting, done_steps_upscaling, enhance_steps, async_task.prompt, async_task.negative_prompt, final_scheduler_name, height, img, preparation_steps, - switch, tiled, total_count, use_expansion, use_style, use_synthetic_refiner, width) + switch, tiled, total_count, use_expansion, use_style, use_synthetic_refiner, width, persist_image) if exception_result == 'continue': continue elif exception_result == 'break': @@ -1348,6 +1357,8 @@ def callback(step, x0, x, total_steps, y): current_progress = int(base_progress + (100 - preparation_steps) / float(all_steps) * (done_steps_upscaling + done_steps_inpainting)) progressbar(async_task, current_progress, f'Preparing enhancement {current_task_id + 1}/{total_count} ...') enhancement_task_start_time = time.perf_counter() + is_last_enhance_for_image = (current_task_id + 1) % active_enhance_tabs == 0 and not enhance_uov_after + persist_image = not async_task.save_final_enhanced_image_only or is_last_enhance_for_image extras = {} if enhance_mask_model == 'sam': @@ -1383,8 +1394,7 @@ def callback(step, x0, x, total_steps, y): print(f'[Enhance] {sam_detection_count} segments detected in boxes') print(f'[Enhance] {sam_detection_on_mask_count} segments applied to mask') - if enhance_mask_model == 'sam' and ( - dino_detection_count == 0 or not async_task.debugging_dino and sam_detection_on_mask_count == 0): + if enhance_mask_model == 'sam' and (dino_detection_count == 0 or not async_task.debugging_dino and sam_detection_on_mask_count == 0): print(f'[Enhance] No "{enhance_mask_dino_prompt_text}" detected, skipping') continue @@ -1397,7 +1407,7 @@ def callback(step, x0, x, total_steps, y): enhance_inpaint_engine, enhance_inpaint_respective_field, enhance_inpaint_strength, enhance_prompt, enhance_negative_prompt, final_scheduler_name, goals_enhance, height, img, mask, preparation_steps, enhance_steps, switch, tiled, total_count, use_expansion, use_style, - use_synthetic_refiner, width) + use_synthetic_refiner, width, persist_image=persist_image) if (should_process_enhance_uov and async_task.enhance_uov_processing_order == flags.enhancement_uov_after and async_task.enhance_uov_prompt_type == flags.enhancement_uov_prompt_type_last_filled): @@ -1424,14 +1434,16 @@ def callback(step, x0, x, total_steps, y): if exception_result == 'break': break - if should_process_enhance_uov and async_task.enhance_uov_processing_order == flags.enhancement_uov_after: + if enhance_uov_after: current_task_id += 1 + # last step in enhance, always save + persist_image = True current_task_id, done_steps_inpainting, done_steps_upscaling, img, exception_result = enhance_upscale( all_steps, async_task, base_progress, callback, controlnet_canny_path, controlnet_cpds_path, current_task_id, denoising_strength, done_steps_inpainting, done_steps_upscaling, enhance_steps, last_enhance_prompt, last_enhance_negative_prompt, final_scheduler_name, height, img, preparation_steps, switch, tiled, total_count, use_expansion, use_style, use_synthetic_refiner, - width) + width, persist_image) if exception_result == 'continue': continue elif exception_result == 'break': diff --git a/modules/config.py b/modules/config.py index ee867e5fc..5af9c58ad 100644 --- a/modules/config.py +++ b/modules/config.py @@ -562,6 +562,12 @@ def init_temp_path(path: str | None, default_path: str) -> str: validator=lambda x: isinstance(x, bool), expected_type=bool ) +default_save_only_final_enhanced_image = get_config_item_or_set_default( + key='default_save_only_final_enhanced_image', + default_value=False, + validator=lambda x: isinstance(x, bool), + expected_type=bool +) default_save_metadata_to_images = get_config_item_or_set_default( key='default_save_metadata_to_images', default_value=False, diff --git a/modules/private_logger.py b/modules/private_logger.py index 6fdb680c8..f758272e8 100644 --- a/modules/private_logger.py +++ b/modules/private_logger.py @@ -21,8 +21,8 @@ def get_current_html_path(output_format=None): return html_name -def log(img, metadata, metadata_parser: MetadataParser | None = None, output_format=None, task=None) -> str: - path_outputs = modules.config.temp_path if args_manager.args.disable_image_log else modules.config.path_outputs +def log(img, metadata, metadata_parser: MetadataParser | None = None, output_format=None, task=None, persist_image=True) -> str: + path_outputs = modules.config.temp_path if args_manager.args.disable_image_log or not persist_image else modules.config.path_outputs output_format = output_format if output_format else modules.config.default_output_format date_string, local_temp_filename, only_name = generate_temp_filename(folder=path_outputs, extension=output_format) os.makedirs(os.path.dirname(local_temp_filename), exist_ok=True) diff --git a/webui.py b/webui.py index b041a73ae..467594ddc 100644 --- a/webui.py +++ b/webui.py @@ -753,6 +753,10 @@ def update_history_link(): inputs=black_out_nsfw, outputs=disable_preview, queue=False, show_progress=False) + if not args_manager.args.disable_image_log: + save_final_enhanced_image_only = gr.Checkbox(label='Save only final enhanced image', + value=modules.config.default_save_only_final_enhanced_image) + if not args_manager.args.disable_metadata: save_metadata_to_images = gr.Checkbox(label='Save Metadata to Images', value=modules.config.default_save_metadata_to_images, info='Adds parameters to generated images allowing manual regeneration.') @@ -992,6 +996,9 @@ def inpaint_engine_state_change(inpaint_engine_version, *args): ctrls += freeu_ctrls ctrls += inpaint_ctrls + if not args_manager.args.disable_image_log: + ctrls += [save_final_enhanced_image_only] + if not args_manager.args.disable_metadata: ctrls += [save_metadata_to_images, metadata_scheme] From 9d45c0e6caabf5c34129789d7e31cdd7c473ff0c Mon Sep 17 00:00:00 2001 From: Manuel Schmid <9307310+mashb1t@users.noreply.github.com> Date: Tue, 23 Jul 2024 18:16:23 +0200 Subject: [PATCH 2/4] feat: sort enhance images (#62) * feat: add checkbox, config and handling for saving only the final enhanced image * feat: sort output of enhance feature --- args_manager.py | 3 +++ modules/async_worker.py | 22 ++++++++++++++++------ readme.md | 1 + webui.py | 22 ++++++++++++++++++++++ 4 files changed, 42 insertions(+), 6 deletions(-) diff --git a/args_manager.py b/args_manager.py index dea851dc4..bb622c23a 100644 --- a/args_manager.py +++ b/args_manager.py @@ -28,6 +28,9 @@ args_parser.parser.add_argument("--disable-preset-download", action='store_true', help="Disables downloading models for presets", default=False) +args_parser.parser.add_argument("--disable-enhance-output-sorting", action='store_true', + help="Disables enhance output sorting for final image gallery.") + args_parser.parser.add_argument("--enable-auto-describe-image", action='store_true', help="Enables automatic description of uov and enhance image when prompt is empty", default=False) diff --git a/modules/async_worker.py b/modules/async_worker.py index e6050b806..25cfef408 100644 --- a/modules/async_worker.py +++ b/modules/async_worker.py @@ -9,7 +9,7 @@ class AsyncTask: def __init__(self, args): - from modules.flags import Performance, MetadataScheme, ip_list, controlnet_image_count + from modules.flags import Performance, MetadataScheme, ip_list, controlnet_image_count, disabled from modules.util import get_enabled_loras from modules.config import default_max_lora_number import args_manager @@ -155,7 +155,9 @@ def __init__(self, args): enhance_inpaint_erode_or_dilate, enhance_mask_invert ]) - + self.should_enhance = self.enhance_checkbox and (self.enhance_uov_method != disabled.casefold() or len(self.enhance_ctrls) > 0) + self.images_to_enhance_count = 0 + self.enhance_stats = {} async_tasks = [] @@ -1276,8 +1278,8 @@ def callback(step, x0, x, total_steps, y): int(current_progress + async_task.callback_steps), f'Sampling step {step + 1}/{total_steps}, image {current_task_id + 1}/{total_count} ...', y)]) - show_intermediate_results = len(tasks) > 1 or should_enhance - persist_image = not should_enhance or not async_task.save_final_enhanced_image_only + show_intermediate_results = len(tasks) > 1 or async_task.should_enhance + persist_image = not async_task.should_enhance or not async_task.save_final_enhanced_image_only for current_task_id, task in enumerate(tasks): progressbar(async_task, current_progress, f'Preparing task {current_task_id + 1}/{async_task.image_number} ...') @@ -1309,7 +1311,7 @@ def callback(step, x0, x, total_steps, y): execution_time = time.perf_counter() - execution_start_time print(f'Generating and saving time: {execution_time:.2f} seconds') - if not should_enhance: + if not async_task.should_enhance: print(f'[Enhance] Skipping, preconditions aren\'t met') stop_processing(async_task, processing_start_time) return @@ -1325,6 +1327,7 @@ def callback(step, x0, x, total_steps, y): enhance_uov_before = async_task.enhance_uov_processing_order == flags.enhancement_uov_before enhance_uov_after = async_task.enhance_uov_processing_order == flags.enhancement_uov_after total_count = len(images_to_enhance) * active_enhance_tabs + async_task.images_to_enhance_count = len(images_to_enhance) base_progress = current_progress current_task_id = -1 @@ -1332,7 +1335,8 @@ def callback(step, x0, x, total_steps, y): done_steps_inpainting = 0 enhance_steps, _, _, _ = apply_overrides(async_task, async_task.original_steps, height, width) exception_result = None - for img in images_to_enhance: + for index, img in enumerate(images_to_enhance): + async_task.enhance_stats[index] = 0 enhancement_image_start_time = time.perf_counter() last_enhance_prompt = async_task.prompt @@ -1346,6 +1350,8 @@ def callback(step, x0, x, total_steps, y): current_task_id, denoising_strength, done_steps_inpainting, done_steps_upscaling, enhance_steps, async_task.prompt, async_task.negative_prompt, final_scheduler_name, height, img, preparation_steps, switch, tiled, total_count, use_expansion, use_style, use_synthetic_refiner, width, persist_image) + async_task.enhance_stats[index] += 1 + if exception_result == 'continue': continue elif exception_result == 'break': @@ -1389,6 +1395,7 @@ def callback(step, x0, x, total_steps, y): async_task.yields.append(['preview', (current_progress, 'Loading ...', mask)]) yield_result(async_task, mask, current_progress, async_task.black_out_nsfw, False, async_task.disable_intermediate_results) + async_task.enhance_stats[index] += 1 print(f'[Enhance] {dino_detection_count} boxes detected') print(f'[Enhance] {sam_detection_count} segments detected in boxes') @@ -1408,6 +1415,7 @@ def callback(step, x0, x, total_steps, y): enhance_prompt, enhance_negative_prompt, final_scheduler_name, goals_enhance, height, img, mask, preparation_steps, enhance_steps, switch, tiled, total_count, use_expansion, use_style, use_synthetic_refiner, width, persist_image=persist_image) + async_task.enhance_stats[index] += 1 if (should_process_enhance_uov and async_task.enhance_uov_processing_order == flags.enhancement_uov_after and async_task.enhance_uov_prompt_type == flags.enhancement_uov_prompt_type_last_filled): @@ -1444,6 +1452,8 @@ def callback(step, x0, x, total_steps, y): last_enhance_prompt, last_enhance_negative_prompt, final_scheduler_name, height, img, preparation_steps, switch, tiled, total_count, use_expansion, use_style, use_synthetic_refiner, width, persist_image) + async_task.enhance_stats[index] += 1 + if exception_result == 'continue': continue elif exception_result == 'break': diff --git a/readme.md b/readme.md index ca3dd66e0..cedccd28d 100644 --- a/readme.md +++ b/readme.md @@ -598,6 +598,7 @@ entry_with_update.py [-h] [--listen [IP]] [--port PORT] [--disable-offload-from-vram] [--theme THEME] [--disable-image-log] [--disable-analytics] [--disable-metadata] [--disable-preset-download] + [--disable-enhance-output-sorting] [--enable-auto-describe-image] [--always-download-new-model] [--rebuild-hash-cache [CPU_NUM_THREADS]] diff --git a/webui.py b/webui.py index 467594ddc..b02546223 100644 --- a/webui.py +++ b/webui.py @@ -73,6 +73,9 @@ def generate_clicked(task: worker.AsyncTask): gr.update(visible=True, value=product), \ gr.update(visible=False) if flag == 'finish': + if not args_manager.args.disable_enhance_output_sorting: + product = sort_enhance_images(product, task) + yield gr.update(visible=False), \ gr.update(visible=False), \ gr.update(visible=False), \ @@ -90,6 +93,25 @@ def generate_clicked(task: worker.AsyncTask): return +def sort_enhance_images(images, task): + if not task.should_enhance or len(images) <= task.images_to_enhance_count: + return images + + sorted_images = [] + walk_index = task.images_to_enhance_count + + for index, enhanced_img in enumerate(images[:task.images_to_enhance_count]): + sorted_images.append(enhanced_img) + if index not in task.enhance_stats: + continue + target_index = walk_index + task.enhance_stats[index] + if walk_index < len(images) and target_index <= len(images): + sorted_images += images[walk_index:target_index] + walk_index += task.enhance_stats[index] + + return sorted_images + + def inpaint_mode_change(mode, inpaint_engine_version): assert mode in modules.flags.inpaint_options From 76db11ff9592610a4a259838de7a23c241eb6cef Mon Sep 17 00:00:00 2001 From: Manuel Schmid Date: Tue, 23 Jul 2024 18:27:33 +0200 Subject: [PATCH 3/4] release: bump version to 2.6.1-rc1, update changelog --- fooocus_version.py | 2 +- update_log.md | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/fooocus_version.py b/fooocus_version.py index 674c9e775..270e5fdd6 100644 --- a/fooocus_version.py +++ b/fooocus_version.py @@ -1 +1 @@ -version = '2.6.0 (mashb1t)' +version = '2.6.1-rc1 (mashb1t)' diff --git a/update_log.md b/update_log.md index 1cbe0feb4..fcd75e74d 100644 --- a/update_log.md +++ b/update_log.md @@ -1,3 +1,13 @@ +# [2.6.1-rc1](https://github.com/mashb1t/Fooocus/releases/tag/v2.6.1-rc1) + +* Update download URL in readme +* Increase speed of metadata loading +* Fix reading of metadata from jpeg, jpg and webp (exif) +* Fix debug preprocessor +* Update attributes and add inline prompt features section to readme +* Add checkbox, config and handling for saving only the final enhanced image +* Add sorting of final images when enhanced is enabled. Use `--disable-enhance-output-sorting` to disable. + # [2.6.0](https://github.com/mashb1t/Fooocus/releases/tag/v2.6.0) This version includes various package updates. If the auto-update doesn't work you can do one of the following: From 30bec5400d3fb650c13793cf0d927194f5ca203a Mon Sep 17 00:00:00 2001 From: Manuel Schmid Date: Thu, 25 Jul 2024 15:06:19 +0200 Subject: [PATCH 4/4] release: bump version to 2.6.1, update changelog --- fooocus_version.py | 2 +- update_log.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fooocus_version.py b/fooocus_version.py index 270e5fdd6..2d8a604ab 100644 --- a/fooocus_version.py +++ b/fooocus_version.py @@ -1 +1 @@ -version = '2.6.1-rc1 (mashb1t)' +version = '2.6.1 (mashb1t)' diff --git a/update_log.md b/update_log.md index fcd75e74d..a22f4e6e6 100644 --- a/update_log.md +++ b/update_log.md @@ -1,12 +1,12 @@ -# [2.6.1-rc1](https://github.com/mashb1t/Fooocus/releases/tag/v2.6.1-rc1) +# [2.6.1](https://github.com/mashb1t/Fooocus/releases/tag/v2.6.1) * Update download URL in readme * Increase speed of metadata loading * Fix reading of metadata from jpeg, jpg and webp (exif) * Fix debug preprocessor * Update attributes and add inline prompt features section to readme -* Add checkbox, config and handling for saving only the final enhanced image -* Add sorting of final images when enhanced is enabled. Use `--disable-enhance-output-sorting` to disable. +* Add checkbox, config and handling for saving only the final enhanced image. Use config `default_save_only_final_enhanced_image`, default False. +* Add sorting of final images when enhanced is enabled. Use argument `--disable-enhance-output-sorting` to disable. # [2.6.0](https://github.com/mashb1t/Fooocus/releases/tag/v2.6.0)