fix extension loader

This commit is contained in:
Vladimir Mandic
2023-04-14 15:18:54 -04:00
parent fea40d7951
commit 4e6eef0fce
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -60,6 +60,7 @@ def compatibility_args(opts, args):
parser.add_argument("--bsrgan-models-path", type=str, help=argparse.SUPPRESS, default=opts.bsrgan_models_path)
parser.add_argument("--realesrgan-models-path", type=str, help=argparse.SUPPRESS, default=opts.realesrgan_models_path)
parser.add_argument("--clip-models-path", type=str, help=argparse.SUPPRESS, default=opts.clip_models_path)
args = parser.parse_args()
if vars(parser)['_option_string_actions'].get('--lora-dir', None) is not None:
args.lora_dir = opts.lora_dir
return args
+1 -1
View File
@@ -111,4 +111,4 @@ def setup_model(dirname):
shared.face_restorers.append(FaceRestorerGFPGAN())
except Exception as e:
errors.exception(e, 'gfpgan')
errors.display(e, 'gfpgan')