mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
tidy(ui): remove extraneous graph validate calls
This commit is contained in:
parent
48ccd63dba
commit
fb6e926500
@ -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) {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user