Skip to content

Commit

Permalink
Use base layer image in IPA if override is false & hide soft inpainti…
Browse files Browse the repository at this point in the history
…ng in txt2img
  • Loading branch information
ramyma committed Aug 18, 2024
1 parent b8ce802 commit 9fb83b3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions assets/js/src/MainForm/MainForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ const MainForm = () => {
/data:\S+;base64,/,
""
) || null
: null,
: initImageDataUrl?.replace(/data:\S+;base64,/, ""),
mask: controlnetDataUrls[index]?.maskImage?.replace(
/data:\S+;base64,/,
""
Expand Down Expand Up @@ -910,7 +910,9 @@ const MainForm = () => {

{showSoftInpainting && <SoftInpaintingFields control={control} />}

{backend === "comfy" && <ComfySoftInpaintingFields control={control} />}
{backend === "comfy" && !txt2img && (
<ComfySoftInpaintingFields control={control} />
)}

{backend === "comfy" && model?.isSdXl && !txt2img && (
<Controller
Expand Down

0 comments on commit 9fb83b3

Please sign in to comment.