mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(ui): remove first unsharp from upscale graph
This commit is contained in:
parent
f9d3966ea2
commit
ffa39d74b3
@ -37,24 +37,15 @@ export const buildMultidiffusionUpscsaleGraph = async (state: RootState): Promis
|
|||||||
|
|
||||||
const g = new Graph();
|
const g = new Graph();
|
||||||
|
|
||||||
const unsharpMaskNode1 = g.addNode({
|
|
||||||
id: `${UNSHARP_MASK}_1`,
|
|
||||||
type: 'unsharp_mask',
|
|
||||||
image: upscaleInitialImage,
|
|
||||||
radius: 2,
|
|
||||||
strength: (sharpness + 10) * 3.75 + 25,
|
|
||||||
});
|
|
||||||
|
|
||||||
const upscaleNode = g.addNode({
|
const upscaleNode = g.addNode({
|
||||||
id: SPANDREL,
|
id: SPANDREL,
|
||||||
type: 'spandrel_image_to_image',
|
type: 'spandrel_image_to_image',
|
||||||
|
image: upscaleInitialImage,
|
||||||
image_to_image_model: upscaleModel,
|
image_to_image_model: upscaleModel,
|
||||||
fit_to_multiple_of_8: true,
|
fit_to_multiple_of_8: true,
|
||||||
scale,
|
scale,
|
||||||
});
|
});
|
||||||
|
|
||||||
g.addEdge(unsharpMaskNode1, 'image', upscaleNode, 'image');
|
|
||||||
|
|
||||||
const unsharpMaskNode2 = g.addNode({
|
const unsharpMaskNode2 = g.addNode({
|
||||||
id: `${UNSHARP_MASK}_2`,
|
id: `${UNSHARP_MASK}_2`,
|
||||||
type: 'unsharp_mask',
|
type: 'unsharp_mask',
|
||||||
|
Loading…
Reference in New Issue
Block a user