-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Hi,
Here in the Clipper, before encoding the image, the code seems normalize the latent twice. Is this correct?
def embed_image(self, image): `
"""Expects images in -1 to 1 range"""
clip_in = F.interpolate(image, self.clip_size, mode="area")
clip_in = self.normalize(0.5*clip_in + 0.5).clamp(0,1)
return self.clip.encode_image(self.normalize(clip_in))
Metadata
Metadata
Assignees
Labels
No labels