From d2c7fa97e79267b4694556e0019c0abd63bd229a Mon Sep 17 00:00:00 2001 From: Sean Sube Date: Tue, 17 Jan 2023 17:51:25 -0600 Subject: [PATCH] fix(gui): remove unused strength param from upscale --- gui/src/client.ts | 1 - gui/src/components/Inpaint.tsx | 1 + gui/src/components/MaskCanvas.tsx | 3 ++- gui/src/components/Upscale.tsx | 14 -------------- gui/src/state.ts | 2 -- 5 files changed, 3 insertions(+), 18 deletions(-) diff --git a/gui/src/client.ts b/gui/src/client.ts index 61d4a6c3..ea67c17a 100644 --- a/gui/src/client.ts +++ b/gui/src/client.ts @@ -78,7 +78,6 @@ export interface UpscaleParams { export interface UpscaleReqParams { source: Blob; - strength: number; } export interface ImageResponse { diff --git a/gui/src/components/Inpaint.tsx b/gui/src/components/Inpaint.tsx index 3cc20d26..ab84694e 100644 --- a/gui/src/components/Inpaint.tsx +++ b/gui/src/components/Inpaint.tsx @@ -108,6 +108,7 @@ export function Inpaint() { }} /> + {/* TODO: numeric input for blend strength */} - 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. - { - setSource({ - strength: value, - }); - }} - /> diff --git a/gui/src/state.ts b/gui/src/state.ts index 9fc42e06..a1ec8ff0 100644 --- a/gui/src/state.ts +++ b/gui/src/state.ts @@ -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, }, }); },