feat(ui): disable mosaic infill in graph builders

This commit is contained in:
psychedelicious 2024-04-05 07:58:34 +11:00
parent 90bdd74f30
commit 5d4a571778
2 changed files with 32 additions and 30 deletions

View File

@ -65,10 +65,10 @@ export const buildCanvasOutpaintGraph = async (
infillTileSize, infillTileSize,
infillPatchmatchDownscaleSize, infillPatchmatchDownscaleSize,
infillMethod, infillMethod,
infillMosaicTileWidth, // infillMosaicTileWidth,
infillMosaicTileHeight, // infillMosaicTileHeight,
infillMosaicMinColor, // infillMosaicMinColor,
infillMosaicMaxColor, // infillMosaicMaxColor,
infillColorValue, infillColorValue,
clipSkip, clipSkip,
seamlessXAxis, seamlessXAxis,
@ -361,17 +361,18 @@ export const buildCanvasOutpaintGraph = async (
}; };
} }
if (infillMethod === 'mosaic') { // TODO: add mosaic back
graph.nodes[INPAINT_INFILL] = { // if (infillMethod === 'mosaic') {
type: 'infill_mosaic', // graph.nodes[INPAINT_INFILL] = {
id: INPAINT_INFILL, // type: 'infill_mosaic',
is_intermediate, // id: INPAINT_INFILL,
tile_width: infillMosaicTileWidth, // is_intermediate,
tile_height: infillMosaicTileHeight, // tile_width: infillMosaicTileWidth,
min_color: infillMosaicMinColor, // tile_height: infillMosaicTileHeight,
max_color: infillMosaicMaxColor, // min_color: infillMosaicMinColor,
}; // max_color: infillMosaicMaxColor,
} // };
// }
if (infillMethod === 'color') { if (infillMethod === 'color') {
graph.nodes[INPAINT_INFILL] = { graph.nodes[INPAINT_INFILL] = {

View File

@ -66,10 +66,10 @@ export const buildCanvasSDXLOutpaintGraph = async (
infillTileSize, infillTileSize,
infillPatchmatchDownscaleSize, infillPatchmatchDownscaleSize,
infillMethod, infillMethod,
infillMosaicTileWidth, // infillMosaicTileWidth,
infillMosaicTileHeight, // infillMosaicTileHeight,
infillMosaicMinColor, // infillMosaicMinColor,
infillMosaicMaxColor, // infillMosaicMaxColor,
infillColorValue, infillColorValue,
seamlessXAxis, seamlessXAxis,
seamlessYAxis, seamlessYAxis,
@ -370,17 +370,18 @@ export const buildCanvasSDXLOutpaintGraph = async (
}; };
} }
if (infillMethod === 'mosaic') { // TODO: add mosaic back
graph.nodes[INPAINT_INFILL] = { // if (infillMethod === 'mosaic') {
type: 'infill_mosaic', // graph.nodes[INPAINT_INFILL] = {
id: INPAINT_INFILL, // type: 'infill_mosaic',
is_intermediate, // id: INPAINT_INFILL,
tile_width: infillMosaicTileWidth, // is_intermediate,
tile_height: infillMosaicTileHeight, // tile_width: infillMosaicTileWidth,
min_color: infillMosaicMinColor, // tile_height: infillMosaicTileHeight,
max_color: infillMosaicMaxColor, // min_color: infillMosaicMinColor,
}; // max_color: infillMosaicMaxColor,
} // };
// }
if (infillMethod === 'color') { if (infillMethod === 'color') {
graph.nodes[INPAINT_INFILL] = { graph.nodes[INPAINT_INFILL] = {