MCPcopy Create free account

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

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

↓ 1 callersMethodset_options
Set the options for the underlying writer by updating the `self.*_kwargs` dictionaries. The arguments correspond to the following us
monai/transforms/io/array.py:450
↓ 1 callersMethodset_prediction_params
Set the prediction params for all algos. Args: params: a dict that defines the overriding key-value pairs during predict
monai/apps/auto3dseg/auto_runner.py:639
↓ 1 callersMethodset_random_state
(self, seed: int | None = None, state: np.random.RandomState | None = None)
monai/transforms/regularization/dictionary.py:79
↓ 1 callersMethodset_random_state
(self, seed: int | None = None, state: np.random.RandomState | None = None)
monai/transforms/regularization/dictionary.py:110
↓ 1 callersMethodset_random_state
( self, seed: int | None = None, state: np.random.RandomState | None = None )
monai/transforms/intensity/dictionary.py:209
↓ 1 callersMethodset_random_state
(self, seed: int | None = None, state: np.random.RandomState | None = None)
monai/transforms/intensity/dictionary.py:288
↓ 1 callersMethodset_random_state
( self, seed: int | None = None, state: np.random.RandomState | None = None )
monai/transforms/intensity/dictionary.py:528
↓ 1 callersMethodset_random_state
( self, seed: int | None = None, state: np.random.RandomState | None = None )
monai/transforms/intensity/dictionary.py:1266
↓ 1 callersMethodset_random_state
( self, seed: int | None = None, state: np.random.RandomState | None = None )
monai/transforms/intensity/dictionary.py:1383
↓ 1 callersMethodset_random_state
( self, seed: int | None = None, state: np.random.RandomState | None = None )
monai/transforms/intensity/dictionary.py:1433
↓ 1 callersMethodset_random_state
( self, seed: int | None = None, state: np.random.RandomState | None = None )
monai/transforms/intensity/dictionary.py:1813
↓ 1 callersMethodset_random_state
(self, seed: int | None = None, state: np.random.RandomState | None = None)
monai/transforms/spatial/dictionary.py:1306
↓ 1 callersMethodset_random_state
(self, seed: int | None = None, state: np.random.RandomState | None = None)
monai/transforms/spatial/dictionary.py:1457
↓ 1 callersMethodset_random_state
(self, seed: int | None = None, state: np.random.RandomState | None = None)
monai/transforms/spatial/dictionary.py:1677
↓ 1 callersMethodset_random_state
( self, seed: int | None = None, state: np.random.RandomState | None = None )
monai/transforms/spatial/dictionary.py:2288
↓ 1 callersMethodset_random_state
(self, seed: int | None = None, state: np.random.RandomState | None = None)
monai/transforms/spatial/dictionary.py:2536
↓ 1 callersMethodset_random_state
( self, seed: int | None = None, state: np.random.RandomState | None = None )
monai/transforms/spatial/dictionary.py:2619
↓ 1 callersMethodset_random_state
(self, seed: int | None = None, state: np.random.RandomState | None = None)
monai/transforms/spatial/array.py:2747
↓ 1 callersMethodset_score
Report the acc to NNI server.
monai/apps/auto3dseg/hpo_gen.py:203
↓ 1 callersMethodset_score
Set the accuracy score
monai/apps/auto3dseg/hpo_gen.py:317
↓ 1 callersMethodset_spatial_size
Set the `spatial_size` and `spatial_zoom` attributes used for interpolating the field to the given dimension, or not interpolate at a
monai/transforms/smooth_field/array.py:101
↓ 1 callersMethodset_transform_hash
Get hashable transforms, and then hash them. Hashable transforms are deterministic transforms that inherit from `Transform`. We stop a
monai/data/dataset.py:303
↓ 1 callersMethodset_trial
Set the Optuna trial
monai/apps/auto3dseg/hpo_gen.py:321
↓ 1 callersMethodset_validator
Set validator if not setting in the __init__().
monai/handlers/validation_handler.py:58
↓ 1 callersFunctionsetup
(app)
docs/source/conf.py:163
↓ 1 callersFunctionsigmoid_focal_loss
FL(pt) = -alpha * (1 - pt)**gamma * log(pt) where p = sigmoid(x), pt = p if label is 1 or 1 - p if label is 0
monai/losses/focal_loss.py:252
↓ 1 callersFunctionsingle_2d_transform_cases
()
tests/transforms/functional/test_apply.py:25
↓ 1 callersMethodsoft_dc
Applies data consistency to input x. Suppose x is an intermediate estimate of the kspace and ref_kspace is the reference under-sample
monai/apps/reconstruction/networks/blocks/varnetblock.py:43
↓ 1 callersFunctionsoft_dilate
Perform soft dilation on the input image Args: img: the shape should be BCH(WD) Adapted from: https://github.com/jocpae
monai/losses/cldice.py:48
↓ 1 callersFunctionsoftmax_focal_loss
FL(pt) = -alpha * (1 - pt)**gamma * log(pt) where p_i = exp(s_i) / sum_j exp(s_j), t is the target (ground truth) class, and s_j is the
monai/losses/focal_loss.py:216
↓ 1 callersMethodsort_score
Sort the best_metrics
monai/apps/auto3dseg/ensemble_builder.py:251
↓ 1 callersFunctionspatial_average_3d
(x: torch.Tensor, keepdim: bool = True)
monai/losses/perceptual.py:309
↓ 1 callersFunctionspatial_resample
Functional implementation of resampling the input image to the specified ``dst_affine`` matrix and ``spatial_size``. This function operates e
monai/transforms/spatial/functional.py:109
↓ 1 callersMethodsplit_path_id
Split `src` string into two parts: a config file path and component id. The file path should end with `(json|yaml|yml)`. The componen
monai/bundle/config_parser.py:663
↓ 1 callersMethodstart
Check MLFlow status and start if not active.
monai/handlers/mlflow_handler.py:209
↓ 1 callersFunctionstd
`torch.std` with equivalent implementation for numpy Args: x: array/tensor. Returns: the standard deviation of x.
monai/transforms/utils_pytorch_numpy_unification.py:550
↓ 1 callersMethodstep_plms
Step function propagating the sample with the linear multi-step method. This has one forward pass with multiple times to approximate
monai/networks/schedulers/pndm.py:227
↓ 1 callersMethodstep_prk
Step function propagating the sample with the Runge-Kutta method. RK takes 4 forward passes to approximate the solution to the differ
monai/networks/schedulers/pndm.py:185
↓ 1 callersMethodstn
(self, x)
tests/integration/test_integration_stn.py:63
↓ 1 callersMethodstn_ref
(self, x)
tests/integration/test_integration_stn.py:53
↓ 1 callersMethodstop
(self)
monai/data/thread_buffer.py:60
↓ 1 callersFunctionstride_minus_kernel_padding
(kernel_size: Sequence[int] | int, stride: Sequence[int] | int)
monai/networks/layers/convutils.py:46
↓ 1 callersFunctionsure_loss_function
Args: operator (function): The operator function that takes in an input tensor x and returns an output tensor y. We will use this
monai/losses/sure_loss.py:41
↓ 1 callersMethodtearDownClass
(cls)
tests/transforms/test_load_image.py:204
↓ 1 callersMethodtest_data
(self)
tests/hvd_evenly_divisible_all_gather.py:24
↓ 1 callersMethodtest_get_number_of_conversions
(self)
tests/transforms/utils/test_print_transform_backends.py:21
↓ 1 callersMethodtesting_algo_template
()
monai/utils/misc.py:565
↓ 1 callersFunctiontimeout
(time, message)
monai/_extensions/loader.py:30
↓ 1 callersFunctionto_kwargs
(fn)
monai/transforms/adaptors.py:235
↓ 1 callersMethodtrain
Run the training for all the models specified by the configurations. Note: to set the number of GPUs to use, use ``gpu_id_for_all`` i
monai/apps/nnunet/nnunetv2_runner.py:607
↓ 1 callersMethodtrain_and_infer
(self, idx=0)
tests/integration/test_integration_lazy_samples.py:177
↓ 1 callersMethodtrain_parallel
Create the line command for subprocess call for parallel training. Note: to set the number of GPUs to use, use ``gpu_id_for_all`` ins
monai/apps/nnunet/nnunetv2_runner.py:701
↓ 1 callersMethodtrain_parallel_cmd
Create the line command for subprocess call for parallel training. Args: configs: configurations that should be trained.
monai/apps/nnunet/nnunetv2_runner.py:641
↓ 1 callersMethodtransform_coordinates
Transform coordinates using an affine transformation matrix. Args: data: The input coordinates are assumed to be in the
monai/transforms/utility/array.py:1900
↓ 1 callersFunctiontrt_to_torch_dtype_dict
()
monai/networks/trt_compiler.py:51
↓ 1 callersMethodunwrap_ops
Unwrap a function value and generates the same set keys in a dict when the function is actually called in runtime Args:
monai/auto3dseg/analyzer.py:131
↓ 1 callersMethodupdate
Args: output: sequence with contents [y_pred, y]. Raises: ValueError: When ``output`` length is not 2. metri
monai/handlers/ignite_metric.py:97
↓ 1 callersMethodupdate_config_with_refs
With all the references in ``refs``, update the input config content with references and return the new config. Args:
monai/bundle/reference_resolver.py:346
↓ 1 callersFunctionupdate_docstring
Find the documentation for a given transform and if it's missing, add a pointer to the transform's example image.
monai/transforms/utils_create_transform_ims.py:233
↓ 1 callersMethodupdate_params
Translate the parameter from monai bundle to meet NNI requirements. Args: params: a dict of parameters.
monai/apps/auto3dseg/hpo_gen.py:167
↓ 1 callersMethodupdate_params
Translate the parameter from monai bundle. Args: params: a dict of parameters.
monai/apps/auto3dseg/hpo_gen.py:341
↓ 1 callersMethodupdate_point_to_patch
Update point_coords with respect to patch coords. If point is outside of the patch, remove the coordinates and set label to -1.
monai/networks/nets/vista3d.py:182
↓ 1 callersMethodupdate_refs_pattern
Match regular expression for the input string to update content with the references. The reference part starts with ``"@"``, like: ``
monai/bundle/reference_resolver.py:282
↓ 1 callersMethodupdate_slidingwindow_padding
Image has been padded by sliding window inferer. The related padding need to be performed outside of slidingwindow inferer.
monai/networks/nets/vista3d.py:82
↓ 1 callersMethodvalidate_single_model
Perform validation on single model. Args: config: configuration that should be trained. fold: fold of the 5-
monai/apps/nnunet/nnunetv2_runner.py:751
↓ 1 callersFunctionverify_metadata
Verify the provided `metadata` file based on the predefined `schema`. `metadata` content must contain the `schema` field for the URL of schem
monai/bundle/scripts.py:1047
↓ 1 callersFunctionverify_net_in_out
Verify the input and output data shape and data type of network defined in the metadata. Will test with fake Tensor data according to the req
monai/bundle/scripts.py:1158
↓ 1 callersMethodverify_suffix
Verify whether the specified file or files format is supported by ITK reader. Args: filename: file name or a list of fil
monai/data/image_reader.py:217
↓ 1 callersFunctionversions_from_file
Try to determine the version from _version.py if present.
versioneer.py:1403
↓ 1 callersFunctionversions_from_parentdir
Try to determine the version from the parent directory name. Source tarballs conventionally unpack into a directory that includes both the pr
versioneer.py:1358
↓ 1 callersFunctionversions_from_parentdir
Try to determine the version from the parent directory name. Source tarballs conventionally unpack into a directory that includes both the pr
monai/_version.py:115
↓ 1 callersMethodw_func
(self, grnd)
monai/losses/dice.py:386
↓ 1 callersMethodwarmup_kvikio
Warm up the Kvikio library to initialize the internal buffers, cuFile, GDS, etc. This can accelerate the data loading process when `t
monai/data/image_reader.py:470
↓ 1 callersMethodwarmup_kvikio
Warm up the Kvikio library to initialize the internal buffers, cuFile, GDS, etc. This can accelerate the data loading process when `t
monai/data/image_reader.py:1045
↓ 1 callersMethodwasserstein_distance_map
Compute the voxel-wise Wasserstein distance between the flattened prediction and the flattened labels (ground_truth) with respect
monai/losses/dice.py:610
↓ 1 callersMethodweight_parameters
(self)
monai/networks/nets/dints.py:481
↓ 1 callersFunctionweighted_patch_samples
Computes `n_samples` of random patch sampling locations, given the sampling weight map `w` and patch `spatial_size`. Args: spatial_s
monai/transforms/utils.py:547
↓ 1 callersFunctionwindow_reverse
window reverse operation based on: "Liu et al., Swin Transformer: Hierarchical Vision Transformer using Shifted Windows <https://arxiv.org/abs
monai/networks/nets/swin_unetr.py:385
↓ 1 callersFunctionzip_with
Map `op`, using `mapfunc`, to each tuple derived from zipping the iterables in `vals`.
monai/utils/misc.py:110
↓ 1 callersFunctionzoom
Functional implementation of zoom. This function operates eagerly or lazily according to ``lazy`` (default ``False``). Args:
monai/transforms/spatial/functional.py:456
Method__array_function__
for numpy Interoperability, so that we can compute ``np.sum(MetaTensor([1.0]))``.
monai/data/meta_tensor.py:313
Method__array_ufunc__
For numpy interoperability, so that we can compute ``MetaTensor([1.0]) >= np.asarray([1.0])``. This is for pytorch > 1.8.
monai/data/meta_tensor.py:324
Method__bool__
(self)
monai/bundle/config_parser.py:211
Method__call__
(self, x: np.ndarray)
monai/utils/ordering.py:89
Method__call__
(self, value: int | float)
monai/utils/misc.py:853
Method__call__
Raises: OptionalImportError: When you call this method.
monai/utils/module.py:428
Method__call__
(self, obj: Any)
monai/utils/nvtx.py:67
Method__call__
Run the filtering. Arguments: data: ExchangeObject containing some data. Returns: ExchangeObject: f
monai/fl/utils/filters.py:25
Method__call__
Example filter that doesn't filter anything but only prints data summary. Arguments: data: ExchangeObject containing som
monai/fl/utils/filters.py:44
Method__call__
Execute basic computation for model prediction `y_pred` and ground truth `y` (optional). It supports inputs of a list of "channel-fir
monai/metrics/metric.py:54
Method__call__
Execute basic computation for model prediction and ground truth. It can support both `list of channel-first Tensor` and `batch-first
monai/metrics/metric.py:327
Method__call__
Args: y_pred: Predicted segmentation, typically segmentation model output. It must be N-repeats, repeat-first ten
monai/metrics/active_learning_metrics.py:54
Method__call__
Args: y_pred: Predicted segmentation, typically segmentation model output. It must be N-repeats, repeat-first ten
monai/metrics/active_learning_metrics.py:93
Method__call__
Compute the metric for the given prediction and ground truth. Args: y_pred: input predictions with shape (batch_size, nu
monai/metrics/meandice.py:377
Method__call__
Compute collapse scores. Args: embeddings: float tensor of shape ``[N, D]``. Required. labels: integer class labels o
monai/metrics/embedding_collapse.py:90
Method__call__
(self, y_pred: torch.Tensor, y: torch.Tensor)
monai/metrics/fid.py:36
Method__call__
(self, y: torch.Tensor, y_pred: torch.Tensor)
monai/metrics/mmd.py:39
Method__call__
Args: data: is a dictionary containing (key,value) pairs from the loaded dataset Returns: th
monai/apps/reconstruction/transforms/dictionary.py:73
Method__call__
Args: data: is a dictionary containing (key,value) pairs from the loaded dataset Returns: th
monai/apps/reconstruction/transforms/dictionary.py:155
Method__call__
This transform can support to crop ND spatial (channel-first) data. It also supports pseudo ND spatial data (e.g., (C,H,W) is a pseud
monai/apps/reconstruction/transforms/dictionary.py:250
← previousnext →2,201–2,300 of 7,906, ranked by callers