From 18ae3949efe76929ec6d1569916ccccdf84ae75f Mon Sep 17 00:00:00 2001 From: Lincoln Stein Date: Fri, 18 Nov 2022 20:53:49 +0000 Subject: [PATCH] fix typo in error message --- ldm/generate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldm/generate.py b/ldm/generate.py index f4979f132e..e544cbde4f 100644 --- a/ldm/generate.py +++ b/ldm/generate.py @@ -921,7 +921,7 @@ class Generate: r[0] = image 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)) if self.txt2mask is None: self.txt2mask = Txt2Mask(device = self.device, refined=True)