mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-05-01 11:41:23 +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(
|
||||
|
||||
Reference in New Issue
Block a user