remove sd_local_file from instruct_pix2pix
This commit is contained in:
parent
b7c51c0e72
commit
5950cc9c38
@ -16,7 +16,7 @@ class InstructPix2Pix(DiffusionInpaintModel):
|
|||||||
from diffusers import StableDiffusionInstructPix2PixPipeline
|
from diffusers import StableDiffusionInstructPix2PixPipeline
|
||||||
fp16 = not kwargs.get('no_half', False)
|
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):
|
if kwargs['disable_nsfw'] or kwargs.get('cpu_offload', False):
|
||||||
logger.info("Disable Stable Diffusion Model NSFW checker")
|
logger.info("Disable Stable Diffusion Model NSFW checker")
|
||||||
model_kwargs.update(dict(
|
model_kwargs.update(dict(
|
||||||
|
Loading…
Reference in New Issue
Block a user