class_docstr: Converts Ultralytics PyTorch Hub model outputs to FiftyOne format.
class_docstr_tok: ["Converts","Ultralytics","PyTorch","Hub","model","outputs","to","FiftyOne","format","."]
code: def __call__(self, result, frame_size, confidence_thresh=None):
      batch = []
      for df in result.pandas().xywhn:
          if confidence_thresh is not None:
              df = df[df["confidence"] >= confidence_thresh]
  
          batch.append(self._to_detections(df))
  
      return batch
  
imports: import itertools
  import numpy
  from PIL import Image
  from fiftyone.core.config import Config
  import fiftyone.core.labels
  from fiftyone.core.models import Model
  import fiftyone.utils.torch
  import fiftyone.core.utils
label_desc: Use image node_id 1 for calling the UltralyticsOutputProcessor obj's underlying member method code with example usage: obj.__call__(result, frame_size, confidence_thresh) and returns: batch