mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
wip: Initial Infill Methods Refactor
This commit is contained in:
committed by
psychedelicious
parent
3659219f46
commit
32a6b758cd
@ -356,6 +356,22 @@ export const buildCanvasOutpaintGraph = async (
|
||||
};
|
||||
}
|
||||
|
||||
if (infillMethod === 'mosaic') {
|
||||
graph.nodes[INPAINT_INFILL] = {
|
||||
type: 'infill_mosaic',
|
||||
id: INPAINT_INFILL,
|
||||
is_intermediate,
|
||||
};
|
||||
}
|
||||
|
||||
if (infillMethod === 'color') {
|
||||
graph.nodes[INPAINT_INFILL] = {
|
||||
type: 'infill_rgba',
|
||||
id: INPAINT_INFILL,
|
||||
is_intermediate,
|
||||
};
|
||||
}
|
||||
|
||||
// Handle Scale Before Processing
|
||||
if (isUsingScaledDimensions) {
|
||||
const scaledWidth: number = scaledBoundingBoxDimensions.width;
|
||||
|
@ -365,6 +365,22 @@ export const buildCanvasSDXLOutpaintGraph = async (
|
||||
};
|
||||
}
|
||||
|
||||
if (infillMethod === 'mosaic') {
|
||||
graph.nodes[INPAINT_INFILL] = {
|
||||
type: 'infill_mosaic',
|
||||
id: INPAINT_INFILL,
|
||||
is_intermediate,
|
||||
};
|
||||
}
|
||||
|
||||
if (infillMethod === 'color') {
|
||||
graph.nodes[INPAINT_INFILL] = {
|
||||
type: 'infill_rgba',
|
||||
id: INPAINT_INFILL,
|
||||
is_intermediate,
|
||||
};
|
||||
}
|
||||
|
||||
// Handle Scale Before Processing
|
||||
if (isUsingScaledDimensions) {
|
||||
const scaledWidth: number = scaledBoundingBoxDimensions.width;
|
||||
|
Reference in New Issue
Block a user