1
0
Fork 0

fix(gui): remove unused strength param from upscale

This commit is contained in:
Sean Sube 2023-01-17 17:51:25 -06:00
parent 634d2e8ce6
commit d2c7fa97e7
5 changed files with 3 additions and 18 deletions

View File

@ -78,7 +78,6 @@ export interface UpscaleParams {
export interface UpscaleReqParams {
source: Blob;
strength: number;
}
export interface ImageResponse {

View File

@ -108,6 +108,7 @@ export function Inpaint() {
}}
/>
<Stack direction='row' spacing={2}>
{/* TODO: numeric input for blend strength */}
<QueryList
id='masks'
labels={MASK_LABELS}

View File

@ -231,7 +231,8 @@ export function MaskCanvas(props: MaskCanvasProps) {
}}
/>
<Typography variant='body1'>
Black pixels in the mask will stay the same, white pixels will be replaced with pixels from the noise source.
Black pixels in the mask will stay the same, white pixels will be replaced. The masked pixels will be blended
with the noise source before the diffusion model runs, giving it more variety to use.
</Typography>
<Stack direction='row' spacing={4}>
<NumericField

View File

@ -7,7 +7,6 @@ import { useStore } from 'zustand';
import { IMAGE_FILTER } from '../config.js';
import { ClientContext, ConfigContext, StateContext } from '../state.js';
import { ImageInput } from './ImageInput.js';
import { NumericField } from './NumericField.js';
import { UpscaleControl } from './UpscaleControl.js';
const { useContext } = React;
@ -46,19 +45,6 @@ export function Upscale() {
source: file,
});
}} />
<NumericField
decimal
label='Strength'
min={config.strength.min}
max={config.strength.max}
step={config.strength.step}
value={params.strength}
onChange={(value) => {
setSource({
strength: value,
});
}}
/>
<UpscaleControl config={config} />
<Button onClick={() => upload.mutate()}>Generate</Button>
</Stack>

View File

@ -258,7 +258,6 @@ export function createStateSlices(base: ConfigParams) {
},
upscaleTab: {
source: null,
strength: 1.0,
},
setUpscale(upscale) {
set((prev) => ({
@ -280,7 +279,6 @@ export function createStateSlices(base: ConfigParams) {
set({
upscaleTab: {
source: null,
strength: 1.0,
},
});
},