mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
disable features that are not supported yet or no longer supported (#3739)
Co-authored-by: Mary Hipp <maryhipp@Marys-MacBook-Air.local>
This commit is contained in:
parent
67c8cf4bc2
commit
4a8172bcd0
@ -102,6 +102,8 @@ export type AppFeature =
|
|||||||
export type SDFeature =
|
export type SDFeature =
|
||||||
| 'controlNet'
|
| 'controlNet'
|
||||||
| 'noise'
|
| 'noise'
|
||||||
|
| 'perlinNoise'
|
||||||
|
| 'noiseThreshold'
|
||||||
| 'variation'
|
| 'variation'
|
||||||
| 'symmetry'
|
| 'symmetry'
|
||||||
| 'seamless'
|
| 'seamless'
|
||||||
|
@ -27,6 +27,9 @@ const ParamNoiseCollapse = () => {
|
|||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
const isNoiseEnabled = useFeatureStatus('noise').isFeatureEnabled;
|
const isNoiseEnabled = useFeatureStatus('noise').isFeatureEnabled;
|
||||||
|
const isPerlinNoiseEnabled = useFeatureStatus('perlinNoise').isFeatureEnabled;
|
||||||
|
const isNoiseThresholdEnabled =
|
||||||
|
useFeatureStatus('noiseThreshold').isFeatureEnabled;
|
||||||
|
|
||||||
const { activeLabel } = useAppSelector(selector);
|
const { activeLabel } = useAppSelector(selector);
|
||||||
|
|
||||||
@ -42,8 +45,8 @@ const ParamNoiseCollapse = () => {
|
|||||||
<Flex sx={{ gap: 2, flexDirection: 'column' }}>
|
<Flex sx={{ gap: 2, flexDirection: 'column' }}>
|
||||||
<ParamNoiseToggle />
|
<ParamNoiseToggle />
|
||||||
<ParamCpuNoiseToggle />
|
<ParamCpuNoiseToggle />
|
||||||
<ParamPerlinNoise />
|
{isPerlinNoiseEnabled && <ParamPerlinNoise />}
|
||||||
<ParamNoiseThreshold />
|
{isNoiseThresholdEnabled && <ParamNoiseThreshold />}
|
||||||
</Flex>
|
</Flex>
|
||||||
</IAICollapse>
|
</IAICollapse>
|
||||||
);
|
);
|
||||||
|
@ -6,8 +6,15 @@ import { merge } from 'lodash-es';
|
|||||||
export const initialConfigState: AppConfig = {
|
export const initialConfigState: AppConfig = {
|
||||||
shouldUpdateImagesOnConnect: false,
|
shouldUpdateImagesOnConnect: false,
|
||||||
disabledTabs: [],
|
disabledTabs: [],
|
||||||
disabledFeatures: [],
|
disabledFeatures: ['lightbox', 'faceRestore'],
|
||||||
disabledSDFeatures: [],
|
disabledSDFeatures: [
|
||||||
|
'variation',
|
||||||
|
'seamless',
|
||||||
|
'symmetry',
|
||||||
|
'hires',
|
||||||
|
'perlinNoise',
|
||||||
|
'noiseThreshold',
|
||||||
|
],
|
||||||
canRestoreDeletedImagesFromBin: true,
|
canRestoreDeletedImagesFromBin: true,
|
||||||
sd: {
|
sd: {
|
||||||
disabledControlNetModels: [],
|
disabledControlNetModels: [],
|
||||||
|
Loading…
Reference in New Issue
Block a user