Update preprocessor_clipvision.py

This commit is contained in:
lllyasviel
2024-01-29 20:31:23 -08:00
parent 586bd9cd8d
commit ea52d04768

View File

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