mirror of
https://github.com/brycedrennan/imaginAIry
synced 2024-11-05 12:00:15 +00:00
Fix loading mask image from command line
This commit is contained in:
parent
8e844f2eae
commit
9fdd38fc11
@ -114,6 +114,9 @@ class ImaginePrompt:
|
|||||||
self.prompt_strength = prompt_strength
|
self.prompt_strength = prompt_strength
|
||||||
if isinstance(init_image, str):
|
if isinstance(init_image, str):
|
||||||
init_image = LazyLoadingImage(filepath=init_image)
|
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:
|
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`")
|
raise ValueError("You can only set one of `mask_image` and `mask_prompt`")
|
||||||
|
Loading…
Reference in New Issue
Block a user