MCPcopy Create free account

hub / github.com/Project-MONAI/MONAI / functions

Functions7,906 in github.com/Project-MONAI/MONAI

↓ 1 callersMethod_split_datalist
(self, datalist: list[dict])
monai/apps/datasets.py:662
↓ 1 callersMethod_split_tensor
(self, x: torch.Tensor, split_size: int, padding: int)
monai/apps/generation/maisi/networks/autoencoderkl_maisi.py:185
↓ 1 callersMethod_std
(x)
monai/transforms/intensity/array.py:882
↓ 1 callersFunction_strtobool
Replaces deprecated (pre python 3.12) distutils strtobool function. True values are y, yes, t, true, on and 1; False values are n, n
monai/utils/misc.py:81
↓ 1 callersFunction_swap_modules
This function swaps nested modules as specified by "dot paths" in mod with a desired replacement. This allows for swapping nested modules thr
monai/networks/utils.py:1353
↓ 1 callersMethod_switch_lps_ras
For compatibility with nibabel, switch from LPS to RAS. Adapt affine matrix and `space` argument in header accordingly. If no informa
monai/data/image_reader.py:1581
↓ 1 callersMethod_test_apply_impl
(self, tensor, pending_transforms, expected_shape)
tests/transforms/functional/test_apply.py:42
↓ 1 callersMethod_test_to_tuple_of_dictionaries
(self, dictionary, keys, expected)
tests/utils/misc/test_monai_utils_misc.py:54
↓ 1 callersFunction_to_numpy_resample_interp_mode
(interp_mode)
monai/transforms/utils.py:2251
↓ 1 callersFunction_to_numpy_resample_padding_mode
(m)
monai/transforms/utils.py:2285
↓ 1 callersFunction_to_torch_resample_interp_mode
(interp_mode)
monai/transforms/utils.py:2270
↓ 1 callersFunction_to_torch_resample_padding_mode
(m)
monai/transforms/utils.py:2300
↓ 1 callersFunction_torch_all_gather
Implementation based on native PyTorch distributed data parallel APIs.
monai/utils/dist.py:82
↓ 1 callersMethod_train_algo_in_nni
Train the Algos using HPO. Args: history: the history of generated Algos. It is a list of dicts. Each element has the ta
monai/apps/auto3dseg/auto_runner.py:745
↓ 1 callersMethod_train_algo_in_sequence
Train the Algos in a sequential scheme. The order of training is randomized. Args: history: the history of generated Alg
monai/apps/auto3dseg/auto_runner.py:720
↓ 1 callersMethod_train_batch
( self, train_iter: TrainDataLoaderIter, accumulation_steps: int, non_blocking_transfer: bool = True
monai/optimizers/lr_finder.py:396
↓ 1 callersMethod_transform_holes
Transform the randomly selected `self.hole_coords` in input images.
monai/transforms/intensity/array.py:2388
↓ 1 callersMethod_transform_template
(self)
monai/utils/ordering.py:112
↓ 1 callersMethod_transpose_template
(self, template: np.ndarray)
monai/utils/ordering.py:123
↓ 1 callersMethod_try_manage_replacement
Wait thread lock and replace training items in the background thread.
monai/data/dataset.py:1238
↓ 1 callersMethod_try_shutdown
Wait for thread lock to shut down the background thread.
monai/data/dataset.py:1191
↓ 1 callersMethod_try_update_cache
Update the cache items with new replacement for current epoch.
monai/data/dataset.py:1156
↓ 1 callersMethod_update_spatial_metadata
Set spatial_shape explicitly from resolved shape.
monai/transforms/post/dictionary.py:710
↓ 1 callersMethod_validate
(self, val_iter: ValDataLoaderIter, non_blocking_transfer: bool = True)
monai/optimizers/lr_finder.py:431
↓ 1 callersFunction_validate_embeddings
(embeddings: torch.Tensor)
monai/metrics/embedding_collapse.py:404
↓ 1 callersMethod_validate_filter_fn
(filter_fn)
monai/inferers/splitter.py:150
↓ 1 callersMethodabort
Abort the training or evaluation. Args: extra: Dict with additional information that can be provided by the FL system.
monai/fl/client/monai_algo.py:674
↓ 1 callersFunctionadd_animated_gif
Creates an animated gif out of an image tensor in 'CHWD' format and writes it with SummaryWriter. Args: writer: Tensorboard SummaryWriter
monai/visualize/img2tensorboard.py:116
↓ 1 callersFunctionadd_casts_around_norms
Top-level function to add cast wrappers around modules known to cause issues for FP16/autocast ONNX export NOTE: This occurs in place, if you
monai/networks/utils.py:1401
↓ 1 callersFunctionadd_decomposed_rel_pos
r""" Calculate decomposed Relative Positional Embeddings from mvitv2 implementation: https://github.com/facebookresearch/mvit/blob/19786631e33
monai/networks/blocks/attention_utils.py:50
↓ 1 callersMethodadd_def
Returns a decorator which stores the decorated function under `name` with description `desc`.
monai/utils/component_store.py:71
↓ 1 callersMethodadd_guidance
(self, discrepancy, will_interact)
monai/apps/deepgrow/transforms.py:308
↓ 1 callersMethodadd_guidance
(self, guidance, discrepancy, label_names, labels)
monai/apps/deepedit/transforms.py:581
↓ 1 callersMethodadd_inferer
Add model inferer to the builder. Args: identifier: name of the bundleAlgo. gen_algo: a trained BundleAlgo m
monai/apps/auto3dseg/ensemble_builder.py:361
↓ 1 callersMethodadd_noise
Add noise to the original samples. Args: original_samples: original samples noise: noise to add to samples
monai/networks/schedulers/rectified_flow.py:180
↓ 1 callersMethodadd_result
Add a result in a thread-safe manner to the internal results dictionary.
monai/utils/profiling.py:297
↓ 1 callersMethodadditive_upsampling
(self, x, mid)
monai/networks/blocks/localnet_block.py:243
↓ 1 callersMethodaffine
Get the affine. Defaults to ``torch.eye(4, dtype=torch.float64)``
monai/data/meta_tensor.py:464
↓ 1 callersFunctionalgo_from_pickle
Import the Algo object from a pickle file. **Unsafe**; prefer ``algo_from_json``. Disabled unless ``MONAI_ALLOW_PICKLE=1`` is set. See ``_load_le
monai/auto3dseg/utils.py:706
↓ 1 callersMethodalgo_hash
()
monai/utils/misc.py:545
↓ 1 callersFunctionalgo_to_pickle
Export the Algo object to a pickle file. **Unsafe**; prefer ``algo_to_json``. Pickle can execute arbitrary code on load. This function is disable
monai/auto3dseg/utils.py:678
↓ 1 callersMethodallocate_buffers
Allocates outputs to run TRT engine Args: device: GPU device to allocate memory on
monai/networks/trt_compiler.py:153
↓ 1 callersMethodallow_pickle
If true, Auto3DSeg algo (de)serialization may use pickle. Default False. Pickle can execute arbitrary code on load and should only be enabled
monai/utils/misc.py:569
↓ 1 callersFunctionanalyze_data
Analyze (training) data Args: datalist_json: original data list .json (required by most monai tutorials). data_dir: raw data
monai/apps/nnunet/utils.py:38
↓ 1 callersMethodapply
(self, data: torch.Tensor)
monai/transforms/regularization/array.py:181
↓ 1 callersFunctionapply_affine_to_points
apply affine transformation to a set of points. Args: data: input data to apply affine transformation, should be a tensor of shape (
monai/transforms/utils.py:2582
↓ 1 callersFunctionapply_alias
(fn, name_map)
monai/transforms/adaptors.py:215
↓ 1 callersFunctionapply_pending_transforms_in_order
This method causes "in order" processing of pending transforms to occur. "in order" processing of pending transforms ensures that all pending
monai/transforms/lazy/functional.py:146
↓ 1 callersFunctionargwhere
`np.argwhere` with equivalent implementation for torch. Args: a: input data. Returns: Indices of elements that are non-zero.
monai/transforms/utils_pytorch_numpy_unification.py:159
↓ 1 callersMethodattach
Args: engine: Ignite Engine, it can be a trainer, validator or evaluator.
monai/handlers/classification_saver.py:94
↓ 1 callersMethodattach
Args: engine: Ignite Engine, it can be a trainer, validator or evaluator.
monai/handlers/earlystop_handler.py:98
↓ 1 callersMethodattach
Args: engine: Ignite Engine, it can be a trainer, validator or evaluator.
monai/handlers/validation_handler.py:66
↓ 1 callersMethodattach_evaluator
Attach event handlers to the given evaluator to log metric values from it. Args: evaluator: Ignite Engine implementing
monai/handlers/metric_logger.py:94
↓ 1 callersMethodattenuation_weighting
Compute attenuation weighting Args: img (NDArray): Image alpha: Attenuation coefficient (see publication) Re
monai/data/ultrasound_confidence_map.py:176
↓ 1 callersMethodbackward
(ctx, grad_output)
monai/visualize/gradient_based.py:39
↓ 1 callersMethodbackward_hook
(self, name)
monai/visualize/class_activation_maps.py:95
↓ 1 callersFunctionbatched_nms
Performs non-maximum suppression in a batched fashion. Each labels value correspond to a category, and NMS will not be applied between elemen
monai/data/box_utils.py:1162
↓ 1 callersMethodbce
Compute Binary CrossEntropy loss for the input logits and target in one single class.
monai/losses/dice.py:818
↓ 1 callersFunctionbench
(t1, t2)
tests/profile_subclass/profiling.py:30
↓ 1 callersFunctionblend_images
Blend an image and a label. Both should have the shape CHW[D]. The image may have C==1 or 3 channels (greyscale or RGB). The label is exp
monai/visualize/utils.py:164
↓ 1 callersMethodbounding_box
(self, points, img_shape)
monai/apps/deepgrow/transforms.py:638
↓ 1 callersFunctionbox_iou
Compute the intersection over union (IoU) of two set of boxes. Args: boxes1: bounding boxes, Nx4 or Nx6 torch tensor or ndarray. The
monai/data/box_utils.py:820
↓ 1 callersFunctionbuffer_iterator
Create a ThreadBuffer object using the `src`, `buffer_size`, and `timeout` parameters given for the constructor arguments of the same names,
monai/data/thread_buffer.py:83
↓ 1 callersMethodbuild_bottom_block
(self, in_channels: int, out_channels: int)
monai/networks/nets/regunet.py:153
↓ 1 callersMethodbuild_decode_layers
(self)
monai/networks/nets/regunet.py:170
↓ 1 callersMethodbuild_down_sampling_block
(self, channels: int)
monai/networks/nets/regunet.py:150
↓ 1 callersMethodbuild_encode_layers
(self)
monai/networks/nets/regunet.py:115
↓ 1 callersFunctionbuild_fourier_position_embedding
Builds a (Anistropic) Fourier feature position embedding based on the given grid size, embed dimension, spatial dimensions, and scales. The s
monai/networks/blocks/pos_embed_utils.py:34
↓ 1 callersMethodbuild_layers
(self)
monai/networks/nets/regunet.py:111
↓ 1 callersMethodbuild_output_block
(self)
monai/networks/nets/regunet.py:194
↓ 1 callersMethodbuild_up_sampling_block
(self, in_channels: int, out_channels: int)
monai/networks/nets/regunet.py:191
↓ 1 callersMethodcalc_head
(self, x: torch.Tensor)
monai/networks/nets/milmodel.py:172
↓ 1 callersMethodcalculate_percentiles
This function is used to calculate the percentiles of intensities (and median) of the input dataset. To get the required values, all
monai/data/dataset_summary.py:173
↓ 1 callersMethodcalculate_statistics
This function is used to calculate the maximum, minimum, mean and standard deviation of intensities of the input dataset. Ar
monai/data/dataset_summary.py:136
↓ 1 callersFunctioncase_1_seconds
(arg=None)
tests/test_timedcall_dist.py:23
↓ 1 callersFunctioncase_1_seconds_bad
(arg=None)
tests/test_timedcall_dist.py:47
↓ 1 callersFunctioncase_1_seconds_skip
(arg=None)
tests/test_timedcall_dist.py:29
↓ 1 callersFunctioncase_1_seconds_timeout
(arg=None)
tests/test_timedcall_dist.py:35
↓ 1 callersFunctioncase_1_seconds_timeout_warning
(arg=None)
tests/test_timedcall_dist.py:41
↓ 1 callersFunctioncase_pdb
(sarg=None)
tests/bundle/test_config_parser.py:38
↓ 1 callersFunctioncase_pdb_inst
(sarg=None)
tests/bundle/test_config_parser.py:45
↓ 1 callersFunctioncast_tensor
Utility function to cast a single tensor from from_dtype to to_dtype
monai/networks/utils.py:1257
↓ 1 callersFunctioncheck_applied_operations
Check the operations of a MetaTensor to determine whether there are any statuses Args: entry: a dictionary that may contain TraceKey.
monai/transforms/utils.py:2370
↓ 1 callersFunctioncheck_confusion_matrix_metric_name
There are many metrics related to confusion matrix, and some of the metrics have more than one names. In addition, some of the names are very
monai/metrics/confusion_matrix.py:274
↓ 1 callersMethodcheck_deep_supr_num
(self)
monai/networks/nets/dynunet.py:253
↓ 1 callersFunctioncheck_dict_values_same_length
We expect the values in ``head_outputs``: Dict[str, List[Tensor]] to have the same length. Will raise ValueError if not. Args: h
monai/apps/detection/utils/predict_utils.py:44
↓ 1 callersMethodcheck_filters
(self)
monai/networks/nets/dynunet.py:261
↓ 1 callersFunctioncheck_input_images
Validate the input dimensionality (raise a `ValueError` if invalid). Args: input_images: It can be 1) a tensor sized (B, C, H, W) or
monai/apps/detection/utils/detector_utils.py:28
↓ 1 callersMethodcheck_kernel_stride
(self)
monai/networks/nets/dynunet.py:236
↓ 1 callersMethodcheck_match
(self, in1, in2)
tests/data/utils/test_decollate.py:94
↓ 1 callersMethodcheck_number_of_iou
Check if shape of input in first dimension is consistent with expected IoU values (assumes IoU dimension is the first dimension)
monai/apps/detection/metrics/coco.py:174
↓ 1 callersMethodcheck_output_consistency
(self, actual, expected)
tests/networks/nets/test_network_consistency.py:77
↓ 1 callersFunctioncheck_training_targets
Validate the input images/targets during training (raise a `ValueError` if invalid). Args: input_images: It can be 1) a tensor sized
monai/apps/detection/utils/detector_utils.py:55
↓ 1 callersMethodcheck_transforms_match
Check whether a traced transform entry matches this transform. When multiprocessing uses ``spawn``, transform instances are recreated,
monai/transforms/inverse.py:304
↓ 1 callersMethodclass_score
(self, logits: torch.Tensor, class_idx: int)
monai/visualize/class_activation_maps.py:127
↓ 1 callersMethodclear_pending_operations
(self)
monai/data/meta_obj.py:233
↓ 1 callersFunctioncollate_meta_tensor_fn
Collate a sequence of meta tensor into a single batched metatensor. This is called by `collage_meta_tensor` and so should not be used as a co
monai/data/utils.py:419
↓ 1 callersMethodcollect_algos
(self, *args, **kwargs)
monai/apps/auto3dseg/ensemble_builder.py:235
↓ 1 callersMethodcollect_meta_data
This function is used to collect the metadata for all images of the dataset.
monai/data/dataset_summary.py:81
↓ 1 callersFunctioncombine_transforms
Given transforms A and B to be applied to x, return the combined transform (AB), so that A(B(x)) becomes AB(x)
monai/transforms/lazy/utils.py:68
← previousnext →1,601–1,700 of 7,906, ranked by callers