mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix typo in error message
This commit is contained in:
parent
aa95510444
commit
18ae3949ef
@ -921,7 +921,7 @@ class Generate:
|
|||||||
r[0] = image
|
r[0] = image
|
||||||
|
|
||||||
def apply_textmask(self, image_path:str, prompt:str, callback, threshold:float=0.5):
|
def apply_textmask(self, image_path:str, prompt:str, callback, threshold:float=0.5):
|
||||||
assert os.path.exists(image_path), '** "{image_path}" not found. Please enter the name of an existing image file to mask **'
|
assert os.path.exists(image_path), f'** "{image_path}" not found. Please enter the name of an existing image file to mask **'
|
||||||
basename,_ = os.path.splitext(os.path.basename(image_path))
|
basename,_ = os.path.splitext(os.path.basename(image_path))
|
||||||
if self.txt2mask is None:
|
if self.txt2mask is None:
|
||||||
self.txt2mask = Txt2Mask(device = self.device, refined=True)
|
self.txt2mask = Txt2Mask(device = self.device, refined=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user