ui: split the canvas mask blur and edge size setting

This commit is contained in:
blessedcoolant
2024-02-26 19:05:11 +05:30
committed by psychedelicious
parent 32b8478974
commit afa7043dcd
9 changed files with 21 additions and 16 deletions

View File

@ -58,13 +58,13 @@ export const buildCanvasInpaintGraph = (
seed,
vaePrecision,
shouldUseCpuNoise,
clipSkip,
seamlessXAxis,
seamlessYAxis,
canvasCoherenceMode,
canvasCoherenceMinDenoise,
canvasCoherenceEdgeSize,
maskBlur,
} = state.generation;
if (!model) {
@ -156,7 +156,7 @@ export const buildCanvasInpaintGraph = (
id: CANVAS_OUTPUT,
is_intermediate: getIsIntermediate(state),
board: getBoardField(state),
mask_blur: canvasCoherenceEdgeSize,
mask_blur: maskBlur,
source_image: canvasInitImage,
},
},

View File

@ -71,6 +71,7 @@ export const buildCanvasOutpaintGraph = (
canvasCoherenceMode,
canvasCoherenceMinDenoise,
canvasCoherenceEdgeSize,
maskBlur,
} = state.generation;
if (!model) {
@ -176,7 +177,7 @@ export const buildCanvasOutpaintGraph = (
is_intermediate: getIsIntermediate(state),
board: getBoardField(state),
use_cache: false,
mask_blur: canvasCoherenceEdgeSize,
mask_blur: maskBlur,
},
},
edges: [

View File

@ -64,6 +64,7 @@ export const buildCanvasSDXLInpaintGraph = (
canvasCoherenceMode,
canvasCoherenceMinDenoise,
canvasCoherenceEdgeSize,
maskBlur,
} = state.generation;
const { refinerModel, refinerStart } = state.sdxl;
@ -157,7 +158,7 @@ export const buildCanvasSDXLInpaintGraph = (
id: CANVAS_OUTPUT,
is_intermediate: getIsIntermediate(state),
board: getBoardField(state),
mask_blur: canvasCoherenceEdgeSize,
mask_blur: maskBlur,
source_image: canvasInitImage,
},
},

View File

@ -71,6 +71,7 @@ export const buildCanvasSDXLOutpaintGraph = (
canvasCoherenceMode,
canvasCoherenceMinDenoise,
canvasCoherenceEdgeSize,
maskBlur,
} = state.generation;
const { refinerModel, refinerStart } = state.sdxl;
@ -176,7 +177,7 @@ export const buildCanvasSDXLOutpaintGraph = (
is_intermediate: getIsIntermediate(state),
board: getBoardField(state),
use_cache: false,
mask_blur: canvasCoherenceEdgeSize,
mask_blur: maskBlur,
},
},
edges: [