Fix loading mask image from command line

This commit is contained in:
Christian Käser 2022-09-23 20:33:11 +02:00 committed by GitHub
parent 8e844f2eae
commit 9fdd38fc11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,6 +115,9 @@ class ImaginePrompt:
if isinstance(init_image, str):
init_image = LazyLoadingImage(filepath=init_image)
if isinstance(mask_image, str):
mask_image = LazyLoadingImage(filepath=mask_image)
if mask_image is not None and mask_prompt is not None:
raise ValueError("You can only set one of `mask_image` and `mask_prompt`")