InvokeAI icon indicating copy to clipboard operation
InvokeAI copied to clipboard

Fix error when init_mask=None and invert_mask=True

Open wfng92 opened this issue 3 years ago • 0 comments

In the event where no init_mask is given and invert_mask is set to True, the script will raise the following error:

AttributeError: 'NoneType' object has no attribute 'mode'

The new implementation will run image inversion only when both variables are valid.

wfng92 avatar Dec 08 '22 10:12 wfng92