Merge pull request #24 from dfyx/fix-mask-image

Fix loading mask image from command line
pull/25/head
Bryce Drennan 2 years ago committed by GitHub
commit 5f1dd5c3b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -114,6 +114,9 @@ class ImaginePrompt:
self.prompt_strength = prompt_strength
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`")

Loading…
Cancel
Save