Adds support for inpaint_replace

This commit is contained in:
psychedelicious
2022-10-28 02:04:32 +11:00
parent 4039e9e368
commit 4cf9c965d4
11 changed files with 575 additions and 1009 deletions

View File

@@ -102,6 +102,8 @@ export const frontendToBackendParameters = (
boundingBoxCoordinate: { x, y },
boundingBoxDimensions: { width, height },
shouldShowBoundingBox,
inpaintReplace,
shouldUseInpaintReplace,
} = inpaintingState;
let bx = x,
@@ -123,6 +125,10 @@ export const frontendToBackendParameters = (
height: bheight,
};
if (shouldUseInpaintReplace) {
generationParameters.inpaint_replace = inpaintReplace;
}
generationParameters.init_img = imageToProcessUrl;
generationParameters.strength = img2imgStrength;
generationParameters.fit = false;