瀏覽代碼

fix a bug with error message

AUTOMATIC 2 年之前
父節點
當前提交
77f8a72fa8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/paths.py

+ 1 - 1
modules/paths.py

@@ -12,7 +12,7 @@ for possible_sd_path in possible_sd_paths:
     if os.path.exists(os.path.join(possible_sd_path, 'ldm/models/diffusion/ddpm.py')):
     if os.path.exists(os.path.join(possible_sd_path, 'ldm/models/diffusion/ddpm.py')):
         sd_path = os.path.abspath(possible_sd_path)
         sd_path = os.path.abspath(possible_sd_path)
 
 
-assert sd_path is not None, "Couldn't find Stable Diffusion in any of: " + possible_sd_paths
+assert sd_path is not None, "Couldn't find Stable Diffusion in any of: " + str(possible_sd_paths)
 
 
 path_dirs = [
 path_dirs = [
     (sd_path, 'ldm', 'Stable Diffusion'),
     (sd_path, 'ldm', 'Stable Diffusion'),