diff --git a/frontend/src/common/util/parameterTranslation.ts b/frontend/src/common/util/parameterTranslation.ts index d8c766cb12..485c10ff36 100644 --- a/frontend/src/common/util/parameterTranslation.ts +++ b/frontend/src/common/util/parameterTranslation.ts @@ -94,8 +94,6 @@ export const frontendToBackendParameters = ( }; } - console.log(generationParameters) - return { generationParameters, esrganParameters, diff --git a/frontend/src/features/gallery/CurrentImageButtons.tsx b/frontend/src/features/gallery/CurrentImageButtons.tsx index b661bd7e60..cb4d620fe0 100644 --- a/frontend/src/features/gallery/CurrentImageButtons.tsx +++ b/frontend/src/features/gallery/CurrentImageButtons.tsx @@ -43,9 +43,15 @@ const CurrentImageButtons = ({ setShouldShowImageDetails, }: CurrentImageButtonsProps) => { const dispatch = useAppDispatch(); + const { intermediateImage } = useAppSelector( (state: RootState) => state.gallery ); + + const { upscalingLevel, gfpganStrength } = useAppSelector( + (state: RootState) => state.sd + ); + const { isProcessing, isConnected, isGFPGANAvailable, isESRGANAvailable } = useAppSelector(systemSelector); @@ -101,7 +107,8 @@ const CurrentImageButtons = ({ isDisabled={ !isESRGANAvailable || Boolean(intermediateImage) || - !(isConnected && !isProcessing) + !(isConnected && !isProcessing) || + !upscalingLevel } onClick={handleClickUpscale} /> @@ -113,7 +120,8 @@ const CurrentImageButtons = ({ isDisabled={ !isGFPGANAvailable || Boolean(intermediateImage) || - !(isConnected && !isProcessing) + !(isConnected && !isProcessing) || + !gfpganStrength } onClick={handleClickFixFaces} /> diff --git a/frontend/src/features/sd/sdSlice.ts b/frontend/src/features/sd/sdSlice.ts index 90c1d6efcc..d8dfd2012d 100644 --- a/frontend/src/features/sd/sdSlice.ts +++ b/frontend/src/features/sd/sdSlice.ts @@ -2,7 +2,7 @@ import { createSlice } from '@reduxjs/toolkit'; import type { PayloadAction } from '@reduxjs/toolkit'; import { SDMetadata } from '../gallery/gallerySlice'; -export type UpscalingLevel = 0 | 2 | 4; +export type UpscalingLevel = 2 | 4; export interface SDState { prompt: string;