mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-02-25 17:23:58 +00:00
i
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user