feat(ui): img2img working

This commit is contained in:
psychedelicious
2024-07-11 20:37:00 +10:00
parent 0db5c6ac8e
commit 061eeb809f
13 changed files with 141 additions and 128 deletions

View File

@@ -22,7 +22,7 @@ export const addOutpaint = async (
): Promise<Invocation<'canvas_paste_back'>> => {
denoise.denoising_start = denoising_start;
const cropBbox = pick(bbox, ['x', 'y', 'width', 'height']);
const cropBbox = pick(bbox.rect, ['x', 'y', 'width', 'height']);
const initialImage = await manager.getInitialImage({ bbox: cropBbox });
const maskImage = await manager.getInpaintMaskImage({ bbox: cropBbox });
const infill = getInfill(g, compositing);