mirror of
https://github.com/brycedrennan/imaginAIry
synced 2024-11-05 12:00:15 +00:00
Merge pull request #24 from dfyx/fix-mask-image
Fix loading mask image from command line
This commit is contained in:
commit
5f1dd5c3b8
@ -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`")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user