mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
tidy(ui): disable preview images on every enqueue
This commit is contained in:
parent
03baebced6
commit
fbd137da9f
@ -25,9 +25,6 @@ export const addEnqueueRequestedLinear = (startAppListening: AppStartListening)
|
||||
assert(model, 'No model found in state');
|
||||
const base = model.base;
|
||||
|
||||
manager.getInpaintMaskImage({ bbox: state.canvasV2.bbox, preview: true });
|
||||
manager.getImageSourceImage({ bbox: state.canvasV2.bbox, preview: true });
|
||||
|
||||
if (base === 'sdxl') {
|
||||
g = await buildSDXLGraph(state, manager);
|
||||
} else if (base === 'sd-1' || base === 'sd-2') {
|
||||
|
@ -18,10 +18,7 @@ export const addImageToImage = async (
|
||||
denoise.denoising_start = denoising_start;
|
||||
|
||||
const cropBbox = pick(bbox, ['x', 'y', 'width', 'height']);
|
||||
const initialImage = await manager.getImageSourceImage({
|
||||
bbox: cropBbox,
|
||||
preview: true,
|
||||
});
|
||||
const initialImage = await manager.getImageSourceImage({ bbox: cropBbox });
|
||||
|
||||
if (!isEqual(scaledSize, originalSize)) {
|
||||
// Resize the initial image to the scaled size, denoise, then resize back to the original size
|
||||
|
@ -22,14 +22,8 @@ export const addInpaint = async (
|
||||
denoise.denoising_start = denoising_start;
|
||||
|
||||
const cropBbox = pick(bbox, ['x', 'y', 'width', 'height']);
|
||||
const initialImage = await manager.getImageSourceImage({
|
||||
bbox: cropBbox,
|
||||
preview: true,
|
||||
});
|
||||
const maskImage = await manager.getInpaintMaskImage({
|
||||
bbox: cropBbox,
|
||||
preview: true,
|
||||
});
|
||||
const initialImage = await manager.getImageSourceImage({ bbox: cropBbox });
|
||||
const maskImage = await manager.getInpaintMaskImage({ bbox: cropBbox });
|
||||
|
||||
if (!isEqual(scaledSize, originalSize)) {
|
||||
// Scale before processing requires some resizing
|
||||
|
@ -21,14 +21,8 @@ export const addOutpaint = async (
|
||||
vaePrecision: ParameterPrecision
|
||||
): Promise<Invocation<'canvas_paste_back'>> => {
|
||||
const cropBbox = pick(bbox, ['x', 'y', 'width', 'height']);
|
||||
const initialImage = await manager.getImageSourceImage({
|
||||
bbox: cropBbox,
|
||||
preview: true,
|
||||
});
|
||||
const maskImage = await manager.getInpaintMaskImage({
|
||||
bbox: cropBbox,
|
||||
preview: true,
|
||||
});
|
||||
const initialImage = await manager.getImageSourceImage({ bbox: cropBbox });
|
||||
const maskImage = await manager.getInpaintMaskImage({ bbox: cropBbox });
|
||||
const infill = getInfill(g, compositing);
|
||||
|
||||
if (!isEqual(scaledSize, originalSize)) {
|
||||
|
@ -44,7 +44,7 @@ export const addRegions = async (
|
||||
|
||||
for (const region of validRegions) {
|
||||
// Upload the mask image, or get the cached image if it exists
|
||||
const { image_name } = await manager.getRegionMaskImage({ id: region.id, bbox, preview: true });
|
||||
const { image_name } = await manager.getRegionMaskImage({ id: region.id, bbox });
|
||||
|
||||
// The main mask-to-tensor node
|
||||
const maskToTensor = g.addNode({
|
||||
|
Loading…
Reference in New Issue
Block a user