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 {
|
return {
|
||||||
generationParameters,
|
generationParameters,
|
||||||
esrganParameters,
|
esrganParameters,
|
||||||
|
@ -43,9 +43,15 @@ const CurrentImageButtons = ({
|
|||||||
setShouldShowImageDetails,
|
setShouldShowImageDetails,
|
||||||
}: CurrentImageButtonsProps) => {
|
}: CurrentImageButtonsProps) => {
|
||||||
const dispatch = useAppDispatch();
|
const dispatch = useAppDispatch();
|
||||||
|
|
||||||
const { intermediateImage } = useAppSelector(
|
const { intermediateImage } = useAppSelector(
|
||||||
(state: RootState) => state.gallery
|
(state: RootState) => state.gallery
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const { upscalingLevel, gfpganStrength } = useAppSelector(
|
||||||
|
(state: RootState) => state.sd
|
||||||
|
);
|
||||||
|
|
||||||
const { isProcessing, isConnected, isGFPGANAvailable, isESRGANAvailable } =
|
const { isProcessing, isConnected, isGFPGANAvailable, isESRGANAvailable } =
|
||||||
useAppSelector(systemSelector);
|
useAppSelector(systemSelector);
|
||||||
|
|
||||||
@ -101,7 +107,8 @@ const CurrentImageButtons = ({
|
|||||||
isDisabled={
|
isDisabled={
|
||||||
!isESRGANAvailable ||
|
!isESRGANAvailable ||
|
||||||
Boolean(intermediateImage) ||
|
Boolean(intermediateImage) ||
|
||||||
!(isConnected && !isProcessing)
|
!(isConnected && !isProcessing) ||
|
||||||
|
!upscalingLevel
|
||||||
}
|
}
|
||||||
onClick={handleClickUpscale}
|
onClick={handleClickUpscale}
|
||||||
/>
|
/>
|
||||||
@ -113,7 +120,8 @@ const CurrentImageButtons = ({
|
|||||||
isDisabled={
|
isDisabled={
|
||||||
!isGFPGANAvailable ||
|
!isGFPGANAvailable ||
|
||||||
Boolean(intermediateImage) ||
|
Boolean(intermediateImage) ||
|
||||||
!(isConnected && !isProcessing)
|
!(isConnected && !isProcessing) ||
|
||||||
|
!gfpganStrength
|
||||||
}
|
}
|
||||||
onClick={handleClickFixFaces}
|
onClick={handleClickFixFaces}
|
||||||
/>
|
/>
|
||||||
|
@ -2,7 +2,7 @@ import { createSlice } from '@reduxjs/toolkit';
|
|||||||
import type { PayloadAction } from '@reduxjs/toolkit';
|
import type { PayloadAction } from '@reduxjs/toolkit';
|
||||||
import { SDMetadata } from '../gallery/gallerySlice';
|
import { SDMetadata } from '../gallery/gallerySlice';
|
||||||
|
|
||||||
export type UpscalingLevel = 0 | 2 | 4;
|
export type UpscalingLevel = 2 | 4;
|
||||||
|
|
||||||
export interface SDState {
|
export interface SDState {
|
||||||
prompt: string;
|
prompt: string;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user