Skip to content

Commit ffa39d7

Browse files
feat(ui): remove first unsharp from upscale graph
1 parent f9d3966 commit ffa39d7

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

invokeai/frontend/web/src/features/nodes/util/graph/buildMultidiffusionUpscaleGraph.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,24 +37,15 @@ export const buildMultidiffusionUpscsaleGraph = async (state: RootState): Promis
3737

3838
const g = new Graph();
3939

40-
const unsharpMaskNode1 = g.addNode({
41-
id: `${UNSHARP_MASK}_1`,
42-
type: 'unsharp_mask',
43-
image: upscaleInitialImage,
44-
radius: 2,
45-
strength: (sharpness + 10) * 3.75 + 25,
46-
});
47-
4840
const upscaleNode = g.addNode({
4941
id: SPANDREL,
5042
type: 'spandrel_image_to_image',
43+
image: upscaleInitialImage,
5144
image_to_image_model: upscaleModel,
5245
fit_to_multiple_of_8: true,
5346
scale,
5447
});
5548

56-
g.addEdge(unsharpMaskNode1, 'image', upscaleNode, 'image');
57-
5849
const unsharpMaskNode2 = g.addNode({
5950
id: `${UNSHARP_MASK}_2`,
6051
type: 'unsharp_mask',

0 commit comments

Comments
 (0)