Fix typo and Hi-Res Bug

This commit is contained in:
Kent Keirsey 2023-02-15 00:06:09 -05:00
parent 093174942b
commit 5d0dcaf81e
11 changed files with 62 additions and 73 deletions

File diff suppressed because one or more lines are too long

View File

@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>InvokeAI - A Stable Diffusion Toolkit</title>
<link rel="shortcut icon" type="icon" href="./assets/favicon-0d253ced.ico" />
<script type="module" crossorigin src="./assets/index-a93d4500.js"></script>
<script type="module" crossorigin src="./assets/index-6adf40ae.js"></script>
<link rel="stylesheet" href="./assets/index-fecb6dd4.css">
</head>

View File

@ -57,6 +57,6 @@
"useInitImg": "Use Initial Image",
"info": "Info",
"deleteImage": "Delete Image",
"initialImage": "Inital Image",
"initialImage": "Initial Image",
"showOptionsPanel": "Show Options Panel"
}

View File

@ -60,6 +60,6 @@
"useInitImg": "Use Initial Image",
"info": "Info",
"deleteImage": "Delete Image",
"initialImage": "Inital Image",
"initialImage": "Initial Image",
"showOptionsPanel": "Show Options Panel"
}

View File

@ -56,7 +56,7 @@
"useInitImg": "Use Initial Image",
"info": "情報",
"deleteImage": "画像を削除",
"initialImage": "Inital Image",
"initialImage": "Initial Image",
"showOptionsPanel": "オプションパネルを表示"
}

View File

@ -57,6 +57,6 @@
"useInitImg": "Use Initial Image",
"info": "Info",
"deleteImage": "Delete Image",
"initialImage": "Inital Image",
"initialImage": "Initial Image",
"showOptionsPanel": "Show Options Panel"
}

View File

@ -60,6 +60,6 @@
"useInitImg": "Use Initial Image",
"info": "Info",
"deleteImage": "Delete Image",
"initialImage": "Inital Image",
"initialImage": "Initial Image",
"showOptionsPanel": "Show Options Panel"
}

View File

@ -56,7 +56,7 @@
"useInitImg": "Use Initial Image",
"info": "情報",
"deleteImage": "画像を削除",
"initialImage": "Inital Image",
"initialImage": "Initial Image",
"showOptionsPanel": "オプションパネルを表示"
}

View File

@ -178,12 +178,16 @@ export const frontendToBackendParameters = (
? randomInt(NUMPY_RAND_MIN, NUMPY_RAND_MAX)
: seed;
// parameters common to txt2img and img2img
if (['txt2img', 'img2img'].includes(generationMode)) {
generationParameters.seamless = seamless;
// txt2img exclusive parameters
if (generationMode === 'txt2img') {
generationParameters.hires_fix = hiresFix;
if (hiresFix) generationParameters.strength = hiresStrength;
}
// parameters common to txt2img and img2img
if (['txt2img', 'img2img'].includes(generationMode)) {
generationParameters.seamless = seamless;
if (shouldRunESRGAN) {
esrganParameters = {

View File

@ -1,6 +1,5 @@
import { Flex } from '@chakra-ui/react';
import { Feature } from 'app/features';
import { useAppDispatch, useAppSelector } from 'app/storeHooks';
import FaceRestoreSettings from 'features/parameters/components/AdvancedParameters/FaceRestore/FaceRestoreSettings';
import FaceRestoreToggle from 'features/parameters/components/AdvancedParameters/FaceRestore/FaceRestoreToggle';
import ImageFit from 'features/parameters/components/AdvancedParameters/ImageToImage/ImageFit';
@ -16,10 +15,7 @@ import ParametersAccordion from 'features/parameters/components/ParametersAccord
import ProcessButtons from 'features/parameters/components/ProcessButtons/ProcessButtons';
import NegativePromptInput from 'features/parameters/components/PromptInput/NegativePromptInput';
import PromptInput from 'features/parameters/components/PromptInput/PromptInput';
import { setHiresFix } from 'features/parameters/store/postprocessingSlice';
import InvokeOptionsPanel from 'features/ui/components/InvokeParametersPanel';
import { activeTabNameSelector } from 'features/ui/store/uiSelectors';
import { useEffect } from 'react';
import { useTranslation } from 'react-i18next';
export default function ImageToImagePanel() {
@ -56,17 +52,6 @@ export default function ImageToImagePanel() {
},
};
const dispatch = useAppDispatch();
const activeTabName = useAppSelector(activeTabNameSelector);
useEffect(() => {
if (activeTabName === 'img2img') {
const handleChangeHiresFix = () => dispatch(setHiresFix(false));
handleChangeHiresFix();
}
}, [activeTabName, dispatch]);
return (
<InvokeOptionsPanel>
<Flex flexDir="column" rowGap="0.5rem">

File diff suppressed because one or more lines are too long