class_docstr: Configuration for running a :class:`TorchOpenClipModel`.
  
  See :class:`fiftyone.utils.torch.TorchImageModelConfig` for additional
  arguments.
  
  Args:
      text_prompt: the text prompt to use, e.g., ``"A photo of"``
      clip_model ("ViT-B-32"): the Open CLIP model to use
      pretrained ("openai"): the pretrained version to use
      classes (None): a list of custom classes for zero-shot prediction
class_docstr_tok: ["Configuration","for","running","a",":","class",":","`","TorchOpenClipModel","`",".","See",":","class",":","`","fiftyone.utils.torch.TorchImageModelConfig","`","for","additional","arguments",".","Args",":","text_prompt",":","the","text","prompt","to","use",",","e.g.",",","``","``","A","photo","of","''","``","clip_model","(","``","ViT-B-32","''",")",":","the","Open","CLIP","model","to","use","pretrained","(","``","openai","''",")",":","the","pretrained","version","to","use","classes","(","None",")",":","a","list","of","custom","classes","for","zero-shot","prediction"]
code: def __init__(self, d):
      d = self.init(d)
      super().__init__(d)
  
      self.text_prompt = self.parse_string(d, "text_prompt")
      self.clip_model = self.parse_string(
          d, "clip_model", default="ViT-B-32"
      )
      self.pretrained = self.parse_string(
          d, "pretrained", default="openai"
      )
  
imports: import logging
  import fiftyone.core.models
  import fiftyone.core.utils
  import fiftyone.utils.torch
  import fiftyone.zoo.models
  import torch
label_desc: Use image node_id 1 to create a new TorchOpenClipModelConfig object from inherited base classes: fout, fozm with example: obj = TorchOpenClipModelConfig(d)