MCPcopy Create free account

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

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

↓ 3 callersFunctionroot_sum_of_squares_t
Compute the root sum of squares (rss) of the data (typically done for multi-coil MRI samples) Args: x: Input tensor spatial_
monai/apps/reconstruction/mri_utils.py:19
↓ 3 callersMethodrun
Run the bundle workflow, it can be a training, evaluation or inference.
monai/bundle/workflows.py:148
↓ 3 callersMethodrun
(self)
tests/nonconfig_workflow.py:111
↓ 3 callersFunctionscale_affine
Compute the scaling matrix according to the new spatial size Args: spatial_size: original spatial size. new_spatial_size: ne
monai/transforms/utils.py:2100
↓ 3 callersFunctionscale_batch_size
(input_shape: Sequence[int], scale_num: int)
monai/networks/utils.py:81
↓ 3 callersMethodset_data
Set the input data and run deterministic transforms to generate cache content. Note: should call this func after an entire epoch and
monai/data/dataset.py:860
↓ 3 callersMethodset_ensemble_method
Set the bundle ensemble method Args: ensemble_method_name: the name of the ensemble method. Only two methods are support
monai/apps/auto3dseg/ensemble_builder.py:452
↓ 3 callersMethodset_metadata
Resample ``self.data_obj`` if needed. This method assumes ``self.data_obj`` is a 'channel-last' ndarray. Args: meta_dic
monai/data/image_writer.py:425
↓ 3 callersMethodset_random_state
( self, seed: int | None = None, state: np.random.RandomState | None = None )
monai/transforms/intensity/dictionary.py:423
↓ 3 callersMethodset_random_state
( self, seed: int | None = None, state: np.random.RandomState | None = None )
monai/transforms/croppad/dictionary.py:973
↓ 3 callersMethodset_random_state
( self, seed: int | None = None, state: np.random.RandomState | None = None )
monai/transforms/croppad/array.py:745
↓ 3 callersMethodshape_factor
Calculate the factors (divisors) that the input image shape must be divisible by
monai/networks/nets/segresnet_ds.py:387
↓ 3 callersFunctionsoft_clip
Apply soft clip to the input array or tensor. The intensity values will be soft clipped according to f(x) = x + (1/sharpness_factor)*soft
monai/transforms/utils.py:150
↓ 3 callersMethodsplit_id
Split the id string into a list of strings by `cls.sep`. Args: id: id string to be split. last: whether to s
monai/bundle/reference_resolver.py:233
↓ 3 callersMethodstep
Predict the sample at the previous timestep by reversing the SDE. Core function to propagate the diffusion process from the learned m
monai/networks/schedulers/ddpm.py:186
↓ 3 callersMethodsummarize
Summarize the input list of data and generates a report ready for json/yaml export. Args: data: a list of data dicts.
monai/auto3dseg/seg_summarizer.py:173
↓ 3 callersFunctiontest_onnx_save
Test the ability to save `net` in ONNX format, reload it and validate with runtime. The value `inputs` is forward-passed through the `net` wi
tests/test_utils.py:809
↓ 3 callersFunctiontorch_parallel_backend
()
setup.py:57
↓ 3 callersMethodtrain_single_model
Run the training on a single GPU with one specified configuration provided. Note: if CUDA_VISIBLE_DEVICES is already set and gpu_id r
monai/apps/nnunet/nnunetv2_runner.py:500
↓ 3 callersMethodtranspose_for_scores
(self, x)
monai/networks/nets/transchex.py:128
↓ 3 callersFunctionunravel_indices
Computing unravel coordinates from indices. Args: idx: a sequence of indices to unravel. shape: shape of array/tensor. Retur
monai/transforms/utils_pytorch_numpy_unification.py:241
↓ 3 callersMethodverify_suffix
Verify whether the specified `filename` is supported by pynrrd reader. Args: filename: file name or a list of file names
monai/data/image_reader.py:1491
↓ 3 callersFunctionwarn_deprecated
Issue the warning message `msg`.
monai/utils/deprecate_utils.py:33
↓ 3 callersFunctionzoom_affine
To make column norm of `affine` the same as `scale`. If diagonal is False, returns an affine that combines orthogonal rotation and the new s
monai/data/utils.py:798
↓ 3 callersFunctionzoom_boxes
Zoom boxes Args: boxes: bounding boxes, Nx4 or Nx6 torch tensor or ndarray. The box mode is assumed to be StandardMode zoom:
monai/apps/detection/transforms/box_ops.py:102
↓ 2 callersMethod__call__
(self, x: torch.Tensor, index: torch.Tensor | int | None = None, **kwargs: Any)
monai/visualize/gradient_based.py:132
↓ 2 callersMethod__init__
(self, mod)
monai/networks/utils.py:1286
↓ 2 callersMethod__init__
( self, in_shape: Sequence[int], channels: Sequence[int], strides: Sequence[in
monai/networks/nets/classifier.py:120
↓ 2 callersMethod__init__
( self, spatial_dims: int, encoder_channels: Sequence[int], decoder_channels:
monai/networks/nets/flexible_unet.py:113
↓ 2 callersMethod__init__
( self, spatial_dims: int = 2, in_channels: int = 3, out_channels: int = 3,
monai/networks/nets/restormer.py:106
↓ 2 callersMethod__init__
( self, spatial_dims: int, channels: Sequence[int], in_channels: int,
monai/networks/nets/spade_autoencoderkl.py:146
↓ 2 callersMethod__init__
(self, spatial_dims: int, in_channels: int, out_channels: int)
monai/networks/blocks/feature_pyramid_network.py:114
↓ 2 callersMethod__init__
Args: spatial_dims: number of spatial dimensions of the input image. kernel_size: the kernel size of both pooling ope
monai/networks/blocks/downsample.py:32
↓ 2 callersMethod__init__
Args: spatial_dims: number of spatial dimensions. in_channels: number of input channels. out_channels: nu
monai/networks/blocks/unetr_block.py:28
↓ 2 callersMethod__init__
Args: spatial_dims: number of spatial dimensions. channels: channels pooling: use MaxPool if True, stride
monai/networks/blocks/regunet_block.py:137
↓ 2 callersMethod__init__
(self, inplace: bool = False)
monai/networks/blocks/activation.py:158
↓ 2 callersMethod__init__
( self, metric_name: str, include_background: bool = True, reduction: MetricRe
monai/metrics/wrapper.py:125
↓ 2 callersMethod__init__
( self, root_dir: PathLike, collection: str, section: str, transform:
monai/apps/datasets.py:495
↓ 2 callersMethod__init__
Remap the voxel labels in the input data dictionary based on the specified mapping. This list of local -> global label mappings will
monai/apps/vista3d/transforms.py:178
↓ 2 callersMethod__init__
( self, spatial_dims: int, num_classes: int, num_anchors: int, feature
monai/apps/detection/networks/retinanet_network.py:278
↓ 2 callersMethod__init__
(self)
monai/apps/auto3dseg/ensemble_builder.py:54
↓ 2 callersMethod__init__
(self, connectivity: int | None = 1, dtype: DtypeLike = np.int64)
monai/apps/pathology/transforms/post/array.py:73
↓ 2 callersMethod__init__
( self, data: Sequence, patch_size: int | tuple[int, int] | None = None, patch
monai/data/wsi_datasets.py:69
↓ 2 callersMethod__init__
Args: output_dtype: output data type. affine_lps_to_ras: whether to convert the affine matrix from "LPS" to "RAS". De
monai/data/image_writer.py:376
↓ 2 callersMethod__init__
Args: patch_size: size of patches to generate slices for, 0/None selects whole dimension start_pos: starting positio
monai/data/grid_dataset.py:49
↓ 2 callersMethod__init__
( self, keys: KeysCollection, batch_size: int, alpha: float = 1.0, allow_missing_keys: bool = False
monai/transforms/regularization/dictionary.py:38
↓ 2 callersMethod__init__
Args: keys: keys of the corresponding items to be transformed. See also: :py:class:`monai.transforms.compose.MapT
monai/transforms/io/dictionary.py:74
↓ 2 callersMethod__init__
(self, summary_writer: SummaryWriter | SummaryWriterX | None = None, log_dir: str = "./runs")
monai/handlers/tensorboard_handlers.py:51
↓ 2 callersMethod__init__
(self, data_loader: DataLoader, image_extractor: Callable, label_extractor: Callable)
monai/optimizers/lr_finder.py:48
↓ 2 callersMethod__init__
(self, config: Any, id: str = "")
monai/bundle/config_item.py:131
↓ 2 callersMethod__init__
( self, workflow_type: str | None = None, properties_path: PathLike | None = None,
monai/bundle/workflows.py:64
↓ 2 callersMethod__init__
Args: to_onehot_y : whether to convert `y` into the one-hot format. Defaults to False. delta : weight of the backgrou
monai/losses/unified_focal_loss.py:99
↓ 2 callersMethod__init__
( self, merged_shape: Sequence[int], cropped_shape: Sequence[int] | None = None,
monai/inferers/merger.py:57
↓ 2 callersMethod__init__
(self, patch_size: Sequence[int] | int, device: torch.device | str | None = None)
monai/inferers/splitter.py:41
↓ 2 callersMethod__init__
( self, device: torch.device | str, val_data_loader: Iterable | DataLoader, ep
monai/engines/evaluator.py:90
↓ 2 callersMethod__init__
( self, device: str | torch.device, max_epochs: int, train_data_loader: DataLo
monai/engines/trainer.py:374
↓ 2 callersMethod__iter__
(self)
monai/data/grid_dataset.py:429
↓ 2 callersMethod__repr__
Prints a representation of the tensor. Prepends "meta" to ``torch.Tensor.__repr__``. Use ``print_verbose`` for associated met
monai/data/meta_tensor.py:583
↓ 2 callersMethod_add_noise
(self, img: NdarrayOrTensor, mean: float, std: float)
monai/transforms/intensity/array.py:191
↓ 2 callersMethod_aggregate
(self, outputs, locations, batch_size, mergers, ratios)
monai/inferers/inferer.py:280
↓ 2 callersFunction_apply_affine_to_points
This internal function applies affine matrices to the point coordinate Args: points: point coordinates, Nx2 or Nx3 torch tensor or n
monai/apps/detection/transforms/box_ops.py:29
↓ 2 callersMethod_apply_gaussian
(self, t)
monai/apps/nuclick/transforms.py:333
↓ 2 callersMethod_apply_gaussian
(self, t)
monai/apps/nuclick/transforms.py:516
↓ 2 callersFunction_argmax_nd
argmax for N-D array → returns coordinate vector (z,y,x) or (y,x).
tests/transforms/test_generate_heatmap.py:24
↓ 2 callersFunction_assert_itk_regions_match_array
(image)
monai/data/itk_torch_bridge.py:213
↓ 2 callersMethod_backing_id
Return the real config id this proxy writes to, resolving all ``$@ref`` hops transitively.
monai/bundle/config_parser.py:116
↓ 2 callersFunction_box_inter_union
This internal function computes the intersection and union area of two set of boxes. Args: boxes1: bounding boxes, Nx4 or Nx6 torch
monai/data/box_utils.py:782
↓ 2 callersFunction_cache_original_func
cache the original function by name, so that the decorator doesn't shadow it.
tests/test_utils.py:708
↓ 2 callersMethod_chain
Resolve ``key`` as a nested config id. Args: key: the child key/index. Returns: The parsed child co
monai/bundle/config_parser.py:133
↓ 2 callersMethod_check_converted
(self, global_weights, local_var_dict, n_converted)
monai/fl/client/monai_algo.py:706
↓ 2 callersMethod_check_for_scheduler
Check optimizer doesn't already have scheduler.
monai/optimizers/lr_finder.py:390
↓ 2 callersFunction_check_panoptic_metric_name
(metric_name: str)
monai/metrics/panoptic_quality.py:303
↓ 2 callersMethod_clip
(self, img: NdarrayOrTensor)
monai/transforms/intensity/array.py:1138
↓ 2 callersMethod_combine_dicom_series
Combine dicom series (a list of pydicom dataset objects). Their data arrays will be stacked together at a new dimension as the last d
monai/data/image_reader.py:555
↓ 2 callersFunction_compute_coords
sliding window batch spatial scaling indexing for multi-resolution outputs.
monai/inferers/utils.py:387
↓ 2 callersMethod_compute_generalized_true_positive
Args: alpha: generalised number of true positives of target class. flat_target: the target tensor. wasser
monai/losses/dice.py:648
↓ 2 callersFunction_compute_offset_matrix
(image, center_of_rotation)
monai/data/itk_torch_bridge.py:244
↓ 2 callersFunction_compute_path
(base_dir: PathLike, element: PathLike, check_path: bool = False)
monai/data/decathlon_datalist.py:27
↓ 2 callersMethod_compute_sobel
Compute the Sobel gradients of the horizontal vertical map (HoVerMap). More specifically, it will compute horizontal gradient of the input hor
monai/apps/pathology/losses/hovernet_loss.py:67
↓ 2 callersMethod_convert
(x)
monai/data/meta_tensor.py:308
↓ 2 callersFunction_cov
Estimate a covariance matrix of the variables. Args: input_data: A 1-D or 2-D array containing multiple variables and observations.
monai/metrics/fid.py:61
↓ 2 callersMethod_create_data
(self, length=1, image_channel=1, with_label=True)
tests/apps/deepgrow/test_deepgrow_dataset.py:59
↓ 2 callersFunction_create_rotate
( spatial_dims: int, radians: Sequence[float] | float, sin_func: Callable = np.sin, cos_func:
monai/transforms/utils.py:900
↓ 2 callersFunction_create_scale
(spatial_dims: int, scaling_factor: Sequence[float] | float, array_func=np.diag)
monai/transforms/utils.py:1042
↓ 2 callersFunction_create_shear
(spatial_dims: int, coefs: Sequence[float] | float, eye_func=np.eye)
monai/transforms/utils.py:986
↓ 2 callersFunction_create_translate
( spatial_dims: int, shift: Sequence[float] | float, eye_func=np.eye, array_func=np.asarray )
monai/transforms/utils.py:1076
↓ 2 callersMethod_custom_user_function
(self, cls, *args, **kwargs)
tests/utils/misc/test_monai_utils_misc.py:75
↓ 2 callersFunction_del_original_func
pop the original function from cache.
tests/test_utils.py:713
↓ 2 callersMethod_delete_previous_final_ckpt
(self)
monai/handlers/checkpoint_saver.py:251
↓ 2 callersFunction_dfs
use depth first search to find all path activation combination
monai/networks/nets/dints.py:66
↓ 2 callersFunction_download_with_progress
Retrieve file from `url` to `filepath`, optionally showing a progress bar.
monai/apps/utils.py:90
↓ 2 callersFunction_extract_zip
(filepath, output_dir)
monai/apps/utils.py:277
↓ 2 callersMethod_fill_cache
Compute and fill the cache content from data source. Args: indices: target indices in the `self.data` source to compute
monai/data/dataset.py:897
↓ 2 callersMethod_flattened
(self)
monai/data/iterable_dataset.py:264
↓ 2 callersMethod_forward_single
(self, input: torch.Tensor, target: torch.Tensor)
monai/losses/adversarial_loss.py:165
↓ 2 callersMethod_generate_contour_coord
Generate contour coordinates. Given the previous and current coordinates of border positions, returns the int pixel that marks the ex
monai/apps/pathology/transforms/post/array.py:373
↓ 2 callersFunction_get_adn_layer
(act: tuple | str | None, dropout: tuple | str | float | None, ordering: str | None)
monai/networks/nets/fullyconnectednet.py:25
↓ 2 callersMethod_get_connection_block
Returns the block object defining a layer of the UNet structure including the implementation of the skip between encoding (down) and
monai/networks/nets/unet.py:185
↓ 2 callersMethod_get_data_key_stats
(self, data, data_key, hist_bins, hist_range, output_path=None)
monai/fl/client/monai_algo.py:248
↓ 2 callersMethod_get_decoder_log_likelihood
Compute the log-likelihood of a Gaussian distribution discretizing to a given image. Code adapted from https://github.com/openai/impr
monai/inferers/inferer.py:1138
← previousnext →801–900 of 7,906, ranked by callers