Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Project-MONAI/MONAI
/ functions
Functions
7,906 in github.com/Project-MONAI/MONAI
⨍
Functions
7,906
◇
Types & classes
2,334
↳
Endpoints
20
↓ 1 callers
Function
median_filter
Apply median filter to an image. Args: in_tensor: input tensor; median filtering will be applied to the last `spatial_dims` dimensio
monai/networks/layers/simplelayers.py:441
↓ 1 callers
Function
monai_mish
(x, inplace: bool = False)
monai/networks/blocks/activation.py:21
↓ 1 callers
Function
monai_swish
(x, inplace: bool = False)
monai/networks/blocks/activation.py:32
↓ 1 callers
Function
monai_to_itk_ddf
converting the dense displacement field from the MONAI space to the ITK Args: image: itk image of array shape 2D: (H, W) or 3D: (D, H
monai/data/itk_torch_bridge.py:310
↓ 1 callers
Function
monai_warp
warp with MONAI Args: img: numpy array of shape (D, H, W) ddf: numpy array of shape (3, D, H, W) Returns: warped
tests/networks/blocks/warp/test_warp.py:220
↓ 1 callers
Method
new_empty
must be defined for deepcopy to work See: - https://pytorch.org/docs/stable/generated/torch.Tensor.new_empty.html#torch-
monai/data/meta_tensor.py:509
↓ 1 callers
Method
num_channels_per_output
Get number of resnet backbone output feature maps channel.
monai/networks/nets/resnet.py:455
↓ 1 callers
Method
num_channels_per_output
(cls)
tests/networks/nets/test_flexible_unet.py:48
↓ 1 callers
Method
num_outputs
Get number of resnet backbone output feature maps. Since every backbone contains the same 5 output feature maps, the number list should be `[
monai/networks/nets/resnet.py:468
↓ 1 callers
Method
num_outputs
(cls)
tests/networks/nets/test_flexible_unet.py:52
↓ 1 callers
Function
orientation
Functional implementation of changing the input image's orientation into the specified based on `spatial_ornt`. This function operates eagerl
monai/transforms/spatial/functional.py:229
↓ 1 callers
Function
pad_func
Functional implementation of padding a MetaTensor. This function operates eagerly or lazily according to ``lazy`` (default ``False``). `
monai/transforms/croppad/functional.py:155
↓ 1 callers
Function
pad_images
Pad the input images, so that the output spatial sizes are divisible by `size_divisible`. It pads them at the end to create a (B, C, H, W) or
monai/apps/detection/utils/detector_utils.py:111
↓ 1 callers
Function
pad_list_data_collate
Function version of :py:class:`monai.transforms.croppad.batch.PadListDataCollate`. Same as MONAI's ``list_data_collate``, except any tensors
monai/data/utils.py:644
↓ 1 callers
Method
pad_test_combine_ops
(self, funcs, input_shape, expected_shape)
tests/padders.py:150
↓ 1 callers
Function
parse_args
()
tests/runner.py:88
↓ 1 callers
Function
parse_groups
Implements parsing of 'output_lists' arg of trt_compile(). Args: ret: plain list of Tensors output_lists: list of output group
monai/networks/trt_compiler.py:255
↓ 1 callers
Function
partition_dataset_classes
Split the dataset into N partitions based on the given class labels. It can make sure the same ratio of classes in every partition. Other
monai/data/utils.py:1242
↓ 1 callers
Method
parzen_windowing
( self, pred: torch.Tensor, target: torch.Tensor )
monai/losses/image_dissimilarity.py:244
↓ 1 callers
Method
patch_bundle_tracking
Patch the loaded bundle config with a new handler logic to enable experiment tracking features. Args: parser: loaded con
monai/bundle/workflows.py:629
↓ 1 callers
Function
pep440_split_post
Split pep440 version string at the post-release segment. Returns the release segments before the post-release and the post-release version nu
versioneer.py:1488
↓ 1 callers
Function
pep440_split_post
Split pep440 version string at the post-release segment. Returns the release segments before the post-release and the post-release version nu
monai/_version.py:426
↓ 1 callers
Method
plan_and_process
Performs experiment planning and preprocessing before the training. Args: fpe: [OPTIONAL] Name of the Dataset Fingerprin
monai/apps/nnunet/nnunetv2_runner.py:426
↓ 1 callers
Method
plan_experiments
Generate a configuration file that specifies the details of the experiment. Args: pl: [OPTIONAL] Name of the Experiment
monai/apps/nnunet/nnunetv2_runner.py:340
↓ 1 callers
Function
plot_metric_graph
Plot metrics on a single graph with running averages plotted for selected keys. The values in `graphmap` should be lists of (timepoint, value
monai/utils/jupyter_utils.py:46
↓ 1 callers
Function
plot_metric_images
Plot metric graph data with images below into figure `fig`. The intended use is for the graph data to be metrics from a training run and the
monai/utils/jupyter_utils.py:93
↓ 1 callers
Method
plot_status
Generate a plot of the current status of the contained engine whose loss and metrics were tracked by `logger`. The function `plot_fun
monai/utils/jupyter_utils.py:362
↓ 1 callers
Function
point_based_window_inferer
Point-based window inferer that takes an input image, a set of points, and a model, and returns a segmented image. The inferer algorithm crop
monai/apps/vista3d/inferer.py:28
↓ 1 callers
Method
post_processing
(self, preds, thresh=0.33, min_size=10, min_hole=30)
monai/apps/nuclick/transforms.py:576
↓ 1 callers
Method
postprocess_detections
Postprocessing to generate detection result from classification logits and box regression. Use self.box_selector to select the final
monai/apps/detection/networks/retinanet_detector.py:628
↓ 1 callers
Method
pre_check_skip_algo
Analyse the data analysis report and check if the algorithm needs to be skipped. This function is overriden within algo. Args
monai/apps/auto3dseg/bundle_gen.py:105
↓ 1 callers
Function
pre_process_data
If transform requires 2D data, then convert to 2D by selecting the middle of the last dimension.
monai/transforms/utils_create_transform_ims.py:271
↓ 1 callers
Method
predict
Use the trained model to predict the outputs with a given input image. Args: predict_files: a list of paths to files to
monai/apps/auto3dseg/bundle_gen.py:353
↓ 1 callers
Method
predict
Use this to run inference with nnU-Net. This function is used when you want to manually specify a folder containing a trained nnU
monai/apps/nnunet/nnunetv2_runner.py:828
↓ 1 callers
Method
predict
Read test data and output model predictions.
monai/auto3dseg/algo_gen.py:38
↓ 1 callers
Function
predict_segmentation
Given the logits from a network, computing the segmentation by thresholding all values above 0 if multi-labels task, computing the `argmax` a
monai/networks/utils.py:223
↓ 1 callers
Method
prepare_ground_truth
Prepare the ground truth for evaluation based on the binary tumor mask
monai/apps/pathology/metrics/lesion_froc.py:108
↓ 1 callers
Method
prepare_inference_result
Prepare the probability map for detection evaluation.
monai/apps/pathology/metrics/lesion_froc.py:86
↓ 1 callers
Function
prepare_test_data
()
tests/apps/pathology/test_lesion_froc.py:48
↓ 1 callers
Function
print_gpu_info
Print GPU info to `file`. Args: file: `print()` text stream file. Defaults to `sys.stdout`.
monai/config/deviceconfig.py:234
↓ 1 callers
Function
print_system_info
Print system info to `file`. Requires the optional library, `psutil`. Args: file: `print()` text stream file. Defaults to `sys.stdou
monai/config/deviceconfig.py:186
↓ 1 callers
Method
profile_callable
Decorator which can be applied to a function which profiles any calls to it. All calls to decorated callables must be done within the
monai/utils/profiling.py:323
↓ 1 callers
Method
profile_iter
Wrapper around anything iterable to profile how long it takes to generate items.
monai/utils/profiling.py:335
↓ 1 callers
Function
push_to_hf_hub
Push a MONAI bundle to the Hugging Face Hub. Typical usage examples: .. code-block:: bash python -m monai.bundle push_to_hf_hu
monai/bundle/scripts.py:1861
↓ 1 callers
Method
quantize
(self, encodings: torch.Tensor)
monai/networks/layers/vector_quantizer.py:230
↓ 1 callers
Function
rand_string
(min_len=5, max_len=10)
tests/data/meta_tensor/test_to_from_meta_tensord.py:37
↓ 1 callers
Function
rand_string
(min_len=5, max_len=10)
tests/data/meta_tensor/test_meta_tensor.py:44
↓ 1 callers
Method
randomize
(self, data: np.ndarray)
monai/apps/datasets.py:148
↓ 1 callers
Method
randomize
(self, data: np.ndarray)
monai/apps/datasets.py:366
↓ 1 callers
Method
randomize
(self, data: np.ndarray)
monai/apps/datasets.py:584
↓ 1 callers
Method
randomize
(self, data)
monai/apps/deepgrow/transforms.py:104
↓ 1 callers
Method
randomize
(self, data=None)
monai/apps/deepgrow/transforms.py:290
↓ 1 callers
Method
randomize
( # type: ignore self, boxes: NdarrayOrTensor, image_size: Sequence[int], fg_
monai/apps/detection/transforms/dictionary.py:1144
↓ 1 callers
Method
randomize
(self, data=None)
monai/apps/deepedit/transforms.py:563
↓ 1 callers
Method
randomize
(self, data: Any | None = None)
monai/data/image_dataset.py:99
↓ 1 callers
Method
randomize
(self, data: Sequence)
monai/data/dataset.py:1115
↓ 1 callers
Method
randomize
(self, data: Any | None = None)
monai/data/dataset.py:1404
↓ 1 callers
Method
randomize
(self, size: int)
monai/data/iterable_dataset.py:134
↓ 1 callers
Method
randomize
(self, img: NdarrayOrTensor, mean: float | None = None)
monai/transforms/intensity/array.py:116
↓ 1 callers
Method
randomize
(self, data: Any | None = None)
monai/transforms/intensity/array.py:292
↓ 1 callers
Method
randomize
(self, data: Any | None = None)
monai/transforms/intensity/array.py:422
↓ 1 callers
Method
randomize
(self, data: Any | None = None)
monai/transforms/intensity/array.py:641
↓ 1 callers
Method
randomize
(self, data: Any | None = None)
monai/transforms/intensity/array.py:714
↓ 1 callers
Method
randomize
(self, data: Any | None = None)
monai/transforms/intensity/array.py:1300
↓ 1 callers
Method
randomize
(self, data: Any | None = None)
monai/transforms/intensity/array.py:1683
↓ 1 callers
Method
randomize
(self, data: Any | None = None)
monai/transforms/intensity/array.py:1812
↓ 1 callers
Method
randomize
(self, data: Any | None = None)
monai/transforms/intensity/array.py:1888
↓ 1 callers
Method
randomize
(1) Set random variable to apply the transform. (2) Get alpha from uniform distribution.
monai/transforms/intensity/array.py:2042
↓ 1 callers
Method
randomize
Helper method to sample both the location and intensity of the spikes. When not working channel wise (channel_wise=False) it use the
monai/transforms/intensity/array.py:2274
↓ 1 callers
Method
randomize
(self, img_size: Sequence[int])
monai/transforms/intensity/array.py:2373
↓ 1 callers
Method
randomize
(self, data: Any | None = None)
monai/transforms/spatial/array.py:1267
↓ 1 callers
Method
randomize
(self, data: Any | None = None)
monai/transforms/spatial/array.py:1374
↓ 1 callers
Method
randomize
(self, data: NdarrayOrTensor)
monai/transforms/spatial/array.py:1520
↓ 1 callers
Method
randomize
(self, data: Any | None = None)
monai/transforms/spatial/array.py:1913
↓ 1 callers
Method
randomize
(self, grid_size: Sequence[int])
monai/transforms/spatial/array.py:1989
↓ 1 callers
Method
randomize
(self, spatial_size: Sequence[int])
monai/transforms/spatial/array.py:2759
↓ 1 callers
Method
randomize
(self, grid_size: Sequence[int])
monai/transforms/spatial/array.py:2931
↓ 1 callers
Method
randomize
(self, spatial_shape: Sequence[int])
monai/transforms/spatial/array.py:3137
↓ 1 callers
Method
randomize
(self, array)
monai/transforms/spatial/array.py:3507
↓ 1 callers
Method
randomize
(self, data: Any | None = None)
monai/transforms/spatial/array.py:3578
↓ 1 callers
Method
randomize
(self, data: Any | None = None)
monai/transforms/croppad/dictionary.py:811
↓ 1 callers
Method
randomize
(self, weight_map: NdarrayOrTensor)
monai/transforms/croppad/dictionary.py:980
↓ 1 callers
Method
randomize
( self, label: torch.Tensor | None = None, fg_indices: NdarrayOrTensor | None = None,
monai/transforms/croppad/dictionary.py:1103
↓ 1 callers
Method
randomize
( self, label: torch.Tensor, indices: list[NdarrayOrTensor] | None = None, image: torch.Tensor | None
monai/transforms/croppad/dictionary.py:1265
↓ 1 callers
Method
randomize
(self, img_size: Sequence[int])
monai/transforms/croppad/array.py:602
↓ 1 callers
Method
randomize
(self, weight_map: NdarrayOrTensor)
monai/transforms/croppad/array.py:986
↓ 1 callers
Method
randomize
( self, label: torch.Tensor | None = None, fg_indices: NdarrayOrTensor | None = None,
monai/transforms/croppad/array.py:1132
↓ 1 callers
Method
randomize
( self, label: torch.Tensor | None = None, indices: list[NdarrayOrTensor] | None = Non
monai/transforms/croppad/array.py:1321
↓ 1 callers
Method
randomize
(self, data: Any | None = None)
monai/transforms/smooth_field/dictionary.py:101
↓ 1 callers
Method
randomize
(self, data: Any | None = None)
monai/transforms/smooth_field/dictionary.py:179
↓ 1 callers
Method
randomize
(self, data: Any | None = None)
monai/transforms/smooth_field/array.py:210
↓ 1 callers
Method
randomize
(self, data: Any | None = None)
monai/transforms/smooth_field/array.py:311
↓ 1 callers
Method
randomize
(self, data: Any | None = None)
monai/transforms/smooth_field/array.py:423
↓ 1 callers
Method
randomize
(self, data=None)
tests/data/test_image_dataset.py:41
↓ 1 callers
Method
randomize
(self, data=None)
tests/transforms/utility/test_rand_lambdad.py:31
↓ 1 callers
Method
randomize
(self, data=None)
tests/transforms/utility/test_rand_lambda.py:31
↓ 1 callers
Method
randomize
(self)
tests/transforms/compose/test_compose.py:43
↓ 1 callers
Method
randomize
(self, data=None)
tests/transforms/compose/test_compose.py:192
↓ 1 callers
Method
range_test
Performs the learning rate range test. Args: train_loader: training set data loader. val_loader: validation data load
monai/optimizers/lr_finder.py:256
↓ 1 callers
Method
read
Read image data from specified file or files, it can read a list of images and stack them together as multi-channel data in `get_data
monai/data/image_reader.py:1074
← previous
next →
2,001–2,100 of 7,906, ranked by callers