fix: SDXL Refiner Seamless Interaction

This commit is contained in:
blessedcoolant 2023-08-31 05:14:19 +12:00
parent 943bedadf2
commit 4c407328f2
6 changed files with 18 additions and 6 deletions

View File

@ -368,7 +368,9 @@ export const buildCanvasSDXLImageToImageGraph = (
// Add Refiner if enabled
if (shouldUseSDXLRefiner) {
addSDXLRefinerToGraph(state, graph, SDXL_DENOISE_LATENTS);
modelLoaderNodeId = REFINER_SEAMLESS;
if (seamlessXAxis || seamlessYAxis) {
modelLoaderNodeId = REFINER_SEAMLESS;
}
}
// optionally add custom VAE

View File

@ -630,7 +630,9 @@ export const buildCanvasSDXLInpaintGraph = (
CANVAS_COHERENCE_DENOISE_LATENTS,
modelLoaderNodeId
);
modelLoaderNodeId = REFINER_SEAMLESS;
if (seamlessXAxis || seamlessYAxis) {
modelLoaderNodeId = REFINER_SEAMLESS;
}
}
// optionally add custom VAE

View File

@ -768,7 +768,9 @@ export const buildCanvasSDXLOutpaintGraph = (
CANVAS_COHERENCE_DENOISE_LATENTS,
modelLoaderNodeId
);
modelLoaderNodeId = REFINER_SEAMLESS;
if (seamlessXAxis || seamlessYAxis) {
modelLoaderNodeId = REFINER_SEAMLESS;
}
}
// optionally add custom VAE

View File

@ -348,7 +348,9 @@ export const buildCanvasSDXLTextToImageGraph = (
// Add Refiner if enabled
if (shouldUseSDXLRefiner) {
addSDXLRefinerToGraph(state, graph, SDXL_DENOISE_LATENTS);
modelLoaderNodeId = REFINER_SEAMLESS;
if (seamlessXAxis || seamlessYAxis) {
modelLoaderNodeId = REFINER_SEAMLESS;
}
}
// add LoRA support

View File

@ -368,7 +368,9 @@ export const buildLinearSDXLImageToImageGraph = (
// Add Refiner if enabled
if (shouldUseSDXLRefiner) {
addSDXLRefinerToGraph(state, graph, SDXL_DENOISE_LATENTS);
modelLoaderNodeId = REFINER_SEAMLESS;
if (seamlessXAxis || seamlessYAxis) {
modelLoaderNodeId = REFINER_SEAMLESS;
}
}
// optionally add custom VAE

View File

@ -261,7 +261,9 @@ export const buildLinearSDXLTextToImageGraph = (
// Add Refiner if enabled
if (shouldUseSDXLRefiner) {
addSDXLRefinerToGraph(state, graph, SDXL_DENOISE_LATENTS);
modelLoaderNodeId = REFINER_SEAMLESS;
if (seamlessXAxis || seamlessYAxis) {
modelLoaderNodeId = REFINER_SEAMLESS;
}
}
// optionally add custom VAE