fix: set coherence denoise to 0.2 min for refiner models

This commit is contained in:
blessedcoolant 2024-04-09 08:22:50 +05:30 committed by psychedelicious
parent fd1f240853
commit ca0d60bee6
2 changed files with 3 additions and 3 deletions

View File

@ -133,7 +133,7 @@ export const buildCanvasSDXLInpaintGraph = async (
id: INPAINT_CREATE_MASK,
is_intermediate,
coherence_mode: canvasCoherenceMode,
minimum_denoise: canvasCoherenceMinDenoise,
minimum_denoise: refinerModel ? Math.min(0.2, canvasCoherenceMinDenoise) : canvasCoherenceMinDenoise,
edge_radius: canvasCoherenceEdgeSize,
},
[SDXL_DENOISE_LATENTS]: {

View File

@ -156,7 +156,7 @@ export const buildCanvasSDXLOutpaintGraph = async (
is_intermediate,
coherence_mode: canvasCoherenceMode,
edge_radius: canvasCoherenceEdgeSize,
minimum_denoise: canvasCoherenceMinDenoise,
minimum_denoise: refinerModel ? Math.min(0.2, canvasCoherenceMinDenoise) : canvasCoherenceMinDenoise,
},
[SDXL_DENOISE_LATENTS]: {
type: 'denoise_latents',
@ -582,7 +582,7 @@ export const buildCanvasSDXLOutpaintGraph = async (
// Add Refiner if enabled
if (refinerModel) {
await addSDXLRefinerToGraph(state, graph, SDXL_DENOISE_LATENTS, modelLoaderNodeId, canvasInitImage);
await addSDXLRefinerToGraph(state, graph, SDXL_DENOISE_LATENTS, modelLoaderNodeId);
if (seamlessXAxis || seamlessYAxis) {
modelLoaderNodeId = SDXL_REFINER_SEAMLESS;
}