fix: one man's max is another man's min

This commit is contained in:
blessedcoolant 2024-04-09 08:25:43 +05:30 committed by psychedelicious
parent ca0d60bee6
commit 94b5084cd5
2 changed files with 2 additions and 2 deletions

View File

@ -133,7 +133,7 @@ export const buildCanvasSDXLInpaintGraph = async (
id: INPAINT_CREATE_MASK,
is_intermediate,
coherence_mode: canvasCoherenceMode,
minimum_denoise: refinerModel ? Math.min(0.2, canvasCoherenceMinDenoise) : canvasCoherenceMinDenoise,
minimum_denoise: refinerModel ? Math.max(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: refinerModel ? Math.min(0.2, canvasCoherenceMinDenoise) : canvasCoherenceMinDenoise,
minimum_denoise: refinerModel ? Math.max(0.2, canvasCoherenceMinDenoise) : canvasCoherenceMinDenoise,
},
[SDXL_DENOISE_LATENTS]: {
type: 'denoise_latents',