MCPcopy Create free account

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

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

↓ 1 callersMethodforward
(self, x_in)
monai/networks/nets/swin_unetr.py:333
↓ 1 callersMethodforward
Forward pass of Restormer. Processes input through encoder-decoder architecture with skip connections. Args: inp_img: Inpu
monai/networks/nets/restormer.py:294
↓ 1 callersMethodforward
Args: i: Input tensor Returns: list of outputs and another list of lists with the intermediate features
monai/networks/nets/patchgan_discriminator.py:96
↓ 1 callersMethodforward
Args: x: input tensor Returns: list of intermediate features, with the last element being the output.
monai/networks/nets/patchgan_discriminator.py:217
↓ 1 callersMethodforward
(self, x: torch.Tensor)
monai/networks/nets/generator.py:146
↓ 1 callersMethodforward
Args: x: Tensor in shape (batch, channel, spatial_1[, spatial_2, ...).
monai/networks/blocks/upsample.py:279
↓ 1 callersMethodforward
Args: x: in shape (batch, inplanes, spatial_1, spatial_2).
monai/networks/blocks/fcn.py:47
↓ 1 callersMethodforward
Args: pred: the shape should be B[NDHW]. target: the shape should be same as the pred shape. Raises:
monai/losses/image_dissimilarity.py:328
↓ 1 callersMethodforward
Args: input: the shape should be B1HW[D], where the channel dimension is 1 for binary classification. target: the sha
monai/losses/aucm_loss.py:90
↓ 1 callersMethodforward_hook
(self, name)
monai/visualize/class_activation_maps.py:102
↓ 1 callersMethodforward_part1
(self, x, mask_matrix)
monai/networks/nets/swin_unetr.py:614
↓ 1 callersMethodforward_part2
(self, x)
monai/networks/nets/swin_unetr.py:668
↓ 1 callersMethodforward_with_coords
Positionally encode points that are not normalized to [0,1].
monai/networks/nets/vista3d.py:905
↓ 1 callersFunctionfrom_engine_hovernet
Since the output of HoVerNet is a dictionary, this function is to extend `monai.handlers.from_engine` to work with HoVerNet. If data is
monai/apps/pathology/handlers/utils.py:21
↓ 1 callersMethodfrom_pretrained
( cls, num_language_layers, num_vision_layers, num_mixed_layers, bert_
monai/networks/nets/transchex.py:54
↓ 1 callersMethodgaussian_combine
Combine point results with auto results using gaussian. Args: logits: automatic branch results, [B, 1, H, W, D].
monai/networks/nets/vista3d.py:274
↓ 1 callersMethodgaussian_occlusion
For Gaussian occlusion, Multiplicative is 1-Gaussian, additive is zero. Default sigma of 0.25 empirically shown to give reasonable ke
monai/visualize/occlusion_sensitivity.py:129
↓ 1 callersFunctiongen_fixed_cube
(array_type)
tests/transforms/test_label_to_contour.py:106
↓ 1 callersFunctiongen_fixed_cube
(array_type)
tests/transforms/test_label_to_contourd.py:106
↓ 1 callersFunctiongen_fixed_img
(array_type)
tests/transforms/test_label_to_contour.py:119
↓ 1 callersFunctiongen_fixed_img
(array_type)
tests/transforms/test_label_to_contourd.py:119
↓ 1 callersMethodgen_instance_map
(self, masks, bounding_boxes, x, y, flatten=True, pred_classes=None)
monai/apps/nuclick/transforms.py:583
↓ 1 callersFunctiongen_location_filter
(locations)
tests/inferers/test_wsi_sliding_window_splitter.py:106
↓ 1 callersMethodgenerate
Generate the record for each Algo. If it is a BundleAlgo, it will generate the config files. Args: output_folder: the di
monai/apps/auto3dseg/hpo_gen.py:183
↓ 1 callersMethodgenerate
Generate the record for each Algo. If it is a BundleAlgo, it will generate the config files. Args: output_folder: the di
monai/apps/auto3dseg/hpo_gen.py:357
↓ 1 callersMethodgenerate_anchors
Compute cell anchor shapes at multiple sizes and aspect ratios for the current feature map. Args: scales: a sequence whi
monai/apps/detection/utils/anchor_utils.py:145
↓ 1 callersMethodgenerate_anchors
Generate anchors and store it in self.anchors: List[Tensor]. We generate anchors only when there is no stored anchors, or the
monai/apps/detection/networks/retinanet_detector.py:567
↓ 1 callersMethodgenerate_anchors_using_shape
Compute cell anchor shapes at multiple sizes and aspect ratios for the current feature map. Args: anchor_shapes: [w, h]
monai/apps/detection/utils/anchor_utils.py:389
↓ 1 callersMethodgenerate_fg_center_boxes_np
(self, boxes: NdarrayOrTensor, image_size: Sequence[int])
monai/apps/detection/transforms/dictionary.py:1115
↓ 1 callersMethodgenerate_item
Fill a `buffer` list up to `self.size`, then generate randomly popped items.
monai/data/iterable_dataset.py:114
↓ 1 callersFunctionget_all_bundles_list
Get all bundles names (and the latest versions) that are stored in the release of specified repository with the provided tag. If tag is "dev"
monai/bundle/scripts.py:815
↓ 1 callersFunctionget_and_check_clang_format
Download a platform-appropriate clang-format binary if one doesn't already exist at the expected location and verify that it is the right bin
tests/clang_format_utils.py:49
↓ 1 callersFunctionget_avgpool
()
monai/networks/nets/resnet.py:67
↓ 1 callersFunctionget_block_args
()
tests/networks/nets/test_efficientnet.py:69
↓ 1 callersMethodget_bottleneck
(self)
monai/networks/nets/dynunet.py:290
↓ 1 callersMethodget_box_train_sample_per_image
Get samples from one image for box regression losses computation. Args: box_regression_per_image: box regression result
monai/apps/detection/networks/retinanet_detector.py:957
↓ 1 callersMethodget_clickmap_boundingbox
(self, img, cx, cy, x, y, bb=128)
monai/apps/nuclick/transforms.py:456
↓ 1 callersMethodget_cls_train_sample_per_image
Get samples from one image for classification losses computation. Args: cls_logits_per_image: classification logits for
monai/apps/detection/networks/retinanet_detector.py:878
↓ 1 callersFunctionget_cmds
()
setup.py:139
↓ 1 callersFunctionget_code_to_measure_table
returns a table mapping neighbourhood code to the surface area or contour length. Args: spacing: a sequence of 2 or 3 numbers, indic
monai/metrics/utils.py:881
↓ 1 callersFunctionget_config
Create, populate and return the VersioneerConfig() object.
monai/_version.py:39
↓ 1 callersMethodget_constr_target
Converts the mask to one hot representation and is smoothened with the selected spatial filter. Args: mask: the shape sh
monai/losses/nacl_loss.py:91
↓ 1 callersMethodget_constructor
Get the constructor for the given factory name and arguments. Raises: TypeError: When ``factory_name`` is not a ``str``.
monai/networks/layers/factories.py:117
↓ 1 callersFunctionget_conv_layer
( spatial_dims: int, in_channels: int, out_channels: int, kernel_size: Sequence[int] | int = 3 )
monai/networks/blocks/regunet_block.py:63
↓ 1 callersMethodget_counts
Get the aggregator tensor for number of samples. Returns: torch.Tensor: number of accumulated samples at each location.
monai/inferers/merger.py:196
↓ 1 callersMethodget_counts
Get the aggregator tensor for number of samples. Returns: zarr.Array: Number of accumulated samples at each location.
monai/inferers/merger.py:490
↓ 1 callersFunctionget_data
Get the example data to be used. Use MarsAtlas as it only contains 1 image for quick download and that image is parcellated.
monai/transforms/utils_create_transform_ims.py:203
↓ 1 callersMethodget_data
Extract data array and metadata from loaded image and return them. This function returns two objects, first is numpy array of image d
monai/data/image_reader.py:1099
↓ 1 callersMethodget_data_src
Get the data source filename
monai/apps/auto3dseg/bundle_gen.py:587
↓ 1 callersMethodget_data_stats
Returns summary statistics about the local data. Args: extra: Dict with additional information that can be provided by t
monai/fl/client/monai_algo.py:171
↓ 1 callersMethodget_data_stats
Get the filename of the data stats
monai/apps/auto3dseg/bundle_gen.py:574
↓ 1 callersFunctionget_deconv_block
(spatial_dims: int, in_channels: int, out_channels: int)
monai/networks/blocks/localnet_block.py:58
↓ 1 callersMethodget_deep_supervision_heads
(self)
monai/networks/nets/dynunet.py:369
↓ 1 callersFunctionget_dist_device
Get the expected target device in the native PyTorch distributed data parallel. For NCCL backend, return GPU device of current process. F
monai/utils/dist.py:30
↓ 1 callersMethodget_downsample_ratio
Returns the down-sampling ratio of the whole slide image at a given level. Args: wsi: a whole slide image object loaded
monai/data/wsi_reader.py:1343
↓ 1 callersMethodget_downsamples
(self)
monai/networks/nets/dynunet.py:305
↓ 1 callersFunctionget_dtype_string
Get a string representation of the dtype.
monai/utils/type_conversion.py:106
↓ 1 callersFunctionget_dynamic_axes
This method calculates dynamic_axes to use in onnx.export(). Args: profiles: [[min,opt,max],...] list of profile dimensions
monai/networks/trt_compiler.py:63
↓ 1 callersMethodget_encoder_names
Get names of resnet backbones.
monai/networks/nets/resnet.py:476
↓ 1 callersMethodget_encoder_parameters
Get the initialization parameter for resnet backbones.
monai/networks/nets/resnet.py:445
↓ 1 callersMethodget_encoder_parameters
(cls)
tests/networks/nets/test_flexible_unet.py:38
↓ 1 callersFunctionget_extensions
()
setup.py:84
↓ 1 callersFunctionget_extra_metadata_keys
Get a list of unnecessary keys for metadata that can be removed. Returns: List of keys to be removed.
monai/data/utils.py:1530
↓ 1 callersFunctionget_f_beta_score
(y_pred: torch.Tensor, y: torch.Tensor, include_background: bool = True)
monai/metrics/f_beta_score.py:63
↓ 1 callersFunctionget_fid_score
Computes the FID score metric on a batch of feature vectors. Args: y_pred: feature vectors extracted from a pretrained network run on gen
monai/metrics/fid.py:40
↓ 1 callersMethodget_file_path
Return the file path for the WSI object
monai/data/wsi_reader.py:243
↓ 1 callersMethodget_foreground_class_count
Get number of foreground classes based on class and point prompt.
monai/networks/nets/vista3d.py:111
↓ 1 callersFunctionget_foreground_image
Get a foreground image by removing all-zero rectangles on the edges of the image Note for the developer: update select_fn if the foreground i
monai/auto3dseg/utils.py:69
↓ 1 callersMethodget_fps
Get the FPS of the capture device.
monai/data/video_dataset.py:136
↓ 1 callersMethodget_fully_sampled_region
Extracts the size of the fully-sampled part of the kspace. Note that when a kspace is under-sampled, a part of its center is fully sa
monai/apps/reconstruction/networks/nets/coil_sensitivity_model.py:88
↓ 1 callersFunctionget_gpu_info
()
monai/config/deviceconfig.py:200
↓ 1 callersMethodget_hyperparameters
Get parameter for next round of training from NNI server.
monai/apps/auto3dseg/hpo_gen.py:158
↓ 1 callersMethodget_hyperparameters
Get parameter for next round of training from optuna trial object. This function requires user rewrite during usage for different sea
monai/apps/auto3dseg/hpo_gen.py:305
↓ 1 callersMethodget_image
(dtype, device)
tests/transforms/inverse/test_inverse_array.py:37
↓ 1 callersMethodget_inferer
Load the InferClass from the infer.py. The InferClass should be defined in the template under the path of `"scripts/infer.py"`. It is
monai/apps/auto3dseg/bundle_gen.py:315
↓ 1 callersMethodget_input_block
(self)
monai/networks/nets/dynunet.py:278
↓ 1 callersMethodget_input_shape
Return the input spatial shape. Args: inputs: either a tensor of shape BCHW[D], representing a batch of images,
monai/inferers/splitter.py:46
↓ 1 callersMethodget_input_shape
Return the input spatial shape. Args: inputs: either a tensor of shape BCHW[D], representing a batch of images,
monai/inferers/splitter.py:218
↓ 1 callersMethodget_kernel_vol
(self)
monai/losses/image_dissimilarity.py:122
↓ 1 callersFunctionget_keywords
Get the keywords needed to look up the version information.
monai/_version.py:22
↓ 1 callersFunctionget_label_ccp
Find all connected components and their bounding shape. Backend can be cuPy/cuCIM or Numpy depending on the hardware. Args: mask
monai/auto3dseg/utils.py:105
↓ 1 callersFunctionget_label_rgb
(cmap: str, label: NdarrayOrTensor)
monai/visualize/utils.py:210
↓ 1 callersMethodget_layer
Args: layer_id: a layer name string or a callable. If it is a callable such as `lambda m: m.fc`, this method wil
monai/visualize/class_activation_maps.py:109
↓ 1 callersMethodget_level_count
Returns the number of levels in the whole slide image. Args: wsi: a whole slide image object loaded from a file.
monai/data/wsi_reader.py:220
↓ 1 callersMethodget_likelihood
Computes the log-likelihoods for an input. Args: inputs: input images, NxCxHxW[xD] diffusion_model: model to
monai/inferers/inferer.py:1599
↓ 1 callersMethodget_loss
Calculates a loss output accounting for differences in shapes, and downsizing targets if necessary (using nearest neighbor interpolat
monai/losses/ds_loss.py:61
↓ 1 callersMethodget_lr
(self)
monai/optimizers/lr_scheduler.py:46
↓ 1 callersFunctionget_mask_edges
Compute edges from binary segmentation masks. This function is helpful to further calculate metrics such as Average Surface Distance and
monai/metrics/utils.py:154
↓ 1 callersMethodget_mlflow_experiment_name
Get the experiment name for MLflow server
monai/apps/auto3dseg/bundle_gen.py:615
↓ 1 callersMethodget_mlflow_tracking_uri
Get the tracking URI for MLflow server
monai/apps/auto3dseg/bundle_gen.py:611
↓ 1 callersFunctionget_model_names
()
tests/networks/nets/test_flexible_unet.py:63
↓ 1 callersMethodget_mpp
Returns the micro-per-pixel resolution of the whole slide image at a given level. Args: wsi: a whole slide image object
monai/data/wsi_reader.py:248
↓ 1 callersMethodget_mpp
Returns the micro-per-pixel resolution of the whole slide image at a given level. Args: wsi: a whole slide image object
monai/data/wsi_reader.py:660
↓ 1 callersMethodget_mpp
Returns the micro-per-pixel resolution of the whole slide image at a given level. Args: wsi: a whole slide image object
monai/data/wsi_reader.py:814
↓ 1 callersMethodget_mpp
Returns the micro-per-pixel resolution of the whole slide image at a given level. Args: wsi: a whole slide image object
monai/data/wsi_reader.py:1094
↓ 1 callersMethodget_mpp
Returns the micro-per-pixel resolution of the whole slide image at a given level. Args: wsi: a whole slide image object
monai/data/wsi_reader.py:1359
↓ 1 callersMethodget_name
Get the mode name for the given spatial dimension using class variable ``name``. Args: spatial_dims: number of spatial d
monai/data/box_utils.py:85
↓ 1 callersFunctionget_name_from_algo_id
Get the name of Algo from the identifier of the Algo. Args: id: identifier which follows a convention of "name_fold_other". Ret
monai/apps/auto3dseg/utils.py:87
↓ 1 callersFunctionget_nnunet_monai_predictor
Initializes and returns a `nnUNetMONAIModelWrapper` containing the corresponding `nnUNetPredictor`. The model folder should contain the follo
monai/apps/nnunet/nnunet_bundle.py:297
↓ 1 callersFunctionget_nnunet_trainer
Get the nnUNet trainer instance based on the provided configuration. The returned nnUNet trainer can be used to initialize the SupervisedTrai
monai/apps/nnunet/nnunet_bundle.py:38
← previousnext →1,801–1,900 of 7,906, ranked by callers