fix: Fix VAE Precision not working for SDXL Canvas Modes

This commit is contained in:
blessedcoolant 2023-08-13 04:09:51 +12:00
parent c33acf951e
commit 28208e6f49
2 changed files with 4 additions and 0 deletions

View File

@ -42,6 +42,7 @@ export const buildCanvasSDXLImageToImageGraph = (
cfgScale: cfg_scale, cfgScale: cfg_scale,
scheduler, scheduler,
steps, steps,
vaePrecision,
clipSkip, clipSkip,
shouldUseCpuNoise, shouldUseCpuNoise,
shouldUseNoiseSettings, shouldUseNoiseSettings,
@ -135,6 +136,7 @@ export const buildCanvasSDXLImageToImageGraph = (
type: 'l2i', type: 'l2i',
id: CANVAS_OUTPUT, id: CANVAS_OUTPUT,
is_intermediate: !shouldAutoSave, is_intermediate: !shouldAutoSave,
fp32: vaePrecision === 'fp32' ? true : false,
}, },
}, },
edges: [ edges: [

View File

@ -39,6 +39,7 @@ export const buildCanvasSDXLTextToImageGraph = (
cfgScale: cfg_scale, cfgScale: cfg_scale,
scheduler, scheduler,
steps, steps,
vaePrecision,
clipSkip, clipSkip,
shouldUseCpuNoise, shouldUseCpuNoise,
shouldUseNoiseSettings, shouldUseNoiseSettings,
@ -147,6 +148,7 @@ export const buildCanvasSDXLTextToImageGraph = (
type: isUsingOnnxModel ? 'l2i_onnx' : 'l2i', type: isUsingOnnxModel ? 'l2i_onnx' : 'l2i',
id: CANVAS_OUTPUT, id: CANVAS_OUTPUT,
is_intermediate: !shouldAutoSave, is_intermediate: !shouldAutoSave,
fp32: vaePrecision === 'fp32' ? true : false,
}, },
}, },
edges: [ edges: [