From 5950cc9c38d1d68d8b8ef85e31e3de014de67ed6 Mon Sep 17 00:00:00 2001 From: Qing Date: Sat, 28 Jan 2023 21:50:55 +0800 Subject: [PATCH] remove sd_local_file from instruct_pix2pix --- lama_cleaner/model/instruct_pix2pix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lama_cleaner/model/instruct_pix2pix.py b/lama_cleaner/model/instruct_pix2pix.py index 1b33e6b..b343800 100644 --- a/lama_cleaner/model/instruct_pix2pix.py +++ b/lama_cleaner/model/instruct_pix2pix.py @@ -16,7 +16,7 @@ class InstructPix2Pix(DiffusionInpaintModel): from diffusers import StableDiffusionInstructPix2PixPipeline fp16 = not kwargs.get('no_half', False) - model_kwargs = {"local_files_only": kwargs.get('local_files_only', kwargs['sd_run_local'])} + model_kwargs = {"local_files_only": kwargs.get('local_files_only', False)} if kwargs['disable_nsfw'] or kwargs.get('cpu_offload', False): logger.info("Disable Stable Diffusion Model NSFW checker") model_kwargs.update(dict(