mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Fix typo and Hi-Res Bug
This commit is contained in:
parent
093174942b
commit
5d0dcaf81e
File diff suppressed because one or more lines are too long
2
invokeai/frontend/dist/index.html
vendored
2
invokeai/frontend/dist/index.html
vendored
@ -5,7 +5,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>InvokeAI - A Stable Diffusion Toolkit</title>
|
<title>InvokeAI - A Stable Diffusion Toolkit</title>
|
||||||
<link rel="shortcut icon" type="icon" href="./assets/favicon-0d253ced.ico" />
|
<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">
|
<link rel="stylesheet" href="./assets/index-fecb6dd4.css">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
@ -57,6 +57,6 @@
|
|||||||
"useInitImg": "Use Initial Image",
|
"useInitImg": "Use Initial Image",
|
||||||
"info": "Info",
|
"info": "Info",
|
||||||
"deleteImage": "Delete Image",
|
"deleteImage": "Delete Image",
|
||||||
"initialImage": "Inital Image",
|
"initialImage": "Initial Image",
|
||||||
"showOptionsPanel": "Show Options Panel"
|
"showOptionsPanel": "Show Options Panel"
|
||||||
}
|
}
|
||||||
|
@ -60,6 +60,6 @@
|
|||||||
"useInitImg": "Use Initial Image",
|
"useInitImg": "Use Initial Image",
|
||||||
"info": "Info",
|
"info": "Info",
|
||||||
"deleteImage": "Delete Image",
|
"deleteImage": "Delete Image",
|
||||||
"initialImage": "Inital Image",
|
"initialImage": "Initial Image",
|
||||||
"showOptionsPanel": "Show Options Panel"
|
"showOptionsPanel": "Show Options Panel"
|
||||||
}
|
}
|
||||||
|
@ -56,7 +56,7 @@
|
|||||||
"useInitImg": "Use Initial Image",
|
"useInitImg": "Use Initial Image",
|
||||||
"info": "情報",
|
"info": "情報",
|
||||||
"deleteImage": "画像を削除",
|
"deleteImage": "画像を削除",
|
||||||
"initialImage": "Inital Image",
|
"initialImage": "Initial Image",
|
||||||
"showOptionsPanel": "オプションパネルを表示"
|
"showOptionsPanel": "オプションパネルを表示"
|
||||||
}
|
}
|
||||||
|
|
@ -57,6 +57,6 @@
|
|||||||
"useInitImg": "Use Initial Image",
|
"useInitImg": "Use Initial Image",
|
||||||
"info": "Info",
|
"info": "Info",
|
||||||
"deleteImage": "Delete Image",
|
"deleteImage": "Delete Image",
|
||||||
"initialImage": "Inital Image",
|
"initialImage": "Initial Image",
|
||||||
"showOptionsPanel": "Show Options Panel"
|
"showOptionsPanel": "Show Options Panel"
|
||||||
}
|
}
|
||||||
|
@ -60,6 +60,6 @@
|
|||||||
"useInitImg": "Use Initial Image",
|
"useInitImg": "Use Initial Image",
|
||||||
"info": "Info",
|
"info": "Info",
|
||||||
"deleteImage": "Delete Image",
|
"deleteImage": "Delete Image",
|
||||||
"initialImage": "Inital Image",
|
"initialImage": "Initial Image",
|
||||||
"showOptionsPanel": "Show Options Panel"
|
"showOptionsPanel": "Show Options Panel"
|
||||||
}
|
}
|
||||||
|
@ -56,7 +56,7 @@
|
|||||||
"useInitImg": "Use Initial Image",
|
"useInitImg": "Use Initial Image",
|
||||||
"info": "情報",
|
"info": "情報",
|
||||||
"deleteImage": "画像を削除",
|
"deleteImage": "画像を削除",
|
||||||
"initialImage": "Inital Image",
|
"initialImage": "Initial Image",
|
||||||
"showOptionsPanel": "オプションパネルを表示"
|
"showOptionsPanel": "オプションパネルを表示"
|
||||||
}
|
}
|
||||||
|
|
@ -178,12 +178,16 @@ export const frontendToBackendParameters = (
|
|||||||
? randomInt(NUMPY_RAND_MIN, NUMPY_RAND_MAX)
|
? randomInt(NUMPY_RAND_MIN, NUMPY_RAND_MAX)
|
||||||
: seed;
|
: seed;
|
||||||
|
|
||||||
// parameters common to txt2img and img2img
|
// txt2img exclusive parameters
|
||||||
if (['txt2img', 'img2img'].includes(generationMode)) {
|
if (generationMode === 'txt2img') {
|
||||||
generationParameters.seamless = seamless;
|
|
||||||
generationParameters.hires_fix = hiresFix;
|
generationParameters.hires_fix = hiresFix;
|
||||||
|
|
||||||
if (hiresFix) generationParameters.strength = hiresStrength;
|
if (hiresFix) generationParameters.strength = hiresStrength;
|
||||||
|
}
|
||||||
|
|
||||||
|
// parameters common to txt2img and img2img
|
||||||
|
if (['txt2img', 'img2img'].includes(generationMode)) {
|
||||||
|
generationParameters.seamless = seamless;
|
||||||
|
|
||||||
if (shouldRunESRGAN) {
|
if (shouldRunESRGAN) {
|
||||||
esrganParameters = {
|
esrganParameters = {
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import { Flex } from '@chakra-ui/react';
|
import { Flex } from '@chakra-ui/react';
|
||||||
import { Feature } from 'app/features';
|
import { Feature } from 'app/features';
|
||||||
import { useAppDispatch, useAppSelector } from 'app/storeHooks';
|
|
||||||
import FaceRestoreSettings from 'features/parameters/components/AdvancedParameters/FaceRestore/FaceRestoreSettings';
|
import FaceRestoreSettings from 'features/parameters/components/AdvancedParameters/FaceRestore/FaceRestoreSettings';
|
||||||
import FaceRestoreToggle from 'features/parameters/components/AdvancedParameters/FaceRestore/FaceRestoreToggle';
|
import FaceRestoreToggle from 'features/parameters/components/AdvancedParameters/FaceRestore/FaceRestoreToggle';
|
||||||
import ImageFit from 'features/parameters/components/AdvancedParameters/ImageToImage/ImageFit';
|
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 ProcessButtons from 'features/parameters/components/ProcessButtons/ProcessButtons';
|
||||||
import NegativePromptInput from 'features/parameters/components/PromptInput/NegativePromptInput';
|
import NegativePromptInput from 'features/parameters/components/PromptInput/NegativePromptInput';
|
||||||
import PromptInput from 'features/parameters/components/PromptInput/PromptInput';
|
import PromptInput from 'features/parameters/components/PromptInput/PromptInput';
|
||||||
import { setHiresFix } from 'features/parameters/store/postprocessingSlice';
|
|
||||||
import InvokeOptionsPanel from 'features/ui/components/InvokeParametersPanel';
|
import InvokeOptionsPanel from 'features/ui/components/InvokeParametersPanel';
|
||||||
import { activeTabNameSelector } from 'features/ui/store/uiSelectors';
|
|
||||||
import { useEffect } from 'react';
|
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
export default function ImageToImagePanel() {
|
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 (
|
return (
|
||||||
<InvokeOptionsPanel>
|
<InvokeOptionsPanel>
|
||||||
<Flex flexDir="column" rowGap="0.5rem">
|
<Flex flexDir="column" rowGap="0.5rem">
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user