mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
Merge branch 'jpg_config_image_extension'
# Conflicts: # modules/config.py # modules/flags.py # webui.py
This commit is contained in:
@@ -134,7 +134,7 @@ def worker():
|
||||
performance_selection = args.pop()
|
||||
aspect_ratios_selection = args.pop()
|
||||
image_number = args.pop()
|
||||
image_extension = args.pop()
|
||||
image_file_extension = args.pop()
|
||||
image_seed = args.pop()
|
||||
sharpness = args.pop()
|
||||
guidance_scale = args.pop()
|
||||
@@ -527,7 +527,7 @@ def worker():
|
||||
|
||||
if direct_return:
|
||||
d = [('Upscale (Fast)', '2x')]
|
||||
uov_input_image_path = log(uov_input_image, d, image_extension)
|
||||
uov_input_image_path = log(uov_input_image, d, image_file_extension)
|
||||
yield_result(async_task, uov_input_image_path, do_not_show_finished_images=True)
|
||||
return
|
||||
|
||||
@@ -819,7 +819,7 @@ def worker():
|
||||
if n != 'None':
|
||||
d.append((f'LoRA {li + 1}', f'{n} : {w}'))
|
||||
d.append(('Version', 'v' + fooocus_version.version))
|
||||
img_paths.append(log(x, d, image_extension))
|
||||
img_paths.append(log(x, d, image_file_extension))
|
||||
|
||||
yield_result(async_task, img_paths, do_not_show_finished_images=len(tasks) == 1, progressbar_index=int(15.0 + 85.0 * float((current_task_id + 1) * steps) / float(all_steps)))
|
||||
except ldm_patched.modules.model_management.InterruptProcessingException as e:
|
||||
|
||||
+3
-3
@@ -289,10 +289,10 @@ default_max_image_number = get_config_item_or_set_default(
|
||||
default_value=32,
|
||||
validator=lambda x: isinstance(x, int) and x >= 1
|
||||
)
|
||||
default_image_extension = get_config_item_or_set_default(
|
||||
key='default_image_extension',
|
||||
default_image_file_extension = get_config_item_or_set_default(
|
||||
key='default_image_file_extension',
|
||||
default_value='png',
|
||||
validator=lambda x: x in modules.flags.image_extensions
|
||||
validator=lambda x: x in modules.flags.image_file_extensions
|
||||
)
|
||||
default_image_number = get_config_item_or_set_default(
|
||||
key='default_image_number',
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@ performance_selections = [
|
||||
('Extreme Speed (LCM) <span style="color: grey;"> \U00002223 8 steps, intermediate results disabled</span>', 'Extreme Speed')
|
||||
]
|
||||
|
||||
image_extensions = ['png', 'jpg', 'webp']
|
||||
image_file_extensions = ['png', 'jpg', 'webp']
|
||||
|
||||
inpaint_option_default = 'Inpaint or Outpaint (default)'
|
||||
inpaint_option_detail = 'Improve Detail (face, hand, eyes, etc.)'
|
||||
|
||||
Reference in New Issue
Block a user