code: def __init__(self, **kwargs):
      self.load("structure", **kwargs)
  
      cmd = kwargs.get("cmd", {})
      if "name" not in cmd:
          cmd["name"] = self.structure.model_name
  
      self.load_all(**kwargs)
      self.distributed = cmd.get("distributed", False)
      self.local_rank = cmd.get("local_rank", 0)
  
      if cmd.get("validate", False):
          self.load("validation", **kwargs)
      else:
          self.validation = None
  
file_path: EasyOCR/easyocr/DBNet/model/detector.py
imports: from .None import model
  from .constructor import Configurable, State
label_desc: Use image node_id 1 to create a new Detector object from inherited base classes: Configurable with example: obj = Detector()