mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Fixes AttributeError: 'dict' object has no attribute 'invert_mask'
This commit is contained in:
parent
e3735ebb45
commit
bb79c78fe8
@ -138,9 +138,7 @@ export const frontendToBackendParameters = (
|
|||||||
generationParameters.init_img = imageToProcessUrl;
|
generationParameters.init_img = imageToProcessUrl;
|
||||||
generationParameters.strength = img2imgStrength;
|
generationParameters.strength = img2imgStrength;
|
||||||
|
|
||||||
if (shouldPreserveMaskedArea) {
|
generationParameters.invert_mask = shouldPreserveMaskedArea;
|
||||||
generationParameters.invert_mask = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (shouldUseInpaintReplace) {
|
if (shouldUseInpaintReplace) {
|
||||||
generationParameters.inpaint_replace = inpaintReplace;
|
generationParameters.inpaint_replace = inpaintReplace;
|
||||||
|
Loading…
Reference in New Issue
Block a user