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

View File

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