class_docstr: VioletBase module
class_docstr_tok: ["VioletBase","module"]
code: def __init__(self):
      super().__init__()
  
      self.enc_img, self.enc_txt = EncImg(), EncTxt()
      bert = transformers.BertForMaskedLM.from_pretrained(
          "bert-base-uncased"
      )
      self.mask_ext, self.trsfr = (
          bert.get_extended_attention_mask,
          bert.bert.encoder,
      )
  
file_path: towhee/towhee/models/violet/violet.py
imports: import torch
  import os
  from towhee.models.video_swin_transformer.video_swin_transformer import VideoSwinTransformer
label_desc: Use image node_id 1 to create a new VioletBase object from inherited base classes: torch.nn with example: obj = VioletBase()