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,8 +368,10 @@ export const buildCanvasSDXLImageToImageGraph = (
// Add Refiner if enabled
if (shouldUseSDXLRefiner) {
addSDXLRefinerToGraph(state, graph, SDXL_DENOISE_LATENTS);
if (seamlessXAxis || seamlessYAxis) {
modelLoaderNodeId = REFINER_SEAMLESS;
}
}
// optionally add custom VAE
addVAEToGraph(state, graph, modelLoaderNodeId);

View File

@ -630,8 +630,10 @@ export const buildCanvasSDXLInpaintGraph = (
CANVAS_COHERENCE_DENOISE_LATENTS,
modelLoaderNodeId
);
if (seamlessXAxis || seamlessYAxis) {
modelLoaderNodeId = REFINER_SEAMLESS;
}
}
// optionally add custom VAE
addVAEToGraph(state, graph, modelLoaderNodeId);

View File

@ -768,8 +768,10 @@ export const buildCanvasSDXLOutpaintGraph = (
CANVAS_COHERENCE_DENOISE_LATENTS,
modelLoaderNodeId
);
if (seamlessXAxis || seamlessYAxis) {
modelLoaderNodeId = REFINER_SEAMLESS;
}
}
// optionally add custom VAE
addVAEToGraph(state, graph, modelLoaderNodeId);

View File

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

View File

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

View File

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