From b2cf57d8ff4e60f3ef9b17b09af2a5ed733dcf59 Mon Sep 17 00:00:00 2001 From: Ryan Dick Date: Thu, 6 Jun 2024 11:44:42 -0400 Subject: [PATCH] Remove unused 'uses_inpainting_model' monkey-patch. I don't know the original origin of this patch, but there are currently no other references to it in InvokeAI or diffusers. --- invokeai/app/invocations/latent.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/invokeai/app/invocations/latent.py b/invokeai/app/invocations/latent.py index ca3fd64b82..beba9b09b3 100644 --- a/invokeai/app/invocations/latent.py +++ b/invokeai/app/invocations/latent.py @@ -84,9 +84,6 @@ def get_scheduler( scheduler = scheduler_class.from_config(scheduler_config) - # hack copied over from generate.py - if not hasattr(scheduler, "uses_inpainting_model"): - scheduler.uses_inpainting_model = lambda: False assert isinstance(scheduler, Scheduler) return scheduler