Skip to content

Commit

Permalink
fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhan1993 committed Nov 28, 2024
1 parent 31f01a2 commit 6d1c4b1
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions modules/async_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,21 +99,10 @@ def __init__(self, args, task_id=uuid.uuid4().hex):
self.invert_mask_checkbox = args.pop()
self.inpaint_erode_or_dilate = args.pop()

if not args_manager.args.disable_image_log:
self.save_final_enhanced_image_only = args.pop()
else:
self.save_final_enhanced_image_only = False
args.pop()
if not args_manager.args.disable_metadata:
self.save_metadata_to_images = args.pop()
else:
self.save_metadata_to_images = False
args.pop()
if args_manager.args.disable_metadata:
self.metadata_scheme = MetadataScheme(args.pop())
else:
self.metadata_scheme = MetadataScheme.FOOOCUS
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

self.cn_tasks = {x: [] for x in ip_list}
for _ in range(modules.config.default_controlnet_image_count):
Expand Down

0 comments on commit 6d1c4b1

Please sign in to comment.