class_docstr: FiftyOne wrapper around a ``transformers.models`` model for object
  detection.
  
  Args:
      config: a `FiftyOneTransformerConfig`
class_docstr_tok: ["FiftyOne","wrapper","around","a","``","transformers.models","``","model","for","object","detection",".","Args",":","config",":","a","`","FiftyOneTransformerConfig","`"]
code: def _predict(self, inputs, target_sizes):
      with torch.no_grad():
          outputs = self.model(**inputs)
  
      results = self.image_processor.post_process_object_detection(
          outputs, target_sizes=target_sizes
      )
      image_shapes = [i[::-1] for i in target_sizes]
      return to_detections(
          results, self.model.config.id2label, image_shapes
      )
  
imports: import numpy
  from fiftyone.core.config import Config
  import fiftyone.core.labels
  from fiftyone.core.models import Model, EmbeddingsMixin
  import fiftyone.core.utils
label_desc: Use image node_id 2 for calling the FiftyOneTransformerForObjectDetection obj's underlying member method code with example usage: obj._predict(inputs, target_sizes) and returns: to_detections