tidy(ui): remove extraneous graph validate calls

This commit is contained in:
psychedelicious 2024-05-14 13:46:08 +10:00
parent 48ccd63dba
commit fb6e926500
2 changed files with 0 additions and 7 deletions

View File

@ -143,13 +143,10 @@ export const buildGenerationTabGraph = async (state: RootState): Promise<GraphTy
clip_skip: skipped_layers,
vae: vae ?? undefined,
});
g.validate();
const seamless = addGenerationTabSeamless(state, g, denoise, modelLoader, vaeLoader);
g.validate();
addGenerationTabLoRAs(state, g, denoise, modelLoader, seamless, clipSkip, posCond, negCond);
g.validate();
// We might get the VAE from the main model, custom VAE, or seamless node.
const vaeSource = seamless ?? vaeLoader ?? modelLoader;
@ -166,7 +163,6 @@ export const buildGenerationTabGraph = async (state: RootState): Promise<GraphTy
noise,
vaeSource
);
g.validate();
const isHRFAllowed = !addedLayers.some((l) => isInitialImageLayer(l) || isRegionalGuidanceLayer(l));
if (isHRFAllowed && state.hrf.hrfEnabled) {

View File

@ -135,13 +135,10 @@ export const buildGenerationTabSDXLGraph = async (state: RootState): Promise<Non
negative_style_prompt: negativeStylePrompt,
vae: vae ?? undefined,
});
g.validate();
const seamless = addGenerationTabSeamless(state, g, denoise, modelLoader, vaeLoader);
g.validate();
addGenerationTabSDXLLoRAs(state, g, denoise, modelLoader, seamless, posCond, negCond);
g.validate();
// We might get the VAE from the main model, custom VAE, or seamless node.
const vaeSource = seamless ?? vaeLoader ?? modelLoader;