class_docstr: Implements an object able to localize text elements in a document
  
  Args:
  ----
      pre_processor: transform inputs for easier batched model inference
      model: core detection architecture
code: def __init__(
      self,
      pre_processor: PreProcessor,
      model: nn.Module,
  ) -> None:
      super().__init__()
      self.pre_processor = pre_processor
      self.model = model.eval()
  
file_path: doctr/doctr/models/detection/predictor/pytorch.py
imports: from typing import Any, Dict, List, Tuple, Union
  import numpy
  import torch
  from torch import nn
  from doctr.models.preprocessor import PreProcessor
  from doctr.models.utils import set_device_and_dtype
label_desc: Use image node_id 1 to create a new DetectionPredictor object from inherited base classes: nn with example: obj = DetectionPredictor(pre_processor, model)