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
946c2a49ab
commit
b55378c63c
@ -25,9 +25,6 @@ export const addEnqueueRequestedLinear = (startAppListening: AppStartListening)
|
|||||||
assert(model, 'No model found in state');
|
assert(model, 'No model found in state');
|
||||||
const base = model.base;
|
const base = model.base;
|
||||||
|
|
||||||
manager.getInpaintMaskImage({ bbox: state.canvasV2.bbox, preview: true });
|
|
||||||
manager.getImageSourceImage({ bbox: state.canvasV2.bbox, preview: true });
|
|
||||||
|
|
||||||
if (base === 'sdxl') {
|
if (base === 'sdxl') {
|
||||||
g = await buildSDXLGraph(state, manager);
|
g = await buildSDXLGraph(state, manager);
|
||||||
} else if (base === 'sd-1' || base === 'sd-2') {
|
} else if (base === 'sd-1' || base === 'sd-2') {
|
||||||
|
@ -18,10 +18,7 @@ export const addImageToImage = async (
|
|||||||
denoise.denoising_start = denoising_start;
|
denoise.denoising_start = denoising_start;
|
||||||
|
|
||||||
const cropBbox = pick(bbox, ['x', 'y', 'width', 'height']);
|
const cropBbox = pick(bbox, ['x', 'y', 'width', 'height']);
|
||||||
const initialImage = await manager.getImageSourceImage({
|
const initialImage = await manager.getImageSourceImage({ bbox: cropBbox });
|
||||||
bbox: cropBbox,
|
|
||||||
preview: true,
|
|
||||||
});
|
|
||||||
|
|
||||||
if (!isEqual(scaledSize, originalSize)) {
|
if (!isEqual(scaledSize, originalSize)) {
|
||||||
// Resize the initial image to the scaled size, denoise, then resize back to the original size
|
// 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;
|
denoise.denoising_start = denoising_start;
|
||||||
|
|
||||||
const cropBbox = pick(bbox, ['x', 'y', 'width', 'height']);
|
const cropBbox = pick(bbox, ['x', 'y', 'width', 'height']);
|
||||||
const initialImage = await manager.getImageSourceImage({
|
const initialImage = await manager.getImageSourceImage({ bbox: cropBbox });
|
||||||
bbox: cropBbox,
|
const maskImage = await manager.getInpaintMaskImage({ bbox: cropBbox });
|
||||||
preview: true,
|
|
||||||
});
|
|
||||||
const maskImage = await manager.getInpaintMaskImage({
|
|
||||||
bbox: cropBbox,
|
|
||||||
preview: true,
|
|
||||||
});
|
|
||||||
|
|
||||||
if (!isEqual(scaledSize, originalSize)) {
|
if (!isEqual(scaledSize, originalSize)) {
|
||||||
// Scale before processing requires some resizing
|
// Scale before processing requires some resizing
|
||||||
|
@ -21,14 +21,8 @@ export const addOutpaint = async (
|
|||||||
vaePrecision: ParameterPrecision
|
vaePrecision: ParameterPrecision
|
||||||
): Promise<Invocation<'canvas_paste_back'>> => {
|
): Promise<Invocation<'canvas_paste_back'>> => {
|
||||||
const cropBbox = pick(bbox, ['x', 'y', 'width', 'height']);
|
const cropBbox = pick(bbox, ['x', 'y', 'width', 'height']);
|
||||||
const initialImage = await manager.getImageSourceImage({
|
const initialImage = await manager.getImageSourceImage({ bbox: cropBbox });
|
||||||
bbox: cropBbox,
|
const maskImage = await manager.getInpaintMaskImage({ bbox: cropBbox });
|
||||||
preview: true,
|
|
||||||
});
|
|
||||||
const maskImage = await manager.getInpaintMaskImage({
|
|
||||||
bbox: cropBbox,
|
|
||||||
preview: true,
|
|
||||||
});
|
|
||||||
const infill = getInfill(g, compositing);
|
const infill = getInfill(g, compositing);
|
||||||
|
|
||||||
if (!isEqual(scaledSize, originalSize)) {
|
if (!isEqual(scaledSize, originalSize)) {
|
||||||
|
@ -44,7 +44,7 @@ export const addRegions = async (
|
|||||||
|
|
||||||
for (const region of validRegions) {
|
for (const region of validRegions) {
|
||||||
// Upload the mask image, or get the cached image if it exists
|
// 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
|
// The main mask-to-tensor node
|
||||||
const maskToTensor = g.addNode({
|
const maskToTensor = g.addNode({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user