class_docstr: Generates preds from model output.
class_docstr_tok: ["Generates","preds","from","model","output","."]
code: def per_batch_transform(batch: Any) -> Any:
      scales = batch["scales"]
      paddings = batch["paddings"]
  
      batch.pop("scales", None)
      batch.pop("paddings", None)
  
      preds = batch[DataKeys.PREDS]
  
      # preds: list of Tensor(N, 5) as x1, y1, x2, y2, score
      preds = [
          preds[preds[:, 5] == batch_idx, :5]
          for batch_idx in range(len(preds))
      ]
      return ff.utils.preprocess.adjust_results(preds, scales, paddings)
  
imports: from typing import Any
  from flash.core.data.io.input import DataKeys
  from flash.core.data.io.output_transform import OutputTransform
  from flash.core.utilities.imports import _FASTFACE_AVAILABLE
label_desc: Use image node_id 1 for calling the FaceDetectionOutputTransform obj's underlying member method code with example usage: obj.per_batch_transform(batch) and returns: ff