API Overview
Modules
apiapi.hypergraphapi.scripts.wait_process: wait for a process to finish.api.transformsapi.transforms.imageapi.transforms.image.ioapi.transforms.image.photometricapi.transforms.image.spatialapi.transforms.randomapi.transforms.semsegapi.utilscore.datasetcore.graph: containsNodeandExecutableGraph.core.hypergraphcore.losscore.metriccore.modulecore.optimllutilllutil.argparser: parse arguments for functions and command line.llutil.boardllutil.collectionsllutil.configllutil.debugllutil.dictprocessllutil.file_clientllutil.ignore_mellutil.launcherllutil.launcher.elastic_multiprocessingllutil.launcher.eventsllutil.launcher.launch_agentllutil.launcher.launcherllutil.launcher.local_elastic_agentllutil.logger: logging utilities.llutil.multiprocessing: a drop-in replacement fortorch.multiprocessing.llutil.printllutil.pycuda: Integrates PyCUDA to PyTorch and ice.llutil.shadow_tbllutil.test: helps developers of ice to test.llutil.utils
Classes
dataset.DatasetNode: Automating DataLoader and DataSampler creation and maintainance.dataset.ResumableDistributedSamplergraph.ExecutableGraph: an executable graph.graph.GraphOutputCache: a cache for storing and searching forward outputs of nodes.graph.InvalidURIError: An Exception raised when valid node URI is expected.graph.Node: This class defines the executable node.graph.StopAllTasks: An Exception raised to exit current running.graph.StopTask: An Exception raised to exit current task.hypergraph.Counter: Counter object.hypergraph.GlobalCounters: Global counters object.hypergraph.HyperGraph: HyperGraph is the container for all nodes.hypergraph.Repeat: Repeat a task for a fixed number of times.hypergraph.ResumeTaskFailed: raised when task structure does not match during resuming.hypergraph.Task: A task is a unit of computation.loss.LossMode: An enumeration.loss.LossNodemetric.AverageMetermetric.DictMetricmetric.Meter: value reducer that works recursively.metric.MetricNodemetric.MovingAverageMetermetric.SummationMetermetric.ValueMetermodule.ModuleNode: a node that extendstorch.nn.Moduleoptim.Optimizer: Optimizer configuration API for ice-learn.argparser.ArgumentMissingError: Raised when a required argument is missing from command line.argparser.ArgumentTypeError: Raised when converting an argument failed.argparser.FlexibleArgParser: A flexible and lightweight argument parser that saves loads of code.board.BoardWritercollections.ConfigDict: stores multi-level configurations easily.collections.Counter: count values by group.collections.Dict: access dict values as attributes.config.Configurabledebug.SubProcessPdb: Pdb that works from a multiprocessing childfile_client.BaseStorageBackend: Abstract class of storage backends.file_client.CephBackend: Ceph storage backend (for internal use).file_client.FileClient: A general file client to access files in different backends.file_client.HTTPBackend: HTTP and HTTPS storage bachend.file_client.HardDiskBackend: Raw hard disks storage backend.file_client.LmdbBackend: Lmdb storage backend.file_client.MemcachedBackend: Memcached storage backend.file_client.PetrelBackend: Petrel storage backend (for internal use).ignore_me.IgnoreMeelastic_multiprocessing.MultiprocessContext:PContextholding worker processes invoked as a function.elastic_multiprocessing.PContext: The base class that standardizes operations over a set of processeselastic_multiprocessing.TailLog: Tails the given log files. The log files do not have to exist when theevents.Events: Communicate among main process (agent) and subprocesses (workers).launch_agent.LaunchConfig: Creates a rendezvous config.launcher.ElasticLauncher: A helperConfigurableclass fortorchrunandtorch.distributed.launch.local_elastic_agent.LocalElasticAgent: An implementation of :py:class:torchelastic.agent.server.ElasticAgentpycuda.CUDAModule: Just-In-Time compilation of a set of CUDA kernel functions and device functions from source.
Functions
api.DatasetNodehypergraph.LoadCheckpointTaskhypergraph.SaveCheckpointTaskhypergraph.addhypergraph.backup_source_fileshypergraph.get_default_graphhypergraph.init_autocasthypergraph.init_grad_scalerhypergraph.print_forward_outputhypergraph.runhypergraph.set_gradient_accumulateio.Load: Args:io.imfrombytes: Read an image from bytes.io.imread: Read an image.io.imwrite: Write image to file.io.use_backend: Select a backend for image decoding.photometric.Normalize: Normalize the image and convert BGR2RGB.photometric.PhotoMetricDistortion: Apply photometric distortion to image sequentially, every dictprocessationphotometric.ToTensor: Args:spatial.Crop: crop a region of interest from thesrcarray.spatial.Flip: flip thesrcimage.spatial.Pad: Padding a image to target size.spatial.Resize: Args:spatial.SizeDivisorMultiple: Returns a smallest but larger shape to ensure each edge to be multiple to some number.random.RandomChoicerandom.RandomDorandom.RandomFloatsrandom.RandomImage: generate a random image for testing purposerandom.RandomIntegersrandom.RandomProbabilitiesrandom.RandomROI: generate random region of interest.semseg.LabelToTensor: Convert to tensor (as int64).semseg.LoadAnnotation: Load annotations for semantic segmentation.semseg.RandomCrop: Crop a pair of images and segmentation labels such that the class is relatively balanced for training.utils.parse_devicesdataset.failsafe_collate: Puts each data field into a tensor with outer dimension batch sizehypergraph.GlobalCounters.__init__hypergraph.LoadCheckpointTask: Load checkpoint from a file.hypergraph.SaveCheckpointTask: Save checkpoint to a file.argparser.as_dict: helps to regularize input into a dict.argparser.as_list: helps to regularize input into list of element.argparser.get_hostnameargparser.is_list_of: Check whether it is a list of some type.argparser.is_seq_of: Check whether it is a sequence of some type.argparser.is_tuple_of: Check whether it is a tuple of some type.argparser.isa: an alias for python built-inisinstance.argparser.parse_scalarconfig.clone: clone configurables, containers, and ordinary objects recursively.config.configurable: This decorator delays the initialization ofclsuntilfreeze().config.freeze: freeze configurables recursively.config.frozenconfig.has_builderconfig.is_configurable: check if a class or an object is configurable.config.make_configurable: This function converts multiple existing classes to configurables.config.objattrdebug.set_tracedictprocess.Collect: a predefined DictProcessor that keep only selected entries.dictprocess.Compose: a predefined DictProcessor that composes a list of other DictProcessors together.dictprocess.dictprocess: a decorator that convert function into a DictProcessor (Callable[[Dict], Dict]).file_client.has_method: Check whether the object has a method.file_client.mmcv_mkdir_or_existelastic_multiprocessing.start_processes: Startsncopies ofentrypointprocesses with the provided options.elastic_multiprocessing.tail_logfilelaunch_agent.LaunchConfig.__init__launch_agent.launch_agentlauncher.get_current_launcherlogger.get_logger: set up a simple logger that writes into stderr.print.format_size: Format a byte count as a human readable file size.print.set_printoptionsshadow_tb.shadowtest.requires_n_gpusutils.auto_freeze_enabledutils.enable_auto_freezeutils.in_main_process: Whether current process is worker process or main process.utils.init_torch_multiprocessing