Fixes AttributeError: 'dict' object has no attribute 'invert_mask'

This commit is contained in:
psychedelicious 2022-11-12 21:12:48 +11:00 committed by blessedcoolant
parent e3735ebb45
commit bb79c78fe8

View File

@ -138,9 +138,7 @@ export const frontendToBackendParameters = (
generationParameters.init_img = imageToProcessUrl;
generationParameters.strength = img2imgStrength;
if (shouldPreserveMaskedArea) {
generationParameters.invert_mask = true;
}
generationParameters.invert_mask = shouldPreserveMaskedArea;
if (shouldUseInpaintReplace) {
generationParameters.inpaint_replace = inpaintReplace;