class_docstr: Uses the CLIP image encoder.
class_docstr_tok: ["Uses","the","CLIP","image","encoder","."]
code: def preprocess(self, x):
      # normalize to [0,1]
      x = kornia.geometry.resize(
          x,
          (224, 224),
          interpolation="bicubic",
          align_corners=True,
          antialias=self.antialias,
      )
      x = (x + 1.0) / 2.0
      # renormalize according to clip
      x = kornia.enhance.normalize(x, self.mean, self.std)
      return x
  
imports: import torch
  import torch.nn
  from functools import partial
  import clip
  from einops import rearrange, repeat
  from transformers import CLIPTokenizer, CLIPTextModel
  import kornia
  from ldm.modules.x_transformer import Encoder, TransformerWrapper
label_desc: Use image node_id 2 for calling the FrozenClipImageEmbedder obj's underlying member method code with example usage: obj.preprocess(x) and returns: x