MCPcopy Create free account

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

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

↓ 1 callersMethodread_cache
Check if the intermediate result is cached after each step in the current working directory Returns: a dict of cache res
monai/apps/auto3dseg/auto_runner.py:348
↓ 1 callersFunctionremove_extra_metadata
Remove extra metadata from the dictionary. Operates in-place so nothing is returned. Args: meta: dictionary containing metadata to b
monai/data/utils.py:1516
↓ 1 callersFunctionremove_keys
Remove keys from a dictionary. Operates in-place so nothing is returned. Args: data: dictionary to be modified. keys: keys t
monai/data/utils.py:1501
↓ 1 callersFunctionremove_small_objects
Use `skimage.morphology.remove_small_objects` to remove small objects from images. See: https://scikit-image.org/docs/dev/api/skimage.morphol
monai/transforms/utils.py:1421
↓ 1 callersFunctionrender
Render the given version pieces into the requested style.
versioneer.py:1640
↓ 1 callersFunctionrender
Render the given version pieces into the requested style.
monai/_version.py:578
↓ 1 callersFunctionrender_git_describe
TAG[-DISTANCE-gHEX][-dirty]. Like 'git describe --tags --dirty --always'. Exceptions: 1: no tags. HEX[-dirty] (note: no 'g' prefix)
versioneer.py:1600
↓ 1 callersFunctionrender_git_describe
TAG[-DISTANCE-gHEX][-dirty]. Like 'git describe --tags --dirty --always'. Exceptions: 1: no tags. HEX[-dirty] (note: no 'g' prefix)
monai/_version.py:538
↓ 1 callersFunctionrender_git_describe_long
TAG-DISTANCE-gHEX[-dirty]. Like 'git describe --tags --dirty --always -long'. The distance/hash is unconditional. Exceptions: 1: no
versioneer.py:1620
↓ 1 callersFunctionrender_git_describe_long
TAG-DISTANCE-gHEX[-dirty]. Like 'git describe --tags --dirty --always -long'. The distance/hash is unconditional. Exceptions: 1: no
monai/_version.py:558
↓ 1 callersFunctionrender_pep440
Build up version string, with post-release "local version identifier". Our goal: TAG[+DISTANCE.gHEX[.dirty]] . Note that if you get a tagged
versioneer.py:1435
↓ 1 callersFunctionrender_pep440
Build up version string, with post-release "local version identifier". Our goal: TAG[+DISTANCE.gHEX[.dirty]] . Note that if you get a tagged
monai/_version.py:371
↓ 1 callersFunctionrender_pep440_branch
TAG[[.dev0]+DISTANCE.gHEX[.dirty]] . The ".dev0" means not master branch. Note that .dev0 sorts backwards (a feature branch will appear "olde
versioneer.py:1459
↓ 1 callersFunctionrender_pep440_branch
TAG[[.dev0]+DISTANCE.gHEX[.dirty]] . The ".dev0" means not master branch. Note that .dev0 sorts backwards (a feature branch will appear "olde
monai/_version.py:396
↓ 1 callersFunctionrender_pep440_old
TAG[.postDISTANCE[.dev0]] . The ".dev0" means dirty. Exceptions: 1: no tags. 0.postDISTANCE[.dev0]
versioneer.py:1578
↓ 1 callersFunctionrender_pep440_old
TAG[.postDISTANCE[.dev0]] . The ".dev0" means dirty. Exceptions: 1: no tags. 0.postDISTANCE[.dev0]
monai/_version.py:516
↓ 1 callersFunctionrender_pep440_post
TAG[.postDISTANCE[.dev0]+gHEX] . The ".dev0" means dirty. Note that .dev0 sorts backwards (a dirty tree will appear "older" than the correspo
versioneer.py:1522
↓ 1 callersFunctionrender_pep440_post
TAG[.postDISTANCE[.dev0]+gHEX] . The ".dev0" means dirty. Note that .dev0 sorts backwards (a dirty tree will appear "older" than the correspo
monai/_version.py:460
↓ 1 callersFunctionrender_pep440_post_branch
TAG[.postDISTANCE[.dev0]+gHEX[.dirty]] . The ".dev0" means not master branch. Exceptions: 1: no tags. 0.postDISTANCE[.dev0]+gHEX[.dirty]
versioneer.py:1549
↓ 1 callersFunctionrender_pep440_post_branch
TAG[.postDISTANCE[.dev0]+gHEX[.dirty]] . The ".dev0" means not master branch. Exceptions: 1: no tags. 0.postDISTANCE[.dev0]+gHEX[.dirty]
monai/_version.py:487
↓ 1 callersFunctionrender_pep440_pre
TAG[.postN.devDISTANCE] -- No -dirty. Exceptions: 1: no tags. 0.post0.devDISTANCE
versioneer.py:1498
↓ 1 callersFunctionrender_pep440_pre
TAG[.postN.devDISTANCE] -- No -dirty. Exceptions: 1: no tags. 0.post0.devDISTANCE
monai/_version.py:436
↓ 1 callersMethodreparameterize
(self, mu: torch.Tensor, logvar: torch.Tensor)
monai/networks/nets/varautoencoder.py:144
↓ 1 callersMethodreparameterize
(self, mu: torch.Tensor, logvar: torch.Tensor)
monai/networks/nets/fullyconnectednet.py:174
↓ 1 callersFunctionreplace_element
(to_replace, batch, idx, key_or_idx)
monai/transforms/croppad/batch.py:32
↓ 1 callersFunctionreplace_modules_by_type
Top-level function to replace modules in model, specified by class name with a desired replacement. NOTE: This occurs in place, if you want t
monai/networks/utils.py:1375
↓ 1 callersFunctionrequires_interp
Check whether the transformation matrix suggests voxel-wise interpolation. Returns None if the affine matrix suggests interpolation. Oth
monai/transforms/lazy/utils.py:122
↓ 1 callersMethodresample_and_clip
Resample ``data_array`` to ``output_spatial_shape`` if needed. Args: data_array: input data array. This method assumes th
monai/data/image_writer.py:789
↓ 1 callersFunctionresample_datalist
Utility function to resample the loaded datalist for training, for example: If factor < 1.0, randomly pick part of the datalist and set to Da
monai/data/utils.py:1310
↓ 1 callersMethodreset
Reset all stats
monai/metrics/cumulative_average.py:49
↓ 1 callersMethodreset_cache
Clear the cache dictionary content
monai/data/csv_saver.py:120
↓ 1 callersMethodreset_parameters
(self)
monai/networks/layers/simplelayers.py:640
↓ 1 callersFunctionresize_boxes
Resize boxes when the corresponding image is resized Args: boxes: source bounding boxes, Nx4 or Nx6 torch tensor or ndarray. The box
monai/apps/detection/transforms/box_ops.py:129
↓ 1 callersMethodresolve_args
Utility function used in `instantiate()` to resolve the arguments from current config content.
monai/bundle/config_item.py:260
↓ 1 callersMethodresolve_events
Resolve the input events to create a pair of Ignite events
monai/handlers/nvtx_handlers.py:68
↓ 1 callersMethodresolve_format
Resolve the format of the pre-defined report. Args: report: the dictionary to resolve. Values will be replaced in-place.
monai/auto3dseg/analyzer.py:152
↓ 1 callersMethodresolve_module_name
Resolve the target module name from current config content. The config content must have ``"_target_"`` key.
monai/bundle/config_item.py:236
↓ 1 callersMethodresolve_relative_ids
To simplify the reference or macro tokens ID in the nested config content, it's available to use relative ID name which starts with t
monai/bundle/config_parser.py:682
↓ 1 callersFunctionroll_1d
Similar to roll but for only one dim. Args: x: input data (k-space or image) that can be 1) real-valued: the shape is (C
monai/networks/blocks/fft_utils_t.py:18
↓ 1 callersFunctionrot90_boxes
Rotate boxes by 90 degrees in the plane specified by axes. Rotation direction is from the first towards the second axis. Args: b
monai/apps/detection/transforms/box_ops.py:384
↓ 1 callersFunctionrotate90
Functional implementation of rotate90. This function operates eagerly or lazily according to ``lazy`` (default ``False``). Args:
monai/transforms/spatial/functional.py:540
↓ 1 callersFunctionrotate_90_2d
()
tests/transforms/functional/test_resample.py:24
↓ 1 callersMethodrun
Calls the `run` method of the wrapped engine.
monai/utils/jupyter_utils.py:296
↓ 1 callersMethodrun
Load the run function in the training script of each model. Training parameter is predefined by the algo_config.yaml file, which is p
monai/apps/auto3dseg/ensemble_builder.py:608
↓ 1 callersMethodrun
Run the nnU-Net pipeline. Args: run_convert_dataset: whether to convert datasets, defaults to True. run_plan
monai/apps/nnunet/nnunetv2_runner.py:1003
↓ 1 callersMethodrun_algo
The python interface for NNI to run. Args: obj_filename: the serialized Algo object. output_folder: the root
monai/apps/auto3dseg/hpo_gen.py:375
↓ 1 callersFunctionrun_auto3dseg_before_bundlegen
Run the Auto3DSeg modules before the BundleGen step. Args: test_path: a path to contain `sim_dataroot` which is for the simulated dat
tests/apps/test_auto3dseg_bundlegen.py:73
↓ 1 callersFunctionrun_command
Call the given command(s).
versioneer.py:386
↓ 1 callersFunctionrun_inference_test
(root_dir, test_x, test_y, device="cuda:0", num_workers=10)
tests/integration/test_integration_classification_2d.py:158
↓ 1 callersFunctionrun_inference_test
(root_dir, model_file, device="cuda:0", amp=False, num_workers=4)
tests/integration/test_integration_workflows.py:218
↓ 1 callersFunctionrun_inference_test
(root_dir, device="cuda:0")
tests/integration/test_integration_segmentation_3d.py:180
↓ 1 callersFunctionrun_loading_test
multi workers stress tests
tests/integration/test_integration_workers.py:24
↓ 1 callersFunctionrun_test
(batch_size, img_name, seg_name, output_dir, device="cuda:0")
tests/integration/test_integration_sliding_window.py:33
↓ 1 callersFunctionrun_test
(net_name="basicunet", batch_size=64, train_steps=100, device="cuda:0")
tests/integration/test_integration_unet_2d.py:27
↓ 1 callersFunctionrun_test
(batch_size=64, train_steps=200, device="cuda:0")
tests/integration/test_integration_determinism.py:28
↓ 1 callersFunctionrun_testsuit
Load test cases by excluding those need external dependencies. The loaded cases should work with "requirements-min.txt":: # in the m
tests/min_tests.py:20
↓ 1 callersFunctionrun_training_test
(root_dir, device="cuda:0")
tests/integration/test_integration_workflows_adversarial.py:36
↓ 1 callersFunctionrun_training_test
(root_dir, train_x, train_y, val_x, val_y, device="cuda:0", num_workers=10)
tests/integration/test_integration_classification_2d.py:60
↓ 1 callersFunctionrun_training_test
(root_dir, device="cuda:0", amp=False, num_workers=4)
tests/integration/test_integration_workflows.py:64
↓ 1 callersFunctionrun_training_test
(root_dir, device="cuda:0", cachedataset=0, readers=(None, None))
tests/integration/test_integration_segmentation_3d.py:52
↓ 1 callersFunctionrun_training_test
(root_dir, device="cuda:0")
tests/integration/test_integration_workflows_gan.py:36
↓ 1 callersFunctionsample_prompt_pairs
Sample training pairs for VISTA3D training. Args: labels: [1, 1, H, W, D], ground truth labels. label_set: the label list fo
monai/apps/vista3d/sampler.py:41
↓ 1 callersFunctionsample_slices
sample several slices of input numpy array or Tensor on specified `dim`. Args: data: input data to sample slices, can be numpy array or P
monai/utils/misc.py:611
↓ 1 callersMethodsample_timesteps
Randomly samples training timesteps using the chosen sampling method. Args: x_start (torch.Tensor): The input tensor for
monai/networks/schedulers/rectified_flow.py:253
↓ 1 callersFunctionsave_image
Save image to file, ensuring there's no whitespace around the edge.
monai/transforms/utils_create_transform_ims.py:312
↓ 1 callersFunctionsave_obj
Save an object to file with specified path. Support to serialize to a temporary file first, then move to final destination, so that files
monai/utils/misc.py:648
↓ 1 callersFunctionsave_onnx
(onnx_obj: Any, filename_prefix_or_stream: str, **kwargs: Any)
monai/bundle/scripts.py:1421
↓ 1 callersMethodsave_prob_map
This method save the probability map for an image, when its inference is finished, and delete that probability map from memory.
monai/handlers/probability_maps.py:117
↓ 1 callersFunctionsave_rgba_tiff
Save numpy array into a TIFF RGB/RGBA file Args: array: numpy ndarray with the shape of CxHxW and C==3 representing a RGB image
tests/utils/enums/test_wsireader.py:419
↓ 1 callersFunctionscales_for_resolution
A helper function to compute a schedule of scale at different downsampling levels, given the input resolution. .. code-block:: python
monai/networks/nets/segresnet_ds.py:29
↓ 1 callersFunctionscan_setup_py
Validate the contents of setup.py against Versioneer's expectations.
versioneer.py:2133
↓ 1 callersFunctionsearchsorted
`np.searchsorted` with equivalent implementation for torch. Args: a: numpy array or tensor, containing monotonically increasing sequ
monai/transforms/utils_pytorch_numpy_unification.py:345
↓ 1 callersMethodselect_negatives
Select hard negative samples. Args: negative: indices of all the negative samples, sized (P,), where P i
monai/apps/detection/utils/hard_negative_sampler.py:63
↓ 1 callersMethodselect_positives
Select positive samples Args: positive: indices of positive samples, sized (P,), where P is the number o
monai/apps/detection/utils/hard_negative_sampler.py:281
↓ 1 callersMethodselect_samples_img_list
Select positives and hard negatives from list samples per image. Hard negative sampler will be applied to each image independently.
monai/apps/detection/utils/hard_negative_sampler.py:161
↓ 1 callersMethodselect_samples_per_img
Select positives and hard negatives from samples. Args: labels_per_img: labels, sized (A,). Positive sam
monai/apps/detection/utils/hard_negative_sampler.py:209
↓ 1 callersMethodselect_top_score_idx_per_level
Select indices with highest scores. The indices selection is performed with the following steps: #. If self.apply_sigmoid,
monai/apps/detection/utils/box_selector.py:105
↓ 1 callersMethodsetUp
(self)
tests/data/test_itk_torch_bridge.py:503
↓ 1 callersMethodsetUpClass
(cls)
tests/transforms/test_load_image.py:190
↓ 1 callersMethodset_algos
Register model in the ensemble
monai/apps/auto3dseg/ensemble_builder.py:60
↓ 1 callersMethodset_analyze_params
Set the data analysis extra params. Args: params: a dict that defines the overriding key-value pairs during training. Th
monai/apps/auto3dseg/auto_runner.py:657
↓ 1 callersMethodset_array
Copies the elements from src into self tensor and returns self. The src tensor must be broadcastable with the self tensor. It
monai/data/meta_tensor.py:372
↓ 1 callersMethodset_box_regression_loss
Using for training. Set loss for box regression. Args: box_loss: loss module for box regression encode_gt: i
monai/apps/detection/networks/retinanet_detector.py:304
↓ 1 callersMethodset_cell_anchors
Convert each element in self.cell_anchors to ``dtype`` and send to ``device``.
monai/apps/detection/utils/anchor_utils.py:205
↓ 1 callersMethodset_cls_loss
Using for training. Set loss for classification that takes logits as inputs, make sure sigmoid/softmax is built in. Args:
monai/apps/detection/networks/retinanet_detector.py:289
↓ 1 callersMethodset_data
Set the input data and delete all the out-dated cache content.
monai/data/dataset.py:323
↓ 1 callersMethodset_data
Set the input data and run deterministic transforms to generate cache content. Note: should call `shutdown()` before calling this fu
monai/data/dataset.py:1099
↓ 1 callersMethodset_data_source
Set the data source configuration file Args: data_src_cfg: path to a configuration file (yaml) that contains datalist, d
monai/apps/auto3dseg/bundle_gen.py:124
↓ 1 callersMethodset_data_stats
Set the data stats filename Args: data_stats_filename: filename of datastats
monai/apps/auto3dseg/bundle_gen.py:565
↓ 1 callersMethodset_device_info
Set the device related info Args: cuda_visible_devices: define GPU ids for data analyzer, training, and ensembling.
monai/apps/auto3dseg/auto_runner.py:542
↓ 1 callersMethodset_dtype
(self, dtype)
monai/data/wsi_reader.py:122
↓ 1 callersMethodset_field_mode
(self, mode: str)
monai/transforms/smooth_field/array.py:429
↓ 1 callersMethodset_gpu_customization
Set options for GPU-based parameter customization/optimization. Args: gpu_customization: the switch to determine automat
monai/apps/auto3dseg/auto_runner.py:462
↓ 1 callersMethodset_grid_mode
(self, mode: str)
monai/transforms/smooth_field/array.py:432
↓ 1 callersMethodset_infer_files
Set the files to perform model inference. Args: dataroot: the path of the files data_list_or_path: the data
monai/apps/auto3dseg/ensemble_builder.py:86
↓ 1 callersMethodset_inputs
Sets input bindings for TRT engine according to feed_dict Args: feed_dict: a dictionary [str->Tensor] stream: C
monai/networks/trt_compiler.py:168
↓ 1 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:739
↓ 1 callersMethodset_mlflow_experiment_name
Set the experiment name for MLflow server Args: mlflow_experiment_name: a string to specify the experiment name for MLfl
monai/apps/auto3dseg/bundle_gen.py:602
↓ 1 callersMethodset_mlflow_tracking_uri
Set the tracking URI for MLflow server Args: mlflow_tracking_uri: a tracking URI for MLflow server which could be local
monai/apps/auto3dseg/bundle_gen.py:591
↓ 1 callersMethodset_nni_search_space
Set the search space for NNI parameter search. Args: search_space: hyper parameter search space in the form of dict. For
monai/apps/auto3dseg/auto_runner.py:701
← previousnext →2,101–2,200 of 7,906, ranked by callers