Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
import { CompositeNumberInput, CompositeSlider, FormControl, FormLabel } from '@invoke-ai/ui-library';
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
import { InformationalPopover } from 'common/components/InformationalPopover/InformationalPopover';
import { selectRefinerStart, setRefinerStart } from 'features/controlLayers/store/paramsSlice';
import { memo, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
const ParamSDXLRefinerStart = () => {
const refinerStart = useAppSelector(selectRefinerStart);
const dispatch = useAppDispatch();
const handleChange = useCallback((v: number) => dispatch(setRefinerStart(v)), [dispatch]);
const { t } = useTranslation();
return (
<FormControl>
<InformationalPopover feature="refinerStart">
<FormLabel>{t('sdxl.refinerStart')}</FormLabel>
</InformationalPopover>
<CompositeSlider
step={0.01}
min={0}
max={1}
onChange={handleChange}
defaultValue={0.8}
value={refinerStart}
marks
/>
<CompositeNumberInput
step={0.01}
min={0}
max={1}
onChange={handleChange}
defaultValue={0.8}
value={refinerStart}
/>
</FormControl>
);
};
export default memo(ParamSDXLRefinerStart);