Skip to content

Commit

Permalink
Merge pull request #18 from ilian6806/develop
Browse files Browse the repository at this point in the history
Infotexts bug fixed
  • Loading branch information
ilian6806 committed Jun 2, 2023
2 parents 010807b + 0ef75e1 commit 7b803a4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 12 deletions.
18 changes: 12 additions & 6 deletions scripts/eyemask/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,15 +212,21 @@ def execute(self, p,
updated_info = self.update_info(initial_info, em_params)

output_images.append(processed.images[0])
p.all_seeds.append(start_seed)
p.all_prompts.append(save_prompt)
p.infotexts.append(updated_info)
try:
p.all_seeds.append(start_seed)
p.all_prompts.append(save_prompt)
p.infotexts.append(updated_info)
except Exception as e:
pass

if em_include_mask and (n == iterations - 1 or (is_txt2img and em_redraw_original)):
output_images.append(mask)
p.all_seeds.append(start_seed)
p.all_prompts.append(mask_prompt)
p.infotexts.append(updated_info)
try:
p.all_seeds.append(start_seed)
p.all_prompts.append(mask_prompt)
p.infotexts.append(updated_info)
except Exception as e:
pass

shared.state.current_image = processed.images[0]

Expand Down
18 changes: 12 additions & 6 deletions scripts/eyemask/script_embedded.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,15 +193,21 @@ def execute_postprocess(self, p, processed,
updated_info = self.update_info(initial_info, em_params)

processed.images.append(processed_em.images[0])
processed.all_seeds.append(start_seed)
processed.all_prompts.append(save_prompt)
processed.infotexts.append(updated_info)
try:
processed.all_seeds.append(start_seed)
processed.all_prompts.append(save_prompt)
processed.infotexts.append(updated_info)
except Exception as e:
pass

if em_include_mask and (n == iterations - 1):
processed.images.append(mask)
processed.all_seeds.append(start_seed)
processed.all_prompts.append(mask_prompt)
processed.infotexts.append(updated_info)
try:
processed.all_seeds.append(start_seed)
processed.all_prompts.append(mask_prompt)
processed.infotexts.append(updated_info)
except Exception as e:
pass

shared.state.current_image = processed_em.images[0]

Expand Down

0 comments on commit 7b803a4

Please sign in to comment.