Skip to content

Commit

Permalink
Fix duplicated root prompt when a single regions covers the entire im…
Browse files Browse the repository at this point in the history
…age #1617
  • Loading branch information
Acly committed Feb 18, 2025
1 parent b6758cb commit a885ec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ai_diffusion/region.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ def process_regions(
coverage = mask.average()
if coverage > 0.9 and min_coverage > 0:
# Single region covers (almost) entire image, don't use regional conditioning.
result.positive = workflow.merge_prompt(region.positive, root.positive)
result.positive = region.positive
result.control += region.control
return result, [job_region]
elif coverage < min_coverage:
Expand Down

0 comments on commit a885ec8

Please sign in to comment.