mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
added optional popovers for users to learn more about each setting
This commit is contained in:
parent
7b2e6deaf1
commit
fcea65770f
@ -653,6 +653,132 @@
|
|||||||
"infillAndScaling": "Manage infill methods (used on masked or erased areas of the canvas) and scaling (useful for small bounding box sizes)."
|
"infillAndScaling": "Manage infill methods (used on masked or erased areas of the canvas) and scaling (useful for small bounding box sizes)."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"popovers": {
|
||||||
|
"clipSkip": {
|
||||||
|
"heading": "CLIP Skip",
|
||||||
|
"paragraph": "Choose how many layers of the CLIP model to skip. Certain models are better suited to be used with CLIP Skip."
|
||||||
|
},
|
||||||
|
"compositingBlur": {
|
||||||
|
"heading": "Blur",
|
||||||
|
"paragraph": "The blur radius of the mask."
|
||||||
|
},
|
||||||
|
"compositingBlurMethod": {
|
||||||
|
"heading": "Blur Method",
|
||||||
|
"paragraph": "The method of blur applied to the masked area."
|
||||||
|
},
|
||||||
|
"compositingCoherencePass": {
|
||||||
|
"heading": "Coherence Pass",
|
||||||
|
"paragraph": "Composite the Inpainted/Outpainted images."
|
||||||
|
},
|
||||||
|
"compositingMode": {
|
||||||
|
"heading": "Mode",
|
||||||
|
"paragraph": "The mode of the Coherence Pass."
|
||||||
|
},
|
||||||
|
"compositingSteps": {
|
||||||
|
"heading": "Steps",
|
||||||
|
"paragraph": "Number of steps in the Coherence Pass. Similar to Denoising Steps."
|
||||||
|
},
|
||||||
|
"compositingStrength": {
|
||||||
|
"heading": "Strength",
|
||||||
|
"paragraph": "Amount of noise added for the Coherence Pass. Similar to Denoising Strength."
|
||||||
|
},
|
||||||
|
"compositingMaskAdjustments": {
|
||||||
|
"heading": "Mask Adjustments",
|
||||||
|
"paragraph": "Adjust the mask."
|
||||||
|
},
|
||||||
|
"controlNetBeginEnd": {
|
||||||
|
"heading": "Begin / End Step Percentage",
|
||||||
|
"paragraph": "Which parts of the denoising process will have the ControlNet applied. ControlNets applied at the start of the process guide composition, and ControlNets applied at the end guide details."
|
||||||
|
},
|
||||||
|
"controlNetControlMode": {
|
||||||
|
"heading": "Control Mode",
|
||||||
|
"paragraph": "Lends more weight to either the prompt or ControlNet."
|
||||||
|
},
|
||||||
|
"controlNetResizeMode": {
|
||||||
|
"heading": "Resize Mode",
|
||||||
|
"paragraph": "How the ControlNet image will be fit to the image generation Ratio"
|
||||||
|
},
|
||||||
|
"controlNetToggle": {
|
||||||
|
"heading": "Enable ControlNet",
|
||||||
|
"paragraph": "ControlNets provide guidance to the generation process, helping create images with controlled composition, structure, or style, depending on the model selected."
|
||||||
|
},
|
||||||
|
"controlNetWeight": {
|
||||||
|
"heading": "Weight",
|
||||||
|
"paragraph": "How strongly the ControlNet will impact the generated image."
|
||||||
|
},
|
||||||
|
"dynamicPromptsToggle": {
|
||||||
|
"heading": "Enable Dynamic Prompts",
|
||||||
|
"paragraph": "Dynamic prompts allow multiple options within a prompt. Dynamic prompts can be used by: {option1|option2|option3}. Combinations of prompts will be randomly generated until the “Images” number has been reached."
|
||||||
|
},
|
||||||
|
"dynamicPromptsCombinatorial": {
|
||||||
|
"heading": "Combinatorial Generation",
|
||||||
|
"paragraph": "Generate an image for every possible combination of Dynamic Prompt until the Max Prompts is reached."
|
||||||
|
},
|
||||||
|
"infillMethod": {
|
||||||
|
"heading": "Infill Method",
|
||||||
|
"paragraph": "Method to infill the selected area."
|
||||||
|
},
|
||||||
|
"lora": {
|
||||||
|
"heading": "LoRA",
|
||||||
|
"paragraph": "Weight of the LoRA. Higher weight will lead to larger impacts on the final image."
|
||||||
|
},
|
||||||
|
"noiseEnable": {
|
||||||
|
"heading": "Enable Noise Settings",
|
||||||
|
"paragraph": "Advanced control over noise generation."
|
||||||
|
},
|
||||||
|
"noiseUseCPU": {
|
||||||
|
"heading": "Use CPU Noise",
|
||||||
|
"paragraph": "Uses the CPU to generate random noise."
|
||||||
|
},
|
||||||
|
"paramsCFGScale": {
|
||||||
|
"heading": "CFG Scale",
|
||||||
|
"paragraph": "Controls how much your prompt influences the generation process."
|
||||||
|
},
|
||||||
|
"paramDenoisingStrength": {
|
||||||
|
"heading": "Denoising Strength",
|
||||||
|
"paragraph": "How much noise is added to the input image. 0 will result in an identical image, while 1 will result in a completely new image."
|
||||||
|
},
|
||||||
|
"paramImages": {
|
||||||
|
"heading": "Images",
|
||||||
|
"paragraph": "Number of images that will be generated."
|
||||||
|
},
|
||||||
|
"paramModel": {
|
||||||
|
"heading": "Model",
|
||||||
|
"paragraph": "Model used for the denoising steps. Different models are trained to specialize in producing different aesthetic results and content."
|
||||||
|
},
|
||||||
|
"paramPositiveConditioning": {
|
||||||
|
"heading": "Positive Prompts",
|
||||||
|
"paragraph": "This is where you enter your positive prompts."
|
||||||
|
},
|
||||||
|
"paramScheduler": {
|
||||||
|
"heading": "Scheduler",
|
||||||
|
"paragraph": "Scheduler defines how to iteratively add noise to an image or how to update a sample based on a model's output."
|
||||||
|
},
|
||||||
|
"paramSeed": {
|
||||||
|
"heading": "Seed",
|
||||||
|
"paragraph": "Controls the starting noise used for generation. Disable “Random Seed” to produce identical results with the same generation settings."
|
||||||
|
},
|
||||||
|
"paramNegativeConditioning": {
|
||||||
|
"heading": "Negative Prompts",
|
||||||
|
"paragraph": "This is where you enter your negative prompts."
|
||||||
|
},
|
||||||
|
"paramSteps": {
|
||||||
|
"heading": "Steps",
|
||||||
|
"paragraph": "Number of steps that will be performed in each generation. Higher step counts will typically create better images but will require more generation time."
|
||||||
|
},
|
||||||
|
"paramVAE": {
|
||||||
|
"heading": "VAE",
|
||||||
|
"paragraph": "Model used for translating AI output into the final image."
|
||||||
|
},
|
||||||
|
"paramVAEPrecision": {
|
||||||
|
"heading": "VAE Precision",
|
||||||
|
"paragraph": "The precision used during VAE encoding and decoding. Fp16/Half precision is more efficient, at the expense of minor image variations."
|
||||||
|
},
|
||||||
|
"scaleBeforeProcessing": {
|
||||||
|
"heading": "Scale Before Processing",
|
||||||
|
"paragraph": "Scales the selected area to the size best suited for the model before the image generation process."
|
||||||
|
}
|
||||||
|
},
|
||||||
"unifiedCanvas": {
|
"unifiedCanvas": {
|
||||||
"layer": "Layer",
|
"layer": "Layer",
|
||||||
"base": "Base",
|
"base": "Base",
|
||||||
|
@ -17,12 +17,13 @@ import { useAppSelector } from '../../app/store/storeHooks';
|
|||||||
import { systemSelector } from '../../features/system/store/systemSelectors';
|
import { systemSelector } from '../../features/system/store/systemSelectors';
|
||||||
|
|
||||||
interface Props extends PopoverProps {
|
interface Props extends PopoverProps {
|
||||||
heading: string;
|
heading?: string;
|
||||||
paragraph: string;
|
paragraph: string;
|
||||||
triggerComponent: ReactNode;
|
triggerComponent: ReactNode;
|
||||||
image?: string;
|
image?: string;
|
||||||
buttonLabel?: string;
|
buttonLabel?: string;
|
||||||
buttonHref?: string;
|
buttonHref?: string;
|
||||||
|
placement?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
function IAIInformationalPopover({
|
function IAIInformationalPopover({
|
||||||
@ -32,6 +33,7 @@ function IAIInformationalPopover({
|
|||||||
buttonLabel,
|
buttonLabel,
|
||||||
buttonHref,
|
buttonHref,
|
||||||
triggerComponent,
|
triggerComponent,
|
||||||
|
placement,
|
||||||
}: Props) {
|
}: Props) {
|
||||||
const { shouldDisableInformationalPopovers } = useAppSelector(systemSelector);
|
const { shouldDisableInformationalPopovers } = useAppSelector(systemSelector);
|
||||||
|
|
||||||
@ -40,7 +42,7 @@ function IAIInformationalPopover({
|
|||||||
} else {
|
} else {
|
||||||
return (
|
return (
|
||||||
<Popover
|
<Popover
|
||||||
placement="top"
|
placement={placement || 'top'}
|
||||||
closeOnBlur={false}
|
closeOnBlur={false}
|
||||||
trigger="hover"
|
trigger="hover"
|
||||||
variant="informational"
|
variant="informational"
|
||||||
@ -58,14 +60,15 @@ function IAIInformationalPopover({
|
|||||||
gap: 3,
|
gap: 3,
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
width: '100%',
|
width: '100%',
|
||||||
|
alignItems: 'center',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{image && (
|
{image && (
|
||||||
<Image
|
<Image
|
||||||
sx={{
|
sx={{
|
||||||
objectFit: 'contain',
|
objectFit: 'contain',
|
||||||
maxW: '100%',
|
maxW: '60%',
|
||||||
maxH: 'full',
|
maxH: '60%',
|
||||||
backgroundColor: 'white',
|
backgroundColor: 'white',
|
||||||
}}
|
}}
|
||||||
src={image}
|
src={image}
|
||||||
@ -78,13 +81,13 @@ function IAIInformationalPopover({
|
|||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
|
|
||||||
p: 3,
|
p: 3,
|
||||||
pt: 0,
|
pt: heading ? 0 : 3,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<PopoverHeader>{heading}</PopoverHeader>
|
{heading && <PopoverHeader>{heading}</PopoverHeader>}
|
||||||
<Text sx={{ pl: 3, pr: 3 }}>{paragraph}</Text>
|
<Text sx={{ px: 3 }}>{paragraph}</Text>
|
||||||
{buttonLabel && (
|
{buttonLabel && (
|
||||||
<Flex sx={{ pl: 3, pr: 3 }} justifyContent="flex-end">
|
<Flex sx={{ px: 3 }} justifyContent="flex-end">
|
||||||
<Button
|
<Button
|
||||||
onClick={() => window.open(buttonHref)}
|
onClick={() => window.open(buttonHref)}
|
||||||
size="sm"
|
size="sm"
|
||||||
|
@ -15,6 +15,7 @@ import {
|
|||||||
controlNetBeginStepPctChanged,
|
controlNetBeginStepPctChanged,
|
||||||
controlNetEndStepPctChanged,
|
controlNetEndStepPctChanged,
|
||||||
} from 'features/controlNet/store/controlNetSlice';
|
} from 'features/controlNet/store/controlNetSlice';
|
||||||
|
import { ControlNetBeginEndPopover } from 'features/informationalPopovers/components/controlNetBeginEnd';
|
||||||
import { memo, useCallback } from 'react';
|
import { memo, useCallback } from 'react';
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
@ -47,6 +48,7 @@ const ParamControlNetBeginEnd = (props: Props) => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<ControlNetBeginEndPopover>
|
||||||
<FormControl isDisabled={!isEnabled}>
|
<FormControl isDisabled={!isEnabled}>
|
||||||
<FormLabel>Begin / End Step Percentage</FormLabel>
|
<FormLabel>Begin / End Step Percentage</FormLabel>
|
||||||
<HStack w="100%" gap={2} alignItems="center">
|
<HStack w="100%" gap={2} alignItems="center">
|
||||||
@ -99,6 +101,7 @@ const ParamControlNetBeginEnd = (props: Props) => {
|
|||||||
</RangeSlider>
|
</RangeSlider>
|
||||||
</HStack>
|
</HStack>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
|
</ControlNetBeginEndPopover>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -5,6 +5,7 @@ import {
|
|||||||
ControlNetConfig,
|
ControlNetConfig,
|
||||||
controlNetControlModeChanged,
|
controlNetControlModeChanged,
|
||||||
} from 'features/controlNet/store/controlNetSlice';
|
} from 'features/controlNet/store/controlNetSlice';
|
||||||
|
import { ControlNetControlModePopover } from 'features/informationalPopovers/components/controlNetControlMode';
|
||||||
import { useCallback } from 'react';
|
import { useCallback } from 'react';
|
||||||
|
|
||||||
type ParamControlNetControlModeProps = {
|
type ParamControlNetControlModeProps = {
|
||||||
@ -32,6 +33,7 @@ export default function ParamControlNetControlMode(
|
|||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<ControlNetControlModePopover>
|
||||||
<IAIMantineSelect
|
<IAIMantineSelect
|
||||||
disabled={!isEnabled}
|
disabled={!isEnabled}
|
||||||
label="Control Mode"
|
label="Control Mode"
|
||||||
@ -39,5 +41,6 @@ export default function ParamControlNetControlMode(
|
|||||||
value={String(controlMode)}
|
value={String(controlMode)}
|
||||||
onChange={handleControlModeChange}
|
onChange={handleControlModeChange}
|
||||||
/>
|
/>
|
||||||
|
</ControlNetControlModePopover>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,7 @@ import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
|||||||
import { defaultSelectorOptions } from 'app/store/util/defaultMemoizeOptions';
|
import { defaultSelectorOptions } from 'app/store/util/defaultMemoizeOptions';
|
||||||
import IAISwitch from 'common/components/IAISwitch';
|
import IAISwitch from 'common/components/IAISwitch';
|
||||||
import { isControlNetEnabledToggled } from 'features/controlNet/store/controlNetSlice';
|
import { isControlNetEnabledToggled } from 'features/controlNet/store/controlNetSlice';
|
||||||
|
import { ControlNetTogglePopover } from 'features/informationalPopovers/components/controlnetToggle';
|
||||||
import { memo, useCallback } from 'react';
|
import { memo, useCallback } from 'react';
|
||||||
|
|
||||||
const selector = createSelector(
|
const selector = createSelector(
|
||||||
@ -25,6 +26,7 @@ const ParamControlNetFeatureToggle = () => {
|
|||||||
}, [dispatch]);
|
}, [dispatch]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<ControlNetTogglePopover>
|
||||||
<IAISwitch
|
<IAISwitch
|
||||||
label="Enable ControlNet"
|
label="Enable ControlNet"
|
||||||
isChecked={isEnabled}
|
isChecked={isEnabled}
|
||||||
@ -33,6 +35,7 @@ const ParamControlNetFeatureToggle = () => {
|
|||||||
width: '100%',
|
width: '100%',
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
</ControlNetTogglePopover>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -5,6 +5,7 @@ import {
|
|||||||
ResizeModes,
|
ResizeModes,
|
||||||
controlNetResizeModeChanged,
|
controlNetResizeModeChanged,
|
||||||
} from 'features/controlNet/store/controlNetSlice';
|
} from 'features/controlNet/store/controlNetSlice';
|
||||||
|
import { ControlNetResizeModePopover } from 'features/informationalPopovers/components/controlNetResizeMode';
|
||||||
import { useCallback } from 'react';
|
import { useCallback } from 'react';
|
||||||
|
|
||||||
type ParamControlNetResizeModeProps = {
|
type ParamControlNetResizeModeProps = {
|
||||||
@ -31,6 +32,7 @@ export default function ParamControlNetResizeMode(
|
|||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<ControlNetResizeModePopover>
|
||||||
<IAIMantineSelect
|
<IAIMantineSelect
|
||||||
disabled={!isEnabled}
|
disabled={!isEnabled}
|
||||||
label="Resize Mode"
|
label="Resize Mode"
|
||||||
@ -38,5 +40,6 @@ export default function ParamControlNetResizeMode(
|
|||||||
value={String(resizeMode)}
|
value={String(resizeMode)}
|
||||||
onChange={handleResizeModeChange}
|
onChange={handleResizeModeChange}
|
||||||
/>
|
/>
|
||||||
|
</ControlNetResizeModePopover>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,7 @@ import {
|
|||||||
ControlNetConfig,
|
ControlNetConfig,
|
||||||
controlNetWeightChanged,
|
controlNetWeightChanged,
|
||||||
} from 'features/controlNet/store/controlNetSlice';
|
} from 'features/controlNet/store/controlNetSlice';
|
||||||
|
import { ControlNetWeightPopover } from 'features/informationalPopovers/components/controlNetWeight';
|
||||||
import { memo, useCallback } from 'react';
|
import { memo, useCallback } from 'react';
|
||||||
|
|
||||||
type ParamControlNetWeightProps = {
|
type ParamControlNetWeightProps = {
|
||||||
@ -21,6 +22,7 @@ const ParamControlNetWeight = (props: ParamControlNetWeightProps) => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<ControlNetWeightPopover>
|
||||||
<IAISlider
|
<IAISlider
|
||||||
isDisabled={!isEnabled}
|
isDisabled={!isEnabled}
|
||||||
label="Weight"
|
label="Weight"
|
||||||
@ -32,6 +34,7 @@ const ParamControlNetWeight = (props: ParamControlNetWeightProps) => {
|
|||||||
withSliderMarks
|
withSliderMarks
|
||||||
sliderMarks={[0, 1, 2]}
|
sliderMarks={[0, 1, 2]}
|
||||||
/>
|
/>
|
||||||
|
</ControlNetWeightPopover>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -5,6 +5,7 @@ import { defaultSelectorOptions } from 'app/store/util/defaultMemoizeOptions';
|
|||||||
import IAISwitch from 'common/components/IAISwitch';
|
import IAISwitch from 'common/components/IAISwitch';
|
||||||
import { memo, useCallback } from 'react';
|
import { memo, useCallback } from 'react';
|
||||||
import { combinatorialToggled } from '../store/dynamicPromptsSlice';
|
import { combinatorialToggled } from '../store/dynamicPromptsSlice';
|
||||||
|
import { DynamicPromptsCombinatorialPopover } from 'features/informationalPopovers/components/dynamicPromptsCombinatorial';
|
||||||
|
|
||||||
const selector = createSelector(
|
const selector = createSelector(
|
||||||
stateSelector,
|
stateSelector,
|
||||||
@ -25,12 +26,14 @@ const ParamDynamicPromptsCombinatorial = () => {
|
|||||||
}, [dispatch]);
|
}, [dispatch]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<DynamicPromptsCombinatorialPopover>
|
||||||
<IAISwitch
|
<IAISwitch
|
||||||
isDisabled={isDisabled}
|
isDisabled={isDisabled}
|
||||||
label="Combinatorial Generation"
|
label="Combinatorial Generation"
|
||||||
isChecked={combinatorial}
|
isChecked={combinatorial}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
/>
|
/>
|
||||||
|
</DynamicPromptsCombinatorialPopover>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -5,6 +5,7 @@ import { defaultSelectorOptions } from 'app/store/util/defaultMemoizeOptions';
|
|||||||
import IAISwitch from 'common/components/IAISwitch';
|
import IAISwitch from 'common/components/IAISwitch';
|
||||||
import { memo, useCallback } from 'react';
|
import { memo, useCallback } from 'react';
|
||||||
import { isEnabledToggled } from '../store/dynamicPromptsSlice';
|
import { isEnabledToggled } from '../store/dynamicPromptsSlice';
|
||||||
|
import { DynamicPromptsTogglePopover } from 'features/informationalPopovers/components/dynamicPromptsToggle';
|
||||||
|
|
||||||
const selector = createSelector(
|
const selector = createSelector(
|
||||||
stateSelector,
|
stateSelector,
|
||||||
@ -25,11 +26,13 @@ const ParamDynamicPromptsToggle = () => {
|
|||||||
}, [dispatch]);
|
}, [dispatch]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<DynamicPromptsTogglePopover>
|
||||||
<IAISwitch
|
<IAISwitch
|
||||||
label="Enable Dynamic Prompts"
|
label="Enable Dynamic Prompts"
|
||||||
isChecked={isEnabled}
|
isChecked={isEnabled}
|
||||||
onChange={handleToggleIsEnabled}
|
onChange={handleToggleIsEnabled}
|
||||||
/>
|
/>
|
||||||
|
</DynamicPromptsTogglePopover>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -0,0 +1,15 @@
|
|||||||
|
import { PropsWithChildren } from 'react';
|
||||||
|
import IAIInformationalPopover from '../../../common/components/IAIInformationalPopover';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
export const ClipSkipPopover = (props: PropsWithChildren) => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<IAIInformationalPopover
|
||||||
|
paragraph={t('popovers.clipSkip.paragraph')}
|
||||||
|
heading={t('popovers.clipSkip.heading')}
|
||||||
|
triggerComponent={props.children}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
@ -0,0 +1,15 @@
|
|||||||
|
import { PropsWithChildren } from 'react';
|
||||||
|
import IAIInformationalPopover from '../../../common/components/IAIInformationalPopover';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
export const CompositingBlurPopover = (props: PropsWithChildren) => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<IAIInformationalPopover
|
||||||
|
paragraph={t('popovers.compositingBlur.paragraph')}
|
||||||
|
heading={t('popovers.compositingBlur.heading')}
|
||||||
|
triggerComponent={props.children}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
@ -0,0 +1,15 @@
|
|||||||
|
import { PropsWithChildren } from 'react';
|
||||||
|
import IAIInformationalPopover from '../../../common/components/IAIInformationalPopover';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
export const CompositingBlurMethodPopover = (props: PropsWithChildren) => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<IAIInformationalPopover
|
||||||
|
paragraph={t('popovers.compositingBlurMethod.paragraph')}
|
||||||
|
heading={t('popovers.compositingBlurMethod.heading')}
|
||||||
|
triggerComponent={props.children}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
@ -0,0 +1,15 @@
|
|||||||
|
import { PropsWithChildren } from 'react';
|
||||||
|
import IAIInformationalPopover from '../../../common/components/IAIInformationalPopover';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
export const CompositingCoherencePassPopover = (props: PropsWithChildren) => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<IAIInformationalPopover
|
||||||
|
paragraph={t('popovers.compositingCoherencePass.paragraph')}
|
||||||
|
heading={t('popovers.compositingCoherencePass.heading')}
|
||||||
|
triggerComponent={props.children}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
@ -0,0 +1,15 @@
|
|||||||
|
import { PropsWithChildren } from 'react';
|
||||||
|
import IAIInformationalPopover from '../../../common/components/IAIInformationalPopover';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
export const CompositingModePopover = (props: PropsWithChildren) => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<IAIInformationalPopover
|
||||||
|
paragraph={t('popovers.compositingMode.paragraph')}
|
||||||
|
heading={t('popovers.compositingMode.heading')}
|
||||||
|
triggerComponent={props.children}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
@ -0,0 +1,15 @@
|
|||||||
|
import { PropsWithChildren } from 'react';
|
||||||
|
import IAIInformationalPopover from '../../../common/components/IAIInformationalPopover';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
export const CompositingStepsPopover = (props: PropsWithChildren) => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<IAIInformationalPopover
|
||||||
|
paragraph={t('popovers.compositingSteps.paragraph')}
|
||||||
|
heading={t('popovers.compositingSteps.heading')}
|
||||||
|
triggerComponent={props.children}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
@ -0,0 +1,15 @@
|
|||||||
|
import { PropsWithChildren } from 'react';
|
||||||
|
import IAIInformationalPopover from '../../../common/components/IAIInformationalPopover';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
export const CompositingStrengthPopover = (props: PropsWithChildren) => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<IAIInformationalPopover
|
||||||
|
paragraph={t('popovers.compositingStrength.paragraph')}
|
||||||
|
heading={t('popovers.compositingStrength.heading')}
|
||||||
|
triggerComponent={props.children}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
@ -0,0 +1,15 @@
|
|||||||
|
import { PropsWithChildren } from 'react';
|
||||||
|
import IAIInformationalPopover from '../../../common/components/IAIInformationalPopover';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
export const CompositingMaskAdjustmentsPopover = (props: PropsWithChildren) => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<IAIInformationalPopover
|
||||||
|
paragraph={t('popovers.compositingMaskAdjustments.paragraph')}
|
||||||
|
heading={t('popovers.compositingMaskAdjustments.heading')}
|
||||||
|
triggerComponent={props.children}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
@ -0,0 +1,15 @@
|
|||||||
|
import { PropsWithChildren } from 'react';
|
||||||
|
import IAIInformationalPopover from '../../../common/components/IAIInformationalPopover';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
export const ControlNetBeginEndPopover = (props: PropsWithChildren) => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<IAIInformationalPopover
|
||||||
|
paragraph={t('popovers.controlNetBeginEnd.paragraph')}
|
||||||
|
heading={t('popovers.controlNetBeginEnd.heading')}
|
||||||
|
triggerComponent={props.children}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
@ -0,0 +1,15 @@
|
|||||||
|
import { PropsWithChildren } from 'react';
|
||||||
|
import IAIInformationalPopover from '../../../common/components/IAIInformationalPopover';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
export const ControlNetControlModePopover = (props: PropsWithChildren) => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<IAIInformationalPopover
|
||||||
|
paragraph={t('popovers.controlNetControlMode.paragraph')}
|
||||||
|
heading={t('popovers.controlNetControlMode.heading')}
|
||||||
|
triggerComponent={props.children}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
@ -0,0 +1,15 @@
|
|||||||
|
import { PropsWithChildren } from 'react';
|
||||||
|
import IAIInformationalPopover from '../../../common/components/IAIInformationalPopover';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
export const ControlNetResizeModePopover = (props: PropsWithChildren) => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<IAIInformationalPopover
|
||||||
|
paragraph={t('popovers.controlNetResizeMode.paragraph')}
|
||||||
|
heading={t('popovers.controlNetResizeMode.heading')}
|
||||||
|
triggerComponent={props.children}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
@ -0,0 +1,15 @@
|
|||||||
|
import { PropsWithChildren } from 'react';
|
||||||
|
import IAIInformationalPopover from '../../../common/components/IAIInformationalPopover';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
export const ControlNetTogglePopover = (props: PropsWithChildren) => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<IAIInformationalPopover
|
||||||
|
paragraph={t('popovers.controlNetToggle.paragraph')}
|
||||||
|
heading={t('popovers.controlNetToggle.heading')}
|
||||||
|
triggerComponent={props.children}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
@ -0,0 +1,15 @@
|
|||||||
|
import { PropsWithChildren } from 'react';
|
||||||
|
import IAIInformationalPopover from '../../../common/components/IAIInformationalPopover';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
export const ControlNetWeightPopover = (props: PropsWithChildren) => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<IAIInformationalPopover
|
||||||
|
paragraph={t('popovers.controlNetWeight.paragraph')}
|
||||||
|
heading={t('popovers.controlNetWeight.heading')}
|
||||||
|
triggerComponent={props.children}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
@ -0,0 +1,17 @@
|
|||||||
|
import { PropsWithChildren } from 'react';
|
||||||
|
import IAIInformationalPopover from '../../../common/components/IAIInformationalPopover';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
export const DynamicPromptsCombinatorialPopover = (
|
||||||
|
props: PropsWithChildren
|
||||||
|
) => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<IAIInformationalPopover
|
||||||
|
paragraph={t('popovers.dynamicPromptsCombinatorial.paragraph')}
|
||||||
|
heading={t('popovers.dynamicPromptsCombinatorial.heading')}
|
||||||
|
triggerComponent={props.children}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
@ -0,0 +1,15 @@
|
|||||||
|
import { PropsWithChildren } from 'react';
|
||||||
|
import IAIInformationalPopover from '../../../common/components/IAIInformationalPopover';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
export const DynamicPromptsTogglePopover = (props: PropsWithChildren) => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<IAIInformationalPopover
|
||||||
|
paragraph={t('popovers.dynamicPromptsToggle.paragraph')}
|
||||||
|
heading={t('popovers.dynamicPromptsToggle.heading')}
|
||||||
|
triggerComponent={props.children}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
@ -0,0 +1,15 @@
|
|||||||
|
import { PropsWithChildren } from 'react';
|
||||||
|
import IAIInformationalPopover from '../../../common/components/IAIInformationalPopover';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
export const InfillMethodPopover = (props: PropsWithChildren) => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<IAIInformationalPopover
|
||||||
|
paragraph={t('popovers.infillMethod.paragraph')}
|
||||||
|
heading={t('popovers.infillMethod.heading')}
|
||||||
|
triggerComponent={props.children}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
@ -0,0 +1,15 @@
|
|||||||
|
import { PropsWithChildren } from 'react';
|
||||||
|
import IAIInformationalPopover from '../../../common/components/IAIInformationalPopover';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
export const LoraPopover = (props: PropsWithChildren) => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<IAIInformationalPopover
|
||||||
|
paragraph={t('popovers.lora.paragraph')}
|
||||||
|
heading={t('popovers.lora.heading')}
|
||||||
|
triggerComponent={props.children}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
@ -0,0 +1,15 @@
|
|||||||
|
import { PropsWithChildren } from 'react';
|
||||||
|
import IAIInformationalPopover from '../../../common/components/IAIInformationalPopover';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
export const NoiseEnablePopover = (props: PropsWithChildren) => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<IAIInformationalPopover
|
||||||
|
paragraph={t('popovers.noiseEnable.paragraph')}
|
||||||
|
heading={t('popovers.noiseEnable.heading')}
|
||||||
|
triggerComponent={props.children}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
@ -0,0 +1,15 @@
|
|||||||
|
import { PropsWithChildren } from 'react';
|
||||||
|
import IAIInformationalPopover from '../../../common/components/IAIInformationalPopover';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
export const NoiseUseCPUPopover = (props: PropsWithChildren) => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<IAIInformationalPopover
|
||||||
|
paragraph={t('popovers.noiseUseCPU.paragraph')}
|
||||||
|
heading={t('popovers.noiseUseCPU.heading')}
|
||||||
|
triggerComponent={props.children}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
@ -0,0 +1,15 @@
|
|||||||
|
import { PropsWithChildren } from 'react';
|
||||||
|
import IAIInformationalPopover from '../../../common/components/IAIInformationalPopover';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
export const ParamCFGScalePopover = (props: PropsWithChildren) => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<IAIInformationalPopover
|
||||||
|
paragraph={t('popovers.paramsCFGScale.paragraph')}
|
||||||
|
heading={t('popovers.paramsCFGScale.heading')}
|
||||||
|
triggerComponent={props.children}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
@ -0,0 +1,15 @@
|
|||||||
|
import { PropsWithChildren } from 'react';
|
||||||
|
import IAIInformationalPopover from '../../../common/components/IAIInformationalPopover';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
export const ParamDenoisingStrengthPopover = (props: PropsWithChildren) => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<IAIInformationalPopover
|
||||||
|
paragraph={t('popovers.paramsDenoisingStrength.paragraph')}
|
||||||
|
heading={t('popovers.paramsDenoisingStrength.heading')}
|
||||||
|
triggerComponent={props.children}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
@ -0,0 +1,15 @@
|
|||||||
|
import { PropsWithChildren } from 'react';
|
||||||
|
import IAIInformationalPopover from '../../../common/components/IAIInformationalPopover';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
export const ParamImagesPopover = (props: PropsWithChildren) => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<IAIInformationalPopover
|
||||||
|
paragraph={t('popovers.paramImages.paragraph')}
|
||||||
|
heading={t('popovers.paramImages.heading')}
|
||||||
|
triggerComponent={props.children}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
@ -0,0 +1,15 @@
|
|||||||
|
import { PropsWithChildren } from 'react';
|
||||||
|
import IAIInformationalPopover from '../../../common/components/IAIInformationalPopover';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
export const ParamModelPopover = (props: PropsWithChildren) => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<IAIInformationalPopover
|
||||||
|
paragraph={t('popovers.paramModel.paragraph')}
|
||||||
|
heading={t('popovers.paramModel.heading')}
|
||||||
|
triggerComponent={props.children}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
@ -1,12 +1,15 @@
|
|||||||
import { PropsWithChildren } from 'react';
|
import { PropsWithChildren } from 'react';
|
||||||
import IAIInformationalPopover from '../../../common/components/IAIInformationalPopover';
|
import IAIInformationalPopover from '../../../common/components/IAIInformationalPopover';
|
||||||
import InvokeAILogoImage from 'assets/images/logo.png';
|
import InvokeAILogoImage from 'assets/images/logo.png';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
export const ParamPositiveConditioningPopover = (props: PropsWithChildren) => {
|
export const ParamPositiveConditioningPopover = (props: PropsWithChildren) => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<IAIInformationalPopover
|
<IAIInformationalPopover
|
||||||
heading="Prompt Box"
|
paragraph={t('popovers.paramPositiveConditioning.paragraph')}
|
||||||
paragraph="This is where you enter your prompt"
|
heading={t('popovers.paramPositiveConditioning.heading')}
|
||||||
buttonLabel="Learn more"
|
buttonLabel="Learn more"
|
||||||
buttonHref="http://google.com"
|
buttonHref="http://google.com"
|
||||||
image={InvokeAILogoImage}
|
image={InvokeAILogoImage}
|
||||||
|
@ -0,0 +1,15 @@
|
|||||||
|
import { PropsWithChildren } from 'react';
|
||||||
|
import IAIInformationalPopover from '../../../common/components/IAIInformationalPopover';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
export const ParamSchedulerPopover = (props: PropsWithChildren) => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<IAIInformationalPopover
|
||||||
|
paragraph={t('popovers.paramScheduler.paragraph')}
|
||||||
|
heading={t('popovers.paramScheduler.heading')}
|
||||||
|
triggerComponent={props.children}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
@ -0,0 +1,15 @@
|
|||||||
|
import { PropsWithChildren } from 'react';
|
||||||
|
import IAIInformationalPopover from '../../../common/components/IAIInformationalPopover';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
export const ParamSeedPopover = (props: PropsWithChildren) => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<IAIInformationalPopover
|
||||||
|
paragraph={t('popovers.paramSeed.paragraph')}
|
||||||
|
heading={t('popovers.paramSeed.heading')}
|
||||||
|
triggerComponent={props.children}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
@ -0,0 +1,15 @@
|
|||||||
|
import { PropsWithChildren } from 'react';
|
||||||
|
import IAIInformationalPopover from '../../../common/components/IAIInformationalPopover';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
export const ParamStepsPopover = (props: PropsWithChildren) => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<IAIInformationalPopover
|
||||||
|
paragraph={t('popovers.paramSteps.paragraph')}
|
||||||
|
heading={t('popovers.paramSteps.heading')}
|
||||||
|
triggerComponent={props.children}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
@ -0,0 +1,15 @@
|
|||||||
|
import { PropsWithChildren } from 'react';
|
||||||
|
import IAIInformationalPopover from '../../../common/components/IAIInformationalPopover';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
export const ParamVAEPopover = (props: PropsWithChildren) => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<IAIInformationalPopover
|
||||||
|
paragraph={t('popovers.paramVAE.paragraph')}
|
||||||
|
heading={t('popovers.paramVAE.heading')}
|
||||||
|
triggerComponent={props.children}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
@ -0,0 +1,15 @@
|
|||||||
|
import { PropsWithChildren } from 'react';
|
||||||
|
import IAIInformationalPopover from '../../../common/components/IAIInformationalPopover';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
export const ParamVAEPrecisionPopover = (props: PropsWithChildren) => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<IAIInformationalPopover
|
||||||
|
paragraph={t('popovers.paramVAEPrecision.paragraph')}
|
||||||
|
heading={t('popovers.paramVAEPrecision.heading')}
|
||||||
|
triggerComponent={props.children}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
@ -0,0 +1,15 @@
|
|||||||
|
import { PropsWithChildren } from 'react';
|
||||||
|
import IAIInformationalPopover from '../../../common/components/IAIInformationalPopover';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
|
export const ScaleBeforeProcessingPopover = (props: PropsWithChildren) => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<IAIInformationalPopover
|
||||||
|
paragraph={t('popovers.scaleBeforeProcessing.paragraph')}
|
||||||
|
heading={t('popovers.scaleBeforeProcessing.heading')}
|
||||||
|
triggerComponent={props.children}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
@ -10,6 +10,7 @@ import {
|
|||||||
loraWeightChanged,
|
loraWeightChanged,
|
||||||
loraWeightReset,
|
loraWeightReset,
|
||||||
} from '../store/loraSlice';
|
} from '../store/loraSlice';
|
||||||
|
import { LoraPopover } from 'features/informationalPopovers/components/lora';
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
lora: LoRA;
|
lora: LoRA;
|
||||||
@ -35,6 +36,7 @@ const ParamLora = (props: Props) => {
|
|||||||
}, [dispatch, lora.id]);
|
}, [dispatch, lora.id]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<LoraPopover>
|
||||||
<Flex sx={{ gap: 2.5, alignItems: 'flex-end' }}>
|
<Flex sx={{ gap: 2.5, alignItems: 'flex-end' }}>
|
||||||
<IAISlider
|
<IAISlider
|
||||||
label={lora.model_name}
|
label={lora.model_name}
|
||||||
@ -59,6 +61,7 @@ const ParamLora = (props: Props) => {
|
|||||||
colorScheme="error"
|
colorScheme="error"
|
||||||
/>
|
/>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
</LoraPopover>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import { RootState } from 'app/store/store';
|
import { RootState } from 'app/store/store';
|
||||||
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
||||||
import IAISlider from 'common/components/IAISlider';
|
import IAISlider from 'common/components/IAISlider';
|
||||||
|
import { ClipSkipPopover } from 'features/informationalPopovers/components/clipSkip';
|
||||||
import { setClipSkip } from 'features/parameters/store/generationSlice';
|
import { setClipSkip } from 'features/parameters/store/generationSlice';
|
||||||
import { clipSkipMap } from 'features/parameters/types/constants';
|
import { clipSkipMap } from 'features/parameters/types/constants';
|
||||||
import { useCallback, useMemo } from 'react';
|
import { useCallback, useMemo } from 'react';
|
||||||
@ -42,6 +43,7 @@ export default function ParamClipSkip() {
|
|||||||
}, [model]);
|
}, [model]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<ClipSkipPopover>
|
||||||
<IAISlider
|
<IAISlider
|
||||||
label={t('parameters.clipSkip')}
|
label={t('parameters.clipSkip')}
|
||||||
aria-label={t('parameters.clipSkip')}
|
aria-label={t('parameters.clipSkip')}
|
||||||
@ -56,5 +58,6 @@ export default function ParamClipSkip() {
|
|||||||
withReset
|
withReset
|
||||||
handleReset={handleClipSkipReset}
|
handleReset={handleClipSkipReset}
|
||||||
/>
|
/>
|
||||||
|
</ClipSkipPopover>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,7 @@ import type { RootState } from 'app/store/store';
|
|||||||
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
||||||
import { IAISelectDataType } from 'common/components/IAIMantineSearchableSelect';
|
import { IAISelectDataType } from 'common/components/IAIMantineSearchableSelect';
|
||||||
import IAIMantineSelect from 'common/components/IAIMantineSelect';
|
import IAIMantineSelect from 'common/components/IAIMantineSelect';
|
||||||
|
import { CompositingModePopover } from 'features/informationalPopovers/components/compositingMode';
|
||||||
import { setCanvasCoherenceMode } from 'features/parameters/store/generationSlice';
|
import { setCanvasCoherenceMode } from 'features/parameters/store/generationSlice';
|
||||||
import { CanvasCoherenceModeParam } from 'features/parameters/types/parameterSchemas';
|
import { CanvasCoherenceModeParam } from 'features/parameters/types/parameterSchemas';
|
||||||
|
|
||||||
@ -30,12 +31,14 @@ const ParamCanvasCoherenceMode = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<CompositingModePopover>
|
||||||
<IAIMantineSelect
|
<IAIMantineSelect
|
||||||
label={t('parameters.coherenceMode')}
|
label={t('parameters.coherenceMode')}
|
||||||
data={coherenceModeSelectData}
|
data={coherenceModeSelectData}
|
||||||
value={canvasCoherenceMode}
|
value={canvasCoherenceMode}
|
||||||
onChange={handleCoherenceModeChange}
|
onChange={handleCoherenceModeChange}
|
||||||
/>
|
/>
|
||||||
|
</CompositingModePopover>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import type { RootState } from 'app/store/store';
|
import type { RootState } from 'app/store/store';
|
||||||
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
||||||
import IAISlider from 'common/components/IAISlider';
|
import IAISlider from 'common/components/IAISlider';
|
||||||
|
import { CompositingStepsPopover } from 'features/informationalPopovers/components/compositingSteps';
|
||||||
import { setCanvasCoherenceSteps } from 'features/parameters/store/generationSlice';
|
import { setCanvasCoherenceSteps } from 'features/parameters/store/generationSlice';
|
||||||
import { memo } from 'react';
|
import { memo } from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
@ -13,6 +14,7 @@ const ParamCanvasCoherenceSteps = () => {
|
|||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<CompositingStepsPopover>
|
||||||
<IAISlider
|
<IAISlider
|
||||||
label={t('parameters.coherenceSteps')}
|
label={t('parameters.coherenceSteps')}
|
||||||
min={1}
|
min={1}
|
||||||
@ -30,6 +32,7 @@ const ParamCanvasCoherenceSteps = () => {
|
|||||||
dispatch(setCanvasCoherenceSteps(20));
|
dispatch(setCanvasCoherenceSteps(20));
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
</CompositingStepsPopover>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import type { RootState } from 'app/store/store';
|
import type { RootState } from 'app/store/store';
|
||||||
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
||||||
import IAISlider from 'common/components/IAISlider';
|
import IAISlider from 'common/components/IAISlider';
|
||||||
|
import { CompositingStrengthPopover } from 'features/informationalPopovers/components/compositingStrength';
|
||||||
import { setCanvasCoherenceStrength } from 'features/parameters/store/generationSlice';
|
import { setCanvasCoherenceStrength } from 'features/parameters/store/generationSlice';
|
||||||
import { memo } from 'react';
|
import { memo } from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
@ -13,6 +14,7 @@ const ParamCanvasCoherenceStrength = () => {
|
|||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<CompositingStrengthPopover>
|
||||||
<IAISlider
|
<IAISlider
|
||||||
label={t('parameters.coherenceStrength')}
|
label={t('parameters.coherenceStrength')}
|
||||||
min={0}
|
min={0}
|
||||||
@ -30,6 +32,7 @@ const ParamCanvasCoherenceStrength = () => {
|
|||||||
dispatch(setCanvasCoherenceStrength(0.3));
|
dispatch(setCanvasCoherenceStrength(0.3));
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
</CompositingStrengthPopover>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import type { RootState } from 'app/store/store';
|
import type { RootState } from 'app/store/store';
|
||||||
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
||||||
import IAISlider from 'common/components/IAISlider';
|
import IAISlider from 'common/components/IAISlider';
|
||||||
|
import { CompositingBlurPopover } from 'features/informationalPopovers/components/compositingBlur';
|
||||||
import { setMaskBlur } from 'features/parameters/store/generationSlice';
|
import { setMaskBlur } from 'features/parameters/store/generationSlice';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
@ -12,6 +13,7 @@ export default function ParamMaskBlur() {
|
|||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<CompositingBlurPopover>
|
||||||
<IAISlider
|
<IAISlider
|
||||||
label={t('parameters.maskBlur')}
|
label={t('parameters.maskBlur')}
|
||||||
min={0}
|
min={0}
|
||||||
@ -28,5 +30,6 @@ export default function ParamMaskBlur() {
|
|||||||
dispatch(setMaskBlur(16));
|
dispatch(setMaskBlur(16));
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
</CompositingBlurPopover>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,7 @@ import { RootState } from 'app/store/store';
|
|||||||
|
|
||||||
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
||||||
import IAIMantineSelect from 'common/components/IAIMantineSelect';
|
import IAIMantineSelect from 'common/components/IAIMantineSelect';
|
||||||
|
import { CompositingBlurMethodPopover } from 'features/informationalPopovers/components/compositingBlurMethod';
|
||||||
import { setMaskBlurMethod } from 'features/parameters/store/generationSlice';
|
import { setMaskBlurMethod } from 'features/parameters/store/generationSlice';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
@ -28,11 +29,13 @@ export default function ParamMaskBlurMethod() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<CompositingBlurMethodPopover>
|
||||||
<IAIMantineSelect
|
<IAIMantineSelect
|
||||||
value={maskBlurMethod}
|
value={maskBlurMethod}
|
||||||
onChange={handleMaskBlurMethodChange}
|
onChange={handleMaskBlurMethodChange}
|
||||||
label={t('parameters.maskBlurMethod')}
|
label={t('parameters.maskBlurMethod')}
|
||||||
data={maskBlurMethods}
|
data={maskBlurMethods}
|
||||||
/>
|
/>
|
||||||
|
</CompositingBlurMethodPopover>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,7 @@ import { stateSelector } from 'app/store/store';
|
|||||||
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
||||||
import { defaultSelectorOptions } from 'app/store/util/defaultMemoizeOptions';
|
import { defaultSelectorOptions } from 'app/store/util/defaultMemoizeOptions';
|
||||||
import IAIMantineSelect from 'common/components/IAIMantineSelect';
|
import IAIMantineSelect from 'common/components/IAIMantineSelect';
|
||||||
|
import { InfillMethodPopover } from 'features/informationalPopovers/components/infillMethod';
|
||||||
import { setInfillMethod } from 'features/parameters/store/generationSlice';
|
import { setInfillMethod } from 'features/parameters/store/generationSlice';
|
||||||
|
|
||||||
import { memo, useCallback } from 'react';
|
import { memo, useCallback } from 'react';
|
||||||
@ -39,6 +40,7 @@ const ParamInfillMethod = () => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<InfillMethodPopover>
|
||||||
<IAIMantineSelect
|
<IAIMantineSelect
|
||||||
disabled={infill_methods?.length === 0}
|
disabled={infill_methods?.length === 0}
|
||||||
placeholder={isLoading ? 'Loading...' : undefined}
|
placeholder={isLoading ? 'Loading...' : undefined}
|
||||||
@ -47,6 +49,7 @@ const ParamInfillMethod = () => {
|
|||||||
data={infill_methods ?? []}
|
data={infill_methods ?? []}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
/>
|
/>
|
||||||
|
</InfillMethodPopover>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -8,6 +8,7 @@ import {
|
|||||||
BOUNDING_BOX_SCALES_DICT,
|
BOUNDING_BOX_SCALES_DICT,
|
||||||
BoundingBoxScale,
|
BoundingBoxScale,
|
||||||
} from 'features/canvas/store/canvasTypes';
|
} from 'features/canvas/store/canvasTypes';
|
||||||
|
import { ScaleBeforeProcessingPopover } from 'features/informationalPopovers/components/scaleBeforeProcessing';
|
||||||
|
|
||||||
import { memo } from 'react';
|
import { memo } from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
@ -35,12 +36,14 @@ const ParamScaleBeforeProcessing = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<ScaleBeforeProcessingPopover>
|
||||||
<IAIMantineSearchableSelect
|
<IAIMantineSearchableSelect
|
||||||
label={t('parameters.scaleBeforeProcessing')}
|
label={t('parameters.scaleBeforeProcessing')}
|
||||||
data={BOUNDING_BOX_SCALES_DICT}
|
data={BOUNDING_BOX_SCALES_DICT}
|
||||||
value={boundingBoxScale}
|
value={boundingBoxScale}
|
||||||
onChange={handleChangeBoundingBoxScaleMethod}
|
onChange={handleChangeBoundingBoxScaleMethod}
|
||||||
/>
|
/>
|
||||||
|
</ScaleBeforeProcessingPopover>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -4,6 +4,7 @@ import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
|||||||
import { defaultSelectorOptions } from 'app/store/util/defaultMemoizeOptions';
|
import { defaultSelectorOptions } from 'app/store/util/defaultMemoizeOptions';
|
||||||
import IAINumberInput from 'common/components/IAINumberInput';
|
import IAINumberInput from 'common/components/IAINumberInput';
|
||||||
import IAISlider from 'common/components/IAISlider';
|
import IAISlider from 'common/components/IAISlider';
|
||||||
|
import { ParamCFGScalePopover } from 'features/informationalPopovers/components/paramCFGScale';
|
||||||
import { setCfgScale } from 'features/parameters/store/generationSlice';
|
import { setCfgScale } from 'features/parameters/store/generationSlice';
|
||||||
import { memo, useCallback } from 'react';
|
import { memo, useCallback } from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
@ -53,6 +54,7 @@ const ParamCFGScale = () => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
return shouldUseSliders ? (
|
return shouldUseSliders ? (
|
||||||
|
<ParamCFGScalePopover>
|
||||||
<IAISlider
|
<IAISlider
|
||||||
label={t('parameters.cfgScale')}
|
label={t('parameters.cfgScale')}
|
||||||
step={shift ? 0.1 : 0.5}
|
step={shift ? 0.1 : 0.5}
|
||||||
@ -67,7 +69,9 @@ const ParamCFGScale = () => {
|
|||||||
withSliderMarks
|
withSliderMarks
|
||||||
isInteger={false}
|
isInteger={false}
|
||||||
/>
|
/>
|
||||||
|
</ParamCFGScalePopover>
|
||||||
) : (
|
) : (
|
||||||
|
<ParamCFGScalePopover>
|
||||||
<IAINumberInput
|
<IAINumberInput
|
||||||
label={t('parameters.cfgScale')}
|
label={t('parameters.cfgScale')}
|
||||||
step={0.5}
|
step={0.5}
|
||||||
@ -78,6 +82,7 @@ const ParamCFGScale = () => {
|
|||||||
isInteger={false}
|
isInteger={false}
|
||||||
numberInputFieldProps={{ textAlign: 'center' }}
|
numberInputFieldProps={{ textAlign: 'center' }}
|
||||||
/>
|
/>
|
||||||
|
</ParamCFGScalePopover>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -4,6 +4,7 @@ import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
|||||||
import { defaultSelectorOptions } from 'app/store/util/defaultMemoizeOptions';
|
import { defaultSelectorOptions } from 'app/store/util/defaultMemoizeOptions';
|
||||||
import IAINumberInput from 'common/components/IAINumberInput';
|
import IAINumberInput from 'common/components/IAINumberInput';
|
||||||
import IAISlider from 'common/components/IAISlider';
|
import IAISlider from 'common/components/IAISlider';
|
||||||
|
import { ParamImagesPopover } from 'features/informationalPopovers/components/paramImages';
|
||||||
import { setIterations } from 'features/parameters/store/generationSlice';
|
import { setIterations } from 'features/parameters/store/generationSlice';
|
||||||
import { memo, useCallback } from 'react';
|
import { memo, useCallback } from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
@ -60,6 +61,7 @@ const ParamIterations = () => {
|
|||||||
}, [dispatch, initial]);
|
}, [dispatch, initial]);
|
||||||
|
|
||||||
return shouldUseSliders ? (
|
return shouldUseSliders ? (
|
||||||
|
<ParamImagesPopover>
|
||||||
<IAISlider
|
<IAISlider
|
||||||
isDisabled={isDisabled}
|
isDisabled={isDisabled}
|
||||||
label={t('parameters.images')}
|
label={t('parameters.images')}
|
||||||
@ -74,7 +76,9 @@ const ParamIterations = () => {
|
|||||||
withSliderMarks
|
withSliderMarks
|
||||||
sliderNumberInputProps={{ max: inputMax }}
|
sliderNumberInputProps={{ max: inputMax }}
|
||||||
/>
|
/>
|
||||||
|
</ParamImagesPopover>
|
||||||
) : (
|
) : (
|
||||||
|
<ParamImagesPopover>
|
||||||
<IAINumberInput
|
<IAINumberInput
|
||||||
isDisabled={isDisabled}
|
isDisabled={isDisabled}
|
||||||
label={t('parameters.images')}
|
label={t('parameters.images')}
|
||||||
@ -85,6 +89,7 @@ const ParamIterations = () => {
|
|||||||
value={iterations}
|
value={iterations}
|
||||||
numberInputFieldProps={{ textAlign: 'center' }}
|
numberInputFieldProps={{ textAlign: 'center' }}
|
||||||
/>
|
/>
|
||||||
|
</ParamImagesPopover>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -2,6 +2,7 @@ import { createSelector } from '@reduxjs/toolkit';
|
|||||||
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
||||||
import { defaultSelectorOptions } from 'app/store/util/defaultMemoizeOptions';
|
import { defaultSelectorOptions } from 'app/store/util/defaultMemoizeOptions';
|
||||||
import IAIMantineSearchableSelect from 'common/components/IAIMantineSearchableSelect';
|
import IAIMantineSearchableSelect from 'common/components/IAIMantineSearchableSelect';
|
||||||
|
import { ParamSchedulerPopover } from 'features/informationalPopovers/components/paramScheduler';
|
||||||
import { generationSelector } from 'features/parameters/store/generationSelectors';
|
import { generationSelector } from 'features/parameters/store/generationSelectors';
|
||||||
import { setScheduler } from 'features/parameters/store/generationSlice';
|
import { setScheduler } from 'features/parameters/store/generationSlice';
|
||||||
import {
|
import {
|
||||||
@ -51,12 +52,14 @@ const ParamScheduler = () => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<ParamSchedulerPopover>
|
||||||
<IAIMantineSearchableSelect
|
<IAIMantineSearchableSelect
|
||||||
label={t('parameters.scheduler')}
|
label={t('parameters.scheduler')}
|
||||||
value={scheduler}
|
value={scheduler}
|
||||||
data={data}
|
data={data}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
/>
|
/>
|
||||||
|
</ParamSchedulerPopover>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -5,6 +5,7 @@ import { defaultSelectorOptions } from 'app/store/util/defaultMemoizeOptions';
|
|||||||
import IAINumberInput from 'common/components/IAINumberInput';
|
import IAINumberInput from 'common/components/IAINumberInput';
|
||||||
|
|
||||||
import IAISlider from 'common/components/IAISlider';
|
import IAISlider from 'common/components/IAISlider';
|
||||||
|
import { ParamStepsPopover } from 'features/informationalPopovers/components/paramSteps';
|
||||||
import {
|
import {
|
||||||
clampSymmetrySteps,
|
clampSymmetrySteps,
|
||||||
setSteps,
|
setSteps,
|
||||||
@ -56,6 +57,7 @@ const ParamSteps = () => {
|
|||||||
}, [dispatch]);
|
}, [dispatch]);
|
||||||
|
|
||||||
return shouldUseSliders ? (
|
return shouldUseSliders ? (
|
||||||
|
<ParamStepsPopover>
|
||||||
<IAISlider
|
<IAISlider
|
||||||
label={t('parameters.steps')}
|
label={t('parameters.steps')}
|
||||||
min={min}
|
min={min}
|
||||||
@ -69,7 +71,9 @@ const ParamSteps = () => {
|
|||||||
withSliderMarks
|
withSliderMarks
|
||||||
sliderNumberInputProps={{ max: inputMax }}
|
sliderNumberInputProps={{ max: inputMax }}
|
||||||
/>
|
/>
|
||||||
|
</ParamStepsPopover>
|
||||||
) : (
|
) : (
|
||||||
|
<ParamStepsPopover>
|
||||||
<IAINumberInput
|
<IAINumberInput
|
||||||
label={t('parameters.steps')}
|
label={t('parameters.steps')}
|
||||||
min={min}
|
min={min}
|
||||||
@ -80,6 +84,7 @@ const ParamSteps = () => {
|
|||||||
numberInputFieldProps={{ textAlign: 'center' }}
|
numberInputFieldProps={{ textAlign: 'center' }}
|
||||||
onBlur={handleBlur}
|
onBlur={handleBlur}
|
||||||
/>
|
/>
|
||||||
|
</ParamStepsPopover>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -21,6 +21,7 @@ import {
|
|||||||
useGetOnnxModelsQuery,
|
useGetOnnxModelsQuery,
|
||||||
} from 'services/api/endpoints/models';
|
} from 'services/api/endpoints/models';
|
||||||
import { useFeatureStatus } from '../../../../system/hooks/useFeatureStatus';
|
import { useFeatureStatus } from '../../../../system/hooks/useFeatureStatus';
|
||||||
|
import { ParamModelPopover } from 'features/informationalPopovers/components/paramModel';
|
||||||
|
|
||||||
const selector = createSelector(
|
const selector = createSelector(
|
||||||
stateSelector,
|
stateSelector,
|
||||||
@ -118,12 +119,15 @@ const ParamMainModelSelect = () => {
|
|||||||
data={[]}
|
data={[]}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
|
<ParamModelPopover>
|
||||||
<Flex w="100%" alignItems="center" gap={3}>
|
<Flex w="100%" alignItems="center" gap={3}>
|
||||||
<IAIMantineSearchableSelect
|
<IAIMantineSearchableSelect
|
||||||
tooltip={selectedModel?.description}
|
tooltip={selectedModel?.description}
|
||||||
label={t('modelManager.model')}
|
label={t('modelManager.model')}
|
||||||
value={selectedModel?.id}
|
value={selectedModel?.id}
|
||||||
placeholder={data.length > 0 ? 'Select a model' : 'No models available'}
|
placeholder={
|
||||||
|
data.length > 0 ? 'Select a model' : 'No models available'
|
||||||
|
}
|
||||||
data={data}
|
data={data}
|
||||||
error={data.length === 0}
|
error={data.length === 0}
|
||||||
disabled={data.length === 0}
|
disabled={data.length === 0}
|
||||||
@ -136,6 +140,7 @@ const ParamMainModelSelect = () => {
|
|||||||
</Box>
|
</Box>
|
||||||
)}
|
)}
|
||||||
</Flex>
|
</Flex>
|
||||||
|
</ParamModelPopover>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -3,6 +3,7 @@ import { stateSelector } from 'app/store/store';
|
|||||||
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
||||||
import { defaultSelectorOptions } from 'app/store/util/defaultMemoizeOptions';
|
import { defaultSelectorOptions } from 'app/store/util/defaultMemoizeOptions';
|
||||||
import IAISwitch from 'common/components/IAISwitch';
|
import IAISwitch from 'common/components/IAISwitch';
|
||||||
|
import { NoiseUseCPUPopover } from 'features/informationalPopovers/components/noiseUseCPU';
|
||||||
import { shouldUseCpuNoiseChanged } from 'features/parameters/store/generationSlice';
|
import { shouldUseCpuNoiseChanged } from 'features/parameters/store/generationSlice';
|
||||||
import { ChangeEvent } from 'react';
|
import { ChangeEvent } from 'react';
|
||||||
|
|
||||||
@ -26,11 +27,13 @@ export const ParamCpuNoiseToggle = () => {
|
|||||||
dispatch(shouldUseCpuNoiseChanged(e.target.checked));
|
dispatch(shouldUseCpuNoiseChanged(e.target.checked));
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<NoiseUseCPUPopover>
|
||||||
<IAISwitch
|
<IAISwitch
|
||||||
isDisabled={isDisabled}
|
isDisabled={isDisabled}
|
||||||
label="Use CPU Noise"
|
label="Use CPU Noise"
|
||||||
isChecked={shouldUseCpuNoise}
|
isChecked={shouldUseCpuNoise}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
/>
|
/>
|
||||||
|
</NoiseUseCPUPopover>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import type { RootState } from 'app/store/store';
|
import type { RootState } from 'app/store/store';
|
||||||
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
||||||
import IAISwitch from 'common/components/IAISwitch';
|
import IAISwitch from 'common/components/IAISwitch';
|
||||||
|
import { NoiseEnablePopover } from 'features/informationalPopovers/components/noiseEnable';
|
||||||
import { setShouldUseNoiseSettings } from 'features/parameters/store/generationSlice';
|
import { setShouldUseNoiseSettings } from 'features/parameters/store/generationSlice';
|
||||||
import { ChangeEvent } from 'react';
|
import { ChangeEvent } from 'react';
|
||||||
|
|
||||||
@ -15,10 +16,12 @@ export const ParamNoiseToggle = () => {
|
|||||||
dispatch(setShouldUseNoiseSettings(e.target.checked));
|
dispatch(setShouldUseNoiseSettings(e.target.checked));
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<NoiseEnablePopover>
|
||||||
<IAISwitch
|
<IAISwitch
|
||||||
label="Enable Noise Settings"
|
label="Enable Noise Settings"
|
||||||
isChecked={shouldUseNoiseSettings}
|
isChecked={shouldUseNoiseSettings}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
/>
|
/>
|
||||||
|
</NoiseEnablePopover>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -3,14 +3,17 @@ import { memo } from 'react';
|
|||||||
import ParamSeed from './ParamSeed';
|
import ParamSeed from './ParamSeed';
|
||||||
import ParamSeedShuffle from './ParamSeedShuffle';
|
import ParamSeedShuffle from './ParamSeedShuffle';
|
||||||
import ParamSeedRandomize from './ParamSeedRandomize';
|
import ParamSeedRandomize from './ParamSeedRandomize';
|
||||||
|
import { ParamSeedPopover } from 'features/informationalPopovers/components/paramSeed';
|
||||||
|
|
||||||
const ParamSeedFull = () => {
|
const ParamSeedFull = () => {
|
||||||
return (
|
return (
|
||||||
|
<ParamSeedPopover>
|
||||||
<Flex sx={{ gap: 3, alignItems: 'flex-end' }}>
|
<Flex sx={{ gap: 3, alignItems: 'flex-end' }}>
|
||||||
<ParamSeed />
|
<ParamSeed />
|
||||||
<ParamSeedShuffle />
|
<ParamSeedShuffle />
|
||||||
<ParamSeedRandomize />
|
<ParamSeedRandomize />
|
||||||
</Flex>
|
</Flex>
|
||||||
|
</ParamSeedPopover>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -15,6 +15,7 @@ import IAIMantineSelectItemWithTooltip from 'common/components/IAIMantineSelectI
|
|||||||
import { vaeSelected } from 'features/parameters/store/generationSlice';
|
import { vaeSelected } from 'features/parameters/store/generationSlice';
|
||||||
import { MODEL_TYPE_MAP } from 'features/parameters/types/constants';
|
import { MODEL_TYPE_MAP } from 'features/parameters/types/constants';
|
||||||
import { modelIdToVAEModelParam } from 'features/parameters/util/modelIdToVAEModelParam';
|
import { modelIdToVAEModelParam } from 'features/parameters/util/modelIdToVAEModelParam';
|
||||||
|
import { ParamVAEPopover } from 'features/informationalPopovers/components/paramVAE';
|
||||||
|
|
||||||
const selector = createSelector(
|
const selector = createSelector(
|
||||||
stateSelector,
|
stateSelector,
|
||||||
@ -93,6 +94,7 @@ const ParamVAEModelSelect = () => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<ParamVAEPopover>
|
||||||
<IAIMantineSearchableSelect
|
<IAIMantineSearchableSelect
|
||||||
itemComponent={IAIMantineSelectItemWithTooltip}
|
itemComponent={IAIMantineSelectItemWithTooltip}
|
||||||
tooltip={selectedVaeModel?.description}
|
tooltip={selectedVaeModel?.description}
|
||||||
@ -104,6 +106,7 @@ const ParamVAEModelSelect = () => {
|
|||||||
disabled={data.length === 0}
|
disabled={data.length === 0}
|
||||||
clearable
|
clearable
|
||||||
/>
|
/>
|
||||||
|
</ParamVAEPopover>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -3,6 +3,7 @@ import { stateSelector } from 'app/store/store';
|
|||||||
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
||||||
import { defaultSelectorOptions } from 'app/store/util/defaultMemoizeOptions';
|
import { defaultSelectorOptions } from 'app/store/util/defaultMemoizeOptions';
|
||||||
import IAIMantineSelect from 'common/components/IAIMantineSelect';
|
import IAIMantineSelect from 'common/components/IAIMantineSelect';
|
||||||
|
import { ParamVAEPrecisionPopover } from 'features/informationalPopovers/components/paramVAEPrecision';
|
||||||
import { vaePrecisionChanged } from 'features/parameters/store/generationSlice';
|
import { vaePrecisionChanged } from 'features/parameters/store/generationSlice';
|
||||||
import { PrecisionParam } from 'features/parameters/types/parameterSchemas';
|
import { PrecisionParam } from 'features/parameters/types/parameterSchemas';
|
||||||
import { memo, useCallback } from 'react';
|
import { memo, useCallback } from 'react';
|
||||||
@ -34,12 +35,14 @@ const ParamVAEModelSelect = () => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<ParamVAEPrecisionPopover>
|
||||||
<IAIMantineSelect
|
<IAIMantineSelect
|
||||||
label="VAE Precision"
|
label="VAE Precision"
|
||||||
value={vaePrecision}
|
value={vaePrecision}
|
||||||
data={DATA}
|
data={DATA}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
/>
|
/>
|
||||||
|
</ParamVAEPrecisionPopover>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -7,6 +7,7 @@ import SubParametersWrapper from 'features/parameters/components/Parameters/SubP
|
|||||||
import { memo, useCallback } from 'react';
|
import { memo, useCallback } from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { setSDXLImg2ImgDenoisingStrength } from '../store/sdxlSlice';
|
import { setSDXLImg2ImgDenoisingStrength } from '../store/sdxlSlice';
|
||||||
|
import { ParamDenoisingStrengthPopover } from 'features/informationalPopovers/components/paramDenoisingStrength';
|
||||||
|
|
||||||
const selector = createSelector(
|
const selector = createSelector(
|
||||||
[stateSelector],
|
[stateSelector],
|
||||||
@ -36,6 +37,7 @@ const ParamSDXLImg2ImgDenoisingStrength = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<SubParametersWrapper>
|
<SubParametersWrapper>
|
||||||
|
<ParamDenoisingStrengthPopover>
|
||||||
<IAISlider
|
<IAISlider
|
||||||
label={`${t('parameters.denoisingStrength')}`}
|
label={`${t('parameters.denoisingStrength')}`}
|
||||||
step={0.01}
|
step={0.01}
|
||||||
@ -49,6 +51,7 @@ const ParamSDXLImg2ImgDenoisingStrength = () => {
|
|||||||
withSliderMarks
|
withSliderMarks
|
||||||
withReset
|
withReset
|
||||||
/>
|
/>
|
||||||
|
</ParamDenoisingStrengthPopover>
|
||||||
</SubParametersWrapper>
|
</SubParametersWrapper>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user