Commit 2fa55fc7 authored by anton-l's avatar anton-l
Browse files

Merge remote-tracking branch 'origin/main'

parents 95311501 737195dd
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -146,7 +146,7 @@ class CLIPGuidedStableDiffusion(DiffusionPipeline):
image = self.make_cutouts(image, num_cutouts)
else:
image = transforms.Resize(self.feature_extractor.size)(image)
image = self.normalize(image)
image = self.normalize(image).to(latents.dtype)
image_embeddings_clip = self.clip_model.get_image_features(image)
image_embeddings_clip = image_embeddings_clip / image_embeddings_clip.norm(p=2, dim=-1, keepdim=True)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment