We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a798c16 commit 3562525Copy full SHA for 3562525
ai_diffusion/resolution.py
@@ -21,7 +21,7 @@ def compute_bounds(extent: Extent, mask_bounds: Bounds | None, op: WorkflowKind)
21
In many cases diffusion context and mask bounds are the same.
22
"""
23
if mask_bounds is not None:
24
- if op is WorkflowKind.inpaint:
+ if op in (WorkflowKind.generate, WorkflowKind.inpaint):
25
# For 100% strength inpainting get additional surrounding image content for context
26
context_padding = max(extent.longest_side // 16, mask_bounds.extent.average_side // 2)
27
image_bounds = Bounds.pad(
0 commit comments