mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
wip: Remove MaskBlur / Adjust color correction
This commit is contained in:
@@ -105,12 +105,12 @@ export const buildCanvasInpaintGraph = (
|
||||
prompt: negativePrompt,
|
||||
},
|
||||
[MASK_BLUR]: {
|
||||
type: 'mask_blur',
|
||||
type: 'img_blur',
|
||||
id: MASK_BLUR,
|
||||
is_intermediate: true,
|
||||
image: canvasMaskImage,
|
||||
radius: maskBlur,
|
||||
blur_type: maskBlurMethod,
|
||||
mask: canvasMaskImage,
|
||||
},
|
||||
[INPAINT_IMAGE]: {
|
||||
type: 'i2l',
|
||||
@@ -148,7 +148,6 @@ export const buildCanvasInpaintGraph = (
|
||||
id: COLOR_CORRECT,
|
||||
is_intermediate: true,
|
||||
reference: canvasInitImage,
|
||||
mask: canvasMaskImage,
|
||||
},
|
||||
[INPAINT_FINAL_IMAGE]: {
|
||||
type: 'img_paste',
|
||||
@@ -258,7 +257,7 @@ export const buildCanvasInpaintGraph = (
|
||||
{
|
||||
source: {
|
||||
node_id: MASK_BLUR,
|
||||
field: 'mask',
|
||||
field: 'image',
|
||||
},
|
||||
destination: {
|
||||
node_id: INPAINT,
|
||||
@@ -308,6 +307,16 @@ export const buildCanvasInpaintGraph = (
|
||||
field: 'image',
|
||||
},
|
||||
},
|
||||
{
|
||||
source: {
|
||||
node_id: MASK_BLUR,
|
||||
field: 'image',
|
||||
},
|
||||
destination: {
|
||||
node_id: COLOR_CORRECT,
|
||||
field: 'mask',
|
||||
},
|
||||
},
|
||||
// Paste Back Onto Original Image
|
||||
{
|
||||
source: {
|
||||
@@ -322,7 +331,7 @@ export const buildCanvasInpaintGraph = (
|
||||
{
|
||||
source: {
|
||||
node_id: MASK_BLUR,
|
||||
field: 'mask',
|
||||
field: 'image',
|
||||
},
|
||||
destination: {
|
||||
node_id: INPAINT_FINAL_IMAGE,
|
||||
|
||||
@@ -141,7 +141,7 @@ export const buildCanvasOutpaintGraph = (
|
||||
mask2: canvasMaskImage,
|
||||
},
|
||||
[MASK_BLUR]: {
|
||||
type: 'mask_blur',
|
||||
type: 'img_blur',
|
||||
id: MASK_BLUR,
|
||||
is_intermediate: true,
|
||||
radius: maskBlur,
|
||||
@@ -271,11 +271,11 @@ export const buildCanvasOutpaintGraph = (
|
||||
{
|
||||
source: {
|
||||
node_id: MASK_COMBINE,
|
||||
field: 'mask',
|
||||
field: 'image',
|
||||
},
|
||||
destination: {
|
||||
node_id: MASK_BLUR,
|
||||
field: 'mask',
|
||||
field: 'image',
|
||||
},
|
||||
},
|
||||
// Plug Everything Into Inpaint Node
|
||||
@@ -322,7 +322,7 @@ export const buildCanvasOutpaintGraph = (
|
||||
{
|
||||
source: {
|
||||
node_id: MASK_BLUR,
|
||||
field: 'mask',
|
||||
field: 'image',
|
||||
},
|
||||
destination: {
|
||||
node_id: INPAINT,
|
||||
@@ -385,7 +385,7 @@ export const buildCanvasOutpaintGraph = (
|
||||
{
|
||||
source: {
|
||||
node_id: MASK_BLUR,
|
||||
field: 'mask',
|
||||
field: 'image',
|
||||
},
|
||||
destination: {
|
||||
node_id: COLOR_CORRECT,
|
||||
@@ -416,7 +416,7 @@ export const buildCanvasOutpaintGraph = (
|
||||
{
|
||||
source: {
|
||||
node_id: MASK_BLUR,
|
||||
field: 'mask',
|
||||
field: 'image',
|
||||
},
|
||||
destination: {
|
||||
node_id: INPAINT_FINAL_IMAGE,
|
||||
|
||||
@@ -109,12 +109,12 @@ export const buildCanvasSDXLInpaintGraph = (
|
||||
: negativeStylePrompt,
|
||||
},
|
||||
[MASK_BLUR]: {
|
||||
type: 'mask_blur',
|
||||
type: 'img_blur',
|
||||
id: MASK_BLUR,
|
||||
is_intermediate: true,
|
||||
radius: maskBlur,
|
||||
blur_type: maskBlurMethod,
|
||||
mask: canvasMaskImage,
|
||||
image: canvasMaskImage,
|
||||
},
|
||||
[INPAINT_IMAGE]: {
|
||||
type: 'i2l',
|
||||
@@ -152,7 +152,6 @@ export const buildCanvasSDXLInpaintGraph = (
|
||||
id: COLOR_CORRECT,
|
||||
is_intermediate: true,
|
||||
reference: canvasInitImage,
|
||||
mask: canvasMaskImage,
|
||||
},
|
||||
[INPAINT_FINAL_IMAGE]: {
|
||||
type: 'img_paste',
|
||||
@@ -271,7 +270,7 @@ export const buildCanvasSDXLInpaintGraph = (
|
||||
{
|
||||
source: {
|
||||
node_id: MASK_BLUR,
|
||||
field: 'mask',
|
||||
field: 'image',
|
||||
},
|
||||
destination: {
|
||||
node_id: INPAINT,
|
||||
@@ -321,6 +320,16 @@ export const buildCanvasSDXLInpaintGraph = (
|
||||
field: 'image',
|
||||
},
|
||||
},
|
||||
{
|
||||
source: {
|
||||
node_id: MASK_BLUR,
|
||||
field: 'image',
|
||||
},
|
||||
destination: {
|
||||
node_id: COLOR_CORRECT,
|
||||
field: 'mask',
|
||||
},
|
||||
},
|
||||
// Paste them back on original image
|
||||
{
|
||||
source: {
|
||||
@@ -335,7 +344,7 @@ export const buildCanvasSDXLInpaintGraph = (
|
||||
{
|
||||
source: {
|
||||
node_id: MASK_BLUR,
|
||||
field: 'mask',
|
||||
field: 'image',
|
||||
},
|
||||
destination: {
|
||||
node_id: INPAINT_FINAL_IMAGE,
|
||||
|
||||
@@ -152,7 +152,7 @@ export const buildCanvasSDXLOutpaintGraph = (
|
||||
mask2: canvasMaskImage,
|
||||
},
|
||||
[MASK_BLUR]: {
|
||||
type: 'mask_blur',
|
||||
type: 'img_blur',
|
||||
id: MASK_BLUR,
|
||||
is_intermediate: true,
|
||||
radius: maskBlur,
|
||||
@@ -284,11 +284,11 @@ export const buildCanvasSDXLOutpaintGraph = (
|
||||
{
|
||||
source: {
|
||||
node_id: MASK_COMBINE,
|
||||
field: 'mask',
|
||||
field: 'image',
|
||||
},
|
||||
destination: {
|
||||
node_id: MASK_BLUR,
|
||||
field: 'mask',
|
||||
field: 'image',
|
||||
},
|
||||
},
|
||||
// Connect Everything To Inpaint
|
||||
@@ -335,7 +335,7 @@ export const buildCanvasSDXLOutpaintGraph = (
|
||||
{
|
||||
source: {
|
||||
node_id: MASK_BLUR,
|
||||
field: 'mask',
|
||||
field: 'image',
|
||||
},
|
||||
destination: {
|
||||
node_id: INPAINT,
|
||||
@@ -398,7 +398,7 @@ export const buildCanvasSDXLOutpaintGraph = (
|
||||
{
|
||||
source: {
|
||||
node_id: MASK_BLUR,
|
||||
field: 'mask',
|
||||
field: 'image',
|
||||
},
|
||||
destination: {
|
||||
node_id: COLOR_CORRECT,
|
||||
@@ -429,7 +429,7 @@ export const buildCanvasSDXLOutpaintGraph = (
|
||||
{
|
||||
source: {
|
||||
node_id: MASK_BLUR,
|
||||
field: 'mask',
|
||||
field: 'image',
|
||||
},
|
||||
destination: {
|
||||
node_id: INPAINT_FINAL_IMAGE,
|
||||
|
||||
Reference in New Issue
Block a user