Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-l committed Oct 6, 2022
2 parents 3b1d2ca + 4581f14 commit 0fe59b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/community/clip_guided_stable_diffusion.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def cond_fn(
image = transforms.Resize(self.feature_extractor.size)(image)
image = self.normalize(image)

image_embeddings_clip = self.clip_model.get_image_features(image).float()
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)

if use_cutouts:
Expand Down

0 comments on commit 0fe59b6

Please sign in to comment.