InvokeAI
InvokeAI copied to clipboard
Fix error when init_mask=None and invert_mask=True
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.