mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-02-09 17:39:59 +00:00
rev
This commit is contained in:
@@ -125,6 +125,8 @@ class PreprocessorClipVision(Preprocessor):
|
||||
|
||||
return self.clipvision
|
||||
|
||||
@torch.no_grad()
|
||||
@torch.inference_mode()
|
||||
def __call__(self, input_image, resolution, slider_1=None, slider_2=None, slider_3=None, **kwargs):
|
||||
clipvision = self.load_clipvision()
|
||||
return clipvision.encode_image(numpy_to_pytorch(input_image))
|
||||
|
||||
Reference in New Issue
Block a user