MCPcopy Create free account

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

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

↓ 1 callersMethodget_noise
Returns the noise tensor for input tensor `images`, override this for different noise distributions.
monai/engines/utils.py:260
↓ 1 callersMethodget_num_devices
Get number of possible devices detected by OpenCV that can be used for capture.
monai/data/video_dataset.py:230
↓ 1 callersMethodget_num_neg
Sample enough negatives to fill up ``self.batch_size_per_image`` Args: negative: indices of positive samples
monai/apps/detection/utils/hard_negative_sampler.py:264
↓ 1 callersMethodget_num_pos
Number of positive samples to draw Args: positive: indices of positive samples Returns: number of p
monai/apps/detection/utils/hard_negative_sampler.py:248
↓ 1 callersFunctionget_optional_config_values
Read the optional package versions into a dictionary.
monai/config/deviceconfig.py:67
↓ 1 callersFunctionget_output_padding
( kernel_size: Sequence[int] | int, stride: Sequence[int] | int, padding: Sequence[int] | int )
monai/networks/blocks/dynunet_block.py:315
↓ 1 callersMethodget_padded_shape
Return the actual spatial shape covered by the output split patches. For instance, if the input image is padded, the actual spatial s
monai/inferers/splitter.py:61
↓ 1 callersMethodget_patches_and_signals
(self, img, click_map, bounding_boxes, cx, cy, x, y)
monai/apps/nuclick/transforms.py:483
↓ 1 callersMethodget_power
Returns the objective power of the whole slide image at a given level. Args: wsi: a whole slide image object loaded from
monai/data/wsi_reader.py:260
↓ 1 callersMethodget_properties
Get the loaded properties of dataset with specified keys. If no keys specified, return all the loaded properties.
monai/apps/datasets.py:369
↓ 1 callersFunctionget_rand_fname
(len=10, suffix=".nii.gz")
tests/transforms/test_resample_to_match.py:40
↓ 1 callersMethodget_reference_grid
(image_size: tuple[int] | list[int])
monai/networks/nets/regunet.py:278
↓ 1 callersMethodget_reference_grid
(self, ddf: torch.Tensor, jitter: bool = False, seed: int = 0)
monai/networks/blocks/warp.py:114
↓ 1 callersFunctionget_resnet_names
()
tests/networks/nets/test_flexible_unet.py:67
↓ 1 callersMethodget_seed_and_labels
Get the seed and label arrays for the max-flow algorithm Args: data: Input array sink_mode (str, optional): Sink mode
monai/data/ultrasound_confidence_map.py:97
↓ 1 callersMethodget_selayer
Returns the SEBlock defined in the initialization of the QuickNAT model. Args: n_filters: encoding half of the layer
monai/networks/nets/quicknat.py:409
↓ 1 callersMethodget_size
Returns the size (height, width) of the whole slide image at a given level. Args: wsi: a whole slide image object loaded
monai/data/wsi_reader.py:1332
↓ 1 callersFunctionget_spade_up_block
( spatial_dims: int, in_channels: int, prev_output_channel: int, out_channels: int, temb_c
monai/networks/nets/spade_diffusion_model_unet.py:594
↓ 1 callersFunctionget_stacked_2d_ims
Get the 3 orthogonal views and stack them into 1 image. Requires that all images be same size, but this is taken care of by the `SpatialPadd`
monai/transforms/utils_create_transform_ims.py:297
↓ 1 callersFunctionget_system_info
Get system info as an ordered dictionary.
monai/config/deviceconfig.py:127
↓ 1 callersMethodget_target
Return the target for the loss function, this is the `noise` value by default.
monai/engines/utils.py:268
↓ 1 callersMethodget_target_tensor
Gets the ground truth tensor for the discriminator depending on whether the input is real or fake. Args: input: input te
monai/losses/adversarial_loss.py:83
↓ 1 callersMethodget_task_id
Get the identifier of the current experiment. In the format of listing the searching parameter name and values connected by underscor
monai/apps/auto3dseg/hpo_gen.py:176
↓ 1 callersMethodget_task_id
Get the identifier of the current experiment. In the format of listing the searching parameter name and values connected by underscor
monai/apps/auto3dseg/hpo_gen.py:350
↓ 1 callersMethodget_times_summary_pd
Returns the same information as `get_times_summary` but in a Pandas DataFrame.
monai/utils/profiling.py:378
↓ 1 callersMethodget_timesteps
Get a timestep, by default this is a random integer between 0 and `self.num_train_timesteps`.
monai/engines/utils.py:264
↓ 1 callersMethodget_topology_entropy
Get topology entropy loss at searching stage. Args: probs: path activation probabilities
monai/networks/nets/dints.py:906
↓ 1 callersMethodget_upsamples
(self)
monai/networks/nets/dynunet.py:310
↓ 1 callersMethodget_valid_level
Returns the level associated to the resolution parameters in the whole slide image. Args: wsi: a whole slide image objec
monai/data/wsi_reader.py:173
↓ 1 callersMethodget_values
Get the accumulated values during aggregation or final averaged values after it is finalized. Returns: torch.tensor: agg
monai/inferers/merger.py:183
↓ 1 callersMethodget_values
Get the accumulated values during aggregation Returns: zarr.Array: aggregated values.
monai/inferers/merger.py:480
↓ 1 callersMethodget_video_source
(self)
tests/data/test_video_datasets.py:39
↓ 1 callersMethodget_weights
Calculates weights for a given number of scale levels
monai/losses/ds_loss.py:43
↓ 1 callersMethodget_wsi_at_mpp
Returns the representation of the whole slide image at a given micro-per-pixel (mpp) resolution. The optional tolerance parameters ar
monai/data/wsi_reader.py:671
↓ 1 callersFunctiongit_pieces_from_vcs
Get version from 'git describe' in the root of the source tree. This only gets called if the git-archive 'subst' keywords were *not* expanded
monai/_version.py:232
↓ 1 callersFunctiongit_versions_from_keywords
Get version information from git keywords.
monai/_version.py:168
↓ 1 callersFunctionhas_ampere_or_later
Check if there is any Ampere and later GPU.
monai/utils/tf32.py:22
↓ 1 callersFunctionhas_cupy
Returns True if the user has installed a version of cupy.
tests/test_utils.py:361
↓ 1 callersFunctionhas_nvfuser_instance_norm
whether the current environment has InstanceNorm3dNVFuser https://github.com/NVIDIA/apex/blob/23.05-devel/apex/normalization/instance_norm.py#L15-
monai/networks/utils.py:96
↓ 1 callersFunctionicnr_init
ICNR initialization for 2D/3D kernels adapted from Aitken et al.,2017 , "Checkerboard artifact free sub-pixel convolution".
monai/networks/utils.py:350
↓ 1 callersFunctionimport_cv
Import cv2. Put it inside a function to avoid webcam lights blinking on ``import monai``.
monai/data/video_dataset.py:36
↓ 1 callersFunctionin1d
`np.in1d` with equivalent implementation for torch.
monai/transforms/utils_pytorch_numpy_unification.py:87
↓ 1 callersMethodinclusion_map
(self, mask, dtype)
monai/apps/nuclick/transforms.py:360
↓ 1 callersMethodinit_logger
(self, name=LOGGER_NAME)
tests/data/test_dataset.py:169
↓ 1 callersMethodinitialize
Initialize routine to parse configuration files and extract main components such as trainer, evaluator, and filters. Args:
monai/fl/client/monai_algo.py:131
↓ 1 callersMethodinitialize
Initialize the bundle workflow before running.
monai/bundle/workflows.py:140
↓ 1 callersMethodinitialize
(self)
tests/nonconfig_workflow.py:199
↓ 1 callersMethodinspect_datalist_folds
Returns number of folds in the datalist file, and assigns fold numbers if not provided. Args: datalist_filename: path to
monai/apps/auto3dseg/auto_runner.py:394
↓ 1 callersFunctioninstantiate
Create an object instance or call a callable object from a class or function represented by ``_path``. `kwargs` will be part of the input arg
monai/utils/module.py:207
↓ 1 callersMethodinverse
(self, data)
monai/transforms/compose.py:803
↓ 1 callersMethodinverse
(self, data: Mapping[Hashable, NdarrayOrTensor])
monai/transforms/utility/dictionary.py:481
↓ 1 callersMethodinverse
(self, data: Mapping[Hashable, Any])
monai/transforms/utility/dictionary.py:656
↓ 1 callersMethodinverse
(self, data: torch.Tensor)
monai/transforms/utility/array.py:1958
↓ 1 callersMethodinverse
(self, data: Mapping[Hashable, torch.Tensor])
monai/transforms/spatial/dictionary.py:259
↓ 1 callersMethodinverse
(self, data: torch.Tensor)
monai/transforms/spatial/array.py:241
↓ 1 callersMethodinverse
(self, data: torch.Tensor)
monai/transforms/spatial/array.py:682
↓ 1 callersMethodinverse
(self, data: torch.Tensor)
monai/transforms/spatial/array.py:890
↓ 1 callersMethodinverse
(self, data: Mapping[Hashable, NdarrayOrTensor])
monai/transforms/meta_utility/dictionary.py:73
↓ 1 callersMethodinverse
(self, data: Mapping[Hashable, NdarrayOrTensor])
monai/transforms/meta_utility/dictionary.py:110
↓ 1 callersMethodinverse_transform
(self, data: torch.Tensor, transform)
monai/transforms/spatial/array.py:894
↓ 1 callersMethodinverse_transform
(self, data: torch.Tensor, transform)
monai/transforms/spatial/array.py:1016
↓ 1 callersMethodinverse_transform
(self, data: torch.Tensor, transform)
monai/transforms/spatial/array.py:1227
↓ 1 callersFunctionis_compatible_apply_kwargs
Check if two sets of kwargs are compatible (to be combined in `apply`).
monai/transforms/lazy/utils.py:117
↓ 1 callersMethodis_disabled
Utility function used in `instantiate()` to check whether to skip the instantiation.
monai/bundle/config_item.py:267
↓ 1 callersFunctionis_immutable
Determine if the object is an immutable object. see also https://github.com/python/cpython/blob/3.11/Lib/copy.py#L109
monai/utils/misc.py:157
↓ 1 callersFunctionis_main_test_process
()
tests/test_utils.py:354
↓ 1 callersMethodis_resolved
(self)
monai/bundle/reference_resolver.py:73
↓ 1 callersFunctionis_sqrt
Determine if the input is a square number or a squence of square numbers.
monai/utils/misc.py:910
↓ 1 callersMethodis_valid_weights
(self)
monai/fl/utils/exchange_object.py:78
↓ 1 callersFunctionis_variable
Returns True if `name` is a valid Python variable name and also not a keyword.
monai/utils/component_store.py:23
↓ 1 callersFunctionisfinite
`np.isfinite` with equivalent implementation for torch.
monai/transforms/utils_pytorch_numpy_unification.py:338
↓ 1 callersFunctioniter_patch_slices
Yield successive tuples of slices defining patches of size `patch_size` from an array of dimensions `image_size`. The iteration starts from p
monai/data/utils.py:130
↓ 1 callersFunctioniterate_over_chunks
Iterate over chunks of a given shape. Args: chunks: the chunk shape cdata_shape: the shape of the data in chunks sli
monai/inferers/merger.py:500
↓ 1 callersFunctionitk_warp
warping with python itk Args: img: numpy array of shape (D, H, W) ddf: numpy array of shape (3, D, H, W) Returns:
tests/networks/blocks/warp/test_warp.py:172
↓ 1 callersFunctionkeep_components_with_positive_points
Keep connected regions that include the positive points. Used for point-only inference postprocessing to remove regions without positive poin
monai/transforms/utils.py:1272
↓ 1 callersFunctionlabel_union
Compute the union of class IDs in label and generate a list to include all class IDs Args: x: a list of numbers (for example, class_I
monai/utils/misc.py:696
↓ 1 callersMethodlearn
Learns, from scratch, the distribution of each class from the provided labels. Args: features (torch.Tensor): features f
monai/networks/layers/gmm.py:57
↓ 1 callersFunctionlist_to_dict
To convert a list of "key=value" pairs into a dictionary. For examples: items: `["a=1", "b=2", "c=3"]`, return: {"a": "1", "b": "2", "c": "3"
monai/utils/misc.py:393
↓ 1 callersFunctionlist_to_python_fire_arg_str
Convert a list of arguments to a string that can be used in python-fire. Args: args: the list of arguments. Returns: th
monai/auto3dseg/utils.py:527
↓ 1 callersFunctionload_decathlon_properties
Extract the properties with the specified keys from the Decathlon JSON file. See under `load_decathlon_datalist` for the expected keys in the Deca
monai/data/decathlon_datalist.py:170
↓ 1 callersFunctionload_from_mmar
Download and extract Medical Model Archive (MMAR) model weights from Nvidia Clara Train. Args: item: the corresponding model item fr
monai/apps/mmars/mmars.py:188
↓ 1 callersFunctionload_img_and_sample_ddf
()
tests/networks/blocks/warp/test_warp.py:156
↓ 1 callersMethodload_old_state_dict
Load a state dict from a DiffusionModelUNet trained with [MONAI Generative](https://github.com/Project-MONAI/GenerativeModels).
monai/networks/nets/diffusion_model_unet.py:1810
↓ 1 callersMethodload_old_state_dict
Load a state dict from a ControlNet trained with [MONAI Generative](https://github.com/Project-MONAI/GenerativeModels). Args
monai/networks/nets/controlnet.py:425
↓ 1 callersMethodload_old_state_dict
Load a state dict from a ViTAutoEnc model trained with an older version of MONAI where ``CrossAttentionBlock`` was unconditionally in
monai/networks/nets/vitautoenc.py:137
↓ 1 callersMethodload_old_state_dict
Load a state dict from a DecoderOnlyTransformer trained with [MONAI Generative](https://github.com/Project-MONAI/GenerativeModels).
monai/networks/nets/transformer.py:116
↓ 1 callersMethodload_old_state_dict
Load a state dict from a MaskedAutoEncoderViT model trained with an older version of MONAI where ``CrossAttentionBlock`` was uncondit
monai/networks/nets/masked_autoencoder_vit.py:213
↓ 1 callersMethodlog_metrics
Log metrics from the given Engine's state member. Args: engine: Ignite Engine to log from
monai/handlers/metric_logger.py:115
↓ 1 callersMethodlogits
(self, x: torch.Tensor)
monai/networks/nets/senet.py:271
↓ 1 callersFunctionmain
()
tests/profile_subclass/profiling.py:45
↓ 1 callersFunctionmake_error_case
()
tests/networks/nets/test_flexible_unet.py:109
↓ 1 callersFunctionmake_gaussian_kernel
(kernel_size: int)
monai/losses/image_dissimilarity.py:36
↓ 1 callersFunctionmake_grid
(shape, dtype=None, device=None, requires_grad=True)
tests/networks/layers/test_grid_pull.py:30
↓ 1 callersFunctionmap_and_generate_sampling_centers
Combine "map_classes_to_indices" and "generate_label_classes_crop_centers" functions, return crop center coordinates. This calls `map_classes
monai/transforms/utils.py:382
↓ 1 callersFunctionmap_names
(ditems, input_map)
monai/transforms/adaptors.py:142
↓ 1 callersFunctionmap_only_names
(ditems, input_map)
monai/transforms/adaptors.py:145
↓ 1 callersFunctionmap_spatial_axes
Utility to map the spatial axes to real axes in channel first/last shape. For example: If `channel_first` is True, and `img` has 3 spatia
monai/transforms/utils.py:1684
↓ 1 callersFunctionmatch_tcia_ref_uid_in_study
Match the SeriesInstanceUID from all series in a study according to the input SOPInstanceUID. Args: study_uid: StudyInstanceUID.
monai/apps/tcia/utils.py:149
↓ 1 callersFunctionmatching_batch
Match boxes of a batch to corresponding ground truth for each category independently. Args: iou_fn: compute overlap for each pai
monai/apps/detection/metrics/matching.py:74
↓ 1 callersFunctionmaximum
`np.maximum` with equivalent implementation for torch. Args: a: first array/tensor. b: second array/tensor. Returns:
monai/transforms/utils_pytorch_numpy_unification.py:297
← previousnext →1,901–2,000 of 7,906, ranked by callers