mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-01-22 23:58:11 -05:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5057beddf5 | ||
|
|
ade9bbe185 | ||
|
|
83df5c211c | ||
|
|
75f07dd22e | ||
|
|
9d103ef030 | ||
|
|
4cc60669c1 | ||
|
|
d456aea8f3 | ||
|
|
4151883cb2 |
@@ -17,7 +17,6 @@ from PIL import Image, ImageOps
|
||||
from PIL.Image import Image as ImageType
|
||||
from uuid import uuid4
|
||||
from threading import Event
|
||||
from tkinter import filedialog
|
||||
|
||||
from ldm.generate import Generate
|
||||
from ldm.invoke.args import Args, APP_ID, APP_VERSION, calculate_init_img_hash
|
||||
|
||||
@@ -6,70 +6,70 @@ title: WebUI Hotkey List
|
||||
|
||||
## App Hotkeys
|
||||
|
||||
| Setting | Hotkey |
|
||||
| -------------- | ------------------ |
|
||||
| ++Ctrl+Enter++ | Invoke |
|
||||
| ++Shift+X++ | Cancel |
|
||||
| ++Alt+A++ | Focus Prompt |
|
||||
| ++O++ | Toggle Options |
|
||||
| ++Shift+O++ | Pin Options |
|
||||
| ++Z++ | Toggle Viewer |
|
||||
| ++G++ | Toggle Gallery |
|
||||
| ++F++ | Maximize Workspace |
|
||||
| ++1-5++ | Change Tabs |
|
||||
| ++"`"++ | Toggle Console |
|
||||
| Setting | Hotkey |
|
||||
| ----------------- | ------------------ |
|
||||
| ++"Ctrl\+Enter"++ | Invoke |
|
||||
| ++"Shift\+X"++ | Cancel |
|
||||
| ++"Alt\+A"++ | Focus Prompt |
|
||||
| ++"O"++ | Toggle Options |
|
||||
| ++"Shift\+O"++ | Pin Options |
|
||||
| ++"Z"++ | Toggle Viewer |
|
||||
| ++"G"++ | Toggle Gallery |
|
||||
| ++"F"++ | Maximize Workspace |
|
||||
| ++"1-5"++ | Change Tabs |
|
||||
| ++"`"++ | Toggle Console |
|
||||
|
||||
## General Hotkeys
|
||||
|
||||
| Setting | Hotkey |
|
||||
| ----------- | ---------------------- |
|
||||
| ++P++ | Set Prompt |
|
||||
| ++S++ | Set Seed |
|
||||
| ++A++ | Set Parameters |
|
||||
| ++Shift+R++ | Restore Faces |
|
||||
| ++Shift+U++ | Upscale |
|
||||
| ++I++ | Show Info |
|
||||
| ++Shift+I++ | Send To Image To Image |
|
||||
| ++Del++ | Delete Image |
|
||||
| ++Esc++ | Close Panels |
|
||||
| Setting | Hotkey |
|
||||
| --------------- | ---------------------- |
|
||||
| ++"P"++ | Set Prompt |
|
||||
| ++"S"++ | Set Seed |
|
||||
| ++"A"++ | Set Parameters |
|
||||
| ++"Shift\+R"++ | Restore Faces |
|
||||
| ++"Shift\+U"++ | Upscale |
|
||||
| ++"I"++ | Show Info |
|
||||
| ++"Shift\+I"++ | Send To Image To Image |
|
||||
| ++"Del"++ | Delete Image |
|
||||
| ++"Esc"++ | Close Panels |
|
||||
|
||||
## Gallery Hotkeys
|
||||
|
||||
| Setting | Hotkey |
|
||||
| --------------- | --------------------------- |
|
||||
| ++Arrow Left++ | Previous Image |
|
||||
| ++Arrow Right++ | Next Image |
|
||||
| ++Shift+G++ | Toggle Gallery Pin |
|
||||
| ++Shift+Up++ | Increase Gallery Image Size |
|
||||
| ++Shift+Down++ | Decrease Gallery Image Size |
|
||||
| Setting | Hotkey |
|
||||
| ------------------ | --------------------------- |
|
||||
| ++"Arrow Left"++ | Previous Image |
|
||||
| ++"Arrow Right"++ | Next Image |
|
||||
| ++"Shift\+G"++ | Toggle Gallery Pin |
|
||||
| ++"Shift\+Up"++ | Increase Gallery Image Size |
|
||||
| ++"Shift\+Down"++ | Decrease Gallery Image Size |
|
||||
|
||||
## Unified Canvas Hotkeys
|
||||
|
||||
| Setting | Hotkey |
|
||||
| ------------------------- | ---------------------- |
|
||||
| ++B++ | Select Brush |
|
||||
| ++E++ | Select Eraser |
|
||||
| ++[++ | Decrease Brush Size |
|
||||
| ++]++ | Increase Brush Size |
|
||||
| ++Shift+[++ | Decrease Brush Opacity |
|
||||
| ++Shift+]++ | Increase Brush Opacity |
|
||||
| ++V++ | Move Tool |
|
||||
| ++Shift+F++ | Fill Bounding Box |
|
||||
| ++Delete/Backspace++ | Erase Bounding Box |
|
||||
| ++C++ | Select Color Picker |
|
||||
| ++N++ | Toggle Snap |
|
||||
| ++Hold Space++ | Quick Toggle Move |
|
||||
| ++Q++ | Toggle Layer |
|
||||
| ++Shift+C++ | Clear Mask |
|
||||
| ++H++ | Hide Mask |
|
||||
| ++Shift+H++ | Show/Hide Bounding Box |
|
||||
| ++Shift+M++ | Merge Visible |
|
||||
| ++Shift+S++ | Save To Gallery |
|
||||
| ++Ctrl+C++ | Copy To Clipboard |
|
||||
| ++Shift+D++ | Download Image |
|
||||
| ++Ctrl+Z++ | Undo |
|
||||
| ++Ctrl+Y / Ctrl+Shift+Z++ | Redo |
|
||||
| ++R++ | Reset View |
|
||||
| ++Arrow Left++ | Previous Staging Image |
|
||||
| ++Arrow Right++ | Next Staging Image |
|
||||
| ++Enter++ | Accept Staging Image |
|
||||
| Setting | Hotkey |
|
||||
| ------------------------------ | ---------------------- |
|
||||
| ++"B"++ | Select Brush |
|
||||
| ++"E"++ | Select Eraser |
|
||||
| ++"["++ | Decrease Brush Size |
|
||||
| ++"]"++ | Increase Brush Size |
|
||||
| ++"Shift\+["++ | Decrease Brush Opacity |
|
||||
| ++"Shift\+]"++ | Increase Brush Opacity |
|
||||
| ++"V"++ | Move Tool |
|
||||
| ++"Shift\+F"++ | Fill Bounding Box |
|
||||
| ++"Delete/Backspace"++ | Erase Bounding Box |
|
||||
| ++"C"++ | Select Color Picker |
|
||||
| ++"N"++ | Toggle Snap |
|
||||
| ++"Hold Space"++ | Quick Toggle Move |
|
||||
| ++"Q"++ | Toggle Layer |
|
||||
| ++"Shift\+C"++ | Clear Mask |
|
||||
| ++"H"++ | Hide Mask |
|
||||
| ++"Shift\+H"++ | Show/Hide Bounding Box |
|
||||
| ++"Shift\+M"++ | Merge Visible |
|
||||
| ++"Shift\+S"++ | Save To Gallery |
|
||||
| ++"Ctrl\+C"++ | Copy To Clipboard |
|
||||
| ++"Shift\+D"++ | Download Image |
|
||||
| ++"Ctrl\+Z"++ | Undo |
|
||||
| ++"Ctrl\+Y / Ctrl\+Shift\+Z"++ | Redo |
|
||||
| ++"R"++ | Reset View |
|
||||
| ++"Arrow Left"++ | Previous Staging Image |
|
||||
| ++"Arrow Right"++ | Next Staging Image |
|
||||
| ++"Enter"++ | Accept Staging Image |
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
4
frontend/dist/index.html
vendored
4
frontend/dist/index.html
vendored
@@ -7,7 +7,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.21ff81eb.js"></script>
|
||||
<script type="module" crossorigin src="./assets/index.8ab082b4.js"></script>
|
||||
<link rel="stylesheet" href="./assets/index.0dadf5d0.css">
|
||||
<script type="module">try{import.meta.url;import("_").catch(()=>1);}catch(e){}window.__vite_is_modern_browser=true;</script>
|
||||
<script type="module">!function(){if(window.__vite_is_modern_browser)return;console.warn("vite: loading legacy build because dynamic import or import.meta.url is unsupported, syntax error above should be ignored");var e=document.getElementById("vite-legacy-polyfill"),n=document.createElement("script");n.src=e.src,n.onload=function(){System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))},document.body.appendChild(n)}();</script>
|
||||
@@ -18,6 +18,6 @@
|
||||
|
||||
<script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
|
||||
<script nomodule crossorigin id="vite-legacy-polyfill" src="./assets/polyfills-legacy-dde3a68a.js"></script>
|
||||
<script nomodule crossorigin id="vite-legacy-entry" data-src="./assets/index-legacy-b741077f.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
|
||||
<script nomodule crossorigin id="vite-legacy-entry" data-src="./assets/index-legacy-a125eeb7.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
51
frontend/dist/locales/modelmanager/zh_cn.json
vendored
51
frontend/dist/locales/modelmanager/zh_cn.json
vendored
@@ -1 +1,50 @@
|
||||
{}
|
||||
{
|
||||
"modelManager": "模型管理器",
|
||||
"model": "模型",
|
||||
"modelAdded": "模型已添加",
|
||||
"modelUpdated": "模型已更新",
|
||||
"modelEntryDeleted": "模型已删除",
|
||||
"cannotUseSpaces": "不能使用空格",
|
||||
"addNew": "添加",
|
||||
"addNewModel": "添加新模型",
|
||||
"addManually": "手动添加",
|
||||
"manual": "手动",
|
||||
"name": "名称",
|
||||
"nameValidationMsg": "输入模型的名称",
|
||||
"description": "描述",
|
||||
"descriptionValidationMsg": "添加模型的描述",
|
||||
"config": "配置",
|
||||
"configValidationMsg": "模型配置文件的路径",
|
||||
"modelLocation": "模型位置",
|
||||
"modelLocationValidationMsg": "模型文件的路径",
|
||||
"vaeLocation": "VAE 位置",
|
||||
"vaeLocationValidationMsg": "VAE 文件的路径",
|
||||
"width": "宽度",
|
||||
"widthValidationMsg": "模型的默认宽度",
|
||||
"height": "高度",
|
||||
"heightValidationMsg": "模型的默认高度",
|
||||
"addModel": "添加模型",
|
||||
"updateModel": "更新模型",
|
||||
"availableModels": "可用模型",
|
||||
"search": "搜索",
|
||||
"load": "加载",
|
||||
"active": "活跃",
|
||||
"notLoaded": "未加载",
|
||||
"cached": "缓存",
|
||||
"checkpointFolder": "模型检查点文件夹",
|
||||
"clearCheckpointFolder": "清除模型检查点文件夹",
|
||||
"findModels": "寻找模型",
|
||||
"modelsFound": "找到的模型",
|
||||
"selectFolder": "选择文件夹",
|
||||
"selected": "已选择",
|
||||
"selectAll": "选择所有",
|
||||
"deselectAll": "取消选择所有",
|
||||
"showExisting": "显示已存在",
|
||||
"addSelected": "添加选择",
|
||||
"modelExists": "模型已存在",
|
||||
"delete": "删除",
|
||||
"deleteModel": "删除模型",
|
||||
"deleteConfig": "删除配置",
|
||||
"deleteMsg1": "您确定要将这个模型从 InvokeAI 删除吗?",
|
||||
"deleteMsg2": "这不会从磁盘中删除模型检查点文件。如果您愿意,可以重新添加它们。"
|
||||
}
|
||||
|
||||
2
frontend/dist/locales/options/ru.json
vendored
2
frontend/dist/locales/options/ru.json
vendored
@@ -5,7 +5,7 @@
|
||||
"width": "Ширина",
|
||||
"height": "Высота",
|
||||
"sampler": "Семплер",
|
||||
"seed": "Сид (Seed)",
|
||||
"seed": "Сид",
|
||||
"randomizeSeed": "Случайный сид",
|
||||
"shuffle": "Обновить",
|
||||
"noiseThreshold": "Порог шума",
|
||||
|
||||
2
frontend/dist/locales/settings/pl.json
vendored
2
frontend/dist/locales/settings/pl.json
vendored
@@ -4,7 +4,7 @@
|
||||
"saveSteps": "Zapisuj obrazy co X kroków",
|
||||
"confirmOnDelete": "Potwierdzaj usuwanie",
|
||||
"displayHelpIcons": "Wyświetlaj ikony pomocy",
|
||||
"useCanvasBeta": "Nowego układ trybu uniwersalnego",
|
||||
"useCanvasBeta": "Nowy układ trybu uniwersalnego",
|
||||
"enableImageDebugging": "Włącz debugowanie obrazu",
|
||||
"resetWebUI": "Zresetuj interfejs",
|
||||
"resetWebUIDesc1": "Resetowanie interfejsu wyczyści jedynie dane i ustawienia zapisane w pamięci przeglądarki. Nie usunie żadnych obrazów z dysku.",
|
||||
|
||||
1
frontend/dist/locales/tooltip/de.json
vendored
Normal file
1
frontend/dist/locales/tooltip/de.json
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{}
|
||||
15
frontend/dist/locales/tooltip/en-US.json
vendored
Normal file
15
frontend/dist/locales/tooltip/en-US.json
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"feature": {
|
||||
"prompt": "This field will take all prompt text, including both content and stylistic terms. While weights can be included in the prompt, standard CLI Commands/parameters will not work.",
|
||||
"gallery": "As new invocations are generated, files from the output directory will be displayed here. Generations have additional options to configure new generations.",
|
||||
"other": "These options will enable alternative processing modes for Invoke. Seamless tiling will work to generate repeating patterns in the output. High Resolution Optimization performs a two-step generation cycle, and should be used at higher resolutions when you desire a more coherent image/composition.",
|
||||
"seed": "Seed values provide an initial set of noise which guide the denoising process, and can be randomized or populated with a seed from a previous invocation. The Threshold feature can be used to mitigate undesirable outcomes at higher CFG values (try between 0-10), and Perlin can be used to add Perlin noise into the denoising process - Both serve to add variation to your outputs.",
|
||||
"variations": "Try a variation with an amount of between 0 and 1 to change the output image for the set seed - Interesting variations on the seed are found between 0.1 and 0.3.",
|
||||
"upscale": "Using ESRGAN you can increase the output resolution without requiring a higher width/height in the initial generation.",
|
||||
"faceCorrection": "Using GFPGAN or Codeformer, Face Correction will attempt to identify faces in outputs, and correct any defects/abnormalities. Higher strength values will apply a stronger corrective pressure on outputs, resulting in more appealing faces. With Codeformer, a higher fidelity will attempt to preserve the original image, at the expense of face correction strength.",
|
||||
"imageToImage": "Image to Image allows the upload of an initial image, which InvokeAI will use to guide the generation process, along with a prompt. A lower value for this setting will more closely resemble the original image. Values between 0-1 are accepted, and a range of .25-.75 is recommended.",
|
||||
"boundingBox": "The bounding box is analogous to the Width and Height settings for Text to Image or Image to Image. Only the area in the box will be processed.",
|
||||
"seamCorrection": "Control the handling of visible seams which may occur when a generated image is pasted back onto the canvas.",
|
||||
"infillAndScaling": "Manage infill methods (used on masked or erased areas of the canvas) and scaling (useful for small bounding box sizes)."
|
||||
}
|
||||
}
|
||||
15
frontend/dist/locales/tooltip/en.json
vendored
Normal file
15
frontend/dist/locales/tooltip/en.json
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"feature": {
|
||||
"prompt": "This field will take all prompt text, including both content and stylistic terms. While weights can be included in the prompt, standard CLI Commands/parameters will not work.",
|
||||
"gallery": "As new invocations are generated, files from the output directory will be displayed here. Generations have additional options to configure new generations.",
|
||||
"other": "These options will enable alternative processing modes for Invoke. Seamless tiling will work to generate repeating patterns in the output. High Resolution Optimization performs a two-step generation cycle, and should be used at higher resolutions when you desire a more coherent image/composition.",
|
||||
"seed": "Seed values provide an initial set of noise which guide the denoising process, and can be randomized or populated with a seed from a previous invocation. The Threshold feature can be used to mitigate undesirable outcomes at higher CFG values (try between 0-10), and Perlin can be used to add Perlin noise into the denoising process - Both serve to add variation to your outputs.",
|
||||
"variations": "Try a variation with an amount of between 0 and 1 to change the output image for the set seed - Interesting variations on the seed are found between 0.1 and 0.3.",
|
||||
"upscale": "Using ESRGAN you can increase the output resolution without requiring a higher width/height in the initial generation.",
|
||||
"faceCorrection": "Using GFPGAN or Codeformer, Face Correction will attempt to identify faces in outputs, and correct any defects/abnormalities. Higher strength values will apply a stronger corrective pressure on outputs, resulting in more appealing faces. With Codeformer, a higher fidelity will attempt to preserve the original image, at the expense of face correction strength.",
|
||||
"imageToImage": "Image to Image allows the upload of an initial image, which InvokeAI will use to guide the generation process, along with a prompt. A lower value for this setting will more closely resemble the original image. Values between 0-1 are accepted, and a range of .25-.75 is recommended.",
|
||||
"boundingBox": "The bounding box is analogous to the Width and Height settings for Text to Image or Image to Image. Only the area in the box will be processed.",
|
||||
"seamCorrection": "Control the handling of visible seams which may occur when a generated image is pasted back onto the canvas.",
|
||||
"infillAndScaling": "Manage infill methods (used on masked or erased areas of the canvas) and scaling (useful for small bounding box sizes)."
|
||||
}
|
||||
}
|
||||
1
frontend/dist/locales/tooltip/it.json
vendored
Normal file
1
frontend/dist/locales/tooltip/it.json
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{}
|
||||
15
frontend/dist/locales/tooltip/pl.json
vendored
Normal file
15
frontend/dist/locales/tooltip/pl.json
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"feature": {
|
||||
"prompt": "To pole musi zawierać cały tekst sugestii, w tym zarówno opis oczekiwanej zawartości, jak i terminy stylistyczne. Chociaż wagi mogą być zawarte w sugestiach, inne parametry znane z linii poleceń nie będą działać.",
|
||||
"gallery": "W miarę generowania nowych wywołań w tym miejscu będą wyświetlane pliki z katalogu wyjściowego. Obrazy mają dodatkowo opcje konfiguracji nowych wywołań.",
|
||||
"other": "Opcje umożliwią alternatywne tryby przetwarzania. Płynne scalanie będzie pomocne przy generowaniu powtarzających się wzorów. Optymalizacja wysokiej rozdzielczości wykonuje dwuetapowy cykl generowania i powinna być używana przy wyższych rozdzielczościach, gdy potrzebny jest bardziej spójny obraz/kompozycja.",
|
||||
"seed": "Inicjator określa początkowy zestaw szumów, który kieruje procesem odszumiania i może być losowy lub pobrany z poprzedniego wywołania. Funkcja \"Poziom szumu\" może być użyta do złagodzenia saturacji przy wyższych wartościach CFG (spróbuj między 0-10), a Perlin może być użyty w celu dodania wariacji do twoich wyników.",
|
||||
"variations": "Poziom zróżnicowania przyjmuje wartości od 0 do 1 i pozwala zmienić obraz wyjściowy dla ustawionego inicjatora. Interesujące wyniki uzyskuje się zwykle między 0,1 a 0,3.",
|
||||
"upscale": "Korzystając z ESRGAN, możesz zwiększyć rozdzielczość obrazu wyjściowego bez konieczności zwiększania szerokości/wysokości w ustawieniach początkowych.",
|
||||
"faceCorrection": "Poprawianie twarzy próbuje identyfikować twarze na obrazie wyjściowym i korygować wszelkie defekty/nieprawidłowości. W GFPGAN im większa siła, tym mocniejszy efekt. W metodzie Codeformer wyższa wartość oznacza bardziej wierne odtworzenie oryginalnej twarzy, nawet kosztem siły korekcji.",
|
||||
"imageToImage": "Tryb \"Obraz na obraz\" pozwala na załadowanie obrazu wzorca, który obok wprowadzonych sugestii zostanie użyty porzez InvokeAI do wygenerowania nowego obrazu. Niższa wartość tego ustawienia będzie bardziej przypominać oryginalny obraz. Akceptowane są wartości od 0 do 1, a zalecany jest zakres od 0,25 do 0,75.",
|
||||
"boundingBox": "Zaznaczony obszar odpowiada ustawieniom wysokości i szerokości w trybach Tekst na obraz i Obraz na obraz. Jedynie piksele znajdujące się w obszarze zaznaczenia zostaną uwzględnione podczas wywoływania nowego obrazu.",
|
||||
"seamCorrection": "Opcje wpływające na poziom widoczności szwów, które mogą wystąpić, gdy wygenerowany obraz jest ponownie wklejany na płótno.",
|
||||
"infillAndScaling": "Zarządzaj metodami wypełniania (używanymi na zamaskowanych lub wymazanych obszarach płótna) i skalowaniem (przydatne w przypadku zaznaczonego obszaru o b. małych rozmiarach)."
|
||||
}
|
||||
}
|
||||
1
frontend/dist/locales/tooltip/pt_br.json
vendored
Normal file
1
frontend/dist/locales/tooltip/pt_br.json
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{}
|
||||
1
frontend/dist/locales/tooltip/ru.json
vendored
Normal file
1
frontend/dist/locales/tooltip/ru.json
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -1 +1,50 @@
|
||||
{}
|
||||
{
|
||||
"modelManager": "模型管理器",
|
||||
"model": "模型",
|
||||
"modelAdded": "模型已添加",
|
||||
"modelUpdated": "模型已更新",
|
||||
"modelEntryDeleted": "模型已删除",
|
||||
"cannotUseSpaces": "不能使用空格",
|
||||
"addNew": "添加",
|
||||
"addNewModel": "添加新模型",
|
||||
"addManually": "手动添加",
|
||||
"manual": "手动",
|
||||
"name": "名称",
|
||||
"nameValidationMsg": "输入模型的名称",
|
||||
"description": "描述",
|
||||
"descriptionValidationMsg": "添加模型的描述",
|
||||
"config": "配置",
|
||||
"configValidationMsg": "模型配置文件的路径",
|
||||
"modelLocation": "模型位置",
|
||||
"modelLocationValidationMsg": "模型文件的路径",
|
||||
"vaeLocation": "VAE 位置",
|
||||
"vaeLocationValidationMsg": "VAE 文件的路径",
|
||||
"width": "宽度",
|
||||
"widthValidationMsg": "模型的默认宽度",
|
||||
"height": "高度",
|
||||
"heightValidationMsg": "模型的默认高度",
|
||||
"addModel": "添加模型",
|
||||
"updateModel": "更新模型",
|
||||
"availableModels": "可用模型",
|
||||
"search": "搜索",
|
||||
"load": "加载",
|
||||
"active": "活跃",
|
||||
"notLoaded": "未加载",
|
||||
"cached": "缓存",
|
||||
"checkpointFolder": "模型检查点文件夹",
|
||||
"clearCheckpointFolder": "清除模型检查点文件夹",
|
||||
"findModels": "寻找模型",
|
||||
"modelsFound": "找到的模型",
|
||||
"selectFolder": "选择文件夹",
|
||||
"selected": "已选择",
|
||||
"selectAll": "选择所有",
|
||||
"deselectAll": "取消选择所有",
|
||||
"showExisting": "显示已存在",
|
||||
"addSelected": "添加选择",
|
||||
"modelExists": "模型已存在",
|
||||
"delete": "删除",
|
||||
"deleteModel": "删除模型",
|
||||
"deleteConfig": "删除配置",
|
||||
"deleteMsg1": "您确定要将这个模型从 InvokeAI 删除吗?",
|
||||
"deleteMsg2": "这不会从磁盘中删除模型检查点文件。如果您愿意,可以重新添加它们。"
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"width": "Ширина",
|
||||
"height": "Высота",
|
||||
"sampler": "Семплер",
|
||||
"seed": "Сид (Seed)",
|
||||
"seed": "Сид",
|
||||
"randomizeSeed": "Случайный сид",
|
||||
"shuffle": "Обновить",
|
||||
"noiseThreshold": "Порог шума",
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"saveSteps": "Zapisuj obrazy co X kroków",
|
||||
"confirmOnDelete": "Potwierdzaj usuwanie",
|
||||
"displayHelpIcons": "Wyświetlaj ikony pomocy",
|
||||
"useCanvasBeta": "Nowego układ trybu uniwersalnego",
|
||||
"useCanvasBeta": "Nowy układ trybu uniwersalnego",
|
||||
"enableImageDebugging": "Włącz debugowanie obrazu",
|
||||
"resetWebUI": "Zresetuj interfejs",
|
||||
"resetWebUIDesc1": "Resetowanie interfejsu wyczyści jedynie dane i ustawienia zapisane w pamięci przeglądarki. Nie usunie żadnych obrazów z dysku.",
|
||||
|
||||
1
frontend/public/locales/tooltip/de.json
Normal file
1
frontend/public/locales/tooltip/de.json
Normal file
@@ -0,0 +1 @@
|
||||
{}
|
||||
15
frontend/public/locales/tooltip/en-US.json
Normal file
15
frontend/public/locales/tooltip/en-US.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"feature": {
|
||||
"prompt": "This field will take all prompt text, including both content and stylistic terms. While weights can be included in the prompt, standard CLI Commands/parameters will not work.",
|
||||
"gallery": "As new invocations are generated, files from the output directory will be displayed here. Generations have additional options to configure new generations.",
|
||||
"other": "These options will enable alternative processing modes for Invoke. Seamless tiling will work to generate repeating patterns in the output. High Resolution Optimization performs a two-step generation cycle, and should be used at higher resolutions when you desire a more coherent image/composition.",
|
||||
"seed": "Seed values provide an initial set of noise which guide the denoising process, and can be randomized or populated with a seed from a previous invocation. The Threshold feature can be used to mitigate undesirable outcomes at higher CFG values (try between 0-10), and Perlin can be used to add Perlin noise into the denoising process - Both serve to add variation to your outputs.",
|
||||
"variations": "Try a variation with an amount of between 0 and 1 to change the output image for the set seed - Interesting variations on the seed are found between 0.1 and 0.3.",
|
||||
"upscale": "Using ESRGAN you can increase the output resolution without requiring a higher width/height in the initial generation.",
|
||||
"faceCorrection": "Using GFPGAN or Codeformer, Face Correction will attempt to identify faces in outputs, and correct any defects/abnormalities. Higher strength values will apply a stronger corrective pressure on outputs, resulting in more appealing faces. With Codeformer, a higher fidelity will attempt to preserve the original image, at the expense of face correction strength.",
|
||||
"imageToImage": "Image to Image allows the upload of an initial image, which InvokeAI will use to guide the generation process, along with a prompt. A lower value for this setting will more closely resemble the original image. Values between 0-1 are accepted, and a range of .25-.75 is recommended.",
|
||||
"boundingBox": "The bounding box is analogous to the Width and Height settings for Text to Image or Image to Image. Only the area in the box will be processed.",
|
||||
"seamCorrection": "Control the handling of visible seams which may occur when a generated image is pasted back onto the canvas.",
|
||||
"infillAndScaling": "Manage infill methods (used on masked or erased areas of the canvas) and scaling (useful for small bounding box sizes)."
|
||||
}
|
||||
}
|
||||
15
frontend/public/locales/tooltip/en.json
Normal file
15
frontend/public/locales/tooltip/en.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"feature": {
|
||||
"prompt": "This field will take all prompt text, including both content and stylistic terms. While weights can be included in the prompt, standard CLI Commands/parameters will not work.",
|
||||
"gallery": "As new invocations are generated, files from the output directory will be displayed here. Generations have additional options to configure new generations.",
|
||||
"other": "These options will enable alternative processing modes for Invoke. Seamless tiling will work to generate repeating patterns in the output. High Resolution Optimization performs a two-step generation cycle, and should be used at higher resolutions when you desire a more coherent image/composition.",
|
||||
"seed": "Seed values provide an initial set of noise which guide the denoising process, and can be randomized or populated with a seed from a previous invocation. The Threshold feature can be used to mitigate undesirable outcomes at higher CFG values (try between 0-10), and Perlin can be used to add Perlin noise into the denoising process - Both serve to add variation to your outputs.",
|
||||
"variations": "Try a variation with an amount of between 0 and 1 to change the output image for the set seed - Interesting variations on the seed are found between 0.1 and 0.3.",
|
||||
"upscale": "Using ESRGAN you can increase the output resolution without requiring a higher width/height in the initial generation.",
|
||||
"faceCorrection": "Using GFPGAN or Codeformer, Face Correction will attempt to identify faces in outputs, and correct any defects/abnormalities. Higher strength values will apply a stronger corrective pressure on outputs, resulting in more appealing faces. With Codeformer, a higher fidelity will attempt to preserve the original image, at the expense of face correction strength.",
|
||||
"imageToImage": "Image to Image allows the upload of an initial image, which InvokeAI will use to guide the generation process, along with a prompt. A lower value for this setting will more closely resemble the original image. Values between 0-1 are accepted, and a range of .25-.75 is recommended.",
|
||||
"boundingBox": "The bounding box is analogous to the Width and Height settings for Text to Image or Image to Image. Only the area in the box will be processed.",
|
||||
"seamCorrection": "Control the handling of visible seams which may occur when a generated image is pasted back onto the canvas.",
|
||||
"infillAndScaling": "Manage infill methods (used on masked or erased areas of the canvas) and scaling (useful for small bounding box sizes)."
|
||||
}
|
||||
}
|
||||
1
frontend/public/locales/tooltip/it.json
Normal file
1
frontend/public/locales/tooltip/it.json
Normal file
@@ -0,0 +1 @@
|
||||
{}
|
||||
15
frontend/public/locales/tooltip/pl.json
Normal file
15
frontend/public/locales/tooltip/pl.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"feature": {
|
||||
"prompt": "To pole musi zawierać cały tekst sugestii, w tym zarówno opis oczekiwanej zawartości, jak i terminy stylistyczne. Chociaż wagi mogą być zawarte w sugestiach, inne parametry znane z linii poleceń nie będą działać.",
|
||||
"gallery": "W miarę generowania nowych wywołań w tym miejscu będą wyświetlane pliki z katalogu wyjściowego. Obrazy mają dodatkowo opcje konfiguracji nowych wywołań.",
|
||||
"other": "Opcje umożliwią alternatywne tryby przetwarzania. Płynne scalanie będzie pomocne przy generowaniu powtarzających się wzorów. Optymalizacja wysokiej rozdzielczości wykonuje dwuetapowy cykl generowania i powinna być używana przy wyższych rozdzielczościach, gdy potrzebny jest bardziej spójny obraz/kompozycja.",
|
||||
"seed": "Inicjator określa początkowy zestaw szumów, który kieruje procesem odszumiania i może być losowy lub pobrany z poprzedniego wywołania. Funkcja \"Poziom szumu\" może być użyta do złagodzenia saturacji przy wyższych wartościach CFG (spróbuj między 0-10), a Perlin może być użyty w celu dodania wariacji do twoich wyników.",
|
||||
"variations": "Poziom zróżnicowania przyjmuje wartości od 0 do 1 i pozwala zmienić obraz wyjściowy dla ustawionego inicjatora. Interesujące wyniki uzyskuje się zwykle między 0,1 a 0,3.",
|
||||
"upscale": "Korzystając z ESRGAN, możesz zwiększyć rozdzielczość obrazu wyjściowego bez konieczności zwiększania szerokości/wysokości w ustawieniach początkowych.",
|
||||
"faceCorrection": "Poprawianie twarzy próbuje identyfikować twarze na obrazie wyjściowym i korygować wszelkie defekty/nieprawidłowości. W GFPGAN im większa siła, tym mocniejszy efekt. W metodzie Codeformer wyższa wartość oznacza bardziej wierne odtworzenie oryginalnej twarzy, nawet kosztem siły korekcji.",
|
||||
"imageToImage": "Tryb \"Obraz na obraz\" pozwala na załadowanie obrazu wzorca, który obok wprowadzonych sugestii zostanie użyty porzez InvokeAI do wygenerowania nowego obrazu. Niższa wartość tego ustawienia będzie bardziej przypominać oryginalny obraz. Akceptowane są wartości od 0 do 1, a zalecany jest zakres od 0,25 do 0,75.",
|
||||
"boundingBox": "Zaznaczony obszar odpowiada ustawieniom wysokości i szerokości w trybach Tekst na obraz i Obraz na obraz. Jedynie piksele znajdujące się w obszarze zaznaczenia zostaną uwzględnione podczas wywoływania nowego obrazu.",
|
||||
"seamCorrection": "Opcje wpływające na poziom widoczności szwów, które mogą wystąpić, gdy wygenerowany obraz jest ponownie wklejany na płótno.",
|
||||
"infillAndScaling": "Zarządzaj metodami wypełniania (używanymi na zamaskowanych lub wymazanych obszarach płótna) i skalowaniem (przydatne w przypadku zaznaczonego obszaru o b. małych rozmiarach)."
|
||||
}
|
||||
}
|
||||
1
frontend/public/locales/tooltip/pt_br.json
Normal file
1
frontend/public/locales/tooltip/pt_br.json
Normal file
@@ -0,0 +1 @@
|
||||
{}
|
||||
1
frontend/public/locales/tooltip/ru.json
Normal file
1
frontend/public/locales/tooltip/ru.json
Normal file
@@ -0,0 +1 @@
|
||||
{}
|
||||
@@ -1,3 +1,6 @@
|
||||
import { useMemo } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
type FeatureHelpInfo = {
|
||||
text: string;
|
||||
href: string;
|
||||
@@ -21,60 +24,71 @@ export enum Feature {
|
||||
*
|
||||
* To-do: href & GuideImages are placeholders, and are not currently utilized, but will be updated (along with the tooltip UI) as feature and UI develop and we get a better idea on where things "forever homes" will be .
|
||||
*/
|
||||
export const FEATURES: Record<Feature, FeatureHelpInfo> = {
|
||||
[Feature.PROMPT]: {
|
||||
text: 'This field will take all prompt text, including both content and stylistic terms. While weights can be included in the prompt, standard CLI Commands/parameters will not work.',
|
||||
href: 'link/to/docs/feature3.html',
|
||||
guideImage: 'asset/path.gif',
|
||||
},
|
||||
[Feature.GALLERY]: {
|
||||
text: 'As new invocations are generated, files from the output directory will be displayed here. Generations have additional options to configure new generations.',
|
||||
href: 'link/to/docs/feature3.html',
|
||||
guideImage: 'asset/path.gif',
|
||||
},
|
||||
[Feature.OTHER]: {
|
||||
text: 'These options will enable alternative processing modes for Invoke. Seamless tiling will work to generate repeating patterns in the output. High Resolution Optimization performs a two-step generation cycle, and should be used at higher resolutions when you desire a more coherent image/composition. ',
|
||||
href: 'link/to/docs/feature3.html',
|
||||
guideImage: 'asset/path.gif',
|
||||
},
|
||||
[Feature.SEED]: {
|
||||
text: 'Seed values provide an initial set of noise which guide the denoising process, and can be randomized or populated with a seed from a previous invocation. The Threshold feature can be used to mitigate undesirable outcomes at higher CFG values (try between 0-10), and Perlin can be used to add Perlin noise into the denoising process - Both serve to add variation to your outputs. ',
|
||||
href: 'link/to/docs/feature3.html',
|
||||
guideImage: 'asset/path.gif',
|
||||
},
|
||||
[Feature.VARIATIONS]: {
|
||||
text: 'Try a variation with an amount of between 0 and 1 to change the output image for the set seed - Interesting variations on the seed are found between 0.1 and 0.3.',
|
||||
href: 'link/to/docs/feature3.html',
|
||||
guideImage: 'asset/path.gif',
|
||||
},
|
||||
[Feature.UPSCALE]: {
|
||||
text: 'Using ESRGAN you can increase the output resolution without requiring a higher width/height in the initial generation.',
|
||||
href: 'link/to/docs/feature1.html',
|
||||
guideImage: 'asset/path.gif',
|
||||
},
|
||||
[Feature.FACE_CORRECTION]: {
|
||||
text: 'Using GFPGAN or Codeformer, Face Correction will attempt to identify faces in outputs, and correct any defects/abnormalities. Higher strength values will apply a stronger corrective pressure on outputs, resulting in more appealing faces. With Codeformer, a higher fidelity will attempt to preserve the original image, at the expense of face correction strength.',
|
||||
href: 'link/to/docs/feature3.html',
|
||||
guideImage: 'asset/path.gif',
|
||||
},
|
||||
[Feature.IMAGE_TO_IMAGE]: {
|
||||
text: 'Image to Image allows the upload of an initial image, which InvokeAI will use to guide the generation process, along with a prompt. A lower value for this setting will more closely resemble the original image. Values between 0-1 are accepted, and a range of .25-.75 is recommended ',
|
||||
href: 'link/to/docs/feature3.html',
|
||||
guideImage: 'asset/path.gif',
|
||||
},
|
||||
[Feature.BOUNDING_BOX]: {
|
||||
text: 'The bounding box is analogous to the Width and Height settings for Text to Image or Image to Image. Only the area in the box will be processed.',
|
||||
href: 'link/to/docs/feature3.html',
|
||||
guideImage: 'asset/path.gif',
|
||||
},
|
||||
[Feature.SEAM_CORRECTION]: {
|
||||
text: 'Control the handling of visible seams which may occur when a generated image is pasted back onto the canvas.',
|
||||
href: 'link/to/docs/feature3.html',
|
||||
guideImage: 'asset/path.gif',
|
||||
},
|
||||
[Feature.INFILL_AND_SCALING]: {
|
||||
text: 'Manage infill methods (used on masked or erased areas of the canvas) and scaling (useful for small bounding box sizes).',
|
||||
href: 'link/to/docs/feature3.html',
|
||||
guideImage: 'asset/path.gif',
|
||||
},
|
||||
const useFeatures = (): Record<Feature, FeatureHelpInfo> => {
|
||||
const { t } = useTranslation();
|
||||
return useMemo(
|
||||
() => ({
|
||||
[Feature.PROMPT]: {
|
||||
text: t('tooltip:feature.prompt'),
|
||||
href: 'link/to/docs/feature3.html',
|
||||
guideImage: 'asset/path.gif',
|
||||
},
|
||||
[Feature.GALLERY]: {
|
||||
text: t('tooltip:feature.gallery'),
|
||||
href: 'link/to/docs/feature3.html',
|
||||
guideImage: 'asset/path.gif',
|
||||
},
|
||||
[Feature.OTHER]: {
|
||||
text: t('tooltip:feature.other'),
|
||||
href: 'link/to/docs/feature3.html',
|
||||
guideImage: 'asset/path.gif',
|
||||
},
|
||||
[Feature.SEED]: {
|
||||
text: t('tooltip:feature.seed'),
|
||||
href: 'link/to/docs/feature3.html',
|
||||
guideImage: 'asset/path.gif',
|
||||
},
|
||||
[Feature.VARIATIONS]: {
|
||||
text: t('tooltip:feature.variations'),
|
||||
href: 'link/to/docs/feature3.html',
|
||||
guideImage: 'asset/path.gif',
|
||||
},
|
||||
[Feature.UPSCALE]: {
|
||||
text: t('tooltip:feature.upscale'),
|
||||
href: 'link/to/docs/feature1.html',
|
||||
guideImage: 'asset/path.gif',
|
||||
},
|
||||
[Feature.FACE_CORRECTION]: {
|
||||
text: t('tooltip:feature.faceCorrection'),
|
||||
href: 'link/to/docs/feature3.html',
|
||||
guideImage: 'asset/path.gif',
|
||||
},
|
||||
[Feature.IMAGE_TO_IMAGE]: {
|
||||
text: t('tooltip:feature.imageToImage'),
|
||||
href: 'link/to/docs/feature3.html',
|
||||
guideImage: 'asset/path.gif',
|
||||
},
|
||||
[Feature.BOUNDING_BOX]: {
|
||||
text: t('tooltip:feature.boundingBox'),
|
||||
href: 'link/to/docs/feature3.html',
|
||||
guideImage: 'asset/path.gif',
|
||||
},
|
||||
[Feature.SEAM_CORRECTION]: {
|
||||
text: t('tooltip:feature.seamCorrection'),
|
||||
href: 'link/to/docs/feature3.html',
|
||||
guideImage: 'asset/path.gif',
|
||||
},
|
||||
[Feature.INFILL_AND_SCALING]: {
|
||||
text: t('tooltip:feature.infillAndScaling'),
|
||||
href: 'link/to/docs/feature3.html',
|
||||
guideImage: 'asset/path.gif',
|
||||
},
|
||||
}),
|
||||
[t]
|
||||
);
|
||||
};
|
||||
|
||||
export const useFeatureHelpInfo = (feature: Feature): FeatureHelpInfo => {
|
||||
const features = useFeatures();
|
||||
return features[feature];
|
||||
};
|
||||
|
||||
@@ -10,7 +10,7 @@ import { useAppSelector } from 'app/storeHooks';
|
||||
import { RootState } from 'app/store';
|
||||
import { createSelector } from '@reduxjs/toolkit';
|
||||
import { ReactElement } from 'react';
|
||||
import { Feature, FEATURES } from 'app/features';
|
||||
import { Feature, useFeatureHelpInfo } from 'app/features';
|
||||
|
||||
type GuideProps = {
|
||||
children: ReactElement;
|
||||
@@ -24,7 +24,7 @@ const systemSelector = createSelector(
|
||||
|
||||
const GuidePopover = ({ children, feature }: GuideProps) => {
|
||||
const shouldDisplayGuides = useAppSelector(systemSelector);
|
||||
const { text } = FEATURES[feature];
|
||||
const { text } = useFeatureHelpInfo(feature);
|
||||
|
||||
if (!shouldDisplayGuides) return null;
|
||||
|
||||
|
||||
2
frontend/src/i18.d.ts
vendored
2
frontend/src/i18.d.ts
vendored
@@ -8,6 +8,7 @@ import gallery from '../public/locales/gallery/en.json';
|
||||
import toast from '../public/locales/toast/en.json';
|
||||
import hotkeys from '../public/locales/hotkeys/en.json';
|
||||
import settings from '../public/locales/settings/en.json';
|
||||
import tooltip from '../public/locales/tooltip/en.json';
|
||||
import modelmanager from '../public/locales/modelmanager/en.json';
|
||||
|
||||
declare module 'i18next' {
|
||||
@@ -24,6 +25,7 @@ declare module 'i18next' {
|
||||
toast: typeof toast;
|
||||
hotkeys: typeof hotkeys;
|
||||
settings: typeof settings;
|
||||
tooltip: typeof tooltip;
|
||||
modelmanager: typeof modelmanager;
|
||||
};
|
||||
// Never Return Null
|
||||
|
||||
@@ -12,13 +12,14 @@ i18n
|
||||
debug: false,
|
||||
ns: [
|
||||
'common',
|
||||
'options',
|
||||
'unifiedcanvas',
|
||||
'gallery',
|
||||
'toast',
|
||||
'hotkeys',
|
||||
'options',
|
||||
'settings',
|
||||
'modelmanager',
|
||||
'toast',
|
||||
'tooltip',
|
||||
'unifiedcanvas',
|
||||
],
|
||||
backend: {
|
||||
loadPath: '/locales/{{ns}}/{{lng}}.json',
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
VERSION=$(grep ^VERSION ../setup.py | awk '{ print $3 }' | sed "s/'//g" )
|
||||
VERSION="$VERSION-p3"
|
||||
PATCH="-rc5"
|
||||
VERSION="${VERSION}${PATCH}"
|
||||
|
||||
echo "Be certain that you're in the 'installer' directory before continuing."
|
||||
read -p "Press any key to continue, or CTRL-C to exit..."
|
||||
@@ -23,7 +24,7 @@ cp -pr ../configs InvokeAI-Installer/templates/rootdir/
|
||||
|
||||
mkdir InvokeAI-Installer/templates/rootdir/{outputs,embeddings,models}
|
||||
|
||||
cp install.sh.in InvokeAI-Installer/install.sh
|
||||
perl -p -e "s/^INVOKEAI_VERSION=.*/INVOKEAI_VERSION=\"$VERSION\"/" install.sh.in > InvokeAI-Installer/install.sh
|
||||
chmod a+rx InvokeAI-Installer/install.sh
|
||||
|
||||
zip -r InvokeAI-installer-$VERSION-linux.zip InvokeAI-Installer
|
||||
@@ -31,7 +32,7 @@ zip -r InvokeAI-installer-$VERSION-mac.zip InvokeAI-Installer
|
||||
|
||||
# now do the windows installer
|
||||
rm InvokeAI-Installer/install.sh
|
||||
cp install.bat.in InvokeAI-Installer/install.bat
|
||||
perl -p -e "s/^set INVOKEAI_VERSION=.*/set INVOKEAI_VERSION=$VERSION/" install.bat.in > InvokeAI-Installer/install.bat
|
||||
cp WinLongPathsEnabled.reg InvokeAI-Installer/
|
||||
|
||||
# this gets rid of the "-e ." at the end of the windows requirements file
|
||||
|
||||
@@ -13,9 +13,9 @@ if "%1" == "use-cache" (
|
||||
)
|
||||
|
||||
@rem Config
|
||||
@rem this should be changed to the tagged release!
|
||||
@rem set INVOKE_AI_SRC=https://github.com/invoke-ai/InvokeAI/archive/main.zip
|
||||
set INVOKEAI_VERSION="2.2.5-rc2"
|
||||
@rem The version in the next line is replaced by an up to date release number
|
||||
@rem when create_installer.sh is run. Change the release number there.
|
||||
set INVOKEAI_VERSION=latest
|
||||
set INVOKE_AI_SRC=https://github.com/invoke-ai/InvokeAI/archive/refs/tags/%INVOKEAI_VERSION%.zip
|
||||
set INSTRUCTIONS=https://invoke-ai.github.io/InvokeAI/installation/INSTALL_AUTOMATED/
|
||||
set TROUBLESHOOTING=https://invoke-ai.github.io/InvokeAI/installation/INSTALL_AUTOMATED/#troubleshooting
|
||||
|
||||
@@ -4,14 +4,14 @@
|
||||
scriptdir=$(dirname "$0")
|
||||
cd "$scriptdir"
|
||||
|
||||
INVOKEAI_VERSION="2.2.5-rc2"
|
||||
# This version number will be replaced by the one supplied to create_installers.sh.
|
||||
# Do not change it here - change it in create_installers.sh.
|
||||
INVOKEAI_VERSION="latest"
|
||||
|
||||
# make sure we are not already in a venv
|
||||
# (don't need to check status)
|
||||
deactivate >/dev/null 2>&1
|
||||
|
||||
# this should be changed to the tagged release!
|
||||
# INVOKE_AI_SRC=https://github.com/invoke-ai/InvokeAI/archive/main.zip
|
||||
INVOKE_AI_SRC=https://github.com/invoke-ai/InvokeAI/archive/refs/tags/${INVOKEAI_VERSION}.zip
|
||||
INSTRUCTIONS=https://invoke-ai.github.io/InvokeAI/installation/INSTALL_AUTOMATED/
|
||||
TROUBLESHOOTING=https://invoke-ai.github.io/InvokeAI/installation/INSTALL_AUTOMATED/#troubleshooting
|
||||
|
||||
@@ -242,6 +242,9 @@ class ModelCache(object):
|
||||
# merged models from auto11 merge board are flat for some reason
|
||||
if 'state_dict' in sd:
|
||||
sd = sd['state_dict']
|
||||
|
||||
print(f' | Forcing garbage collection prior to loading new model')
|
||||
gc.collect()
|
||||
model = instantiate_from_config(omega_config.model)
|
||||
model.load_state_dict(sd, strict=False)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user