mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Minor bug fix
This commit is contained in:
parent
09bf6dd7c1
commit
e1f0ee819d
@ -94,8 +94,6 @@ export const frontendToBackendParameters = (
|
||||
};
|
||||
}
|
||||
|
||||
console.log(generationParameters)
|
||||
|
||||
return {
|
||||
generationParameters,
|
||||
esrganParameters,
|
||||
|
@ -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}
|
||||
/>
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user