class_docstr: VioletBase module
class_docstr_tok: ["VioletBase","module"]
code: def load_ckpt(self, ckpt):
      if ckpt == "":
          print("===== Init VIOLET =====")
          return
  
      ckpt_new, ckpt_old = (
          torch.load(ckpt, map_location="cpu"),
          self.state_dict(),
      )
      key_old = set(ckpt_old.keys())
      for k in ckpt_new:
          if k in ckpt_old and ckpt_new[k].shape == ckpt_old[k].shape:
              ckpt_old[k] = ckpt_new[k]
              key_old.remove(k)
      self.load_state_dict(ckpt_old)
      print("===== Not Load:", key_old, "=====")
  
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 4 for calling the VioletBase obj's underlying member method code with example usage: obj.load_ckpt(ckpt) without return types