This commit is contained in:
lllyasviel
2024-01-29 20:06:01 -08:00
parent e326535b5a
commit 9e97abeebb
2 changed files with 3 additions and 4 deletions

View File

@@ -29,9 +29,8 @@ class PreprocessorClipVision(Preprocessor):
)
self.clipvision = ldm_patched.modules.clip_vision.load(ckpt_path)
input_image = numpy_to_pytorch(input_image)
return self.clipvision.encode_image(input_image)
# For IPAdapter Format
return self.clipvision, input_image
add_supported_preprocessor(PreprocessorClipVision(

View File

@@ -28,7 +28,7 @@ class IPAdapterPatcher(ControlModelPatcher):
super().__init__(model_patcher)
self.ipadapter = model_patcher
return
def process_before_every_sampling(self, process, cond, *args, **kwargs):
a = 0
return