class_docstr: The ``ObjectDetectionData`` class is a :class:`~flash.core.data.data_module.DataModule` with a set of
  classmethods for loading data for object detection.
class_docstr_tok: ["The","``","ObjectDetectionData","``","class","is","a",":","class",":","`","~flash.core.data.data_module.DataModule","`","with","a","set","of","classmethods","for","loading","data","for","object","detection","."]
code: def from_icedata(
      cls,
      train_folder: Optional[str] = None,
      train_ann_file: Optional[str] = None,
      train_parser_kwargs: Optional[Dict[str, Any]] = None,
      val_folder: Optional[str] = None,
      val_ann_file: Optional[str] = None,
      val_parser_kwargs: Optional[Dict[str, Any]] = None,
      test_folder: Optional[str] = None,
      test_ann_file: Optional[str] = None,
      test_parser_kwargs: Optional[Dict[str, Any]] = None,
      predict_folder: Optional[str] = None,
      transform: INPUT_TRANSFORM_TYPE = IceVisionInputTransform,
      parser: Optional[Union[Callable, Type[Parser]]] = None,
      input_cls: Type[Input] = IceVisionInput,
      transform_kwargs: Optional[Dict] = None,
      **data_module_kwargs,
  ) -> "ObjectDetectionData":
      ds_kw = {"parser": parser}
  
      return cls(
          input_cls(
              RunningStage.TRAINING,
              train_folder,
              train_ann_file,
              parser_kwargs=train_parser_kwargs,
              **ds_kw,
          ),
          input_cls(
              RunningStage.VALIDATING,
              val_folder,
              val_ann_file,
              parser_kwargs=val_parser_kwargs,
              **ds_kw,
          ),
          input_cls(
              RunningStage.TESTING,
              test_folder,
              test_ann_file,
              parser_kwargs=test_parser_kwargs,
              **ds_kw,
          ),
          input_cls(RunningStage.PREDICTING, predict_folder, **ds_kw),
          transform=transform,
          transform_kwargs=transform_kwargs,
          **data_module_kwargs,
      )
  
imports: from functools import partial
  from typing import Any, Callable, Collection, Dict, List, Optional, Sequence, Type, Union
  import numpy
  import torch
  from flash.core.data.data_module import DataModule
  from flash.core.data.io.input import Input
  from flash.core.data.utilities.classification import TargetFormatter
  from flash.core.data.utilities.sort import sorted_alphanumeric
  from flash.core.integrations.icevision.data import IceVisionInput
  from flash.core.integrations.icevision.transforms import IceVisionInputTransform
  from flash.core.utilities.imports import _FIFTYONE_AVAILABLE, _ICEVISION_AVAILABLE, _TOPIC_IMAGE_AVAILABLE, Image, requires
  from flash.core.utilities.stages import RunningStage
  from flash.core.utilities.types import INPUT_TRANSFORM_TYPE
  from flash.image.detection.input import ObjectDetectionFiftyOneInput, ObjectDetectionFilesInput, ObjectDetectionImageInput, ObjectDetectionNumpyInput, ObjectDetectionTensorInput
label_desc: Use image node_id 5 for calling the ObjectDetectionData obj's underlying member method code with example usage: obj.from_icedata(cls, train_folder, train_ann_file, train_parser_kwargs, val_folder, val_ann_file, val_parser_kwargs, test_folder, test_ann_file, test_parser_kwargs, predict_folder, transform, parser, input_cls, transform_kwargs) and returns: cls