tidy(ui): remove unused modelLoader from refiner helper

This commit is contained in:
psychedelicious 2024-05-15 13:44:30 +10:00
parent 0ff0290735
commit af477fa295
2 changed files with 1 additions and 3 deletions

View File

@ -17,7 +17,6 @@ export const addSDXLRefiner = async (
state: RootState,
g: Graph,
denoise: Invocation<'denoise_latents'>,
modelLoader: Invocation<'sdxl_model_loader'>,
seamless: Invocation<'seamless'> | null,
posCond: Invocation<'sdxl_compel_prompt'>,
negCond: Invocation<'sdxl_compel_prompt'>,
@ -77,7 +76,6 @@ export const addSDXLRefiner = async (
seamless_y: seamless.seamless_y,
});
g.addEdge(refinerModelLoader, 'unet', refinerSeamless, 'unet');
g.addEdge(refinerModelLoader, 'vae', refinerSeamless, 'vae');
g.addEdge(refinerSeamless, 'unet', refinerDenoise, 'unet');
} else {
g.addEdge(refinerModelLoader, 'unet', refinerDenoise, 'unet');

View File

@ -145,7 +145,7 @@ export const buildGenerationTabSDXLGraph = async (state: RootState): Promise<Non
// Add Refiner if enabled
if (refinerModel) {
await addSDXLRefiner(state, g, denoise, modelLoader, seamless, posCond, negCond, l2i);
await addSDXLRefiner(state, g, denoise, seamless, posCond, negCond, l2i);
}
await addControlLayers(