Skip to content

Commit 8756a6b

Browse files
fix(ui): remove sharpness param
1 parent 2e0cebb commit 8756a6b

File tree

4 files changed

+2
-64
lines changed

4 files changed

+2
-64
lines changed

invokeai/frontend/web/src/features/nodes/util/graph/buildMultidiffusionUpscaleGraph.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ import { getBoardField, getSDXLStylePrompts } from './graphBuilderUtils';
2727
export const buildMultidiffusionUpscsaleGraph = async (state: RootState): Promise<GraphType> => {
2828
const { model, cfgScale: cfg_scale, scheduler, steps, vaePrecision, seed, vae } = state.generation;
2929
const { positivePrompt, negativePrompt } = state.controlLayers.present;
30-
const { upscaleModel, upscaleInitialImage, sharpness, structure, creativity, tileControlnetModel, scale } =
31-
state.upscale;
30+
const { upscaleModel, upscaleInitialImage, structure, creativity, tileControlnetModel, scale } = state.upscale;
3231

3332
assert(model, 'No model found in state');
3433
assert(upscaleModel, 'No upscale model found in state');
@@ -50,7 +49,7 @@ export const buildMultidiffusionUpscsaleGraph = async (state: RootState): Promis
5049
id: `${UNSHARP_MASK}_2`,
5150
type: 'unsharp_mask',
5251
radius: 2,
53-
strength: (sharpness + 10) * 3.75 + 25,
52+
strength: 60,
5453
});
5554

5655
g.addEdge(upscaleNode, 'image', unsharpMaskNode2, 'image');
@@ -181,7 +180,6 @@ export const buildMultidiffusionUpscsaleGraph = async (state: RootState): Promis
181180
vae: vae ?? undefined,
182181
upscale_model: Graph.getModelMetadataField(upscaleModelConfig),
183182
creativity,
184-
sharpness,
185183
structure,
186184
});
187185
}

invokeai/frontend/web/src/features/parameters/components/Upscale/ParamSharpness.tsx

Lines changed: 0 additions & 52 deletions
This file was deleted.

invokeai/frontend/web/src/features/parameters/store/upscaleSlice.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ interface UpscaleState {
88
_version: 1;
99
upscaleModel: ParameterSpandrelImageToImageModel | null;
1010
upscaleInitialImage: ImageDTO | null;
11-
sharpness: number;
1211
structure: number;
1312
creativity: number;
1413
tileControlnetModel: ControlNetModelConfig | null;
@@ -19,7 +18,6 @@ const initialUpscaleState: UpscaleState = {
1918
_version: 1,
2019
upscaleModel: null,
2120
upscaleInitialImage: null,
22-
sharpness: 0,
2321
structure: 0,
2422
creativity: 0,
2523
tileControlnetModel: null,
@@ -42,9 +40,6 @@ export const upscaleSlice = createSlice({
4240
creativityChanged: (state, action: PayloadAction<number>) => {
4341
state.creativity = action.payload;
4442
},
45-
sharpnessChanged: (state, action: PayloadAction<number>) => {
46-
state.sharpness = action.payload;
47-
},
4843
tileControlnetModelChanged: (state, action: PayloadAction<ControlNetModelConfig | null>) => {
4944
state.tileControlnetModel = action.payload;
5045
},
@@ -59,7 +54,6 @@ export const {
5954
upscaleInitialImageChanged,
6055
structureChanged,
6156
creativityChanged,
62-
sharpnessChanged,
6357
tileControlnetModelChanged,
6458
scaleChanged,
6559
} = upscaleSlice.actions;

invokeai/frontend/web/src/features/settingsAccordions/components/UpscaleSettingsAccordion/UpscaleSettingsAccordion.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { Expander, Flex, StandaloneAccordion } from '@invoke-ai/ui-library';
22
import { createMemoizedSelector } from 'app/store/createMemoizedSelector';
33
import { useAppSelector } from 'app/store/storeHooks';
44
import ParamCreativity from 'features/parameters/components/Upscale/ParamCreativity';
5-
import ParamSharpness from 'features/parameters/components/Upscale/ParamSharpness';
65
import ParamSpandrelModel from 'features/parameters/components/Upscale/ParamSpandrelModel';
76
import ParamStructure from 'features/parameters/components/Upscale/ParamStructure';
87
import { selectUpscalelice } from 'features/parameters/store/upscaleSlice';
@@ -61,7 +60,6 @@ export const UpscaleSettingsAccordion = memo(() => {
6160
</Flex>
6261
<Expander label={t('accordions.advanced.options')} isOpen={isOpenExpander} onToggle={onToggleExpander}>
6362
<Flex gap={4} pb={4} flexDir="column">
64-
<ParamSharpness />
6563
<ParamCreativity />
6664
<ParamStructure />
6765
</Flex>

0 commit comments

Comments
 (0)