We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3b1d2ca + 4581f14 commit 0fe59b6Copy full SHA for 0fe59b6
examples/community/clip_guided_stable_diffusion.py
@@ -148,7 +148,7 @@ def cond_fn(
148
image = transforms.Resize(self.feature_extractor.size)(image)
149
image = self.normalize(image)
150
151
- image_embeddings_clip = self.clip_model.get_image_features(image).float()
+ image_embeddings_clip = self.clip_model.get_image_features(image)
152
image_embeddings_clip = image_embeddings_clip / image_embeddings_clip.norm(p=2, dim=-1, keepdim=True)
153
154
if use_cutouts:
0 commit comments