mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
ui: split the canvas mask blur and edge size setting
This commit is contained in:
parent
120988b5f3
commit
0722eb132d
@ -1193,8 +1193,8 @@
|
|||||||
"unableToInvoke": "Unable to Invoke"
|
"unableToInvoke": "Unable to Invoke"
|
||||||
},
|
},
|
||||||
"maskAdjustmentsHeader": "Mask Adjustments",
|
"maskAdjustmentsHeader": "Mask Adjustments",
|
||||||
"maskBlur": "Blur",
|
"maskBlur": "Mask Blur",
|
||||||
"maskBlurMethod": "Blur Method",
|
"maskBlurMethod": "Mask Blur Method",
|
||||||
"maskEdge": "Mask Edge",
|
"maskEdge": "Mask Edge",
|
||||||
"negativePromptPlaceholder": "Negative Prompt",
|
"negativePromptPlaceholder": "Negative Prompt",
|
||||||
"noiseSettings": "Noise",
|
"noiseSettings": "Noise",
|
||||||
@ -1480,8 +1480,8 @@
|
|||||||
"Each scheduler defines how to iteratively add noise to an image or how to update a sample based on a model's output."
|
"Each scheduler defines how to iteratively add noise to an image or how to update a sample based on a model's output."
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"compositingBlur": {
|
"compositingMaskBlur": {
|
||||||
"heading": "Blur",
|
"heading": "Mask Blur",
|
||||||
"paragraphs": ["The blur radius of the mask."]
|
"paragraphs": ["The blur radius of the mask."]
|
||||||
},
|
},
|
||||||
"compositingBlurMethod": {
|
"compositingBlurMethod": {
|
||||||
|
@ -6,7 +6,7 @@ export type Feature =
|
|||||||
| 'paramNegativeConditioning'
|
| 'paramNegativeConditioning'
|
||||||
| 'paramPositiveConditioning'
|
| 'paramPositiveConditioning'
|
||||||
| 'paramScheduler'
|
| 'paramScheduler'
|
||||||
| 'compositingBlur'
|
| 'compositingMaskBlur'
|
||||||
| 'compositingBlurMethod'
|
| 'compositingBlurMethod'
|
||||||
| 'compositingCoherencePass'
|
| 'compositingCoherencePass'
|
||||||
| 'compositingCoherenceMode'
|
| 'compositingCoherenceMode'
|
||||||
|
@ -58,13 +58,13 @@ export const buildCanvasInpaintGraph = (
|
|||||||
seed,
|
seed,
|
||||||
vaePrecision,
|
vaePrecision,
|
||||||
shouldUseCpuNoise,
|
shouldUseCpuNoise,
|
||||||
|
|
||||||
clipSkip,
|
clipSkip,
|
||||||
seamlessXAxis,
|
seamlessXAxis,
|
||||||
seamlessYAxis,
|
seamlessYAxis,
|
||||||
canvasCoherenceMode,
|
canvasCoherenceMode,
|
||||||
canvasCoherenceMinDenoise,
|
canvasCoherenceMinDenoise,
|
||||||
canvasCoherenceEdgeSize,
|
canvasCoherenceEdgeSize,
|
||||||
|
maskBlur,
|
||||||
} = state.generation;
|
} = state.generation;
|
||||||
|
|
||||||
if (!model) {
|
if (!model) {
|
||||||
@ -156,7 +156,7 @@ export const buildCanvasInpaintGraph = (
|
|||||||
id: CANVAS_OUTPUT,
|
id: CANVAS_OUTPUT,
|
||||||
is_intermediate: getIsIntermediate(state),
|
is_intermediate: getIsIntermediate(state),
|
||||||
board: getBoardField(state),
|
board: getBoardField(state),
|
||||||
mask_blur: canvasCoherenceEdgeSize,
|
mask_blur: maskBlur,
|
||||||
source_image: canvasInitImage,
|
source_image: canvasInitImage,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -71,6 +71,7 @@ export const buildCanvasOutpaintGraph = (
|
|||||||
canvasCoherenceMode,
|
canvasCoherenceMode,
|
||||||
canvasCoherenceMinDenoise,
|
canvasCoherenceMinDenoise,
|
||||||
canvasCoherenceEdgeSize,
|
canvasCoherenceEdgeSize,
|
||||||
|
maskBlur,
|
||||||
} = state.generation;
|
} = state.generation;
|
||||||
|
|
||||||
if (!model) {
|
if (!model) {
|
||||||
@ -176,7 +177,7 @@ export const buildCanvasOutpaintGraph = (
|
|||||||
is_intermediate: getIsIntermediate(state),
|
is_intermediate: getIsIntermediate(state),
|
||||||
board: getBoardField(state),
|
board: getBoardField(state),
|
||||||
use_cache: false,
|
use_cache: false,
|
||||||
mask_blur: canvasCoherenceEdgeSize,
|
mask_blur: maskBlur,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
edges: [
|
edges: [
|
||||||
|
@ -64,6 +64,7 @@ export const buildCanvasSDXLInpaintGraph = (
|
|||||||
canvasCoherenceMode,
|
canvasCoherenceMode,
|
||||||
canvasCoherenceMinDenoise,
|
canvasCoherenceMinDenoise,
|
||||||
canvasCoherenceEdgeSize,
|
canvasCoherenceEdgeSize,
|
||||||
|
maskBlur,
|
||||||
} = state.generation;
|
} = state.generation;
|
||||||
|
|
||||||
const { refinerModel, refinerStart } = state.sdxl;
|
const { refinerModel, refinerStart } = state.sdxl;
|
||||||
@ -157,7 +158,7 @@ export const buildCanvasSDXLInpaintGraph = (
|
|||||||
id: CANVAS_OUTPUT,
|
id: CANVAS_OUTPUT,
|
||||||
is_intermediate: getIsIntermediate(state),
|
is_intermediate: getIsIntermediate(state),
|
||||||
board: getBoardField(state),
|
board: getBoardField(state),
|
||||||
mask_blur: canvasCoherenceEdgeSize,
|
mask_blur: maskBlur,
|
||||||
source_image: canvasInitImage,
|
source_image: canvasInitImage,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -71,6 +71,7 @@ export const buildCanvasSDXLOutpaintGraph = (
|
|||||||
canvasCoherenceMode,
|
canvasCoherenceMode,
|
||||||
canvasCoherenceMinDenoise,
|
canvasCoherenceMinDenoise,
|
||||||
canvasCoherenceEdgeSize,
|
canvasCoherenceEdgeSize,
|
||||||
|
maskBlur,
|
||||||
} = state.generation;
|
} = state.generation;
|
||||||
|
|
||||||
const { refinerModel, refinerStart } = state.sdxl;
|
const { refinerModel, refinerStart } = state.sdxl;
|
||||||
@ -176,7 +177,7 @@ export const buildCanvasSDXLOutpaintGraph = (
|
|||||||
is_intermediate: getIsIntermediate(state),
|
is_intermediate: getIsIntermediate(state),
|
||||||
board: getBoardField(state),
|
board: getBoardField(state),
|
||||||
use_cache: false,
|
use_cache: false,
|
||||||
mask_blur: canvasCoherenceEdgeSize,
|
mask_blur: maskBlur,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
edges: [
|
edges: [
|
||||||
|
@ -26,7 +26,7 @@ const ParamMaskBlur = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<InformationalPopover feature="compositingBlur">
|
<InformationalPopover feature="compositingMaskBlur">
|
||||||
<FormLabel>{t('parameters.maskBlur')}</FormLabel>
|
<FormLabel>{t('parameters.maskBlur')}</FormLabel>
|
||||||
</InformationalPopover>
|
</InformationalPopover>
|
||||||
<CompositeSlider
|
<CompositeSlider
|
||||||
|
@ -12,6 +12,7 @@ import {
|
|||||||
import ParamCanvasCoherenceEdgeSize from 'features/parameters/components/Canvas/Compositing/CoherencePass/ParamCanvasCoherenceEdgeSize';
|
import ParamCanvasCoherenceEdgeSize from 'features/parameters/components/Canvas/Compositing/CoherencePass/ParamCanvasCoherenceEdgeSize';
|
||||||
import ParamCanvasCoherenceMinDenoise from 'features/parameters/components/Canvas/Compositing/CoherencePass/ParamCanvasCoherenceMinDenoise';
|
import ParamCanvasCoherenceMinDenoise from 'features/parameters/components/Canvas/Compositing/CoherencePass/ParamCanvasCoherenceMinDenoise';
|
||||||
import ParamCanvasCoherenceMode from 'features/parameters/components/Canvas/Compositing/CoherencePass/ParamCanvasCoherenceMode';
|
import ParamCanvasCoherenceMode from 'features/parameters/components/Canvas/Compositing/CoherencePass/ParamCanvasCoherenceMode';
|
||||||
|
import ParamMaskBlur from 'features/parameters/components/Canvas/Compositing/MaskAdjustment/ParamMaskBlur';
|
||||||
import ParamInfillMethod from 'features/parameters/components/Canvas/InfillAndScaling/ParamInfillMethod';
|
import ParamInfillMethod from 'features/parameters/components/Canvas/InfillAndScaling/ParamInfillMethod';
|
||||||
import ParamInfillOptions from 'features/parameters/components/Canvas/InfillAndScaling/ParamInfillOptions';
|
import ParamInfillOptions from 'features/parameters/components/Canvas/InfillAndScaling/ParamInfillOptions';
|
||||||
import { useStandaloneAccordionToggle } from 'features/settingsAccordions/hooks/useStandaloneAccordionToggle';
|
import { useStandaloneAccordionToggle } from 'features/settingsAccordions/hooks/useStandaloneAccordionToggle';
|
||||||
@ -43,8 +44,9 @@ export const CompositingSettingsAccordion = memo(() => {
|
|||||||
<ParamCanvasCoherenceMode />
|
<ParamCanvasCoherenceMode />
|
||||||
<ParamCanvasCoherenceEdgeSize />
|
<ParamCanvasCoherenceEdgeSize />
|
||||||
<ParamCanvasCoherenceMinDenoise />
|
<ParamCanvasCoherenceMinDenoise />
|
||||||
|
<ParamMaskBlur />
|
||||||
{/* <ParamMaskBlurMethod />
|
{/* <ParamMaskBlurMethod />
|
||||||
<ParamMaskBlur /> */}
|
*/}
|
||||||
</FormControlGroup>
|
</FormControlGroup>
|
||||||
</Flex>
|
</Flex>
|
||||||
</TabPanel>
|
</TabPanel>
|
||||||
|
@ -88,9 +88,9 @@ export const initialConfigState: AppConfig = {
|
|||||||
},
|
},
|
||||||
canvasCoherenceEdgeSize: {
|
canvasCoherenceEdgeSize: {
|
||||||
initial: 16,
|
initial: 16,
|
||||||
sliderMin: 16,
|
sliderMin: 0,
|
||||||
sliderMax: 512,
|
sliderMax: 128,
|
||||||
numberInputMin: 16,
|
numberInputMin: 0,
|
||||||
numberInputMax: 1024,
|
numberInputMax: 1024,
|
||||||
fineStep: 8,
|
fineStep: 8,
|
||||||
coarseStep: 16,
|
coarseStep: 16,
|
||||||
@ -134,7 +134,7 @@ export const initialConfigState: AppConfig = {
|
|||||||
maskBlur: {
|
maskBlur: {
|
||||||
initial: 16,
|
initial: 16,
|
||||||
sliderMin: 0,
|
sliderMin: 0,
|
||||||
sliderMax: 64,
|
sliderMax: 128,
|
||||||
numberInputMin: 0,
|
numberInputMin: 0,
|
||||||
numberInputMax: 512,
|
numberInputMax: 512,
|
||||||
fineStep: 1,
|
fineStep: 1,
|
||||||
|
Loading…
Reference in New Issue
Block a user