SYMBOL INDEX (9683 symbols across 1180 files) FILE: docs/source/conf.py function generate_apidocs (line 58) | def generate_apidocs(*args): function setup (line 163) | def setup(app): function linkcode_resolve (line 191) | def linkcode_resolve(domain, info): FILE: monai/__init__.py function custom_warning_handler (line 24) | def custom_warning_handler(message, category, filename, lineno, file=Non... class DeprecatedTypesWarningFilter (line 31) | class DeprecatedTypesWarningFilter(logging.Filter): method filter (line 32) | def filter(self, record): FILE: monai/_extensions/gmm/gmm.cpp function init (line 18) | py::tuple init() { function learn (line 25) | void learn( function apply (line 54) | torch::Tensor apply(torch::Tensor gmm_tensor, torch::Tensor input_tensor) { function PYBIND11_MODULE (line 79) | PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) { FILE: monai/_extensions/gmm/gmm_cpu.cpp function learn_cpu (line 18) | void learn_cpu( function apply_cpu (line 28) | void apply_cpu( FILE: monai/_extensions/loader.py function timeout (line 30) | def timeout(time, message): function load_module (line 49) | def load_module( FILE: monai/_version.py function get_keywords (line 22) | def get_keywords(): class VersioneerConfig (line 35) | class VersioneerConfig: function get_config (line 39) | def get_config(): class NotThisMethod (line 53) | class NotThisMethod(Exception): function register_vcs_handler (line 61) | def register_vcs_handler(vcs, method): # decorator function run_command (line 72) | def run_command(commands, args, cwd=None, verbose=False, hide_stderr=False, function versions_from_parentdir (line 115) | def versions_from_parentdir(parentdir_prefix, root, verbose): function git_get_keywords (line 140) | def git_get_keywords(versionfile_abs): function git_versions_from_keywords (line 168) | def git_versions_from_keywords(keywords, tag_prefix, verbose): function git_pieces_from_vcs (line 232) | def git_pieces_from_vcs(tag_prefix, root, verbose, runner=run_command): function plus_or_dot (line 364) | def plus_or_dot(pieces): function render_pep440 (line 371) | def render_pep440(pieces): function render_pep440_branch (line 396) | def render_pep440_branch(pieces): function pep440_split_post (line 426) | def pep440_split_post(ver): function render_pep440_pre (line 436) | def render_pep440_pre(pieces): function render_pep440_post (line 460) | def render_pep440_post(pieces): function render_pep440_post_branch (line 487) | def render_pep440_post_branch(pieces): function render_pep440_old (line 516) | def render_pep440_old(pieces): function render_git_describe (line 538) | def render_git_describe(pieces): function render_git_describe_long (line 558) | def render_git_describe_long(pieces): function render (line 578) | def render(pieces, style): function get_versions (line 614) | def get_versions(): FILE: monai/apps/auto3dseg/auto_runner.py class AutoRunner (line 40) | class AutoRunner: method __init__ (line 210) | def __init__( method read_cache (line 348) | def read_cache(self): method export_cache (line 385) | def export_cache(self, **kwargs): method inspect_datalist_folds (line 394) | def inspect_datalist_folds(self, datalist_filename: str) -> int: method set_gpu_customization (line 462) | def set_gpu_customization( method set_num_fold (line 501) | def set_num_fold(self, num_fold: int = 5) -> AutoRunner: method set_training_params (line 520) | def set_training_params(self, params: dict[str, Any] | None = None) ->... method set_device_info (line 542) | def set_device_info( method set_ensemble_method (line 601) | def set_ensemble_method(self, ensemble_method_name: str = "AlgoEnsembl... method set_image_save_transform (line 618) | def set_image_save_transform(self, **kwargs: Any) -> AutoRunner: method set_prediction_params (line 639) | def set_prediction_params(self, params: dict[str, Any] | None = None) ... method set_analyze_params (line 657) | def set_analyze_params(self, params: dict[str, Any] | None = None) -> ... method set_hpo_params (line 673) | def set_hpo_params(self, params: dict[str, Any] | None = None) -> Auto... method set_nni_search_space (line 701) | def set_nni_search_space(self, search_space: dict[str, Any]) -> AutoRu... method _train_algo_in_sequence (line 720) | def _train_algo_in_sequence(self, history: list[dict[str, Any]]) -> None: method _train_algo_in_nni (line 745) | def _train_algo_in_nni(self, history: list[dict[str, Any]]) -> None: method run (line 812) | def run(self): FILE: monai/apps/auto3dseg/bundle_gen.py class BundleAlgo (line 53) | class BundleAlgo(Algo): method __init__ (line 75) | def __init__(self, template_path: PathLike): method pre_check_skip_algo (line 104) | def pre_check_skip_algo(self, skip_bundlegen: bool = False, skip_info:... method set_data_stats (line 114) | def set_data_stats(self, data_stats_files: str) -> None: method set_data_source (line 123) | def set_data_source(self, data_src_cfg: str) -> None: method set_mlflow_tracking_uri (line 134) | def set_mlflow_tracking_uri(self, mlflow_tracking_uri: str | None) -> ... method set_mlflow_experiment_name (line 145) | def set_mlflow_experiment_name(self, mlflow_experiment_name: str | Non... method fill_template_config (line 154) | def fill_template_config(self, data_stats_filename: str, algo_path: st... method export_to_disk (line 171) | def export_to_disk(self, output_path: str, algo_name: str, **kwargs: A... method _create_cmd (line 196) | def _create_cmd(self, train_params: None | dict = None) -> tuple[str, ... method _run_cmd (line 248) | def _run_cmd(self, cmd: str, devices_info: str = "") -> subprocess.Com... method train (line 279) | def train( method get_score (line 302) | def get_score(self, *args, **kwargs): method get_inferer (line 315) | def get_inferer(self, *args, **kwargs): method predict (line 353) | def predict(self, predict_files: list, predict_params: dict | None = N... method get_output_path (line 366) | def get_output_path(self): function _download_algos_url (line 385) | def _download_algos_url(url: str, at_path: str) -> dict[str, dict[str, s... function _copy_algos_folder (line 418) | def _copy_algos_folder(folder, at_path): class BundleGen (line 442) | class BundleGen(AlgoGen): method __init__ (line 466) | def __init__( method set_data_stats (line 531) | def set_data_stats(self, data_stats_filename: str) -> None: method get_data_stats (line 540) | def get_data_stats(self): method set_data_src (line 544) | def set_data_src(self, data_src_cfg_name): method get_data_src (line 553) | def get_data_src(self): method set_mlflow_tracking_uri (line 557) | def set_mlflow_tracking_uri(self, mlflow_tracking_uri): method set_mlflow_experiment_name (line 568) | def set_mlflow_experiment_name(self, mlflow_experiment_name): method get_mlflow_tracking_uri (line 577) | def get_mlflow_tracking_uri(self): method get_mlflow_experiment_name (line 581) | def get_mlflow_experiment_name(self): method get_history (line 585) | def get_history(self) -> list: method generate (line 589) | def generate( FILE: monai/apps/auto3dseg/data_analyzer.py function strenum_representer (line 35) | def strenum_representer(dumper, data): class DataAnalyzer (line 48) | class DataAnalyzer: method __init__ (line 114) | def __init__( method _check_data_uniformity (line 151) | def _check_data_uniformity(keys: list[str], result: dict) -> bool: method get_all_case_stats (line 174) | def get_all_case_stats(self, key="training", transform_list=None): method _get_all_case_stats (line 267) | def _get_all_case_stats( FILE: monai/apps/auto3dseg/ensemble_builder.py class AlgoEnsemble (line 49) | class AlgoEnsemble(ABC): method __init__ (line 54) | def __init__(self): method set_algos (line 60) | def set_algos(self, infer_algos): method get_algo (line 66) | def get_algo(self, identifier): method get_algo_ensemble (line 77) | def get_algo_ensemble(self): method set_infer_files (line 86) | def set_infer_files(self, dataroot: str, data_list_or_path: str | list... method ensemble_pred (line 109) | def ensemble_pred(self, preds, sigmoid=False): method _apply_algo_specific_param (line 135) | def _apply_algo_specific_param(self, algo_spec_param: dict, param: dic... method __call__ (line 154) | def __call__(self, pred_param: dict | None = None) -> list: method collect_algos (line 235) | def collect_algos(self, *args, **kwargs): class AlgoEnsembleBestN (line 239) | class AlgoEnsembleBestN(AlgoEnsemble): method __init__ (line 247) | def __init__(self, n_best: int = 5): method sort_score (line 251) | def sort_score(self): method collect_algos (line 258) | def collect_algos(self, n_best: int = -1) -> None: class AlgoEnsembleBestByFold (line 283) | class AlgoEnsembleBestByFold(AlgoEnsemble): method __init__ (line 291) | def __init__(self, n_fold: int = 5): method collect_algos (line 295) | def collect_algos(self) -> None: class AlgoEnsembleBuilder (line 317) | class AlgoEnsembleBuilder: method __init__ (line 335) | def __init__(self, history: Sequence[dict[str, Any]], data_src_cfg_nam... method add_inferer (line 361) | def add_inferer(self, identifier: str, gen_algo: BundleAlgo, best_metr... method set_ensemble_method (line 377) | def set_ensemble_method(self, ensemble: AlgoEnsemble, *args: Any, **kw... method get_ensemble (line 391) | def get_ensemble(self): class EnsembleRunner (line 397) | class EnsembleRunner: method __init__ (line 427) | def __init__( method set_ensemble_method (line 452) | def set_ensemble_method(self, ensemble_method_name: str = "AlgoEnsembl... method _pop_kwargs_to_get_image_save_transform (line 474) | def _pop_kwargs_to_get_image_save_transform(self, **kwargs): method set_image_save_transform (line 522) | def set_image_save_transform(self, **kwargs: Any) -> None: method set_num_fold (line 540) | def set_num_fold(self, num_fold: int = 5) -> None: method ensemble (line 552) | def ensemble(self): method run (line 608) | def run(self, device_setting: dict | None = None) -> None: method _create_cmd (line 623) | def _create_cmd(self) -> None: FILE: monai/apps/auto3dseg/hpo_gen.py class HPOGen (line 35) | class HPOGen(AlgoGen): method get_hyperparameters (line 46) | def get_hyperparameters(self): method update_params (line 51) | def update_params(self, *args, **kwargs): method set_score (line 56) | def set_score(self, *args, **kwargs): method run_algo (line 61) | def run_algo(self, *args, **kwargs): class NNIGen (line 66) | class NNIGen(HPOGen): method __init__ (line 113) | def __init__(self, algo: Algo | None = None, params: dict | None = None): method get_obj_filename (line 134) | def get_obj_filename(self): method print_bundle_algo_instruction (line 138) | def print_bundle_algo_instruction(self): method get_hyperparameters (line 158) | def get_hyperparameters(self): method update_params (line 167) | def update_params(self, params: dict) -> None: method get_task_id (line 176) | def get_task_id(self): method generate (line 183) | def generate(self, output_folder: str = ".") -> None: method set_score (line 203) | def set_score(self, acc): method run_algo (line 212) | def run_algo(self, obj_filename: str, output_folder: str = ".", templa... class OptunaGen (line 242) | class OptunaGen(HPOGen): method __init__ (line 281) | def __init__(self, algo: Algo | None = None, params: dict | None = Non... method get_obj_filename (line 301) | def get_obj_filename(self): method get_hyperparameters (line 305) | def get_hyperparameters(self): method set_score (line 317) | def set_score(self, acc): method set_trial (line 321) | def set_trial(self, trial): method __call__ (line 325) | def __call__( method update_params (line 341) | def update_params(self, params: dict) -> None: method get_task_id (line 350) | def get_task_id(self): method generate (line 357) | def generate(self, output_folder: str = ".") -> None: method run_algo (line 375) | def run_algo(self, obj_filename: str, output_folder: str = ".", templa... FILE: monai/apps/auto3dseg/transforms.py class EnsureSameShaped (line 25) | class EnsureSameShaped(MapTransform): method __init__ (line 35) | def __init__( method __call__ (line 59) | def __call__(self, data: Mapping[Hashable, torch.Tensor]) -> dict[Hash... FILE: monai/apps/auto3dseg/utils.py function import_bundle_algo_history (line 23) | def import_bundle_algo_history( function export_bundle_algo_history (line 68) | def export_bundle_algo_history(history: list[dict[str, BundleAlgo]]) -> ... function get_name_from_algo_id (line 80) | def get_name_from_algo_id(id: str) -> str: FILE: monai/apps/datasets.py class MedNISTDataset (line 47) | class MedNISTDataset(Randomizable, CacheDataset): method __init__ (line 91) | def __init__( method randomize (line 148) | def randomize(self, data: np.ndarray) -> None: method get_num_classes (line 151) | def get_num_classes(self) -> int: method _generate_data_list (line 155) | def _generate_data_list(self, dataset_dir: PathLike) -> list[dict]: class DecathlonDataset (line 197) | class DecathlonDataset(Randomizable, CacheDataset): method __init__ (line 288) | def __init__( method get_indices (line 359) | def get_indices(self) -> np.ndarray: method randomize (line 366) | def randomize(self, data: np.ndarray) -> None: method get_properties (line 369) | def get_properties(self, keys: Sequence[str] | str | None = None) -> d... method _generate_data_list (line 381) | def _generate_data_list(self, dataset_dir: PathLike) -> list[dict]: method _split_datalist (line 388) | def _split_datalist(self, datalist: list[dict]) -> list[dict]: class TciaDataset (line 404) | class TciaDataset(Randomizable, CacheDataset): method __init__ (line 495) | def __init__( method get_indices (line 577) | def get_indices(self) -> np.ndarray: method randomize (line 584) | def randomize(self, data: np.ndarray) -> None: method _download_series_reference_data (line 587) | def _download_series_reference_data(self, series_uid: str, download_di... method _generate_data_list (line 643) | def _generate_data_list(self, dataset_dir: PathLike) -> list[dict]: method _split_datalist (line 662) | def _split_datalist(self, datalist: list[dict]) -> list[dict]: class CrossValidation (line 678) | class CrossValidation: method __init__ (line 716) | def __init__(self, dataset_cls: object, nfolds: int = 5, seed: int = 0... method get_dataset (line 724) | def get_dataset(self, folds: Sequence[int] | int, **dataset_params: An... FILE: monai/apps/deepedit/interaction.py class Interaction (line 26) | class Interaction: method __init__ (line 45) | def __init__( method __call__ (line 61) | def __call__(self, engine: SupervisedTrainer | SupervisedEvaluator, ba... FILE: monai/apps/deepedit/transforms.py class DiscardAddGuidanced (line 36) | class DiscardAddGuidanced(MapTransform): method __init__ (line 38) | def __init__( method _apply (line 60) | def _apply(self, image): method __call__ (line 73) | def __call__(self, data: Mapping[Hashable, np.ndarray]) -> dict[Hashab... class RemapLabelsToSequentiald (line 87) | class RemapLabelsToSequentiald(MapTransform): method __init__ (line 122) | def __init__( method __call__ (line 129) | def __call__(self, data: Mapping[Hashable, np.ndarray]) -> dict[Hashab... class NormalizeLabelsInDatasetd (line 157) | class NormalizeLabelsInDatasetd(RemapLabelsToSequentiald): class SingleLabelSelectiond (line 168) | class SingleLabelSelectiond(MapTransform): method __init__ (line 170) | def __init__( method __call__ (line 200) | def __call__(self, data: Mapping[Hashable, np.ndarray]) -> dict[Hashab... class AddGuidanceSignalDeepEditd (line 217) | class AddGuidanceSignalDeepEditd(MapTransform): method __init__ (line 229) | def __init__( method _get_signal (line 242) | def _get_signal(self, image, guidance): method __call__ (line 287) | def __call__(self, data: Mapping[Hashable, np.ndarray]) -> dict[Hashab... class FindAllValidSlicesDeepEditd (line 308) | class FindAllValidSlicesDeepEditd(MapTransform): method __init__ (line 317) | def __init__(self, keys: KeysCollection, sids: Hashable = "sids", allo... method _apply (line 321) | def _apply(self, label, d): method __call__ (line 331) | def __call__(self, data: Mapping[Hashable, np.ndarray]) -> dict[Hashab... class AddInitialSeedPointDeepEditd (line 351) | class AddInitialSeedPointDeepEditd(Randomizable, MapTransform): method __init__ (line 367) | def __init__( method _apply (line 383) | def _apply(self, label, sid, key_label): method _randomize (line 428) | def _randomize(self, d, key_label): method __call__ (line 439) | def __call__(self, data: Mapping[Hashable, np.ndarray]) -> dict[Hashab... class FindDiscrepancyRegionsDeepEditd (line 465) | class FindDiscrepancyRegionsDeepEditd(MapTransform): method __init__ (line 474) | def __init__( method disparity (line 486) | def disparity(label, pred): method _apply (line 494) | def _apply(self, label, pred): method __call__ (line 497) | def __call__(self, data: Mapping[Hashable, np.ndarray]) -> dict[Hashab... class AddRandomGuidanceDeepEditd (line 535) | class AddRandomGuidanceDeepEditd(Randomizable, MapTransform): method __init__ (line 545) | def __init__( method randomize (line 563) | def randomize(self, data=None): method find_guidance (line 567) | def find_guidance(self, discrepancy): method add_guidance (line 581) | def add_guidance(self, guidance, discrepancy, label_names, labels): method __call__ (line 620) | def __call__(self, data: Mapping[Hashable, np.ndarray]) -> dict[Hashab... class AddGuidanceFromPointsDeepEditd (line 665) | class AddGuidanceFromPointsDeepEditd(Transform): method __init__ (line 686) | def __init__( method _apply (line 701) | def _apply(clicks, factor): method __call__ (line 708) | def __call__(self, data): class ResizeGuidanceMultipleLabelDeepEditd (line 741) | class ResizeGuidanceMultipleLabelDeepEditd(Transform): method __init__ (line 747) | def __init__(self, guidance: str, ref_image: str) -> None: method __call__ (line 751) | def __call__(self, data): class SplitPredsLabeld (line 783) | class SplitPredsLabeld(MapTransform): method __call__ (line 789) | def __call__(self, data: Mapping[Hashable, np.ndarray]) -> dict[Hashab... class AddInitialSeedPointMissingLabelsd (line 802) | class AddInitialSeedPointMissingLabelsd(Randomizable, MapTransform): method __init__ (line 815) | def __init__( method _apply (line 831) | def _apply(self, label, sid): method _randomize (line 879) | def _randomize(self, d, key_label): method __call__ (line 890) | def __call__(self, data: Mapping[Hashable, np.ndarray]) -> dict[Hashab... class FindAllValidSlicesMissingLabelsd (line 916) | class FindAllValidSlicesMissingLabelsd(MapTransform): method __init__ (line 924) | def __init__(self, keys: KeysCollection, sids: Hashable = "sids", allo... method _apply (line 928) | def _apply(self, label, d): method __call__ (line 941) | def __call__(self, data: Mapping[Hashable, np.ndarray]) -> dict[Hashab... FILE: monai/apps/deepgrow/dataset.py function create_dataset (line 25) | def create_dataset( function _default_transforms (line 135) | def _default_transforms(image_key, label_key, pixdim): function _save_data_2d (line 149) | def _save_data_2d(vol_idx, vol_image, vol_label, dataset_dir, relative_p... function _save_data_3d (line 211) | def _save_data_3d(vol_idx, vol_image, vol_label, dataset_dir, relative_p... FILE: monai/apps/deepgrow/interaction.py class Interaction (line 25) | class Interaction: method __init__ (line 42) | def __init__( method __call__ (line 57) | def __call__(self, engine: SupervisedTrainer | SupervisedEvaluator, ba... FILE: monai/apps/deepgrow/transforms.py class FindAllValidSlicesd (line 36) | class FindAllValidSlicesd(Transform): method __init__ (line 46) | def __init__(self, label: str = "label", sids: str = "sids"): method _apply (line 50) | def _apply(self, label): method __call__ (line 57) | def __call__(self, data: Any) -> dict: class AddInitialSeedPointd (line 72) | class AddInitialSeedPointd(Randomizable, Transform): method __init__ (line 89) | def __init__( method randomize (line 104) | def randomize(self, data): method _apply (line 114) | def _apply(self, label, sid): method __call__ (line 152) | def __call__(self, data): class AddGuidanceSignald (line 159) | class AddGuidanceSignald(Transform): method __init__ (line 173) | def __init__(self, image: str = "image", guidance: str = "guidance", s... method _get_signal (line 179) | def _get_signal(self, image, guidance): method _apply (line 213) | def _apply(self, image, guidance): method __call__ (line 222) | def __call__(self, data): class FindDiscrepancyRegionsd (line 231) | class FindDiscrepancyRegionsd(Transform): method __init__ (line 242) | def __init__(self, label: str = "label", pred: str = "pred", discrepan... method disparity (line 248) | def disparity(label, pred): method _apply (line 257) | def _apply(self, label, pred): method __call__ (line 260) | def __call__(self, data): class AddRandomGuidanced (line 269) | class AddRandomGuidanced(Randomizable, Transform): method __init__ (line 284) | def __init__(self, guidance: str = "guidance", discrepancy: str = "dis... method randomize (line 290) | def randomize(self, data=None): method find_guidance (line 294) | def find_guidance(self, discrepancy): method add_guidance (line 308) | def add_guidance(self, discrepancy, will_interact): method _apply (line 326) | def _apply(self, guidance, discrepancy): method __call__ (line 339) | def __call__(self, data): class SpatialCropForegroundd (line 349) | class SpatialCropForegroundd(MapTransform): method __init__ (line 399) | def __init__( method __call__ (line 433) | def __call__(self, data): class AddGuidanceFromPointsd (line 462) | class AddGuidanceFromPointsd(Transform): method __init__ (line 497) | def __init__( method _apply (line 521) | def _apply(self, pos_clicks, neg_clicks, factor, slice_num): method __call__ (line 547) | def __call__(self, data): class SpatialCropGuidanced (line 577) | class SpatialCropGuidanced(MapTransform): method __init__ (line 610) | def __init__( method bounding_box (line 638) | def bounding_box(self, points, img_shape): method __call__ (line 655) | def __call__(self, data: Any) -> dict: class ResizeGuidanced (line 707) | class ResizeGuidanced(Transform): method __init__ (line 728) | def __init__( method __call__ (line 742) | def __call__(self, data: Any) -> dict: class RestoreLabeld (line 758) | class RestoreLabeld(MapTransform): method __init__ (line 816) | def __init__( method __call__ (line 853) | def __call__(self, data: Any) -> dict: class Fetch2DSliced (line 917) | class Fetch2DSliced(MapTransform): method __init__ (line 939) | def __init__( method _apply (line 956) | def _apply(self, image, guidance): method __call__ (line 964) | def __call__(self, data): FILE: monai/apps/detection/metrics/coco.py class COCOMetric (line 74) | class COCOMetric: method __init__ (line 76) | def __init__( method __call__ (line 160) | def __call__(self, *args: Any, **kwargs: Any) -> tuple[dict[str, float... method check_number_of_iou (line 174) | def check_number_of_iou(self, *args: np.ndarray) -> None: method get_iou_thresholds (line 190) | def get_iou_thresholds(self) -> Sequence[float]: method compute (line 199) | def compute(self, results_list: list[dict[int, dict[str, np.ndarray]]]... method _compute_ap (line 239) | def _compute_ap(self, dataset_statistics: dict[str, np.ndarray | list]... method _compute_ar (line 286) | def _compute_ar(self, dataset_statistics: dict[str, np.ndarray | list]... method _select_ap (line 329) | def _select_ap( method _select_ar (line 364) | def _select_ar( method _compute_statistics (line 402) | def _compute_statistics(self, results_list: list[dict[int, dict[str, n... function _compute_stats_single_threshold (line 488) | def _compute_stats_single_threshold( FILE: monai/apps/detection/metrics/matching.py function matching_batch (line 74) | def matching_batch( function _matching_no_gt (line 188) | def _matching_no_gt( function _matching_no_pred (line 233) | def _matching_no_pred(iou_thresholds: Sequence[float], gt_ignore: np.nda... function _matching_single_image_single_class (line 272) | def _matching_single_image_single_class( FILE: monai/apps/detection/networks/retinanet_detector.py class RetinaNetDetector (line 68) | class RetinaNetDetector(nn.Module): method __init__ (line 186) | def __init__( method get_attribute_from_network (line 258) | def get_attribute_from_network(self, attr_name, default_value=None): method set_box_coder_weights (line 266) | def set_box_coder_weights(self, weights: tuple[float]) -> None: method set_target_keys (line 278) | def set_target_keys(self, box_key: str, label_key: str) -> None: method set_cls_loss (line 289) | def set_cls_loss(self, cls_loss: nn.Module) -> None: method set_box_regression_loss (line 304) | def set_box_regression_loss(self, box_loss: nn.Module, encode_gt: bool... method set_regular_matcher (line 331) | def set_regular_matcher( method set_atss_matcher (line 352) | def set_atss_matcher(self, num_candidates: int = 4, center_in_gt: bool... method set_hard_negative_sampler (line 365) | def set_hard_negative_sampler( method set_balanced_sampler (line 390) | def set_balanced_sampler(self, batch_size_per_image: int, positive_fra... method set_sliding_window_inferer (line 403) | def set_sliding_window_inferer( method set_box_selector_parameters (line 434) | def set_box_selector_parameters( method forward (line 467) | def forward( method _check_detector_training_components (line 552) | def _check_detector_training_components(self): method generate_anchors (line 568) | def generate_anchors(self, images: Tensor, head_outputs: dict[str, lis... method _reshape_maps (line 584) | def _reshape_maps(self, result_maps: list[Tensor]) -> Tensor: method postprocess_detections (line 629) | def postprocess_detections( method compute_loss (line 700) | def compute_loss( method compute_anchor_matched_idxs (line 730) | def compute_anchor_matched_idxs( method compute_cls_loss (line 802) | def compute_cls_loss( method compute_box_loss (line 832) | def compute_box_loss( method get_cls_train_sample_per_image (line 879) | def get_cls_train_sample_per_image( method get_box_train_sample_per_image (line 958) | def get_box_train_sample_per_image( function retinanet_resnet50_fpn_detector (line 1015) | def retinanet_resnet50_fpn_detector( FILE: monai/apps/detection/networks/retinanet_network.py class RetinaNetClassificationHead (line 60) | class RetinaNetClassificationHead(nn.Module): method __init__ (line 76) | def __init__( method forward (line 101) | def forward(self, x: list[Tensor]) -> list[Tensor]: class RetinaNetRegressionHead (line 138) | class RetinaNetRegressionHead(nn.Module): method __init__ (line 152) | def __init__(self, in_channels: int, num_anchors: int, spatial_dims: i... method forward (line 174) | def forward(self, x: list[Tensor]) -> list[Tensor]: class RetinaNet (line 211) | class RetinaNet(nn.Module): method __init__ (line 278) | def __init__( method forward (line 314) | def forward(self, images: Tensor) -> Any: function resnet_fpn_feature_extractor (line 357) | def resnet_fpn_feature_extractor( FILE: monai/apps/detection/transforms/array.py class StandardizeEmptyBox (line 66) | class StandardizeEmptyBox(Transform): method __init__ (line 76) | def __init__(self, spatial_dims: int) -> None: method __call__ (line 79) | def __call__(self, boxes: NdarrayOrTensor) -> NdarrayOrTensor: class ConvertBoxMode (line 87) | class ConvertBoxMode(Transform): method __init__ (line 135) | def __init__( method __call__ (line 143) | def __call__(self, boxes: NdarrayOrTensor) -> NdarrayOrTensor: class ConvertBoxToStandardMode (line 156) | class ConvertBoxToStandardMode(Transform): method __init__ (line 177) | def __init__(self, mode: str | BoxMode | type[BoxMode] | None = None) ... method __call__ (line 180) | def __call__(self, boxes: NdarrayOrTensor) -> NdarrayOrTensor: class AffineBox (line 195) | class AffineBox(Transform): method __call__ (line 202) | def __call__(self, boxes: NdarrayOrTensor, affine: NdarrayOrTensor | N... class ZoomBox (line 214) | class ZoomBox(Transform): method __init__ (line 229) | def __init__(self, zoom: Sequence[float] | float, keep_size: bool = Fa... method __call__ (line 234) | def __call__(self, boxes: NdarrayTensor, src_spatial_size: Sequence[in... class ResizeBox (line 268) | class ResizeBox(Transform): method __init__ (line 289) | def __init__(self, spatial_size: Sequence[int] | int, size_mode: str =... method __call__ (line 293) | def __call__(self, boxes: NdarrayOrTensor, src_spatial_size: Sequence[... class FlipBox (line 323) | class FlipBox(Transform): method __init__ (line 338) | def __init__(self, spatial_axis: Sequence[int] | int | None = None) ->... method __call__ (line 341) | def __call__(self, boxes: NdarrayOrTensor, spatial_size: Sequence[int]... class ClipBoxToImage (line 351) | class ClipBoxToImage(Transform): method __init__ (line 362) | def __init__(self, remove_empty: bool = False) -> None: method __call__ (line 365) | def __call__( # type: ignore class BoxToMask (line 400) | class BoxToMask(Transform): method __init__ (line 416) | def __init__(self, bg_label: int = -1, ellipse_mask: bool = False) -> ... method __call__ (line 420) | def __call__( # type: ignore class MaskToBox (line 437) | class MaskToBox(Transform): method __init__ (line 451) | def __init__( method __call__ (line 461) | def __call__(self, boxes_mask: NdarrayOrTensor) -> tuple[NdarrayOrTens... class SpatialCropBox (line 475) | class SpatialCropBox(SpatialCrop): method __init__ (line 502) | def __init__( method __call__ (line 515) | def __call__( # type: ignore[override] class RotateBox90 (line 546) | class RotateBox90(Rotate90): method __call__ (line 560) | def __call__(self, boxes: NdarrayTensor, spatial_size: Sequence[int] |... FILE: monai/apps/detection/transforms/box_ops.py function _apply_affine_to_points (line 29) | def _apply_affine_to_points(points: torch.Tensor, affine: torch.Tensor, ... function apply_affine_to_boxes (line 62) | def apply_affine_to_boxes(boxes: NdarrayTensor, affine: NdarrayOrTensor)... function zoom_boxes (line 102) | def zoom_boxes(boxes: NdarrayTensor, zoom: Sequence[float] | float) -> N... function resize_boxes (line 129) | def resize_boxes( function flip_boxes (line 161) | def flip_boxes( function convert_box_to_mask (line 195) | def convert_box_to_mask( function convert_mask_to_box (line 275) | def convert_mask_to_box( function select_labels (line 328) | def select_labels( function swapaxes_boxes (line 357) | def swapaxes_boxes(boxes: NdarrayTensor, axis1: int, axis2: int) -> Ndar... function rot90_boxes (line 384) | def rot90_boxes( FILE: monai/apps/detection/transforms/dictionary.py class StandardizeEmptyBoxd (line 102) | class StandardizeEmptyBoxd(MapTransform, InvertibleTransform): method __init__ (line 116) | def __init__(self, box_keys: KeysCollection, box_ref_image_keys: str, ... method __call__ (line 134) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... method inverse (line 142) | def inverse(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[Ha... class ConvertBoxModed (line 146) | class ConvertBoxModed(MapTransform, InvertibleTransform): method __init__ (line 161) | def __init__( method __call__ (line 182) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... method inverse (line 189) | def inverse(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[Ha... class ConvertBoxToStandardModed (line 202) | class ConvertBoxToStandardModed(MapTransform, InvertibleTransform): method __init__ (line 219) | def __init__( method __call__ (line 237) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... method inverse (line 244) | def inverse(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[Ha... class AffineBoxToImageCoordinated (line 257) | class AffineBoxToImageCoordinated(MapTransform, InvertibleTransform): method __init__ (line 280) | def __init__( method extract_affine (line 301) | def extract_affine(self, data: Mapping[Hashable, torch.Tensor]) -> tup... method __call__ (line 329) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... method inverse (line 339) | def inverse(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[Ha... class AffineBoxToWorldCoordinated (line 349) | class AffineBoxToWorldCoordinated(AffineBoxToImageCoordinated): method __init__ (line 372) | def __init__( method __call__ (line 386) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class ZoomBoxd (line 397) | class ZoomBoxd(MapTransform, InvertibleTransform): method __init__ (line 429) | def __init__( method __call__ (line 453) | def __call__(self, data: Mapping[Hashable, torch.Tensor]) -> dict[Hash... method inverse (line 478) | def inverse(self, data: Mapping[Hashable, torch.Tensor]) -> dict[Hasha... class RandZoomBoxd (line 500) | class RandZoomBoxd(RandomizableTransform, MapTransform, InvertibleTransf... method __init__ (line 542) | def __init__( method set_random_state (line 569) | def set_random_state(self, seed: int | None = None, state: np.random.R... method __call__ (line 574) | def __call__(self, data: Mapping[Hashable, torch.Tensor]) -> dict[Hash... method inverse (line 617) | def inverse(self, data: Mapping[Hashable, torch.Tensor]) -> dict[Hasha... class FlipBoxd (line 643) | class FlipBoxd(MapTransform, InvertibleTransform): method __init__ (line 657) | def __init__( method __call__ (line 673) | def __call__(self, data: Mapping[Hashable, torch.Tensor]) -> dict[Hash... method inverse (line 685) | def inverse(self, data: Mapping[Hashable, torch.Tensor]) -> dict[Hasha... class RandFlipBoxd (line 705) | class RandFlipBoxd(RandomizableTransform, MapTransform, InvertibleTransf... method __init__ (line 720) | def __init__( method set_random_state (line 738) | def set_random_state(self, seed: int | None = None, state: np.random.R... method __call__ (line 742) | def __call__(self, data: Mapping[Hashable, torch.Tensor]) -> dict[Hash... method inverse (line 762) | def inverse(self, data: Mapping[Hashable, torch.Tensor]) -> dict[Hasha... class ClipBoxToImaged (line 785) | class ClipBoxToImaged(MapTransform): method __init__ (line 808) | def __init__( method __call__ (line 835) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class BoxToMaskd (line 846) | class BoxToMaskd(MapTransform): method __init__ (line 903) | def __init__( method __call__ (line 923) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class MaskToBoxd (line 936) | class MaskToBoxd(MapTransform): method __init__ (line 985) | def __init__( method __call__ (line 1005) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class RandCropBoxByPosNegLabeld (line 1014) | class RandCropBoxByPosNegLabeld(Randomizable, MapTransform): method __init__ (line 1067) | def __init__( method generate_fg_center_boxes_np (line 1125) | def generate_fg_center_boxes_np(self, boxes: NdarrayOrTensor, image_si... method randomize (line 1154) | def randomize( # type: ignore method __call__ (line 1187) | def __call__(self, data: Mapping[Hashable, torch.Tensor]) -> list[dict... class RotateBox90d (line 1229) | class RotateBox90d(MapTransform, InvertibleTransform): method __init__ (line 1246) | def __init__( method __call__ (line 1262) | def __call__(self, data: Mapping[Hashable, torch.Tensor]) -> Mapping[H... method inverse (line 1279) | def inverse(self, data: Mapping[Hashable, torch.Tensor]) -> dict[Hasha... class RandRotateBox90d (line 1297) | class RandRotateBox90d(RandomizableTransform, MapTransform, InvertibleTr... method __init__ (line 1317) | def __init__( method __call__ (line 1338) | def __call__(self, data: Mapping[Hashable, torch.Tensor]) -> Mapping[H... method randomize (line 1376) | def randomize(self, data: Any | None = None) -> None: method inverse (line 1380) | def inverse(self, data: Mapping[Hashable, torch.Tensor]) -> dict[Hasha... FILE: monai/apps/detection/utils/ATSS_matcher.py class Matcher (line 92) | class Matcher(ABC): method __init__ (line 104) | def __init__(self, similarity_fn: Callable[[Tensor, Tensor], Tensor] =... method __call__ (line 107) | def __call__( method compute_matches (line 145) | def compute_matches( class ATSSMatcher (line 166) | class ATSSMatcher(Matcher): method __init__ (line 168) | def __init__( method compute_matches (line 199) | def compute_matches( FILE: monai/apps/detection/utils/anchor_utils.py class AnchorGenerator (line 52) | class AnchorGenerator(nn.Module): method __init__ (line 111) | def __init__( method generate_anchors (line 148) | def generate_anchors( method set_cell_anchors (line 208) | def set_cell_anchors(self, dtype: torch.dtype, device: torch.device) -... method num_anchors_per_location (line 214) | def num_anchors_per_location(self): method grid_anchors (line 220) | def grid_anchors(self, grid_sizes: list[list[int]], strides: list[list... method forward (line 284) | def forward(self, images: Tensor, feature_maps: list[Tensor]) -> list[... class AnchorGeneratorWithAnchorShape (line 324) | class AnchorGeneratorWithAnchorShape(AnchorGenerator): method __init__ (line 369) | def __init__( method generate_anchors_using_shape (line 392) | def generate_anchors_using_shape( FILE: monai/apps/detection/utils/box_coder.py function encode_boxes (line 64) | def encode_boxes(gt_boxes: Tensor, proposals: Tensor, weights: Tensor) -... class BoxCoder (line 105) | class BoxCoder: method __init__ (line 125) | def __init__(self, weights: Sequence[float], boxes_xform_clip: float |... method encode (line 132) | def encode(self, gt_boxes: Sequence[Tensor], proposals: Sequence[Tenso... method encode_single (line 154) | def encode_single(self, gt_boxes: Tensor, proposals: Tensor) -> Tensor: method decode (line 171) | def decode(self, rel_codes: Tensor, reference_boxes: Sequence[Tensor])... method decode_single (line 198) | def decode_single(self, rel_codes: Tensor, reference_boxes: Tensor) ->... FILE: monai/apps/detection/utils/box_selector.py class BoxSelector (line 51) | class BoxSelector: method __init__ (line 88) | def __init__( method select_top_score_idx_per_level (line 105) | def select_top_score_idx_per_level(self, logits: Tensor) -> tuple[Tens... method select_boxes_per_image (line 148) | def select_boxes_per_image( FILE: monai/apps/detection/utils/detector_utils.py function check_input_images (line 28) | def check_input_images(input_images: list[Tensor] | Tensor, spatial_dims... function check_training_targets (line 55) | def check_training_targets( function pad_images (line 111) | def pad_images( function preprocess_images (line 179) | def preprocess_images( FILE: monai/apps/detection/utils/hard_negative_sampler.py class HardNegativeSamplerBase (line 40) | class HardNegativeSamplerBase: method __init__ (line 60) | def __init__(self, pool_size: float = 10) -> None: method select_negatives (line 63) | def select_negatives(self, negative: Tensor, num_neg: int, fg_probs: T... class HardNegativeSampler (line 99) | class HardNegativeSampler(HardNegativeSamplerBase): method __init__ (line 120) | def __init__( method __call__ (line 129) | def __call__(self, target_labels: list[Tensor], concat_fg_probs: Tenso... method select_samples_img_list (line 161) | def select_samples_img_list( method select_samples_per_img (line 209) | def select_samples_per_img(self, labels_per_img: Tensor, fg_probs_per_... method get_num_pos (line 248) | def get_num_pos(self, positive: torch.Tensor) -> int: method get_num_neg (line 264) | def get_num_neg(self, negative: torch.Tensor, num_pos: int) -> int: method select_positives (line 281) | def select_positives(self, positive: Tensor, num_pos: int, labels: Ten... FILE: monai/apps/detection/utils/predict_utils.py function ensure_dict_value_to_list_ (line 20) | def ensure_dict_value_to_list_(head_outputs: dict[str, list[Tensor]], ke... function check_dict_values_same_length (line 44) | def check_dict_values_same_length(head_outputs: dict[str, list[Tensor]],... function _network_sequence_output (line 63) | def _network_sequence_output(images: Tensor, network: nn.Module, keys: l... function predict_with_inferer (line 92) | def predict_with_inferer( FILE: monai/apps/generation/maisi/networks/autoencoderkl_maisi.py function _empty_cuda_cache (line 31) | def _empty_cuda_cache(save_mem: bool) -> None: class MaisiGroupNorm3D (line 37) | class MaisiGroupNorm3D(nn.GroupNorm): method __init__ (line 51) | def __init__( method forward (line 66) | def forward(self, input: torch.Tensor) -> torch.Tensor: method _cat_inputs (line 100) | def _cat_inputs(self, inputs): class MaisiConvolution (line 118) | class MaisiConvolution(nn.Module): method __init__ (line 134) | def __init__( method _split_tensor (line 185) | def _split_tensor(self, x: torch.Tensor, split_size: int, padding: int... method _concatenate_tensors (line 204) | def _concatenate_tensors(self, outputs: list[torch.Tensor], split_size... method forward (line 235) | def forward(self, x: torch.Tensor) -> torch.Tensor: class MaisiUpsample (line 286) | class MaisiUpsample(nn.Module): method __init__ (line 300) | def __init__( method forward (line 328) | def forward(self, x: torch.Tensor) -> torch.Tensor: class MaisiDownsample (line 343) | class MaisiDownsample(nn.Module): method __init__ (line 356) | def __init__( method forward (line 381) | def forward(self, x: torch.Tensor) -> torch.Tensor: class MaisiResBlock (line 387) | class MaisiResBlock(nn.Module): method __init__ (line 405) | def __init__( method forward (line 486) | def forward(self, x: torch.Tensor) -> torch.Tensor: class MaisiEncoder (line 512) | class MaisiEncoder(nn.Module): method __init__ (line 536) | def __init__( method forward (line 694) | def forward(self, x: torch.Tensor) -> torch.Tensor: class MaisiDecoder (line 701) | class MaisiDecoder(nn.Module): method __init__ (line 726) | def __init__( method forward (line 882) | def forward(self, x: torch.Tensor) -> torch.Tensor: class AutoencoderKlMaisi (line 889) | class AutoencoderKlMaisi(AutoencoderKL): method __init__ (line 917) | def __init__( FILE: monai/apps/generation/maisi/networks/controlnet_maisi.py class ControlNetMaisi (line 22) | class ControlNetMaisi(ControlNet): method __init__ (line 51) | def __init__( method forward (line 97) | def forward( method _prepare_time_and_class_embedding (line 124) | def _prepare_time_and_class_embedding(self, x, timesteps, class_labels): method _apply_initial_convolution (line 144) | def _apply_initial_convolution(self, x): method _apply_down_blocks (line 149) | def _apply_down_blocks(self, emb, context, h): method _apply_mid_block (line 161) | def _apply_mid_block(self, emb, context, h): method _apply_controlnet_blocks (line 166) | def _apply_controlnet_blocks(self, h, down_block_res_samples): FILE: monai/apps/generation/maisi/networks/diffusion_model_unet_maisi.py class DiffusionModelUNetMaisi (line 53) | class DiffusionModelUNetMaisi(nn.Module): method __init__ (line 84) | def __init__( method _create_embedding_module (line 306) | def _create_embedding_module(self, input_dim, embed_dim): method _get_time_and_class_embedding (line 310) | def _get_time_and_class_embedding(self, x, timesteps, class_labels): method _get_input_embeddings (line 327) | def _get_input_embeddings(self, emb, top_index, bottom_index, spacing): method _apply_down_blocks (line 339) | def _apply_down_blocks(self, h, emb, context, down_block_additional_re... method _apply_up_blocks (line 359) | def _apply_up_blocks(self, h, emb, context, down_block_res_samples): method forward (line 368) | def forward( FILE: monai/apps/mmars/mmars.py function get_model_spec (line 41) | def get_model_spec(idx: int | str) -> dict | Any: function _get_all_ngc_models (line 53) | def _get_all_ngc_models(pattern, page_index=0, page_size=50): function _get_ngc_url (line 98) | def _get_ngc_url(model_name: str, version: str, model_prefix: str = "") ... function _get_ngc_doc_url (line 102) | def _get_ngc_doc_url(model_name: str, model_prefix: str = "") -> str: function download_mmar (line 106) | def download_mmar( function load_from_mmar (line 188) | def load_from_mmar( function _get_val (line 301) | def _get_val(input_dict: Mapping, key: str = "model", default: Any | Non... FILE: monai/apps/mmars/model_desc.py class RemoteMMARKeys (line 26) | class RemoteMMARKeys: FILE: monai/apps/nnunet/nnunet_bundle.py function get_nnunet_trainer (line 38) | def get_nnunet_trainer( class ModelnnUNetWrapper (line 142) | class ModelnnUNetWrapper(torch.nn.Module): method __init__ (line 169) | def __init__(self, predictor: object, model_folder: str | Path, model_... method forward (line 239) | def forward(self, x: MetaTensor) -> MetaTensor: function get_nnunet_monai_predictor (line 297) | def get_nnunet_monai_predictor(model_folder: str | Path, model_name: str... function convert_nnunet_to_monai_bundle (line 351) | def convert_nnunet_to_monai_bundle(nnunet_config: dict, bundle_root_fold... function get_network_from_nnunet_plans (line 425) | def get_network_from_nnunet_plans( function convert_monai_bundle_to_nnunet (line 486) | def convert_monai_bundle_to_nnunet(nnunet_config: dict, bundle_root_fold... FILE: monai/apps/nnunet/nnunetv2_runner.py class nnUNetV2Runner (line 38) | class nnUNetV2Runner: # noqa: N801 method __init__ (line 153) | def __init__( method convert_dataset (line 217) | def convert_dataset(self): method convert_msd_dataset (line 285) | def convert_msd_dataset(self, data_dir: str, overwrite_id: str | None ... method extract_fingerprints (line 301) | def extract_fingerprints( method plan_experiments (line 330) | def plan_experiments( method preprocess (line 375) | def preprocess( method plan_and_process (line 416) | def plan_and_process( method train_single_model (line 490) | def train_single_model(self, config: Any, fold: int, gpu_id: tuple | l... method train_single_model_command (line 532) | def train_single_model_command( method train (line 594) | def train( method train_parallel_cmd (line 628) | def train_parallel_cmd( method train_parallel (line 681) | def train_parallel( method validate_single_model (line 724) | def validate_single_model(self, config: str, fold: int, **kwargs: Any)... method validate (line 736) | def validate( method find_best_configuration (line 752) | def find_best_configuration( method predict (line 801) | def predict( method predict_ensemble_postprocessing (line 893) | def predict_ensemble_postprocessing( method run (line 969) | def run( FILE: monai/apps/nnunet/utils.py class NNUNETMode (line 31) | class NNUNETMode(StrEnum): function analyze_data (line 38) | def analyze_data(datalist_json: dict, data_dir: str) -> tuple[int, int]: function create_new_data_copy (line 63) | def create_new_data_copy( function create_new_dataset_json (line 137) | def create_new_dataset_json( FILE: monai/apps/nuclick/transforms.py class NuclickKeys (line 30) | class NuclickKeys(StrEnum): class FlattenLabeld (line 51) | class FlattenLabeld(MapTransform): method __init__ (line 61) | def __init__(self, keys: KeysCollection, connectivity: int = 1, allow_... method __call__ (line 65) | def __call__(self, data): class ExtractPatchd (line 73) | class ExtractPatchd(MapTransform): method __init__ (line 88) | def __init__( method __call__ (line 101) | def __call__(self, data): method bbox (line 114) | def bbox(self, patch_size, centroid, size): class SplitLabeld (line 131) | class SplitLabeld(MapTransform): method __init__ (line 145) | def __init__( method __call__ (line 161) | def __call__(self, data): class FilterImaged (line 198) | class FilterImaged(MapTransform): method __init__ (line 210) | def __init__(self, keys: KeysCollection, min_size: int = 500, allow_mi... method __call__ (line 214) | def __call__(self, data): method filter (line 221) | def filter(self, rgb): method filter_green_channel (line 233) | def filter_green_channel( method filter_grays (line 246) | def filter_grays(self, rgb, tolerance=15): method mask_percent (line 252) | def mask_percent(self, img_np): method filter_remove_small_objects (line 260) | def filter_remove_small_objects(self, img_np, min_size=3000, avoid_ove... class AddPointGuidanceSignald (line 269) | class AddPointGuidanceSignald(Randomizable, MapTransform): method __init__ (line 286) | def __init__( method __call__ (line 312) | def __call__(self, data): method _apply_gaussian (line 333) | def _apply_gaussian(self, t): method _seed_point (line 339) | def _seed_point(self, label): method inclusion_map (line 360) | def inclusion_map(self, mask, dtype): method exclusion_map (line 368) | def exclusion_map(self, others, dtype, jitter_range, drop_rate): class AddClickSignalsd (line 394) | class AddClickSignalsd(MapTransform): method __init__ (line 408) | def __init__( method __call__ (line 426) | def __call__(self, data): method get_clickmap_boundingbox (line 456) | def get_clickmap_boundingbox(self, img, cx, cy, x, y, bb=128): method get_patches_and_signals (line 483) | def get_patches_and_signals(self, img, click_map, bounding_boxes, cx, ... method _apply_gaussian (line 516) | def _apply_gaussian(self, t): class PostFilterLabeld (line 523) | class PostFilterLabeld(MapTransform): method __init__ (line 536) | def __init__( method __call__ (line 562) | def __call__(self, data): method post_processing (line 576) | def post_processing(self, preds, thresh=0.33, min_size=10, min_hole=30): method gen_instance_map (line 583) | def gen_instance_map(self, masks, bounding_boxes, x, y, flatten=True, ... class AddLabelAsGuidanced (line 597) | class AddLabelAsGuidanced(MapTransform): method __init__ (line 605) | def __init__(self, keys: KeysCollection, source: str = "label") -> None: method __call__ (line 609) | def __call__(self, data): class SetLabelClassd (line 623) | class SetLabelClassd(MapTransform): method __init__ (line 631) | def __init__(self, keys: KeysCollection, offset: int = -1) -> None: method __call__ (line 635) | def __call__(self, data): FILE: monai/apps/pathology/engines/utils.py class PrepareBatchHoVerNet (line 26) | class PrepareBatchHoVerNet(PrepareBatch): method __init__ (line 37) | def __init__(self, extra_keys: Sequence[str]) -> None: method __call__ (line 42) | def __call__( FILE: monai/apps/pathology/handlers/utils.py function from_engine_hovernet (line 21) | def from_engine_hovernet(keys: KeysCollection, nested_key: str) -> Calla... FILE: monai/apps/pathology/inferers/inferer.py class SlidingWindowHoVerNetInferer (line 28) | class SlidingWindowHoVerNetInferer(SlidingWindowInferer): method __init__ (line 77) | def __init__( method process_output (line 109) | def process_output(self, seg_prob_tuple, window_data, importance_map_): method __call__ (line 133) | def __call__( FILE: monai/apps/pathology/losses/hovernet_loss.py class HoVerNetLoss (line 24) | class HoVerNetLoss(_Loss): method __init__ (line 45) | def __init__( method _compute_sobel (line 67) | def _compute_sobel(self, image: torch.Tensor) -> torch.Tensor: method _mse_gradient_loss (line 80) | def _mse_gradient_loss(self, prediction: torch.Tensor, target: torch.T... method forward (line 98) | def forward(self, prediction: dict[str, torch.Tensor], target: dict[st... FILE: monai/apps/pathology/metrics/lesion_froc.py function tqdm (line 34) | def tqdm(x): class LesionFROC (line 38) | class LesionFROC: method __init__ (line 68) | def __init__( method prepare_inference_result (line 86) | def prepare_inference_result(self, sample: dict) -> tuple[np.ndarray, ... method prepare_ground_truth (line 108) | def prepare_ground_truth(self, sample): method compute_fp_tp (line 130) | def compute_fp_tp(self): method evaluate (line 159) | def evaluate(self): FILE: monai/apps/pathology/transforms/post/array.py class Watershed (line 59) | class Watershed(Transform): method __init__ (line 74) | def __init__(self, connectivity: int | None = 1, dtype: DtypeLike = np... method __call__ (line 78) | def __call__( class GenerateWatershedMask (line 100) | class GenerateWatershedMask(Transform): method __init__ (line 116) | def __init__( method __call__ (line 152) | def __call__(self, prob_map: NdarrayOrTensor) -> NdarrayOrTensor: class GenerateInstanceBorder (line 172) | class GenerateInstanceBorder(Transform): method __init__ (line 190) | def __init__(self, kernel_size: int = 5, dtype: DtypeLike = np.float32... method __call__ (line 194) | def __call__(self, mask: NdarrayOrTensor, hover_map: NdarrayOrTensor) ... class GenerateDistanceMap (line 241) | class GenerateDistanceMap(Transform): method __init__ (line 256) | def __init__(self, smooth_fn: Callable | None = None, dtype: DtypeLike... method __call__ (line 260) | def __call__(self, mask: NdarrayOrTensor, instance_border: NdarrayOrTe... class GenerateWatershedMarkers (line 284) | class GenerateWatershedMarkers(Transform): method __init__ (line 305) | def __init__( method __call__ (line 322) | def __call__(self, mask: NdarrayOrTensor, instance_border: NdarrayOrTe... class GenerateSuccinctContour (line 356) | class GenerateSuccinctContour(Transform): method __init__ (line 370) | def __init__(self, height: int, width: int) -> None: method _generate_contour_coord (line 374) | def _generate_contour_coord(self, current: np.ndarray, previous: np.nd... method _calculate_distance_from_top_left (line 402) | def _calculate_distance_from_top_left(self, sequence: Sequence[tuple[i... method __call__ (line 427) | def __call__(self, contours: list[np.ndarray]) -> np.ndarray: class GenerateInstanceContour (line 537) | class GenerateInstanceContour(Transform): method __init__ (line 552) | def __init__(self, min_num_points: int = 3, contour_level: float | Non... method __call__ (line 556) | def __call__(self, inst_mask: NdarrayOrTensor, offset: Sequence[int] |... class GenerateInstanceCentroid (line 584) | class GenerateInstanceCentroid(Transform): method __init__ (line 595) | def __init__(self, dtype: DtypeLike | None = int) -> None: method __call__ (line 598) | def __call__(self, inst_mask: NdarrayOrTensor, offset: Sequence[int] |... class GenerateInstanceType (line 617) | class GenerateInstanceType(Transform): method __call__ (line 624) | def __call__( # type: ignore class HoVerNetInstanceMapPostProcessing (line 655) | class HoVerNetInstanceMapPostProcessing(Transform): method __init__ (line 681) | def __init__( method __call__ (line 715) | def __call__( # type: ignore class HoVerNetNuclearTypePostProcessing (line 755) | class HoVerNetNuclearTypePostProcessing(Transform): method __init__ (line 771) | def __init__( method __call__ (line 807) | def __call__( # type: ignore FILE: monai/apps/pathology/transforms/post/dictionary.py class Watershedd (line 76) | class Watershedd(MapTransform): method __init__ (line 102) | def __init__( method __call__ (line 116) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class GenerateWatershedMaskd (line 127) | class GenerateWatershedMaskd(MapTransform): method __init__ (line 145) | def __init__( method __call__ (line 161) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class GenerateInstanceBorderd (line 171) | class GenerateInstanceBorderd(Transform): method __init__ (line 191) | def __init__( method __call__ (line 204) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class GenerateDistanceMapd (line 212) | class GenerateDistanceMapd(Transform): method __init__ (line 227) | def __init__( method __call__ (line 240) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class GenerateWatershedMarkersd (line 248) | class GenerateWatershedMarkersd(Transform): method __init__ (line 267) | def __init__( method __call__ (line 289) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class GenerateSuccinctContourd (line 297) | class GenerateSuccinctContourd(MapTransform): method __init__ (line 313) | def __init__(self, keys: KeysCollection, height: int, width: int, allo... method __call__ (line 317) | def __call__(self, data): class GenerateInstanceContourd (line 325) | class GenerateInstanceContourd(MapTransform): method __init__ (line 346) | def __init__( method __call__ (line 360) | def __call__(self, data): class GenerateInstanceCentroidd (line 372) | class GenerateInstanceCentroidd(MapTransform): method __init__ (line 389) | def __init__( method __call__ (line 402) | def __call__(self, data): class GenerateInstanceTyped (line 414) | class GenerateInstanceTyped(MapTransform): method __init__ (line 432) | def __init__( method __call__ (line 448) | def __call__(self, data): class HoVerNetInstanceMapPostProcessingd (line 462) | class HoVerNetInstanceMapPostProcessingd(Transform): method __init__ (line 494) | def __init__( method __call__ (line 533) | def __call__(self, data): class HoVerNetNuclearTypePostProcessingd (line 547) | class HoVerNetNuclearTypePostProcessingd(Transform): method __init__ (line 563) | def __init__( method __call__ (line 584) | def __call__(self, data): FILE: monai/apps/pathology/transforms/stain/array.py class ExtractHEStains (line 19) | class ExtractHEStains(Transform): method __init__ (line 39) | def __init__( method _deconvolution_extract_stain (line 47) | def _deconvolution_extract_stain(self, image: np.ndarray) -> np.ndarray: method __call__ (line 100) | def __call__(self, image: np.ndarray) -> np.ndarray: class NormalizeHEStains (line 116) | class NormalizeHEStains(Transform): method __init__ (line 144) | def __init__( method __call__ (line 157) | def __call__(self, image: np.ndarray) -> np.ndarray: FILE: monai/apps/pathology/transforms/stain/dictionary.py class ExtractHEStainsd (line 30) | class ExtractHEStainsd(MapTransform): method __init__ (line 47) | def __init__( method __call__ (line 59) | def __call__(self, data: Mapping[Hashable, np.ndarray]) -> dict[Hashab... class NormalizeHEStainsd (line 66) | class NormalizeHEStainsd(MapTransform): method __init__ (line 92) | def __init__( method __call__ (line 105) | def __call__(self, data: Mapping[Hashable, np.ndarray]) -> dict[Hashab... FILE: monai/apps/pathology/utils.py function compute_multi_instance_mask (line 26) | def compute_multi_instance_mask(mask: np.ndarray, threshold: float) -> Any: function compute_isolated_tumor_cells (line 45) | def compute_isolated_tumor_cells(tumor_mask: np.ndarray, threshold: floa... class PathologyProbNMS (line 61) | class PathologyProbNMS(ProbNMS): method __call__ (line 67) | def __call__(self, probs_map: np.ndarray | torch.Tensor, resolution_le... FILE: monai/apps/reconstruction/complex_utils.py function convert_to_tensor_complex (line 27) | def convert_to_tensor_complex( function complex_abs_t (line 102) | def complex_abs_t(x: Tensor) -> Tensor: function complex_abs (line 117) | def complex_abs(x: NdarrayOrTensor) -> NdarrayOrTensor: function complex_mul_t (line 138) | def complex_mul_t(x: Tensor, y: Tensor) -> Tensor: function complex_mul (line 158) | def complex_mul(x: NdarrayOrTensor, y: NdarrayOrTensor) -> NdarrayOrTensor: function complex_conj_t (line 192) | def complex_conj_t(x: Tensor) -> Tensor: function complex_conj (line 208) | def complex_conj(x: NdarrayOrTensor) -> NdarrayOrTensor: FILE: monai/apps/reconstruction/fastmri_reader.py class FastMRIReader (line 29) | class FastMRIReader(ImageReader): method verify_suffix (line 46) | def verify_suffix(self, filename: Sequence[PathLike] | PathLike) -> bool: method read (line 56) | def read(self, data: Sequence[PathLike] | PathLike) -> dict: # type: ... method get_data (line 78) | def get_data(self, dat: dict) -> tuple[ndarray, dict]: method _get_meta_dict (line 95) | def _get_meta_dict(self, dat: dict) -> dict: FILE: monai/apps/reconstruction/mri_utils.py function root_sum_of_squares_t (line 19) | def root_sum_of_squares_t(x: Tensor, spatial_dim: int) -> Tensor: function root_sum_of_squares (line 42) | def root_sum_of_squares(x: NdarrayOrTensor, spatial_dim: int) -> Ndarray... FILE: monai/apps/reconstruction/networks/blocks/varnetblock.py class VarNetBlock (line 21) | class VarNetBlock(nn.Module): method __init__ (line 34) | def __init__(self, refinement_model: nn.Module, spatial_dims: int = 2): method soft_dc (line 43) | def soft_dc(self, x: Tensor, ref_kspace: Tensor, mask: Tensor) -> Tensor: method forward (line 60) | def forward(self, current_kspace: Tensor, ref_kspace: Tensor, mask: Te... FILE: monai/apps/reconstruction/networks/nets/coil_sensitivity_model.py class CoilSensitivityModel (line 29) | class CoilSensitivityModel(nn.Module): method __init__ (line 55) | def __init__( method get_fully_sampled_region (line 88) | def get_fully_sampled_region(self, mask: Tensor) -> tuple[int, int]: method forward (line 115) | def forward(self, masked_kspace: Tensor, mask: Tensor) -> Tensor: FILE: monai/apps/reconstruction/networks/nets/complex_unet.py class ComplexUnet (line 29) | class ComplexUnet(nn.Module): method __init__ (line 57) | def __init__( method forward (line 93) | def forward(self, x: Tensor) -> Tensor: FILE: monai/apps/reconstruction/networks/nets/utils.py function reshape_complex_to_channel_dim (line 26) | def reshape_complex_to_channel_dim(x: Tensor) -> Tensor: function reshape_channel_complex_to_last_dim (line 52) | def reshape_channel_complex_to_last_dim(x: Tensor) -> Tensor: function reshape_channel_to_batch_dim (line 79) | def reshape_channel_to_batch_dim(x: Tensor) -> tuple[Tensor, int]: function reshape_batch_channel_to_channel_dim (line 104) | def reshape_batch_channel_to_channel_dim(x: Tensor, batch_size: int) -> ... function complex_normalize (line 129) | def complex_normalize(x: Tensor) -> tuple[Tensor, Tensor, Tensor]: function divisible_pad_t (line 169) | def divisible_pad_t( function inverse_divisible_pad_t (line 231) | def inverse_divisible_pad_t( function floor_ceil (line 256) | def floor_ceil(n: float) -> tuple[int, int]: function sensitivity_map_reduce (line 271) | def sensitivity_map_reduce(kspace: Tensor, sens_maps: Tensor, spatial_di... function sensitivity_map_expand (line 291) | def sensitivity_map_expand(img: Tensor, sens_maps: Tensor, spatial_dims:... FILE: monai/apps/reconstruction/networks/nets/varnet.py class VariationalNetworkModel (line 25) | class VariationalNetworkModel(nn.Module): method __init__ (line 45) | def __init__( method forward (line 57) | def forward(self, masked_kspace: Tensor, mask: Tensor) -> Tensor: FILE: monai/apps/reconstruction/transforms/array.py class KspaceMask (line 29) | class KspaceMask(RandomizableTransform): method __init__ (line 39) | def __init__( method __call__ (line 75) | def __call__(self, kspace: NdarrayOrTensor) -> Sequence[Tensor]: method randomize_choose_acceleration (line 89) | def randomize_choose_acceleration(self) -> Sequence[float]: class RandomKspaceMask (line 107) | class RandomKspaceMask(KspaceMask): method __call__ (line 139) | def __call__(self, kspace: NdarrayOrTensor) -> Sequence[Tensor]: class EquispacedKspaceMask (line 196) | class EquispacedKspaceMask(KspaceMask): method __call__ (line 227) | def __call__(self, kspace: NdarrayOrTensor) -> Sequence[Tensor]: FILE: monai/apps/reconstruction/transforms/dictionary.py class ExtractDataKeyFromMetaKeyd (line 31) | class ExtractDataKeyFromMetaKeyd(MapTransform): method __init__ (line 47) | def __init__(self, keys: KeysCollection, meta_key: str, allow_missing_... method __call__ (line 51) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class RandomKspaceMaskd (line 72) | class RandomKspaceMaskd(RandomizableTransform, MapTransform): method __init__ (line 100) | def __init__( method set_random_state (line 117) | def set_random_state( method __call__ (line 124) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class EquispacedKspaceMaskd (line 141) | class EquispacedKspaceMaskd(RandomKspaceMaskd): method __init__ (line 168) | def __init__( method set_random_state (line 185) | def set_random_state( class ReferenceBasedSpatialCropd (line 193) | class ReferenceBasedSpatialCropd(MapTransform, InvertibleTransform): method __init__ (line 215) | def __init__(self, keys: KeysCollection, ref_key: str, allow_missing_k... method __call__ (line 219) | def __call__(self, data: Mapping[Hashable, Tensor]) -> dict[Hashable, ... class ReferenceBasedNormalizeIntensityd (line 246) | class ReferenceBasedNormalizeIntensityd(MapTransform): method __init__ (line 277) | def __init__( method __call__ (line 292) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... FILE: monai/apps/tcia/utils.py function get_tcia_metadata (line 37) | def get_tcia_metadata(query: str, attribute: str | None = None) -> list: function download_tcia_series_instance (line 76) | def download_tcia_series_instance( function get_tcia_ref_uid (line 117) | def get_tcia_ref_uid( function match_tcia_ref_uid_in_study (line 149) | def match_tcia_ref_uid_in_study(study_uid, ref_sop_uid): FILE: monai/apps/utils.py function get_logger (line 51) | def get_logger( function _basename (line 84) | def _basename(p: PathLike) -> str: function _download_with_progress (line 90) | def _download_with_progress(url: str, filepath: Path, progress: bool = T... function safe_extract_member (line 125) | def safe_extract_member(member, extract_to): function check_hash (line 157) | def check_hash(filepath: PathLike, val: str | None = None, hash_type: st... function download_url (line 191) | def download_url( function _extract_zip (line 277) | def _extract_zip(filepath, output_dir): function _extract_tar (line 289) | def _extract_tar(filepath, output_dir): function extractall (line 303) | def extractall( function get_filename_from_url (line 358) | def get_filename_from_url(data_url: str) -> str: function download_and_extract (line 381) | def download_and_extract( FILE: monai/apps/vista3d/inferer.py function point_based_window_inferer (line 28) | def point_based_window_inferer( function _get_window_idx_c (line 143) | def _get_window_idx_c(p: int, roi: int, s: int) -> tuple[int, int]: function _get_window_idx (line 154) | def _get_window_idx(p: int, roi: int, s: int, center_only: bool = True, ... function _pad_previous_mask (line 166) | def _pad_previous_mask( FILE: monai/apps/vista3d/sampler.py function _get_point_label (line 34) | def _get_point_label(id: int) -> tuple[int, int]: function sample_prompt_pairs (line 41) | def sample_prompt_pairs( FILE: monai/apps/vista3d/transforms.py function _get_name_to_index_mapping (line 29) | def _get_name_to_index_mapping(labels_dict: dict | None) -> dict: function _convert_name_to_index (line 37) | def _convert_name_to_index(name_to_index_mapping: dict, label_prompt: li... class VistaPreTransformd (line 57) | class VistaPreTransformd(MapTransform): method __init__ (line 58) | def __init__( method __call__ (line 91) | def __call__(self, data): class VistaPostTransformd (line 123) | class VistaPostTransformd(MapTransform): method __init__ (line 124) | def __init__(self, keys: KeysCollection, allow_missing_keys: bool = Fa... method __call__ (line 142) | def __call__(self, data): class Relabeld (line 177) | class Relabeld(MapTransform): method __init__ (line 178) | def __init__( method __call__ (line 216) | def __call__(self, data): FILE: monai/auto3dseg/algo_gen.py class Algo (line 18) | class Algo: method set_data_stats (line 26) | def set_data_stats(self, *args, **kwargs): method train (line 29) | def train(self, *args, **kwargs): method predict (line 32) | def predict(self, *args, **kwargs): method get_score (line 35) | def get_score(self, *args, **kwargs): method get_output_path (line 38) | def get_output_path(self, *args, **kwargs): class AlgoGen (line 42) | class AlgoGen(Randomizable): method set_data_stats (line 66) | def set_data_stats(self, *args, **kwargs): # type ignore method set_budget (line 69) | def set_budget(self, *args, **kwargs): method set_score (line 72) | def set_score(self, *args, **kwargs): method get_data_stats (line 75) | def get_data_stats(self, *args, **kwargs): method get_budget (line 78) | def get_budget(self, *args, **kwargs): method get_history (line 81) | def get_history(self, *args, **kwargs): method generate (line 84) | def generate(self): method run_algo (line 87) | def run_algo(self, *args, **kwargs): FILE: monai/auto3dseg/analyzer.py class Analyzer (line 58) | class Analyzer(MapTransform, ABC): method __init__ (line 70) | def __init__(self, stats_name: str, report_format: dict) -> None: method update_ops (line 77) | def update_ops(self, key: str, op: Operations) -> None: method update_ops_nested_label (line 94) | def update_ops_nested_label(self, nested_key: str, op: Operations) -> ... method get_report_format (line 119) | def get_report_format(self) -> dict: method unwrap_ops (line 131) | def unwrap_ops(func): method resolve_format (line 152) | def resolve_format(self, report: dict) -> None: method __call__ (line 169) | def __call__(self, data: Any) -> dict: class ImageStats (line 174) | class ImageStats(Analyzer): method __init__ (line 201) | def __init__(self, image_key: str, stats_name: str = DataStatsKeys.IMA... method __call__ (line 219) | def __call__(self, data): class FgImageStats (line 292) | class FgImageStats(Analyzer): method __init__ (line 315) | def __init__(self, image_key: str, label_key: str, stats_name: str = D... method __call__ (line 324) | def __call__(self, data: Mapping) -> dict: class LabelStats (line 373) | class LabelStats(Analyzer): method __init__ (line 397) | def __init__( method __call__ (line 421) | def __call__(self, data: Mapping[Hashable, MetaTensor]) -> dict[Hashab... class ImageStatsSumm (line 542) | class ImageStatsSumm(Analyzer): method __init__ (line 554) | def __init__(self, stats_name: str = DataStatsKeys.IMAGE_STATS, averag... method __call__ (line 573) | def __call__(self, data: list[dict]) -> dict: class FgImageStatsSumm (line 632) | class FgImageStatsSumm(Analyzer): method __init__ (line 644) | def __init__(self, stats_name: str = DataStatsKeys.FG_IMAGE_STATS, ave... method __call__ (line 651) | def __call__(self, data: list[dict]) -> dict: class LabelStatsSumm (line 696) | class LabelStatsSumm(Analyzer): method __init__ (line 708) | def __init__( method __call__ (line 740) | def __call__(self, data: list[dict]) -> dict: class FilenameStats (line 827) | class FilenameStats(Analyzer): method __init__ (line 838) | def __init__(self, key: str | None, stats_name: str) -> None: method __call__ (line 842) | def __call__(self, data): class ImageHistogram (line 859) | class ImageHistogram(Analyzer): method __init__ (line 885) | def __init__( method __call__ (line 922) | def __call__(self, data: dict) -> dict: class ImageHistogramSumm (line 976) | class ImageHistogramSumm(Analyzer): method __init__ (line 988) | def __init__(self, stats_name: str = DataStatsKeys.IMAGE_HISTOGRAM, av... method __call__ (line 995) | def __call__(self, data: list[dict]) -> dict: FILE: monai/auto3dseg/operations.py class Operations (line 23) | class Operations(UserDict): method evaluate (line 28) | def evaluate(self, data: Any, **kwargs: Any) -> dict: class SampleOperations (line 44) | class SampleOperations(Operations): method __init__ (line 70) | def __init__(self) -> None: method evaluate (line 86) | def evaluate(self, data: Any, **kwargs: Any) -> dict: class SummaryOperations (line 106) | class SummaryOperations(Operations): method __init__ (line 131) | def __init__(self) -> None: method evaluate (line 144) | def evaluate(self, data: Any, **kwargs: Any) -> dict: FILE: monai/auto3dseg/seg_summarizer.py class SegSummarizer (line 34) | class SegSummarizer(Compose): method __init__ (line 83) | def __init__( method add_analyzer (line 123) | def add_analyzer(self, case_analyzer: Analyzer, summary_analyzer: Anal... method summarize (line 173) | def summarize(self, data: list[dict]) -> dict[str, dict]: FILE: monai/auto3dseg/utils.py function get_foreground_image (line 50) | def get_foreground_image(image: MetaTensor) -> np.ndarray: function get_foreground_label (line 70) | def get_foreground_label(image: MetaTensor, label: MetaTensor) -> MetaTe... function get_label_ccp (line 86) | def get_label_ccp(mask_index: MetaTensor, use_gpu: bool = True) -> tuple... function concat_val_to_np (line 129) | def concat_val_to_np( function concat_multikeys_to_dict (line 186) | def concat_multikeys_to_dict( function datafold_read (line 213) | def datafold_read(datalist: str | dict, basedir: str, fold: int = 0, key... function verify_report_format (line 252) | def verify_report_format(report: dict, report_format: dict) -> bool: function algo_to_pickle (line 277) | def algo_to_pickle(algo: Algo, template_path: PathLike | None = None, **... function algo_from_pickle (line 300) | def algo_from_pickle(pkl_filename: str, template_path: PathLike | None =... function list_to_python_fire_arg_str (line 378) | def list_to_python_fire_arg_str(args: list) -> str: function check_and_set_optional_args (line 392) | def check_and_set_optional_args(params: dict) -> str: function _prepare_cmd_default (line 404) | def _prepare_cmd_default(cmd: str, cmd_prefix: str | None = None, **kwar... function _prepare_cmd_torchrun (line 434) | def _prepare_cmd_torchrun(cmd: str, **kwargs: Any) -> str: function _prepare_cmd_bcprun (line 456) | def _prepare_cmd_bcprun(cmd: str, cmd_prefix: str | None = None, **kwarg... function _run_cmd_torchrun (line 479) | def _run_cmd_torchrun(cmd: str, **kwargs: Any) -> subprocess.CompletedPr... function _run_cmd_bcprun (line 505) | def _run_cmd_bcprun(cmd: str, **kwargs: Any) -> subprocess.CompletedProc... FILE: monai/bundle/config_item.py class Instantiable (line 30) | class Instantiable(ABC): method is_disabled (line 36) | def is_disabled(self, *args: Any, **kwargs: Any) -> bool: method instantiate (line 43) | def instantiate(self, *args: Any, **kwargs: Any) -> object: class ComponentLocator (line 50) | class ComponentLocator: method __init__ (line 62) | def __init__(self, excludes: Sequence[str] | str | None = None): method _find_module_names (line 66) | def _find_module_names(self) -> list[str]: method _find_classes_or_functions (line 73) | def _find_classes_or_functions(self, modnames: Sequence[str] | str) ->... method get_component_module_name (line 96) | def get_component_module_name(self, name: str) -> list[str] | str | None: class ConfigItem (line 117) | class ConfigItem: method __init__ (line 131) | def __init__(self, config: Any, id: str = "") -> None: method get_id (line 135) | def get_id(self) -> str: method update_config (line 142) | def update_config(self, config: Any) -> None: method get_config (line 153) | def get_config(self): method __repr__ (line 160) | def __repr__(self) -> str: class ConfigComponent (line 164) | class ConfigComponent(ConfigItem, Instantiable): method __init__ (line 215) | def __init__( method is_instantiable (line 226) | def is_instantiable(config: Any) -> bool: method resolve_module_name (line 236) | def resolve_module_name(self): method resolve_args (line 260) | def resolve_args(self): method is_disabled (line 267) | def is_disabled(self) -> bool: method instantiate (line 275) | def instantiate(self, **kwargs: Any) -> object: class ConfigExpression (line 295) | class ConfigExpression(ConfigItem): method __init__ (line 325) | def __init__(self, config: Any, id: str = "", globals: dict | None = N... method _parse_import_string (line 329) | def _parse_import_string(self, import_string: str) -> Any | None: method evaluate (line 348) | def evaluate(self, globals: dict | None = None, locals: dict | None = ... method is_expression (line 387) | def is_expression(cls, config: dict | list | str) -> bool: method is_import_statement (line 399) | def is_import_statement(cls, config: dict | list | str) -> bool: FILE: monai/bundle/config_parser.py class ConfigParser (line 38) | class ConfigParser: method __init__ (line 102) | def __init__( method __repr__ (line 123) | def __repr__(self): method __getattr__ (line 126) | def __getattr__(self, id): method __getitem__ (line 139) | def __getitem__(self, id: str | int) -> Any: method __setitem__ (line 164) | def __setitem__(self, id: str | int, config: Any) -> None: method get (line 190) | def get(self, id: str = "", default: Any | None = None) -> Any: method set (line 204) | def set(self, config: Any, id: str = "", recursive: bool = True) -> None: method update (line 226) | def update(self, pairs: dict[str, Any]) -> None: method __contains__ (line 238) | def __contains__(self, id: str | int) -> bool: method parse (line 251) | def parse(self, reset: bool = True) -> None: method get_parsed_content (line 265) | def get_parsed_content(self, id: str = "", **kwargs: Any) -> Any: method read_meta (line 292) | def read_meta(self, f: PathLike | Sequence[PathLike] | dict, **kwargs:... method read_config (line 306) | def read_config(self, f: PathLike | Sequence[PathLike] | dict, **kwarg... method _do_resolve (line 322) | def _do_resolve(self, config: Any, id: str = "") -> Any: method resolve_macro_and_relative_ids (line 350) | def resolve_macro_and_relative_ids(self): method _do_parse (line 360) | def _do_parse(self, config: Any, id: str = "") -> None: method load_config_file (line 384) | def load_config_file(cls, filepath: PathLike, **kwargs: Any) -> dict: method load_config_files (line 406) | def load_config_files(cls, files: PathLike | Sequence[PathLike] | dict... method export_config_file (line 433) | def export_config_file(cls, config: dict, filepath: PathLike, fmt: str... method split_path_id (line 455) | def split_path_id(cls, src: str) -> tuple[str, str]: method resolve_relative_ids (line 474) | def resolve_relative_ids(cls, id: str, value: str) -> str: FILE: monai/bundle/reference_resolver.py class ReferenceResolver (line 26) | class ReferenceResolver: method __init__ (line 60) | def __init__(self, items: Sequence[ConfigItem] | None = None): method reset (line 65) | def reset(self): method is_resolved (line 73) | def is_resolved(self) -> bool: method add_item (line 76) | def add_item(self, item: ConfigItem) -> None: method get_item (line 89) | def get_item(self, id: str, resolve: bool = False, **kwargs: Any) -> C... method _resolve_one_item (line 107) | def _resolve_one_item( method get_resolved_content (line 181) | def get_resolved_content(self, id: str, **kwargs: Any) -> ConfigExpres... method remove_resolved_content (line 195) | def remove_resolved_content(self, id: str) -> Any | None: method normalize_id (line 206) | def normalize_id(cls, id: str | int) -> str: method normalize_meta_id (line 215) | def normalize_meta_id(self, config: Any) -> Any: method split_id (line 233) | def split_id(cls, id: str | int, last: bool = False) -> list[str]: method iter_subconfigs (line 247) | def iter_subconfigs(cls, id: str, config: Any) -> Iterator[tuple[str, ... method match_refs_pattern (line 260) | def match_refs_pattern(cls, value: str) -> dict[str, int]: method update_refs_pattern (line 282) | def update_refs_pattern(cls, value: str, refs: dict) -> str: method find_refs_in_config (line 320) | def find_refs_in_config(cls, config: Any, id: str, refs: dict[str, int... method update_config_with_refs (line 346) | def update_config_with_refs(cls, config: Any, id: str, refs: dict | No... FILE: monai/bundle/scripts.py function update_kwargs (line 74) | def update_kwargs(args: str | dict | None = None, ignore_none: bool = Tr... function _pop_args (line 114) | def _pop_args(src: dict, *args: Any, **kwargs: Any) -> tuple: function _log_input_summary (line 122) | def _log_input_summary(tag: str, args: dict) -> None: function _get_var_names (line 129) | def _get_var_names(expr: str) -> list[str]: function _get_fake_spatial_shape (line 141) | def _get_fake_spatial_shape(shape: Sequence[str | int], p: int = 1, n: i... function _get_git_release_url (line 170) | def _get_git_release_url(repo_owner: str, repo_name: str, tag_name: str,... function _get_ngc_bundle_url (line 174) | def _get_ngc_bundle_url(model_name: str, version: str) -> str: function _get_ngc_private_base_url (line 178) | def _get_ngc_private_base_url(repo: str) -> str: function _get_ngc_private_bundle_url (line 182) | def _get_ngc_private_bundle_url(model_name: str, version: str, repo: str... function _get_monaihosting_bundle_url (line 186) | def _get_monaihosting_bundle_url(model_name: str, version: str) -> str: function _download_from_github (line 190) | def _download_from_github(repo: str, download_path: Path, filename: str,... function _download_from_monaihosting (line 200) | def _download_from_monaihosting(download_path: Path, filename: str, vers... function _download_from_bundle_info (line 207) | def _download_from_bundle_info(download_path: Path, filename: str, versi... function _add_ngc_prefix (line 217) | def _add_ngc_prefix(name: str, prefix: str = "monai_") -> str: function _remove_ngc_prefix (line 223) | def _remove_ngc_prefix(name: str, prefix: str = "monai_") -> str: function _get_all_download_files (line 229) | def _get_all_download_files(request_url: str, headers: dict | None = Non... function _download_from_ngc (line 244) | def _download_from_ngc( function _download_from_ngc_private (line 263) | def _download_from_ngc_private( function _get_ngc_token (line 294) | def _get_ngc_token(api_key, retry=0): function _examine_monai_version (line 311) | def _examine_monai_version(monai_version: str) -> tuple[bool, str]: function _check_monai_version (line 330) | def _check_monai_version(bundle_dir: PathLike, name: str) -> None: function _list_latest_versions (line 343) | def _list_latest_versions(data: dict, max_versions: int = 3) -> list[str]: function _get_latest_bundle_version_ngc (line 376) | def _get_latest_bundle_version_ngc(name: str, repo: str | None = None, h... function _get_latest_bundle_version (line 407) | def _get_latest_bundle_version( function _process_bundle_dir (line 436) | def _process_bundle_dir(bundle_dir: PathLike | None = None) -> Path: function download (line 446) | def download( function load (line 628) | def load( function _get_all_bundles_info (line 771) | def _get_all_bundles_info( function get_all_bundles_list (line 815) | def get_all_bundles_list( function get_bundle_versions (line 849) | def get_bundle_versions( function get_bundle_info (line 883) | def get_bundle_info( function run (line 924) | def run( function run_workflow (line 1016) | def run_workflow( function verify_metadata (line 1047) | def verify_metadata( function _get_net_io_info (line 1108) | def _get_net_io_info(parser: ConfigParser | None = None, prefix: str = "... function _get_fake_input_shape (line 1145) | def _get_fake_input_shape(parser: ConfigParser) -> tuple: function verify_net_in_out (line 1158) | def verify_net_in_out( function _export (line 1259) | def _export( function onnx_export (line 1323) | def onnx_export( function ckpt_export (line 1437) | def ckpt_export( function trt_export (line 1571) | def trt_export( function init_bundle (line 1747) | def init_bundle( function _add_model_card_metadata (line 1837) | def _add_model_card_metadata(new_modelcard_path): function push_to_hf_hub (line 1861) | def push_to_hf_hub( function create_workflow (line 1921) | def create_workflow( function download_large_files (line 1978) | def download_large_files(bundle_path: str | None = None, large_file_name... FILE: monai/bundle/utils.py function load_bundle_config (line 173) | def load_bundle_config(bundle_path: str, *config_names: str, **load_kw_a... function merge_kv (line 248) | def merge_kv(args: dict | Any, k: str, v: Any) -> None: FILE: monai/bundle/workflows.py class BundleWorkflow (line 37) | class BundleWorkflow(ABC): method __init__ (line 64) | def __init__( method initialize (line 140) | def initialize(self, *args: Any, **kwargs: Any) -> Any: method run (line 148) | def run(self, *args: Any, **kwargs: Any) -> Any: method finalize (line 156) | def finalize(self, *args: Any, **kwargs: Any) -> Any: method _get_property (line 164) | def _get_property(self, name: str, property: dict) -> Any: method _set_property (line 176) | def _set_property(self, name: str, property: dict, value: Any) -> Any: method __getattr__ (line 188) | def __getattr__(self, name): method __setattr__ (line 194) | def __setattr__(self, name, value): method get_workflow_type (line 200) | def get_workflow_type(self): method get_meta_file (line 207) | def get_meta_file(self): method add_property (line 214) | def add_property(self, name: str, required: str, desc: str | None = No... method check_properties (line 232) | def check_properties(self) -> list[str] | None: class PythonicWorkflow (line 243) | class PythonicWorkflow(BundleWorkflow): method __init__ (line 281) | def __init__( method initialize (line 306) | def initialize(self, *args: Any, **kwargs: Any) -> Any: method _get_property (line 313) | def _get_property(self, name: str, property: dict) -> Any: method _set_property (line 346) | def _set_property(self, name: str, property: dict, value: Any) -> Any: class ConfigWorkflow (line 361) | class ConfigWorkflow(BundleWorkflow): method __init__ (line 405) | def __init__( method initialize (line 466) | def initialize(self) -> Any: method run (line 476) | def run(self) -> Any: method finalize (line 490) | def finalize(self) -> Any: method check_properties (line 497) | def check_properties(self) -> list[str] | None: method _run_expr (line 521) | def _run_expr(self, id: str, **kwargs: dict) -> list[Any]: method _get_prop_id (line 539) | def _get_prop_id(self, name: str, property: dict) -> Any: method _get_property (line 548) | def _get_property(self, name: str, property: dict) -> Any: method _set_property (line 562) | def _set_property(self, name: str, property: dict, value: Any) -> None: method add_property (line 579) | def add_property( # type: ignore[override] method _check_optional_id (line 598) | def _check_optional_id(self, name: str, property: dict) -> bool: method patch_bundle_tracking (line 629) | def patch_bundle_tracking(parser: ConfigParser, settings: dict) -> None: FILE: monai/config/deviceconfig.py function get_config_values (line 54) | def get_config_values(): function get_optional_config_values (line 67) | def get_optional_config_values(): function print_config (line 95) | def print_config(file=sys.stdout): function _dict_append (line 120) | def _dict_append(in_dict, key, fn): function get_system_info (line 127) | def get_system_info() -> OrderedDict: function print_system_info (line 186) | def print_system_info(file: TextIO = sys.stdout) -> None: function get_gpu_info (line 200) | def get_gpu_info() -> OrderedDict: function print_gpu_info (line 234) | def print_gpu_info(file: TextIO = sys.stdout) -> None: function print_debug_info (line 245) | def print_debug_info(file: TextIO = sys.stdout) -> None: class IgniteInfo (line 267) | class IgniteInfo: FILE: monai/csrc/ext.cpp function PYBIND11_MODULE (line 21) | PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) { FILE: monai/csrc/filtering/bilateral/bilateral.cpp function BilateralFilter (line 21) | torch::Tensor BilateralFilter(torch::Tensor input, float spatial_sigma, ... FILE: monai/csrc/filtering/bilateral/bilateralfilter_cpu.cpp function BilateralFilterCpu (line 21) | void BilateralFilterCpu(torch::Tensor inputTensor, torch::Tensor outputT... function BilateralFilterCpu (line 126) | torch::Tensor BilateralFilterCpu(torch::Tensor inputTensor, float spatia... FILE: monai/csrc/filtering/bilateral/bilateralfilter_cpu_phl.cpp function BilateralFilterPHLCpu (line 20) | void BilateralFilterPHLCpu( function BilateralFilterPHLCpu (line 80) | torch::Tensor BilateralFilterPHLCpu(torch::Tensor inputTensor, float spa... FILE: monai/csrc/filtering/permutohedral/permutohedral.cpp function PermutohedralFilter (line 22) | torch::Tensor PermutohedralFilter(torch::Tensor input, torch::Tensor fea... FILE: monai/csrc/filtering/permutohedral/permutohedral_cpu.cpp class HashTablePermutohedral (line 57) | class HashTablePermutohedral { method HashTablePermutohedral (line 63) | HashTablePermutohedral(int kd_, int vd_) : kd(kd_), vd(vd_) { method size (line 73) | int size() { method scalar_t (line 83) | scalar_t* getValues() { method lookupOffset (line 93) | int lookupOffset(short* key, size_t h, bool create = true) { method scalar_t (line 134) | scalar_t* lookup(short* k, bool create = true) { method hash (line 144) | size_t hash(const short* key) { method grow (line 155) | void grow() { type Entry (line 191) | struct Entry { method Entry (line 192) | Entry() : keyIdx(-1), valueIdx(-1) {} class PermutohedralLattice (line 212) | class PermutohedralLattice { method filter (line 218) | static void filter(scalar_t* data, scalar_t* features, int dataChannel... method PermutohedralLattice (line 256) | PermutohedralLattice(int d_, int vd_, int nData_) : d(d_), vd(vd_), nD... method splat (line 301) | void splat(scalar_t* position, scalar_t* value) { method beginSlice (line 392) | void beginSlice() { method slice (line 400) | void slice(scalar_t* col) { method blur (line 413) | void blur() { type ReplayEntry (line 484) | struct ReplayEntry { function PermutohedralCPU (line 497) | void PermutohedralCPU(scalar_t* data, scalar_t* features, int dataChanne... FILE: monai/csrc/filtering/trainable_bilateral/bf_layer_cpu_backward.cpp function BilateralFilterCpuBackward_3d (line 35) | void BilateralFilterCpuBackward_3d( function BilateralFilterCpuBackward (line 204) | torch::Tensor BilateralFilterCpuBackward( FILE: monai/csrc/filtering/trainable_bilateral/bf_layer_cpu_forward.cpp function BilateralFilterCpuForward_3d (line 35) | void BilateralFilterCpuForward_3d( function BilateralFilterCpuForward (line 241) | std::tuple JointBilateralFilterCpuBackward( FILE: monai/csrc/filtering/trainable_joint_bilateral/jbf_layer_cpu_forward.cpp function JointBilateralFilterCpuForward_3d (line 35) | void JointBilateralFilterCpuForward_3d( function JointBilateralFilterCpuForward (line 243) | std::tuple TrainableJointBilateralFilterBa... FILE: monai/csrc/lltm/lltm_cpu.cpp function d_sigmoid (line 18) | torch::Tensor d_sigmoid(torch::Tensor z) { function d_tanh (line 24) | torch::Tensor d_tanh(torch::Tensor z) { function d_elu (line 29) | torch::Tensor d_elu(torch::Tensor z, torch::Scalar alpha = 1.0) { function lltm_cpu_forward (line 35) | std::vector lltm_cpu_forward( function lltm_cpu_backward (line 56) | std::vector lltm_cpu_backward( FILE: monai/csrc/resample/bounds_common.h function namespace (line 32) | namespace monai { FILE: monai/csrc/resample/interpolation_common.h function namespace (line 47) | namespace monai { FILE: monai/csrc/resample/pushpull.h function namespace (line 52) | namespace monai { FILE: monai/csrc/resample/pushpull_cpu.cpp type monai (line 73) | namespace monai { function MONAI_HOST (line 314) | MONAI_HOST function MONAI_HOST (line 330) | MONAI_HOST function MONAI_HOST (line 347) | MONAI_HOST function MONAI_HOST (line 354) | MONAI_HOST function MONAI_HOST (line 370) | MONAI_HOST function MONAI_HOST (line 389) | MONAI_HOST class PushPullImpl (line 490) | class PushPullImpl { method PushPullImpl (line 493) | PushPullImpl(const PushPullAllocator& info) method voxcount (line 582) | int64_t voxcount() const { method MONAI_DEVICE (line 594) | MONAI_DEVICE void interpolate1d_sliding(scalar_t x, offset_t w, offs... method MONAI_DEVICE (line 596) | MONAI_DEVICE void interpolate1d_sliding_nearest(scalar_t x, offset_t... method MONAI_DEVICE (line 598) | MONAI_DEVICE void interpolate1d_sliding_linear(scalar_t x, offset_t ... method MONAI_DEVICE (line 603) | MONAI_DEVICE void interpolate2d_sliding(scalar_t x, scalar_t y, offs... method MONAI_DEVICE (line 605) | MONAI_DEVICE void interpolate2d_sliding_nearest(scalar_t x, scalar_t... method MONAI_DEVICE (line 608) | MONAI_DEVICE void interpolate2d_sliding_bilinear(scalar_t x, scalar_... method MONAI_DEVICE (line 629) | MONAI_DEVICE void interpolate3d_sliding( method MONAI_DEVICE (line 638) | MONAI_DEVICE void interpolate3d_sliding_nearest( method MONAI_DEVICE (line 647) | MONAI_DEVICE void interpolate3d_sliding_trilinear( function MONAI_HOST (line 730) | MONAI_HOST void PushPullImpl::loop() const { function MONAI_DEVICE (line 788) | MONAI_DEVICE void PushPullImpl::check3d(offset_t w... function MONAI_DEVICE (line 841) | MONAI_DEVICE void PushPullImpl::check2d(offset_t w... function MONAI_DEVICE (line 889) | MONAI_DEVICE void PushPullImpl::check1d(offset_t w... function MONAI_DEVICE (line 939) | MONAI_DEVICE void PushPullImpl::interpolate3d( function MONAI_DEVICE (line 1153) | MONAI_DEVICE void PushPullImpl::interpolate2d( function MONAI_DEVICE (line 1332) | MONAI_DEVICE void PushPullImpl::interpolate1d(scal... function MONAI_DEVICE (line 1476) | MONAI_DEVICE void PushPullImpl::interpolate3d_tril... function MONAI_DEVICE (line 1767) | MONAI_DEVICE void PushPullImpl::interpolate2d_bili... function MONAI_DEVICE (line 1947) | MONAI_DEVICE void PushPullImpl::interpolate1d_line... function MONAI_DEVICE (line 2057) | MONAI_DEVICE void PushPullImpl::interpolate3d_near... function MONAI_DEVICE (line 2105) | MONAI_DEVICE void PushPullImpl::interpolate2d_near... function MONAI_DEVICE (line 2148) | MONAI_DEVICE void PushPullImpl::interpolate1d_near... function MONAI_HOST (line 2218) | MONAI_HOST std::deque pushpull( function MONAI_HOST (line 2244) | MONAI_HOST std::deque pushpull( FILE: monai/csrc/utils/resample_utils.h function namespace (line 44) | namespace monai { function namespace (line 61) | namespace monai { type class (line 79) | enum class function InterpolationType (line 93) | enum class InterpolationType : int64_t { FILE: monai/csrc/utils/tensor_description.h function TensorDescription (line 19) | struct TensorDescription { FILE: monai/csrc/utils/tensor_indexing.h function Indexer (line 17) | struct Indexer { FILE: monai/data/__init__.py function _rebuild_meta (line 124) | def _rebuild_meta(cls, storage, dtype, metadata): function reduce_meta_tensor (line 133) | def reduce_meta_tensor(meta_tensor): FILE: monai/data/box_utils.py class BoxMode (line 52) | class BoxMode(ABC): method get_name (line 85) | def get_name(cls, spatial_dims: int) -> str: method boxes_to_corners (line 98) | def boxes_to_corners(self, boxes: torch.Tensor) -> tuple: method corners_to_boxes (line 119) | def corners_to_boxes(self, corners: Sequence) -> torch.Tensor: class CornerCornerModeTypeA (line 140) | class CornerCornerModeTypeA(BoxMode): method boxes_to_corners (line 156) | def boxes_to_corners(self, boxes: torch.Tensor) -> tuple: method corners_to_boxes (line 161) | def corners_to_boxes(self, corners: Sequence) -> torch.Tensor: class CornerCornerModeTypeB (line 167) | class CornerCornerModeTypeB(BoxMode): method boxes_to_corners (line 183) | def boxes_to_corners(self, boxes: torch.Tensor) -> tuple: method corners_to_boxes (line 194) | def corners_to_boxes(self, corners: Sequence) -> torch.Tensor: class CornerCornerModeTypeC (line 204) | class CornerCornerModeTypeC(BoxMode): method boxes_to_corners (line 220) | def boxes_to_corners(self, boxes: torch.Tensor) -> tuple: method corners_to_boxes (line 230) | def corners_to_boxes(self, corners: Sequence) -> torch.Tensor: class CornerSizeMode (line 240) | class CornerSizeMode(BoxMode): method boxes_to_corners (line 256) | def boxes_to_corners(self, boxes: torch.Tensor) -> tuple: method corners_to_boxes (line 275) | def corners_to_boxes(self, corners: Sequence) -> torch.Tensor: class CenterSizeMode (line 289) | class CenterSizeMode(BoxMode): method boxes_to_corners (line 305) | def boxes_to_corners(self, boxes: torch.Tensor) -> tuple: method corners_to_boxes (line 329) | def corners_to_boxes(self, corners: Sequence) -> torch.Tensor: function get_spatial_dims (line 365) | def get_spatial_dims( function get_boxmode (line 457) | def get_boxmode(mode: str | BoxMode | type[BoxMode] | None = None, *args... function standardize_empty_box (line 519) | def standardize_empty_box(boxes: NdarrayOrTensor, spatial_dims: int) -> ... function convert_box_mode (line 546) | def convert_box_mode( function convert_box_to_standard_mode (line 606) | def convert_box_to_standard_mode( function box_centers (line 634) | def box_centers(boxes: NdarrayOrTensor) -> NdarrayOrTensor: function centers_in_boxes (line 649) | def centers_in_boxes(centers: NdarrayOrTensor, boxes: NdarrayOrTensor, e... function boxes_center_distance (line 680) | def boxes_center_distance( function is_valid_box_values (line 723) | def is_valid_box_values(boxes: NdarrayOrTensor) -> bool: function box_area (line 740) | def box_area(boxes: NdarrayOrTensor) -> NdarrayOrTensor: function _box_inter_union (line 782) | def _box_inter_union( function box_iou (line 820) | def box_iou(boxes1: NdarrayOrTensor, boxes2: NdarrayOrTensor) -> Ndarray... function box_giou (line 863) | def box_giou(boxes1: NdarrayOrTensor, boxes2: NdarrayOrTensor) -> Ndarra... function box_pair_giou (line 927) | def box_pair_giou(boxes1: NdarrayOrTensor, boxes2: NdarrayOrTensor) -> N... function spatial_crop_boxes (line 1011) | def spatial_crop_boxes( function clip_boxes_to_image (line 1068) | def clip_boxes_to_image( function non_max_suppression (line 1087) | def non_max_suppression( function batched_nms (line 1162) | def batched_nms( FILE: monai/data/csv_saver.py class CSVSaver (line 26) | class CSVSaver: method __init__ (line 37) | def __init__( method finalize (line 69) | def finalize(self) -> None: method save (line 85) | def save(self, data: torch.Tensor | np.ndarray, meta_data: dict | None... method save_batch (line 101) | def save_batch(self, batch_data: torch.Tensor | np.ndarray, meta_data:... method get_cache (line 115) | def get_cache(self) -> OrderedDict: method reset_cache (line 120) | def reset_cache(self) -> None: FILE: monai/data/dataloader.py class DataLoader (line 26) | class DataLoader(_TorchDataLoader): method __init__ (line 79) | def __init__(self, dataset: Dataset, num_workers: int = 0, **kwargs) -... FILE: monai/data/dataset.py class Dataset (line 57) | class Dataset(_TorchDataset): method __init__ (line 73) | def __init__(self, data: Sequence, transform: Sequence[Callable] | Cal... method __len__ (line 87) | def __len__(self) -> int: method _transform (line 90) | def _transform(self, index: int): method __getitem__ (line 97) | def __getitem__(self, index: int | slice | Sequence[int]): class DatasetFunc (line 112) | class DatasetFunc(Dataset): method __init__ (line 141) | def __init__(self, data: Any, func: Callable, **kwargs) -> None: method reset (line 148) | def reset(self, data: Any | None = None, func: Callable | None = None,... class PersistentDataset (line 162) | class PersistentDataset(Dataset): method __init__ (line 223) | def __init__( method set_transform_hash (line 303) | def set_transform_hash(self, hash_xform_func: Callable[..., bytes]): method set_data (line 323) | def set_data(self, data: Sequence): method _pre_transform (line 333) | def _pre_transform(self, item_transformed): method _post_transform (line 354) | def _post_transform(self, item_transformed): method _cachecheck (line 372) | def _cachecheck(self, item_transformed): method _transform (line 436) | def _transform(self, index: int): class CacheNTransDataset (line 441) | class CacheNTransDataset(PersistentDataset): method __init__ (line 447) | def __init__( method _pre_transform (line 507) | def _pre_transform(self, item_transformed): method _post_transform (line 522) | def _post_transform(self, item_transformed): class LMDBDataset (line 535) | class LMDBDataset(PersistentDataset): method __init__ (line 551) | def __init__( method set_data (line 615) | def set_data(self, data: Sequence): method _safe_serialize (line 623) | def _safe_serialize(self, val): method _safe_deserialize (line 629) | def _safe_deserialize(self, val): method _fill_cache_start_reader (line 632) | def _fill_cache_start_reader(self, show_progress=True): method _cachecheck (line 689) | def _cachecheck(self, item_transformed): method info (line 708) | def info(self): class CacheDataset (line 721) | class CacheDataset(Dataset): method __init__ (line 776) | def __init__( method set_data (line 848) | def set_data(self, data: Sequence) -> None: method _fill_cache (line 885) | def _fill_cache(self, indices=None) -> list: method _load_cache_item (line 905) | def _load_cache_item(self, idx: int): method _transform (line 921) | def _transform(self, index: int): class SmartCacheDataset (line 956) | class SmartCacheDataset(Randomizable, CacheDataset): method __init__ (line 1029) | def __init__( method set_data (line 1087) | def set_data(self, data: Sequence): method randomize (line 1103) | def randomize(self, data: Sequence) -> None: method _compute_data_idx (line 1109) | def _compute_data_idx(self) -> None: method is_started (line 1120) | def is_started(self): method start (line 1127) | def start(self): method _restart (line 1135) | def _restart(self): method _try_update_cache (line 1144) | def _try_update_cache(self): method update_cache (line 1167) | def update_cache(self): method _try_shutdown (line 1179) | def _try_shutdown(self): method shutdown (line 1193) | def shutdown(self): method _replace_cache_thread (line 1207) | def _replace_cache_thread(self, index: int): method _compute_replacements (line 1215) | def _compute_replacements(self): method _try_manage_replacement (line 1226) | def _try_manage_replacement(self, check_round): method manage_replacement (line 1241) | def manage_replacement(self) -> None: method __len__ (line 1252) | def __len__(self): class ZipDataset (line 1260) | class ZipDataset(Dataset): method __init__ (line 1283) | def __init__(self, datasets: Sequence, transform: Callable | None = No... method __len__ (line 1291) | def __len__(self) -> int: method _transform (line 1294) | def _transform(self, index: int): class ArrayDataset (line 1310) | class ArrayDataset(Randomizable, _TorchDataset): method __init__ (line 1360) | def __init__( method __len__ (line 1389) | def __len__(self) -> int: method randomize (line 1392) | def randomize(self, data: Any | None = None) -> None: method __getitem__ (line 1395) | def __getitem__(self, index: int): class NPZDictItemDataset (line 1409) | class NPZDictItemDataset(Dataset): method __init__ (line 1424) | def __init__( method __len__ (line 1449) | def __len__(self): method _transform (line 1452) | def _transform(self, index: int): class CSVDataset (line 1461) | class CSVDataset(Dataset): method __init__ (line 1509) | def __init__( class GDSDataset (line 1536) | class GDSDataset(PersistentDataset): method __init__ (line 1547) | def __init__( method _cachecheck (line 1595) | def _cachecheck(self, item_transformed): method _create_new_cache (line 1674) | def _create_new_cache(self, data, data_hashfile, meta_hash_file_name): method _load_meta_cache (line 1706) | def _load_meta_cache(self, meta_hash_file_name): FILE: monai/data/dataset_summary.py class DatasetSummary (line 31) | class DatasetSummary: method __init__ (line 45) | def __init__( method collect_meta_data (line 81) | def collect_meta_data(self): method get_target_spacing (line 96) | def get_target_spacing(self, spacing_key: str = "affine", anisotropic_... method calculate_statistics (line 136) | def calculate_statistics(self, foreground_threshold: int = 0): method calculate_percentiles (line 173) | def calculate_percentiles( FILE: monai/data/decathlon_datalist.py function _compute_path (line 27) | def _compute_path(base_dir: PathLike, element: PathLike, check_path: boo... function _compute_path (line 31) | def _compute_path(base_dir: PathLike, element: list[PathLike], check_pat... function _compute_path (line 34) | def _compute_path(base_dir, element, check_path=False): function _append_paths (line 64) | def _append_paths(base_dir: PathLike, is_segmentation: bool, items: list... function load_decathlon_datalist (line 87) | def load_decathlon_datalist( function load_decathlon_properties (line 170) | def load_decathlon_properties(data_property_file_path: PathLike, propert... function check_missing_files (line 196) | def check_missing_files( function create_cross_validation_datalist (line 234) | def create_cross_validation_datalist( FILE: monai/data/fft_utils.py function ifftn_centered (line 21) | def ifftn_centered(ksp: NdarrayOrTensor, spatial_dims: int, is_complex: ... function fftn_centered (line 60) | def fftn_centered(im: NdarrayOrTensor, spatial_dims: int, is_complex: bo... FILE: monai/data/folder_layout.py function default_name_formatter (line 23) | def default_name_formatter(metadict: dict, saver: monai.transforms.Trans... class FolderLayoutBase (line 35) | class FolderLayoutBase(ABC): method filename (line 78) | def filename(self, **kwargs) -> PathLike: class FolderLayout (line 86) | class FolderLayout(FolderLayoutBase): method __init__ (line 111) | def __init__( method filename (line 137) | def filename(self, subject: PathLike = "subject", idx=None, **kwargs) ... FILE: monai/data/grid_dataset.py class PatchIter (line 42) | class PatchIter: method __init__ (line 49) | def __init__( method __call__ (line 85) | def __call__(self, array: NdarrayTensor) -> Generator[tuple[NdarrayTen... class PatchIterd (line 102) | class PatchIterd: method __init__ (line 130) | def __init__( method __call__ (line 141) | def __call__( class GridPatchDataset (line 160) | class GridPatchDataset(IterableDataset): method __init__ (line 221) | def __init__( method set_data (line 265) | def set_data(self, data: Sequence) -> None: method _fill_cache (line 283) | def _fill_cache(self, indices=None) -> list: method _load_cache_item (line 303) | def _load_cache_item(self, idx: int): method _generate_patches (line 321) | def _generate_patches(self, src, **apply_args): method __iter__ (line 339) | def __iter__(self): class PatchDataset (line 366) | class PatchDataset(IterableDataset): method __init__ (line 407) | def __init__( method __len__ (line 426) | def __len__(self) -> int: method __iter__ (line 429) | def __iter__(self): FILE: monai/data/image_dataset.py class ImageDataset (line 26) | class ImageDataset(Dataset, Randomizable): method __init__ (line 36) | def __init__( method __len__ (line 96) | def __len__(self) -> int: method randomize (line 99) | def randomize(self, data: Any | None = None) -> None: method __getitem__ (line 102) | def __getitem__(self, index: int): FILE: monai/data/image_reader.py class ImageReader (line 70) | class ImageReader(ABC): method verify_suffix (line 90) | def verify_suffix(self, filename: Sequence[PathLike] | PathLike) -> bool: method read (line 104) | def read(self, data: Sequence[PathLike] | PathLike, **kwargs) -> Seque... method get_data (line 117) | def get_data(self, img) -> tuple[np.ndarray, dict]: function _copy_compatible_dict (line 130) | def _copy_compatible_dict(from_dict: dict, to_dict: dict): function _stack_images (line 153) | def _stack_images(image_list: list, meta_dict: dict, to_cupy: bool = Fal... class ITKReader (line 169) | class ITKReader(ImageReader): method __init__ (line 200) | def __init__( method verify_suffix (line 217) | def verify_suffix(self, filename: Sequence[PathLike] | PathLike) -> bool: method read (line 228) | def read(self, data: Sequence[PathLike] | PathLike, **kwargs): method get_data (line 279) | def get_data(self, img) -> tuple[np.ndarray, dict]: method _get_meta_dict (line 312) | def _get_meta_dict(self, img) -> dict: method _get_affine (line 331) | def _get_affine(self, img, lps_to_ras: bool = True): method _get_spatial_shape (line 354) | def _get_spatial_shape(self, img): method _get_array_data (line 369) | def _get_array_data(self, img): class PydicomReader (line 393) | class PydicomReader(ImageReader): method __init__ (line 440) | def __init__( method warmup_kvikio (line 470) | def warmup_kvikio(self): method verify_suffix (line 487) | def verify_suffix(self, filename: Sequence[PathLike] | PathLike) -> bool: method read (line 498) | def read(self, data: Sequence[PathLike] | PathLike, **kwargs): method _combine_dicom_series (line 555) | def _combine_dicom_series(self, data: Iterable, filenames: Sequence[Pa... method get_data (line 626) | def get_data(self, data) -> tuple[np.ndarray, dict]: method _get_meta_dict (line 703) | def _get_meta_dict(self, img) -> dict: method _get_affine (line 729) | def _get_affine(self, metadata: dict, lps_to_ras: bool = True): method _get_frame_data (line 773) | def _get_frame_data(self, img, filename, array_data) -> Iterator: method _get_seg_data (line 829) | def _get_seg_data(self, img, filename): method _get_array_data_from_gpu (line 906) | def _get_array_data_from_gpu(self, img, filename): method _get_array_data (line 961) | def _get_array_data(self, img, filename): class NibabelReader (line 1001) | class NibabelReader(ImageReader): method __init__ (line 1021) | def __init__( method warmup_kvikio (line 1045) | def warmup_kvikio(self): method verify_suffix (line 1062) | def verify_suffix(self, filename: Sequence[PathLike] | PathLike) -> bool: method read (line 1074) | def read(self, data: Sequence[PathLike] | PathLike, **kwargs): method get_data (line 1099) | def get_data(self, img) -> tuple[np.ndarray, dict]: method _get_meta_dict (line 1142) | def _get_meta_dict(self, img) -> dict: method _get_affine (line 1157) | def _get_affine(self, img): method _get_spatial_shape (line 1168) | def _get_spatial_shape(self, img): method _get_array_data (line 1192) | def _get_array_data(self, img, filename): class NumpyReader (line 1223) | class NumpyReader(ImageReader): method __init__ (line 1238) | def __init__(self, npz_keys: KeysCollection | None = None, channel_dim... method verify_suffix (line 1246) | def verify_suffix(self, filename: Sequence[PathLike] | PathLike) -> bool: method read (line 1257) | def read(self, data: Sequence[PathLike] | PathLike, **kwargs): method get_data (line 1287) | def get_data(self, img) -> tuple[np.ndarray, dict]: class PILReader (line 1323) | class PILReader(ImageReader): method __init__ (line 1337) | def __init__(self, converter: Callable | None = None, reverse_indexing... method verify_suffix (line 1343) | def verify_suffix(self, filename: Sequence[PathLike] | PathLike) -> bool: method read (line 1354) | def read(self, data: Sequence[PathLike] | PathLike | np.ndarray, **kwa... method get_data (line 1380) | def get_data(self, img) -> tuple[np.ndarray, dict]: method _get_meta_dict (line 1409) | def _get_meta_dict(self, img) -> dict: method _get_spatial_shape (line 1418) | def _get_spatial_shape(self, img): class NrrdImage (line 1428) | class NrrdImage: class NrrdReader (line 1436) | class NrrdReader(ImageReader): method __init__ (line 1456) | def __init__( method verify_suffix (line 1470) | def verify_suffix(self, filename: Sequence[PathLike] | PathLike) -> bool: method read (line 1482) | def read(self, data: Sequence[PathLike] | PathLike, **kwargs) -> Seque... method get_data (line 1501) | def get_data(self, img: NrrdImage | list[NrrdImage]) -> tuple[np.ndarr... method _get_affine (line 1541) | def _get_affine(self, header: dict) -> np.ndarray: method _switch_lps_ras (line 1560) | def _switch_lps_ras(self, header: dict) -> dict: method _convert_f_to_c_order (line 1576) | def _convert_f_to_c_order(self, header: dict) -> dict: FILE: monai/data/image_writer.py function register_writer (line 67) | def register_writer(ext_name, *im_writers): function resolve_writer (line 92) | def resolve_writer(ext_name, error_if_not_found=True) -> Sequence: class ImageWriter (line 125) | class ImageWriter: method __init__ (line 178) | def __init__(self, **kwargs): method set_data_array (line 188) | def set_data_array(self, data_array, **kwargs): method set_metadata (line 191) | def set_metadata(self, meta_dict: Mapping | None, **options): method write (line 194) | def write(self, filename: PathLike, verbose: bool = True, **kwargs): method create_backend_obj (line 200) | def create_backend_obj(cls, data_array: NdarrayOrTensor, **kwargs) -> ... method resample_if_needed (line 208) | def resample_if_needed( method convert_to_channel_last (line 284) | def convert_to_channel_last( method get_meta_info (line 333) | def get_meta_info(cls, metadata: Mapping | None = None): class ITKWriter (line 347) | class ITKWriter(ImageWriter): method __init__ (line 376) | def __init__(self, output_dtype: DtypeLike = np.float32, affine_lps_to... method set_data_array (line 396) | def set_data_array( method set_metadata (line 425) | def set_metadata(self, meta_dict: Mapping | None = None, resample: boo... method write (line 451) | def write(self, filename: PathLike, verbose: bool = False, **kwargs): method create_backend_obj (line 479) | def create_backend_obj( class NibabelWriter (line 534) | class NibabelWriter(ImageWriter): method __init__ (line 554) | def __init__(self, output_dtype: DtypeLike = np.float32, **kwargs): method set_data_array (line 566) | def set_data_array( method set_metadata (line 587) | def set_metadata(self, meta_dict: Mapping | None, resample: bool = Tru... method write (line 615) | def write(self, filename: PathLike, verbose: bool = False, **obj_kwargs): method create_backend_obj (line 641) | def create_backend_obj( class PILWriter (line 675) | class PILWriter(ImageWriter): method __init__ (line 697) | def __init__( method set_data_array (line 711) | def set_data_array( method set_metadata (line 739) | def set_metadata(self, meta_dict: Mapping | None = None, resample: boo... method write (line 759) | def write(self, filename: PathLike, verbose: bool = False, **kwargs): method get_meta_info (line 785) | def get_meta_info(cls, metadata: Mapping | None = None): method resample_and_clip (line 789) | def resample_and_clip( method create_backend_obj (line 822) | def create_backend_obj( function init (line 865) | def init(): FILE: monai/data/iterable_dataset.py class IterableDataset (line 28) | class IterableDataset(_TorchIterableDataset): method __init__ (line 43) | def __init__(self, data: Iterable[Any], transform: Callable | None = N... method __iter__ (line 53) | def __iter__(self): class ShuffleBuffer (line 66) | class ShuffleBuffer(Randomizable, IterableDataset): method __init__ (line 100) | def __init__(self, data, transform=None, buffer_size: int = 512, seed:... method randomized_pop (line 107) | def randomized_pop(self, buffer): method generate_item (line 114) | def generate_item(self): method __iter__ (line 124) | def __iter__(self): method randomize (line 134) | def randomize(self, size: int) -> None: class CSVIterableDataset (line 138) | class CSVIterableDataset(IterableDataset): method __init__ (line 200) | def __init__( method reset (line 228) | def reset(self, src: str | Sequence[str] | Iterable | Sequence[Iterabl... method close (line 252) | def close(self): method _flattened (line 264) | def _flattened(self): method __iter__ (line 274) | def __iter__(self): FILE: monai/data/itk_torch_bridge.py function itk_image_to_metatensor (line 43) | def itk_image_to_metatensor( function metatensor_to_itk_image (line 69) | def metatensor_to_itk_image( function itk_to_monai_affine (line 105) | def itk_to_monai_affine(image, matrix, translation, center_of_rotation=N... function monai_to_itk_affine (line 157) | def monai_to_itk_affine(image, affine_matrix, center_of_rotation=None): function get_itk_image_center (line 194) | def get_itk_image_center(image): function _assert_itk_regions_match_array (line 213) | def _assert_itk_regions_match_array(image): function _compute_offset_matrix (line 244) | def _compute_offset_matrix(image, center_of_rotation) -> tuple[torch.Ten... function _compute_spacing_matrix (line 255) | def _compute_spacing_matrix(image) -> tuple[torch.Tensor, torch.Tensor]: function _compute_direction_matrix (line 267) | def _compute_direction_matrix(image) -> tuple[torch.Tensor, torch.Tensor]: function _compute_reference_space_affine_matrix (line 279) | def _compute_reference_space_affine_matrix(image, ref_image) -> torch.Te... function monai_to_itk_ddf (line 310) | def monai_to_itk_ddf(image, ddf): FILE: monai/data/meta_obj.py function set_track_meta (line 30) | def set_track_meta(val: bool) -> None: function get_track_meta (line 47) | def get_track_meta() -> bool: class MetaObj (line 63) | class MetaObj: method __init__ (line 82) | def __init__(self) -> None: method flatten_meta_objs (line 89) | def flatten_meta_objs(*args: Iterable): method copy_items (line 108) | def copy_items(data): method copy_meta_from (line 118) | def copy_meta_from(self, input_objs, copy_attr=True, keys=None): method get_default_meta (line 141) | def get_default_meta() -> dict: method get_default_applied_operations (line 150) | def get_default_applied_operations() -> list: method __repr__ (line 158) | def __repr__(self) -> str: method meta (line 177) | def meta(self) -> dict: method meta (line 182) | def meta(self, d) -> None: method applied_operations (line 190) | def applied_operations(self) -> list[dict]: method applied_operations (line 197) | def applied_operations(self, t) -> None: method push_applied_operation (line 205) | def push_applied_operation(self, t: Any) -> None: method pop_applied_operation (line 208) | def pop_applied_operation(self) -> Any: method pending_operations (line 212) | def pending_operations(self) -> list[dict]: method has_pending_operations (line 219) | def has_pending_operations(self) -> bool: method push_pending_operation (line 227) | def push_pending_operation(self, t: Any) -> None: method pop_pending_operation (line 230) | def pop_pending_operation(self) -> Any: method clear_pending_operations (line 233) | def clear_pending_operations(self) -> Any: method is_batch (line 237) | def is_batch(self) -> bool: method is_batch (line 242) | def is_batch(self, val: bool) -> None: FILE: monai/data/meta_tensor.py function _get_named_tuple_like_type (line 35) | def _get_named_tuple_like_type(func): function _not_requiring_metadata (line 46) | def _not_requiring_metadata(ret): class MetaTensor (line 52) | class MetaTensor(MetaObj, torch.Tensor): method __new__ (line 107) | def __new__( method __init__ (line 119) | def __init__( method update_meta (line 175) | def update_meta(rets: Sequence, func, args, kwargs) -> Sequence: method _handle_batched (line 230) | def _handle_batched(cls, ret, idx, metas, func, args, kwargs): method __torch_function__ (line 279) | def __torch_function__(cls, func, types, args=(), kwargs=None) -> Any: method _convert (line 308) | def _convert(x): method __array_function__ (line 313) | def __array_function__(self, func, types, args, kwargs): method __array_ufunc__ (line 324) | def __array_ufunc__(self, ufunc, method, *inputs, **kwargs): method get_default_affine (line 346) | def get_default_affine(dtype=torch.float64) -> torch.Tensor: method as_tensor (line 349) | def as_tensor(self) -> torch.Tensor: method get_array (line 356) | def get_array(self, output_type=np.ndarray, dtype=None, device=None, *... method set_array (line 372) | def set_array(self, src, non_blocking: bool = False, *_args, **_kwargs): method array (line 395) | def array(self): method array (line 407) | def array(self, src) -> None: method as_dict (line 411) | def as_dict(self, key: str, output_type=torch.Tensor, dtype=None) -> d... method astype (line 434) | def astype(self, dtype, device=None, *_args, **_kwargs): method affine (line 464) | def affine(self) -> torch.Tensor: method affine (line 469) | def affine(self, d: NdarrayTensor) -> None: method pixdim (line 474) | def pixdim(self): method peek_pending_shape (line 480) | def peek_pending_shape(self): method peek_pending_affine (line 491) | def peek_pending_affine(self): method peek_pending_rank (line 505) | def peek_pending_rank(self): method new_empty (line 509) | def new_empty(self, size, dtype=None, device=None, requires_grad=False... method clone (line 520) | def clone(self, **kwargs): method ensure_torch_and_prune_meta (line 534) | def ensure_torch_and_prune_meta( method __repr__ (line 583) | def __repr__(self): # type: ignore[override] method __str__ (line 591) | def __str__(self): method __format__ (line 599) | def __format__(self, format_spec): method print_verbose (line 605) | def print_verbose(self) -> None: FILE: monai/data/samplers.py class DistributedSampler (line 23) | class DistributedSampler(_TorchDistributedSampler): method __init__ (line 43) | def __init__( class DistributedWeightedRandomSampler (line 64) | class DistributedWeightedRandomSampler(DistributedSampler): method __init__ (line 88) | def __init__( method __iter__ (line 105) | def __iter__(self): method __len__ (line 114) | def __len__(self): FILE: monai/data/synthetic.py function create_test_image_2d (line 21) | def create_test_image_2d( function create_test_image_3d (line 97) | def create_test_image_3d( FILE: monai/data/test_time_augmentation.py function _identity (line 45) | def _identity(x): class TestTimeAugmentation (line 49) | class TestTimeAugmentation: method __init__ (line 115) | def __init__( method _check_transforms (line 159) | def _check_transforms(self): method __call__ (line 179) | def __call__( FILE: monai/data/thread_buffer.py class ThreadBuffer (line 23) | class ThreadBuffer: method __init__ (line 40) | def __init__(self, src, buffer_size: int = 1, timeout: float = 0.01): method enqueue_values (line 48) | def enqueue_values(self): method stop (line 60) | def stop(self): method __iter__ (line 68) | def __iter__(self): function buffer_iterator (line 83) | def buffer_iterator(src, buffer_size: int = 1, timeout: float = 0.01, re... class _ProcessThread (line 104) | class _ProcessThread(Thread): method pid (line 108) | def pid(self): method run (line 111) | def run(self): class _ProcessQueue (line 118) | class _ProcessQueue(Queue): method close (line 121) | def close(self): method cancel_join_thread (line 124) | def cancel_join_thread(self): class _ProcessThreadContext (line 128) | class _ProcessThreadContext(SpawnContext): class ThreadDataLoader (line 137) | class ThreadDataLoader(DataLoader): method __init__ (line 178) | def __init__( method __iter__ (line 198) | def __iter__(self): FILE: monai/data/torchscript_utils.py function save_net_with_metadata (line 28) | def save_net_with_metadata( function load_net_with_metadata (line 103) | def load_net_with_metadata( FILE: monai/data/ultrasound_confidence_map.py class UltrasoundConfidenceMap (line 29) | class UltrasoundConfidenceMap: method __init__ (line 52) | def __init__( method sub2ind (line 79) | def sub2ind(self, size: tuple[int, ...], rows: NDArray, cols: NDArray)... method get_seed_and_labels (line 97) | def get_seed_and_labels( method normalize (line 171) | def normalize(self, inp: NDArray) -> NDArray: method attenuation_weighting (line 176) | def attenuation_weighting(self, img: NDArray, alpha: float) -> NDArray: method confidence_laplacian (line 195) | def confidence_laplacian(self, padded_index: NDArray, padded_image: ND... method _solve_linear_system (line 282) | def _solve_linear_system(self, lap, rhs): method confidence_estimation (line 294) | def confidence_estimation(self, img, seeds, labels, beta, gamma): method __call__ (line 352) | def __call__(self, data: NDArray, sink_mask: NDArray | None = None) ->... FILE: monai/data/utils.py function get_random_patch (line 105) | def get_random_patch( function iter_patch_slices (line 130) | def iter_patch_slices( function dense_patch_slices (line 164) | def dense_patch_slices( function iter_patch_position (line 207) | def iter_patch_position( function iter_patch (line 255) | def iter_patch( function get_valid_patch_size (line 341) | def get_valid_patch_size(image_size: Sequence[int], patch_size: Sequence... function dev_collate (line 355) | def dev_collate(batch, level: int = 1, logger_name: str = "dev_collate"): function collate_meta_tensor_fn (line 419) | def collate_meta_tensor_fn(batch, *, collate_fn_map=None): function collate_meta_tensor (line 438) | def collate_meta_tensor(batch): function list_data_collate (line 455) | def list_data_collate(batch: Sequence): function _non_zipping_check (line 512) | def _non_zipping_check(batch_data: Mapping | Iterable, detach: bool, pad... function decollate_batch (line 538) | def decollate_batch(batch, detach: bool = True, pad=True, fill_value=None): function pad_list_data_collate (line 644) | def pad_list_data_collate(batch: Sequence, method: str = Method.SYMMETRI... function no_collation (line 670) | def no_collation(x): function worker_init_fn (line 677) | def worker_init_fn(worker_id: int) -> None: function set_rnd (line 687) | def set_rnd(obj, seed: int) -> int: function affine_to_spacing (line 712) | def affine_to_spacing(affine: NdarrayTensor, r: int = 3, dtype=float, su... function correct_nifti_header_if_necessary (line 738) | def correct_nifti_header_if_necessary(img_nii): function rectify_header_sform_qform (line 761) | def rectify_header_sform_qform(img_nii): function zoom_affine (line 798) | def zoom_affine(affine: np.ndarray, scale: np.ndarray | Sequence[float],... function compute_shape_offset (line 850) | def compute_shape_offset( function to_affine_nd (line 913) | def to_affine_nd(r: np.ndarray | int, affine: NdarrayTensor, dtype=np.fl... function reorient_spatial_axes (line 960) | def reorient_spatial_axes( function create_file_basename (line 984) | def create_file_basename( function compute_importance_map (line 1059) | def compute_importance_map( function is_supported_format (line 1112) | def is_supported_format(filename: Sequence[PathLike] | PathLike, suffixe... function partition_dataset (line 1132) | def partition_dataset( function partition_dataset_classes (line 1242) | def partition_dataset_classes( function resample_datalist (line 1310) | def resample_datalist(data: Sequence, factor: float, random_pick: bool =... function select_cross_validation_folds (line 1335) | def select_cross_validation_folds(partitions: Sequence[Iterable], folds:... function json_hashing (line 1360) | def json_hashing(item) -> bytes: function pickle_hashing (line 1380) | def pickle_hashing(item, protocol=pickle.HIGHEST_PROTOCOL) -> bytes: function sorted_dict (line 1401) | def sorted_dict(item, key=None, reverse=False): function convert_tables_to_dicts (line 1408) | def convert_tables_to_dicts( function orientation_ras_lps (line 1485) | def orientation_ras_lps(affine: NdarrayTensor) -> NdarrayTensor: function remove_keys (line 1501) | def remove_keys(data: dict, keys: list[str]) -> None: function remove_extra_metadata (line 1516) | def remove_extra_metadata(meta: dict) -> None: function get_extra_metadata_keys (line 1530) | def get_extra_metadata_keys() -> list[str]: function is_no_channel (line 1564) | def is_no_channel(val) -> bool: FILE: monai/data/video_dataset.py function import_cv (line 36) | def import_cv(): class SuppressStderr (line 43) | class SuppressStderr: method __enter__ (line 46) | def __enter__(self): method __exit__ (line 55) | def __exit__(self, *_): class VideoDataset (line 62) | class VideoDataset: method __init__ (line 66) | def __init__( method open_video (line 113) | def open_video(video_source: str | int): method _get_cap (line 132) | def _get_cap(self): method get_fps (line 136) | def get_fps(self) -> int: method get_frame (line 140) | def get_frame(self) -> Any: class VideoFileDataset (line 154) | class VideoFileDataset(Dataset, VideoDataset): method __init__ (line 161) | def __init__(self, *args, **kwargs) -> None: method get_available_codecs (line 168) | def get_available_codecs() -> dict[str, str]: method get_num_frames (line 187) | def get_num_frames(self) -> int: method __len__ (line 199) | def __len__(self): method __getitem__ (line 202) | def __getitem__(self, index: int) -> Any: class CameraDataset (line 212) | class CameraDataset(IterableDataset, VideoDataset): method get_num_devices (line 230) | def get_num_devices() -> int: method __iter__ (line 243) | def __iter__(self): FILE: monai/data/wsi_datasets.py class PatchWSIDataset (line 32) | class PatchWSIDataset(Dataset): method __init__ (line 69) | def __init__( method _get_wsi_object (line 114) | def _get_wsi_object(self, sample: dict): method _get_label (line 120) | def _get_label(self, sample: dict): method _get_location (line 123) | def _get_location(self, sample: dict): method _get_level (line 130) | def _get_level(self, sample: dict): method _get_size (line 135) | def _get_size(self, sample: dict): method _get_data (line 140) | def _get_data(self, sample: dict): method _transform (line 150) | def _transform(self, index: int): class SlidingPatchWSIDataset (line 172) | class SlidingPatchWSIDataset(Randomizable, PatchWSIDataset): method __init__ (line 213) | def __init__( method _get_offset (line 278) | def _get_offset(self, sample): method _evaluate_patch_locations (line 287) | def _evaluate_patch_locations(self, sample): class MaskedPatchWSIDataset (line 321) | class MaskedPatchWSIDataset(PatchWSIDataset): method __init__ (line 355) | def __init__( method _evaluate_patch_locations (line 388) | def _evaluate_patch_locations(self, sample): FILE: monai/data/wsi_reader.py class BaseWSIReader (line 43) | class BaseWSIReader(ImageReader): method __init__ (line 92) | def __init__( method set_dtype (line 122) | def set_dtype(self, dtype): method set_device (line 129) | def set_device(self, device): method get_size (line 136) | def get_size(self, wsi, level: int) -> tuple[int, int]: method _find_closest_level (line 147) | def _find_closest_level( method get_valid_level (line 173) | def get_valid_level( method get_level_count (line 220) | def get_level_count(self, wsi) -> int: method get_downsample_ratio (line 231) | def get_downsample_ratio(self, wsi, level: int) -> float: method get_file_path (line 243) | def get_file_path(self, wsi) -> str: method get_mpp (line 248) | def get_mpp(self, wsi, level: int) -> tuple[float, float]: method get_power (line 260) | def get_power(self, wsi, level: int) -> float: method _get_patch (line 272) | def _get_patch( method _get_metadata (line 290) | def _get_metadata( method get_data (line 322) | def get_data( method verify_suffix (line 436) | def verify_suffix(self, filename: Sequence[PathLike] | PathLike) -> bool: class WSIReader (line 449) | class WSIReader(BaseWSIReader): method __init__ (line 479) | def __init__( method get_level_count (line 561) | def get_level_count(self, wsi) -> int: method get_size (line 571) | def get_size(self, wsi, level: int) -> tuple[int, int]: method get_downsample_ratio (line 582) | def get_downsample_ratio(self, wsi, level: int) -> float: method get_file_path (line 593) | def get_file_path(self, wsi) -> str: method get_mpp (line 597) | def get_mpp(self, wsi, level: int) -> tuple[float, float]: method get_power (line 608) | def get_power(self, wsi, level: int) -> float: method _get_patch (line 619) | def _get_patch( method read (line 637) | def read(self, data: Sequence[PathLike] | PathLike | np.ndarray, **kwa... class CuCIMWSIReader (line 653) | class CuCIMWSIReader(BaseWSIReader): method __init__ (line 684) | def __init__(self, num_workers: int = 0, **kwargs): method get_level_count (line 689) | def get_level_count(wsi) -> int: method get_size (line 699) | def get_size(self, wsi, level: int) -> tuple[int, int]: method get_downsample_ratio (line 710) | def get_downsample_ratio(self, wsi, level: int) -> float: method get_file_path (line 722) | def get_file_path(wsi) -> str: method get_mpp (line 726) | def get_mpp(self, wsi, level: int) -> tuple[float, float]: method get_power (line 749) | def get_power(self, wsi, level: int) -> float: method read (line 769) | def read(self, data: Sequence[PathLike] | PathLike | np.ndarray, **kwa... method _get_patch (line 794) | def _get_patch( class OpenSlideWSIReader (line 835) | class OpenSlideWSIReader(BaseWSIReader): method __init__ (line 864) | def __init__(self, **kwargs): method get_level_count (line 868) | def get_level_count(wsi) -> int: method get_size (line 878) | def get_size(self, wsi, level: int) -> tuple[int, int]: method get_downsample_ratio (line 889) | def get_downsample_ratio(self, wsi, level: int) -> float: method get_file_path (line 901) | def get_file_path(wsi) -> str: method get_mpp (line 905) | def get_mpp(self, wsi, level: int) -> tuple[float, float]: method get_power (line 945) | def get_power(self, wsi, level: int) -> float: method read (line 961) | def read(self, data: Sequence[PathLike] | PathLike | np.ndarray, **kwa... method _get_patch (line 984) | def _get_patch( class TiffFileWSIReader (line 1017) | class TiffFileWSIReader(BaseWSIReader): method __init__ (line 1044) | def __init__(self, **kwargs): method get_level_count (line 1048) | def get_level_count(wsi) -> int: method get_size (line 1058) | def get_size(self, wsi, level: int) -> tuple[int, int]: method get_downsample_ratio (line 1069) | def get_downsample_ratio(self, wsi, level: int) -> float: method get_file_path (line 1081) | def get_file_path(wsi) -> str: method get_mpp (line 1085) | def get_mpp(self, wsi, level: int) -> tuple[float, float]: method get_power (line 1115) | def get_power(self, wsi, level: int) -> float: method read (line 1129) | def read(self, data: Sequence[PathLike] | PathLike | np.ndarray, **kwa... method _get_patch (line 1152) | def _get_patch( FILE: monai/engines/evaluator.py class Evaluator (line 44) | class Evaluator(Workflow): method __init__ (line 90) | def __init__( method run (line 139) | def run(self, global_epoch: int = 1) -> None: # type: ignore[override] method get_stats (line 153) | def get_stats(self, *vars): class SupervisedEvaluator (line 174) | class SupervisedEvaluator(Evaluator): method __init__ (line 226) | def __init__( method _iteration (line 278) | def _iteration(self, engine: SupervisedEvaluator, batchdata: dict[str,... class EnsembleEvaluator (line 350) | class EnsembleEvaluator(Evaluator): method __init__ (line 402) | def __init__( method _iteration (line 455) | def _iteration(self, engine: EnsembleEvaluator, batchdata: dict[str, t... FILE: monai/engines/trainer.py class Trainer (line 42) | class Trainer(Workflow): method run (line 48) | def run(self) -> None: # type: ignore[override] method get_stats (line 57) | def get_stats(self, *vars): class SupervisedTrainer (line 80) | class SupervisedTrainer(Trainer): method __init__ (line 136) | def __init__( method _iteration (line 194) | def _iteration(self, engine: SupervisedTrainer, batchdata: dict[str, t... class GanTrainer (line 281) | class GanTrainer(Trainer): method __init__ (line 343) | def __init__( method _iteration (line 409) | def _iteration( class AdversarialTrainer (line 470) | class AdversarialTrainer(Trainer): method __init__ (line 519) | def __init__( method _complete_state_dict_user_keys (line 591) | def _complete_state_dict_user_keys(self) -> None: method _iteration (line 615) | def _iteration( FILE: monai/engines/utils.py class IterationEvents (line 47) | class IterationEvents(EventEnum): function get_devices_spec (line 68) | def get_devices_spec(devices: Sequence[torch.device | str] | None = None... function default_prepare_batch (line 100) | def default_prepare_batch( class PrepareBatch (line 152) | class PrepareBatch(ABC): method __call__ (line 162) | def __call__( class PrepareBatchDefault (line 172) | class PrepareBatchDefault(PrepareBatch): method __call__ (line 177) | def __call__( class PrepareBatchExtraInput (line 193) | class PrepareBatchExtraInput(PrepareBatch): method __init__ (line 206) | def __init__(self, extra_keys: str | Sequence[str] | dict[str, str]) -... method __call__ (line 209) | def __call__( class DiffusionPrepareBatch (line 243) | class DiffusionPrepareBatch(PrepareBatch): method __init__ (line 256) | def __init__(self, num_train_timesteps: int, condition_name: str | Non... method get_noise (line 260) | def get_noise(self, images: torch.Tensor) -> torch.Tensor: method get_timesteps (line 264) | def get_timesteps(self, images: torch.Tensor) -> torch.Tensor: method get_target (line 268) | def get_target(self, images: torch.Tensor, noise: torch.Tensor, timest... method __call__ (line 272) | def __call__( class VPredictionPrepareBatch (line 293) | class VPredictionPrepareBatch(DiffusionPrepareBatch): method __init__ (line 307) | def __init__(self, scheduler: nn.Module, num_train_timesteps: int, con... method get_target (line 311) | def get_target(self, images, noise, timesteps): function default_make_latent (line 315) | def default_make_latent( function engine_apply_transform (line 325) | def engine_apply_transform(batch: Any, output: Any, transform: Callable[... function default_metric_cmp_fn (line 353) | def default_metric_cmp_fn(current_metric: float, prev_best: float) -> bool: FILE: monai/engines/workflow.py class Workflow (line 47) | class Workflow(Engine): method __init__ (line 103) | def __init__( method _register_decollate (line 196) | def _register_decollate(self): method _register_postprocessing (line 211) | def _register_postprocessing(self, posttrans: Callable) -> None: method _register_metrics (line 227) | def _register_metrics(self, k_metric: dict, add_metrics: dict | None =... method _register_handlers (line 262) | def _register_handlers(self, handlers: Sequence) -> None: method run (line 271) | def run(self) -> None: # type: ignore[override] method _iteration (line 284) | def _iteration(self, engine: Any, batchdata: dict[str, torch.Tensor]) ... method get_stats (line 299) | def get_stats(self, *vars): FILE: monai/fl/client/client_algo.py class BaseClient (line 17) | class BaseClient: method initialize (line 30) | def initialize(self, extra: dict | None = None) -> None: method finalize (line 38) | def finalize(self, extra: dict | None = None) -> None: method abort (line 46) | def abort(self, extra: dict | None = None) -> None: class ClientAlgoStats (line 55) | class ClientAlgoStats(BaseClient): method get_data_stats (line 57) | def get_data_stats(self, extra: dict | None = None) -> ExchangeObject: class ClientAlgo (line 87) | class ClientAlgo(ClientAlgoStats): method train (line 102) | def train(self, data: ExchangeObject, extra: dict | None = None) -> None: method get_weights (line 115) | def get_weights(self, extra: dict | None = None) -> ExchangeObject: method evaluate (line 138) | def evaluate(self, data: ExchangeObject, extra: dict | None = None) ->... FILE: monai/fl/client/monai_algo.py function convert_global_weights (line 37) | def convert_global_weights(global_weights: Mapping, local_var_dict: Muta... function compute_weight_diff (line 56) | def compute_weight_diff(global_weights, local_var_dict): function disable_ckpt_loaders (line 77) | def disable_ckpt_loaders(parser: ConfigParser) -> None: class MonaiAlgoStats (line 85) | class MonaiAlgoStats(ClientAlgoStats): method __init__ (line 100) | def __init__( method initialize (line 131) | def initialize(self, extra=None): method get_data_stats (line 171) | def get_data_stats(self, extra: dict | None = None) -> ExchangeObject: method _get_data_key_stats (line 248) | def _get_data_key_stats(self, data, data_key, hist_bins, hist_range, o... method _compute_total_stats (line 273) | def _compute_total_stats(case_stats_lists, hist_bins, hist_range): method _add_config_files (line 292) | def _add_config_files(self, config_files): class MonaiAlgo (line 311) | class MonaiAlgo(ClientAlgo, MonaiAlgoStats): method __init__ (line 346) | def __init__( method initialize (line 411) | def initialize(self, extra=None): method train (line 507) | def train(self, data: ExchangeObject, extra: dict | None = None) -> None: method get_weights (line 547) | def get_weights(self, extra=None): method evaluate (line 626) | def evaluate(self, data: ExchangeObject, extra: dict | None = None) ->... method abort (line 674) | def abort(self, extra=None): method finalize (line 688) | def finalize(self, extra: dict | None = None) -> None: method _check_converted (line 706) | def _check_converted(self, global_weights, local_var_dict, n_converted): method _set_cuda_device (line 716) | def _set_cuda_device(self): FILE: monai/fl/utils/constants.py class WeightType (line 17) | class WeightType(StrEnum): class ModelType (line 22) | class ModelType(StrEnum): class ExtraItems (line 27) | class ExtraItems(StrEnum): class FlPhase (line 36) | class FlPhase(StrEnum): class FlStatistics (line 44) | class FlStatistics(StrEnum): class FiltersType (line 56) | class FiltersType(StrEnum): FILE: monai/fl/utils/exchange_object.py class ExchangeObject (line 17) | class ExchangeObject(dict): method __init__ (line 29) | def __init__( method metrics (line 46) | def metrics(self): method metrics (line 50) | def metrics(self, metrics): method statistics (line 57) | def statistics(self): method statistics (line 61) | def statistics(self, statistics): method weight_type (line 68) | def weight_type(self): method weight_type (line 72) | def weight_type(self, weight_type): method is_valid_weights (line 78) | def is_valid_weights(self): method _add_to_summary (line 85) | def _add_to_summary(self, key, value): method summary (line 94) | def summary(self): method __repr__ (line 103) | def __repr__(self): method __str__ (line 106) | def __str__(self): FILE: monai/fl/utils/filters.py class Filter (line 19) | class Filter(abc.ABC): method __call__ (line 25) | def __call__(self, data: ExchangeObject, extra: dict | None = None) ->... class SummaryFilter (line 39) | class SummaryFilter(Filter): method __call__ (line 44) | def __call__(self, data: ExchangeObject, extra: dict | None = None) ->... FILE: monai/handlers/average_precision.py class AveragePrecision (line 21) | class AveragePrecision(IgniteMetricHandler): method __init__ (line 51) | def __init__(self, average: Average | str = Average.MACRO, output_tran... FILE: monai/handlers/calibration.py class CalibrationError (line 23) | class CalibrationError(IgniteMetricHandler): method __init__ (line 93) | def __init__( FILE: monai/handlers/checkpoint_loader.py class CheckpointLoader (line 31) | class CheckpointLoader: method __init__ (line 87) | def __init__( method attach (line 111) | def attach(self, engine: Engine) -> None: method __call__ (line 120) | def __call__(self, engine: Engine) -> None: FILE: monai/handlers/checkpoint_saver.py class CheckpointSaver (line 33) | class CheckpointSaver: method __init__ (line 89) | def __init__( method load_state_dict (line 207) | def load_state_dict(self, state_dict: dict) -> None: method attach (line 233) | def attach(self, engine: Engine) -> None: method _delete_previous_final_ckpt (line 251) | def _delete_previous_final_ckpt(self): method completed (line 259) | def completed(self, engine: Engine) -> None: method exception_raised (line 281) | def exception_raised(self, engine: Engine, e: Exception) -> None: method metrics_completed (line 306) | def metrics_completed(self, engine: Engine) -> None: method interval_completed (line 316) | def interval_completed(self, engine: Engine) -> None: FILE: monai/handlers/classification_saver.py class ClassificationSaver (line 34) | class ClassificationSaver: method __init__ (line 41) | def __init__( method attach (line 94) | def attach(self, engine: Engine) -> None: method _started (line 108) | def _started(self, _engine: Engine) -> None: method __call__ (line 119) | def __call__(self, engine: Engine) -> None: method _finalize (line 137) | def _finalize(self, _engine: Engine) -> None: FILE: monai/handlers/clearml_handlers.py class ClearMLHandler (line 22) | class ClearMLHandler: method __init__ (line 33) | def __init__( class ClearMLStatsHandler (line 79) | class ClearMLStatsHandler(ClearMLHandler, TensorBoardStatsHandler): method __init__ (line 90) | def __init__( class ClearMLImageHandler (line 130) | class ClearMLImageHandler(ClearMLHandler, TensorBoardImageHandler): method __init__ (line 141) | def __init__( FILE: monai/handlers/confusion_matrix.py class ConfusionMatrix (line 21) | class ConfusionMatrix(IgniteMetricHandler): method __init__ (line 26) | def __init__( FILE: monai/handlers/decollate_batch.py class DecollateBatch (line 28) | class DecollateBatch: method __init__ (line 51) | def __init__( method attach (line 78) | def attach(self, engine: Engine) -> None: method __call__ (line 88) | def __call__(self, engine: Engine) -> None: FILE: monai/handlers/earlystop_handler.py class EarlyStopHandler (line 30) | class EarlyStopHandler: method __init__ (line 79) | def __init__( method attach (line 98) | def attach(self, engine: Engine) -> None: method set_trainer (line 108) | def set_trainer(self, trainer: Engine) -> None: method __call__ (line 120) | def __call__(self, engine: Engine) -> None: FILE: monai/handlers/garbage_collector.py class GarbageCollector (line 30) | class GarbageCollector: method __init__ (line 49) | def __init__(self, trigger_event: str | Events | CallableEventWithFilt... method attach (line 65) | def attach(self, engine: Engine) -> None: method __call__ (line 69) | def __call__(self, engine: Engine) -> None: FILE: monai/handlers/hausdorff_distance.py class HausdorffDistance (line 21) | class HausdorffDistance(IgniteMetricHandler): method __init__ (line 26) | def __init__( FILE: monai/handlers/ignite_metric.py class IgniteMetricHandler (line 43) | class IgniteMetricHandler(Metric): method __init__ (line 66) | def __init__( method reset (line 93) | def reset(self) -> None: method update (line 97) | def update(self, output: Sequence[torch.Tensor]) -> None: method compute (line 113) | def compute(self) -> Any: method attach (line 139) | def attach(self, engine: Engine, name: str) -> None: # type: ignore[o... FILE: monai/handlers/logfile_handler.py class LogfileHandler (line 29) | class LogfileHandler: method __init__ (line 49) | def __init__( method attach (line 65) | def attach(self, engine: Engine) -> None: method _start (line 70) | def _start(self, engine: Engine) -> None: method _completed (line 83) | def _completed(self, engine: Engine) -> None: FILE: monai/handlers/lr_schedule_handler.py class LrScheduleHandler (line 31) | class LrScheduleHandler: method __init__ (line 36) | def __init__( method attach (line 69) | def attach(self, engine: Engine) -> None: method __call__ (line 81) | def __call__(self, engine: Engine) -> None: FILE: monai/handlers/mean_dice.py class MeanDice (line 21) | class MeanDice(IgniteMetricHandler): method __init__ (line 26) | def __init__( FILE: monai/handlers/mean_iou.py class MeanIoUHandler (line 21) | class MeanIoUHandler(IgniteMetricHandler): method __init__ (line 26) | def __init__( FILE: monai/handlers/metric_logger.py function _get_loss_from_output (line 32) | def _get_loss_from_output(output: Sequence[Mapping[str, Any]], loss_key:... class MetricLoggerKeys (line 36) | class MetricLoggerKeys(Enum): class MetricLogger (line 41) | class MetricLogger: method __init__ (line 71) | def __init__( method attach (line 87) | def attach(self, engine: Engine) -> None: method attach_evaluator (line 94) | def attach_evaluator(self, evaluator: Engine) -> None: method __call__ (line 103) | def __call__(self, engine: Engine) -> None: method log_metrics (line 115) | def log_metrics(self, engine: Engine) -> None: method state_dict (line 127) | def state_dict(self): method load_state_dict (line 130) | def load_state_dict(self, state_dict): FILE: monai/handlers/metrics_reloaded_handler.py class MetricsReloadedBinaryHandler (line 21) | class MetricsReloadedBinaryHandler(IgniteMetricHandler): method __init__ (line 26) | def __init__( class MetricsReloadedCategoricalHandler (line 68) | class MetricsReloadedCategoricalHandler(IgniteMetricHandler): method __init__ (line 73) | def __init__( FILE: monai/handlers/metrics_saver.py class MetricsSaver (line 31) | class MetricsSaver: method __init__ (line 82) | def __init__( method attach (line 103) | def attach(self, engine: Engine) -> None: method _started (line 112) | def _started(self, _engine: Engine) -> None: method _get_filenames (line 122) | def _get_filenames(self, engine: Engine) -> None: method __call__ (line 131) | def __call__(self, engine: Engine) -> None: FILE: monai/handlers/mlflow_handler.py class MLFlowHandler (line 50) | class MLFlowHandler: method __init__ (line 124) | def __init__( method _delete_exist_param_in_dict (line 167) | def _delete_exist_param_in_dict(self, param_dict: dict) -> None: method attach (line 184) | def attach(self, engine: Engine) -> None: method start (line 209) | def start(self, engine: Engine) -> None: method _set_experiment (line 241) | def _set_experiment(self): method _get_pandas_dataset_info (line 265) | def _get_pandas_dataset_info(pandas_dataset): method _log_dataset (line 272) | def _log_dataset(self, sample_dict: dict[str, Any], context: str = "tr... method _log_params (line 294) | def _log_params(self, params: dict[str, Any]) -> None: method _log_metrics (line 300) | def _log_metrics(self, metrics: dict[str, Any], step: int | None = Non... method _parse_artifacts (line 311) | def _parse_artifacts(self): method complete (line 330) | def complete(self) -> None: method close (line 339) | def close(self) -> None: method epoch_completed (line 348) | def epoch_completed(self, engine: Engine) -> None: method iteration_completed (line 362) | def iteration_completed(self, engine: Engine) -> None: method _default_epoch_log (line 376) | def _default_epoch_log(self, engine: Engine) -> None: method _default_iteration_log (line 397) | def _default_iteration_log(self, engine: Engine) -> None: method _default_dataset_log (line 427) | def _default_dataset_log(self, dataset_dict: Mapping[str, Dataset] | N... FILE: monai/handlers/nvtx_handlers.py class RangeHandler (line 35) | class RangeHandler: method __init__ (line 56) | def __init__(self, events: str | tuple[str | Events, str | Events], ms... method resolve_events (line 68) | def resolve_events(self, events: str | tuple) -> tuple[Events, Events]: method create_paired_events (line 79) | def create_paired_events(self, event: str) -> tuple[Events, Events]: method get_event (line 87) | def get_event(self, event: str | Events) -> Events: method attach (line 90) | def attach(self, engine: Engine) -> None: method range_push (line 99) | def range_push(self): method range_pop (line 102) | def range_pop(self): class RangePushHandler (line 106) | class RangePushHandler: method __init__ (line 115) | def __init__(self, event: str | Events, msg: str | None = None) -> None: method attach (line 122) | def attach(self, engine: Engine) -> None: method range_push (line 130) | def range_push(self): class RangePopHandler (line 134) | class RangePopHandler: method __init__ (line 143) | def __init__(self, event: str | Events) -> None: method attach (line 146) | def attach(self, engine: Engine) -> None: method range_pop (line 154) | def range_pop(self): class MarkHandler (line 158) | class MarkHandler: method __init__ (line 166) | def __init__(self, event: str | Events, msg: str | None = None) -> None: method attach (line 172) | def attach(self, engine: Engine) -> None: method mark (line 180) | def mark(self): FILE: monai/handlers/panoptic_quality.py class PanopticQuality (line 21) | class PanopticQuality(IgniteMetricHandler): method __init__ (line 26) | def __init__( FILE: monai/handlers/parameter_scheduler.py class ParamSchedulerHandler (line 28) | class ParamSchedulerHandler: method __init__ (line 43) | def __init__( method _get_value_calculator (line 69) | def _get_value_calculator(self, value_calculator): method __call__ (line 78) | def __call__(self, engine: Engine) -> None: method attach (line 87) | def attach(self, engine: Engine) -> None: method _linear (line 97) | def _linear( method _exponential (line 124) | def _exponential(initial_value: float, gamma: float, current_step: int... method _step (line 142) | def _step(initial_value: float, gamma: float, step_size: int, current_... method _multistep (line 161) | def _multistep(initial_value: float, gamma: float, milestones: list[in... FILE: monai/handlers/postprocessing.py class PostProcessing (line 27) | class PostProcessing: method __init__ (line 36) | def __init__(self, transform: Callable, event: str = "MODEL_COMPLETED"... method attach (line 51) | def attach(self, engine: Engine) -> None: method __call__ (line 61) | def __call__(self, engine: Engine) -> None: FILE: monai/handlers/probability_maps.py class ProbMapProducer (line 32) | class ProbMapProducer: method __init__ (line 40) | def __init__( method attach (line 76) | def attach(self, engine: Engine) -> None: method __call__ (line 98) | def __call__(self, engine: Engine) -> None: method save_prob_map (line 117) | def save_prob_map(self, name: str) -> None: method finalize (line 133) | def finalize(self, engine: Engine) -> None: FILE: monai/handlers/regression_metrics.py class MeanSquaredError (line 21) | class MeanSquaredError(IgniteMetricHandler): method __init__ (line 26) | def __init__( class MeanAbsoluteError (line 54) | class MeanAbsoluteError(IgniteMetricHandler): method __init__ (line 59) | def __init__( class RootMeanSquaredError (line 87) | class RootMeanSquaredError(IgniteMetricHandler): method __init__ (line 92) | def __init__( class PeakSignalToNoiseRatio (line 120) | class PeakSignalToNoiseRatio(IgniteMetricHandler): method __init__ (line 125) | def __init__( FILE: monai/handlers/roc_auc.py class ROCAUC (line 21) | class ROCAUC(IgniteMetricHandler): method __init__ (line 51) | def __init__(self, average: Average | str = Average.MACRO, output_tran... FILE: monai/handlers/smartcache_handler.py class SmartCacheHandler (line 26) | class SmartCacheHandler: method __init__ (line 33) | def __init__(self, smartcacher: SmartCacheDataset) -> None: method attach (line 46) | def attach(self, engine: Engine) -> None: method started (line 55) | def started(self, engine: Engine) -> None: method epoch_completed (line 64) | def epoch_completed(self, engine: Engine) -> None: method completed (line 73) | def completed(self, engine: Engine) -> None: FILE: monai/handlers/stats_handler.py class StatsHandler (line 36) | class StatsHandler: method __init__ (line 68) | def __init__( method attach (line 129) | def attach(self, engine: Engine) -> None: method epoch_completed (line 161) | def epoch_completed(self, engine: Engine) -> None: method iteration_completed (line 175) | def iteration_completed(self, engine: Engine) -> None: method exception_raised (line 189) | def exception_raised(self, _engine: Engine, e: Exception) -> None: method _default_epoch_print (line 203) | def _default_epoch_print(self, engine: Engine) -> None: method _default_iteration_print (line 239) | def _default_iteration_print(self, engine: Engine) -> None: FILE: monai/handlers/surface_distance.py class SurfaceDistance (line 21) | class SurfaceDistance(IgniteMetricHandler): method __init__ (line 26) | def __init__( FILE: monai/handlers/tensorboard_handlers.py class TensorBoardHandler (line 40) | class TensorBoardHandler: method __init__ (line 51) | def __init__(self, summary_writer: SummaryWriter | SummaryWriterX | No... method attach (line 59) | def attach(self, engine: Engine) -> None: method close (line 62) | def close(self): class TensorBoardStatsHandler (line 71) | class TensorBoardStatsHandler(TensorBoardHandler): method __init__ (line 89) | def __init__( method attach (line 147) | def attach(self, engine: Engine) -> None: method epoch_completed (line 170) | def epoch_completed(self, engine: Engine) -> None: method iteration_completed (line 184) | def iteration_completed(self, engine: Engine) -> None: method _write_scalar (line 198) | def _write_scalar( method _default_epoch_writer (line 215) | def _default_epoch_writer(self, engine: Engine, writer: SummaryWriter ... method _default_iteration_writer (line 237) | def _default_iteration_writer(self, engine: Engine, writer: SummaryWri... class TensorBoardImageHandler (line 288) | class TensorBoardImageHandler(TensorBoardHandler): method __init__ (line 314) | def __init__( method attach (line 367) | def attach(self, engine: Engine) -> None: method __call__ (line 377) | def __call__(self, engine: Engine) -> None: FILE: monai/handlers/trt_handler.py class TrtHandler (line 26) | class TrtHandler: method __init__ (line 35) | def __init__(self, model, base_path, args=None, submodule=None): method attach (line 47) | def attach(self, engine: Engine) -> None: method __call__ (line 55) | def __call__(self, engine: Engine) -> None: FILE: monai/handlers/utils.py function stopping_fn_from_metric (line 34) | def stopping_fn_from_metric(metric_name: str) -> Callable[[Engine], Any]: function stopping_fn_from_loss (line 45) | def stopping_fn_from_loss() -> Callable[[Engine], Any]: function write_metrics_reports (line 56) | def write_metrics_reports( function from_engine (line 170) | def from_engine(keys: KeysCollection, first: bool = False) -> Callable: function ignore_data (line 213) | def ignore_data(x: Any) -> None: FILE: monai/handlers/validation_handler.py class ValidationHandler (line 26) | class ValidationHandler: method __init__ (line 33) | def __init__( method set_validator (line 58) | def set_validator(self, validator: Evaluator) -> None: method attach (line 66) | def attach(self, engine: Engine) -> None: method __call__ (line 78) | def __call__(self, engine: Engine) -> None: FILE: monai/inferers/inferer.py class Inferer (line 62) | class Inferer(ABC): method __call__ (line 83) | def __call__(self, inputs: torch.Tensor, network: Callable, *args: Any... class PatchInferer (line 100) | class PatchInferer(Inferer): method __init__ (line 130) | def __init__( method _batch_sampler (line 193) | def _batch_sampler( method _ensure_tuple_outputs (line 233) | def _ensure_tuple_outputs(self, outputs: Any) -> tuple: method _run_inference (line 240) | def _run_inference(self, network: Callable, patch: torch.Tensor, *args... method _initialize_mergers (line 252) | def _initialize_mergers(self, inputs, outputs, patches, batch_size): method _aggregate (line 280) | def _aggregate(self, outputs, locations, batch_size, mergers, ratios): method _get_merged_shapes (line 287) | def _get_merged_shapes(self, inputs, out_patch, ratio): method __call__ (line 309) | def __call__( class SimpleInferer (line 420) | class SimpleInferer(Inferer): method __init__ (line 427) | def __init__(self) -> None: method __call__ (line 430) | def __call__( class SlidingWindowInferer (line 446) | class SlidingWindowInferer(Inferer): method __init__ (line 502) | def __init__( method __call__ (line 554) | def __call__( class SlidingWindowInfererAdapt (line 608) | class SlidingWindowInfererAdapt(SlidingWindowInferer): method __call__ (line 618) | def __call__( class SaliencyInferer (line 697) | class SaliencyInferer(Inferer): method __init__ (line 710) | def __init__( method __call__ (line 722) | def __call__(self, inputs: torch.Tensor, network: nn.Module, *args: An... class SliceInferer (line 744) | class SliceInferer(SlidingWindowInferer): method __init__ (line 766) | def __init__(self, spatial_dim: int = 0, *args: Any, **kwargs: Any) ->... method __call__ (line 771) | def __call__( method network_wrapper (line 817) | def network_wrapper( class DiffusionInferer (line 850) | class DiffusionInferer(Inferer): method __init__ (line 859) | def __init__(self, scheduler: Scheduler) -> None: # type: ignore[over... method __call__ (line 864) | def __call__( # type: ignore[override] method sample (line 907) | def sample( method get_likelihood (line 1000) | def get_likelihood( method _approx_standard_normal_cdf (line 1128) | def _approx_standard_normal_cdf(self, x): method _get_decoder_log_likelihood (line 1138) | def _get_decoder_log_likelihood( class LatentDiffusionInferer (line 1180) | class LatentDiffusionInferer(DiffusionInferer): method __init__ (line 1194) | def __init__( method __call__ (line 1211) | def __call__( # type: ignore[override] method sample (line 1253) | def sample( # type: ignore[override] method get_likelihood (line 1340) | def get_likelihood( # type: ignore[override] class ControlNetDiffusionInferer (line 1405) | class ControlNetDiffusionInferer(DiffusionInferer): method __init__ (line 1414) | def __init__(self, scheduler: Scheduler) -> None: method __call__ (line 1418) | def __call__( # type: ignore[override] method sample (line 1473) | def sample( # type: ignore[override] method get_likelihood (line 1599) | def get_likelihood( # type: ignore[override] class ControlNetLatentDiffusionInferer (line 1750) | class ControlNetLatentDiffusionInferer(ControlNetDiffusionInferer): method __init__ (line 1765) | def __init__( method __call__ (line 1782) | def __call__( # type: ignore[override] method sample (line 1834) | def sample( # type: ignore[override] method get_likelihood (line 1931) | def get_likelihood( # type: ignore[override] class VQVAETransformerInferer (line 2006) | class VQVAETransformerInferer(nn.Module): method __init__ (line 2011) | def __init__(self) -> None: method __call__ (line 2014) | def __call__( method sample (line 2064) | def sample( method get_likelihood (line 2128) | def get_likelihood( FILE: monai/inferers/merger.py class Merger (line 41) | class Merger(ABC): method __init__ (line 57) | def __init__( method aggregate (line 72) | def aggregate(self, values: torch.Tensor, location: Sequence[int]) -> ... method finalize (line 88) | def finalize(self) -> Any: class AvgMerger (line 103) | class AvgMerger(Merger): method __init__ (line 115) | def __init__( method aggregate (line 131) | def aggregate(self, values: torch.Tensor, location: Sequence[int]) -> ... method finalize (line 151) | def finalize(self) -> torch.Tensor: method get_output (line 174) | def get_output(self) -> torch.Tensor: method get_values (line 183) | def get_values(self) -> torch.Tensor: method get_counts (line 196) | def get_counts(self) -> torch.Tensor: class ZarrAvgMerger (line 207) | class ZarrAvgMerger(Merger): method __init__ (line 263) | def __init__( method aggregate (line 430) | def aggregate(self, values: torch.Tensor, location: Sequence[int]) -> ... method finalize (line 447) | def finalize(self) -> zarr.Array: method get_output (line 471) | def get_output(self) -> zarr.Array: method get_values (line 480) | def get_values(self) -> zarr.Array: method get_counts (line 490) | def get_counts(self) -> zarr.Array: function iterate_over_chunks (line 500) | def iterate_over_chunks(chunks, cdata_shape, slice_tuple=()): FILE: monai/inferers/splitter.py class Splitter (line 31) | class Splitter(ABC): method __init__ (line 41) | def __init__(self, patch_size: Sequence[int] | int, device: torch.devi... method get_input_shape (line 46) | def get_input_shape(self, inputs: Any) -> tuple: method get_padded_shape (line 61) | def get_padded_shape(self, inputs: Any) -> tuple: method __call__ (line 78) | def __call__(self, inputs: Any) -> Iterable[tuple[torch.Tensor, Sequen... class SlidingWindowSplitter (line 94) | class SlidingWindowSplitter(Splitter): method __init__ (line 119) | def __init__( method _validate_filter_fn (line 150) | def _validate_filter_fn(filter_fn): method _calculate_pad_size (line 172) | def _calculate_pad_size(self, spatial_shape, spatial_ndim, patch_size,... method _get_valid_shape_parameters (line 194) | def _get_valid_shape_parameters( method _get_patch (line 214) | def _get_patch(self, inputs: Any, location: tuple[int, ...], patch_siz... method get_input_shape (line 218) | def get_input_shape(self, inputs: Any) -> tuple: method get_padded_shape (line 231) | def get_padded_shape(self, inputs: Any) -> tuple: method __call__ (line 255) | def __call__(self, inputs: Any) -> Iterable[tuple[torch.Tensor, Sequen... class WSISlidingWindowSplitter (line 295) | class WSISlidingWindowSplitter(SlidingWindowSplitter): method __init__ (line 328) | def __init__( method _set_reader (line 356) | def _set_reader(self, reader: str | BaseWSIReader | type[BaseWSIReader... method _get_patch (line 378) | def _get_patch(self, inputs: Any, location: tuple[int, ...], patch_siz... method get_input_shape (line 382) | def get_input_shape(self, inputs: Any) -> tuple: method __call__ (line 398) | def __call__(self, inputs: PathLike | Sequence[PathLike]) -> Iterable[... FILE: monai/inferers/utils.py function sliding_window_inference (line 42) | def sliding_window_inference( function _create_buffered_slices (line 360) | def _create_buffered_slices(slices, batch_size, sw_batch_size, buffer_di... function _compute_coords (line 387) | def _compute_coords(coords, z_scale, out, patch): function _get_scan_interval (line 399) | def _get_scan_interval( function _flatten_struct (line 423) | def _flatten_struct(seg_out): function _pack_struct (line 436) | def _pack_struct(seg_out, dict_keys=None): FILE: monai/losses/adversarial_loss.py class AdversarialCriterions (line 24) | class AdversarialCriterions(StrEnum): class PatchAdversarialLoss (line 30) | class PatchAdversarialLoss(_Loss): method __init__ (line 50) | def __init__( method get_target_tensor (line 83) | def get_target_tensor(self, input: torch.Tensor, target_is_real: bool)... method get_zero_tensor (line 98) | def get_zero_tensor(self, input: torch.Tensor) -> torch.Tensor: method forward (line 111) | def forward( method _forward_single (line 165) | def _forward_single(self, input: torch.Tensor, target: torch.Tensor) -... FILE: monai/losses/barlow_twins.py class BarlowTwinsLoss (line 18) | class BarlowTwinsLoss(_Loss): method __init__ (line 36) | def __init__(self, lambd: float = 5e-3) -> None: method forward (line 50) | def forward(self, input: torch.Tensor, target: torch.Tensor) -> torch.... FILE: monai/losses/cldice.py function soft_erode (line 19) | def soft_erode(img: torch.Tensor) -> torch.Tensor: # type: ignore function soft_dilate (line 40) | def soft_dilate(img: torch.Tensor) -> torch.Tensor: # type: ignore function soft_open (line 56) | def soft_open(img: torch.Tensor) -> torch.Tensor: function soft_skel (line 71) | def soft_skel(img: torch.Tensor, iter_: int) -> torch.Tensor: function soft_dice (line 95) | def soft_dice(y_true: torch.Tensor, y_pred: torch.Tensor, smooth: float ... class SoftclDiceLoss (line 115) | class SoftclDiceLoss(_Loss): method __init__ (line 126) | def __init__(self, iter_: int = 3, smooth: float = 1.0) -> None: method forward (line 136) | def forward(self, y_true: torch.Tensor, y_pred: torch.Tensor) -> torch... class SoftDiceclDiceLoss (line 149) | class SoftDiceclDiceLoss(_Loss): method __init__ (line 160) | def __init__(self, iter_: int = 3, alpha: float = 0.5, smooth: float =... method forward (line 172) | def forward(self, y_true: torch.Tensor, y_pred: torch.Tensor) -> torch... FILE: monai/losses/contrastive.py class ContrastiveLoss (line 21) | class ContrastiveLoss(_Loss): method __init__ (line 33) | def __init__(self, temperature: float = 0.5, batch_size: int = -1) -> ... method forward (line 49) | def forward(self, input: torch.Tensor, target: torch.Tensor) -> torch.... FILE: monai/losses/deform.py function spatial_gradient (line 20) | def spatial_gradient(x: torch.Tensor, dim: int) -> torch.Tensor: class BendingEnergyLoss (line 47) | class BendingEnergyLoss(_Loss): method __init__ (line 58) | def __init__(self, normalize: bool = False, reduction: LossReduction |... method forward (line 74) | def forward(self, pred: torch.Tensor) -> torch.Tensor: class DiffusionLoss (line 128) | class DiffusionLoss(_Loss): method __init__ (line 143) | def __init__(self, normalize: bool = False, reduction: LossReduction |... method forward (line 159) | def forward(self, pred: torch.Tensor) -> torch.Tensor: FILE: monai/losses/dice.py class DiceLoss (line 30) | class DiceLoss(_Loss): method __init__ (line 55) | def __init__( method forward (line 130) | def forward(self, input: torch.Tensor, target: torch.Tensor) -> torch.... class MaskedDiceLoss (line 231) | class MaskedDiceLoss(DiceLoss): method __init__ (line 241) | def __init__( method forward (line 289) | def forward(self, input: torch.Tensor, target: torch.Tensor, mask: tor... class GeneralizedDiceLoss (line 312) | class GeneralizedDiceLoss(_Loss): method __init__ (line 323) | def __init__( method w_func (line 387) | def w_func(self, grnd): method forward (line 394) | def forward(self, input: torch.Tensor, target: torch.Tensor) -> torch.... class GeneralizedWassersteinDiceLoss (line 474) | class GeneralizedWassersteinDiceLoss(_Loss): method __init__ (line 491) | def __init__( method forward (line 562) | def forward(self, input: torch.Tensor, target: torch.Tensor) -> torch.... method wasserstein_distance_map (line 611) | def wasserstein_distance_map(self, flat_proba: torch.Tensor, flat_targ... method _compute_generalized_true_positive (line 649) | def _compute_generalized_true_positive( method _compute_denominator (line 667) | def _compute_denominator( method _compute_alpha_generalized_true_positives (line 685) | def _compute_alpha_generalized_true_positives(self, flat_target: torch... class DiceCELoss (line 703) | class DiceCELoss(_Loss): method __init__ (line 713) | def __init__( method ce (line 803) | def ce(self, input: torch.Tensor, target: torch.Tensor) -> torch.Tensor: method bce (line 819) | def bce(self, input: torch.Tensor, target: torch.Tensor) -> torch.Tensor: method forward (line 829) | def forward(self, input: torch.Tensor, target: torch.Tensor) -> torch.... class DiceFocalLoss (line 863) | class DiceFocalLoss(_Loss): method __init__ (line 875) | def __init__( method forward (line 961) | def forward(self, input: torch.Tensor, target: torch.Tensor) -> torch.... class GeneralizedDiceFocalLoss (line 1000) | class GeneralizedDiceFocalLoss(_Loss): method __init__ (line 1039) | def __init__( method forward (line 1083) | def forward(self, input: torch.Tensor, target: torch.Tensor) -> torch.... FILE: monai/losses/ds_loss.py class DeepSupervisionLoss (line 19) | class DeepSupervisionLoss(_Loss): method __init__ (line 25) | def __init__(self, loss: _Loss, weight_mode: str = "exp", weights: lis... method get_weights (line 43) | def get_weights(self, levels: int = 1) -> list[float]: method get_loss (line 61) | def get_loss(self, input: torch.Tensor, target: torch.Tensor) -> torch... method forward (line 71) | def forward(self, input: None | torch.Tensor | list[torch.Tensor], tar... FILE: monai/losses/focal_loss.py class FocalLoss (line 25) | class FocalLoss(_Loss): method __init__ (line 67) | def __init__( method forward (line 128) | def forward(self, input: torch.Tensor, target: torch.Tensor) -> torch.... function softmax_focal_loss (line 217) | def softmax_focal_loss( function sigmoid_focal_loss (line 253) | def sigmoid_focal_loss( FILE: monai/losses/giou_loss.py class BoxGIoULoss (line 21) | class BoxGIoULoss(_Loss): method __init__ (line 36) | def __init__(self, reduction: LossReduction | str = LossReduction.MEAN... method forward (line 39) | def forward(self, input: torch.Tensor, target: torch.Tensor) -> torch.... FILE: monai/losses/hausdorff_loss.py class HausdorffDTLoss (line 30) | class HausdorffDTLoss(_Loss): method __init__ (line 44) | def __init__( method distance_field (line 98) | def distance_field(self, img: torch.Tensor) -> torch.Tensor: method forward (line 124) | def forward(self, input: torch.Tensor, target: torch.Tensor) -> torch.... class LogHausdorffDTLoss (line 214) | class LogHausdorffDTLoss(HausdorffDTLoss): method forward (line 228) | def forward(self, input: torch.Tensor, target: torch.Tensor) -> torch.... FILE: monai/losses/image_dissimilarity.py function make_rectangular_kernel (line 23) | def make_rectangular_kernel(kernel_size: int) -> torch.Tensor: function make_triangular_kernel (line 27) | def make_triangular_kernel(kernel_size: int) -> torch.Tensor: function make_gaussian_kernel (line 36) | def make_gaussian_kernel(kernel_size: int) -> torch.Tensor: class LocalNormalizedCrossCorrelationLoss (line 51) | class LocalNormalizedCrossCorrelationLoss(_Loss): method __init__ (line 94) | def __init__( method get_kernel_vol (line 121) | def get_kernel_vol(self): method forward (line 127) | def forward(self, pred: torch.Tensor, target: torch.Tensor) -> torch.T... class GlobalMutualInformationLoss (line 181) | class GlobalMutualInformationLoss(_Loss): method __init__ (line 189) | def __init__( method parzen_windowing (line 238) | def parzen_windowing( method parzen_windowing_b_spline (line 253) | def parzen_windowing_b_spline(self, img: torch.Tensor, order: int) -> ... method parzen_windowing_gaussian (line 304) | def parzen_windowing_gaussian(self, img: torch.Tensor) -> tuple[torch.... method forward (line 320) | def forward(self, pred: torch.Tensor, target: torch.Tensor) -> torch.T... FILE: monai/losses/multi_scale.py function make_gaussian_kernel (line 21) | def make_gaussian_kernel(sigma: int) -> torch.Tensor: function make_cauchy_kernel (line 27) | def make_cauchy_kernel(sigma: int) -> torch.Tensor: class MultiScaleLoss (line 40) | class MultiScaleLoss(_Loss): method __init__ (line 49) | def __init__( method forward (line 69) | def forward(self, y_true: torch.Tensor, y_pred: torch.Tensor) -> torch... FILE: monai/losses/nacl_loss.py class NACLLoss (line 24) | class NACLLoss(_Loss): method __init__ (line 40) | def __init__( method get_constr_target (line 85) | def get_constr_target(self, mask: torch.Tensor) -> torch.Tensor: method forward (line 107) | def forward(self, inputs: torch.Tensor, targets: torch.Tensor) -> torc... FILE: monai/losses/perceptual.py class PercetualNetworkType (line 26) | class PercetualNetworkType(StrEnum): class PerceptualLoss (line 36) | class PerceptualLoss(nn.Module): method __init__ (line 75) | def __init__( method _calculate_axis_loss (line 133) | def _calculate_axis_loss(self, input: torch.Tensor, target: torch.Tens... method forward (line 169) | def forward(self, input: torch.Tensor, target: torch.Tensor) -> torch.... class MedicalNetPerceptualSimilarity (line 196) | class MedicalNetPerceptualSimilarity(nn.Module): method __init__ (line 210) | def __init__( method forward (line 223) | def forward(self, input: torch.Tensor, target: torch.Tensor) -> torch.... function spatial_average_3d (line 273) | def spatial_average_3d(x: torch.Tensor, keepdim: bool = True) -> torch.T... function normalize_tensor (line 277) | def normalize_tensor(x: torch.Tensor, eps: float = 1e-10) -> torch.Tensor: function medicalnet_intensity_normalisation (line 282) | def medicalnet_intensity_normalisation(volume): class RadImageNetPerceptualSimilarity (line 289) | class RadImageNetPerceptualSimilarity(nn.Module): method __init__ (line 301) | def __init__(self, net: str = "radimagenet_resnet50", verbose: bool = ... method forward (line 309) | def forward(self, input: torch.Tensor, target: torch.Tensor) -> torch.... class TorchvisionModelPerceptualSimilarity (line 343) | class TorchvisionModelPerceptualSimilarity(nn.Module): method __init__ (line 359) | def __init__( method forward (line 391) | def forward(self, input: torch.Tensor, target: torch.Tensor) -> torch.... function spatial_average (line 422) | def spatial_average(x: torch.Tensor, keepdim: bool = True) -> torch.Tensor: function torchvision_zscore_norm (line 426) | def torchvision_zscore_norm(x: torch.Tensor) -> torch.Tensor: function subtract_mean (line 435) | def subtract_mean(x: torch.Tensor) -> torch.Tensor: FILE: monai/losses/spatial_mask.py class MaskedLoss (line 25) | class MaskedLoss(_Loss): method __init__ (line 34) | def __init__( method forward (line 50) | def forward(self, input: torch.Tensor, target: torch.Tensor, mask: tor... FILE: monai/losses/spectral_loss.py class JukeboxLoss (line 22) | class JukeboxLoss(_Loss): method __init__ (line 43) | def __init__( method forward (line 57) | def forward(self, input: torch.Tensor, target: torch.Tensor) -> torch.... method _get_fft_amplitude (line 74) | def _get_fft_amplitude(self, images: torch.Tensor) -> torch.Tensor: FILE: monai/losses/ssim_loss.py class SSIMLoss (line 23) | class SSIMLoss(_Loss): method __init__ (line 35) | def __init__( method data_range (line 89) | def data_range(self) -> float: method data_range (line 93) | def data_range(self, value: float) -> None: method forward (line 97) | def forward(self, input: torch.Tensor, target: torch.Tensor) -> torch.... FILE: monai/losses/sure_loss.py function complex_diff_abs_loss (line 21) | def complex_diff_abs_loss(x: torch.Tensor, y: torch.Tensor) -> torch.Ten... function sure_loss_function (line 41) | def sure_loss_function( class SURELoss (line 111) | class SURELoss(_Loss): method __init__ (line 134) | def __init__(self, perturb_noise: torch.Tensor | None = None, eps: flo... method forward (line 147) | def forward( FILE: monai/losses/tversky.py class TverskyLoss (line 25) | class TverskyLoss(_Loss): method __init__ (line 40) | def __init__( method forward (line 105) | def forward(self, input: torch.Tensor, target: torch.Tensor) -> torch.... FILE: monai/losses/unified_focal_loss.py class AsymmetricFocalTverskyLoss (line 23) | class AsymmetricFocalTverskyLoss(_Loss): method __init__ (line 35) | def __init__( method forward (line 56) | def forward(self, y_pred: torch.Tensor, y_true: torch.Tensor) -> torch... class AsymmetricFocalLoss (line 87) | class AsymmetricFocalLoss(_Loss): method __init__ (line 99) | def __init__( method forward (line 120) | def forward(self, y_pred: torch.Tensor, y_true: torch.Tensor) -> torch... class AsymmetricUnifiedFocalLoss (line 145) | class AsymmetricUnifiedFocalLoss(_Loss): method __init__ (line 157) | def __init__( method forward (line 194) | def forward(self, y_pred: torch.Tensor, y_true: torch.Tensor) -> torch... FILE: monai/losses/utils.py function compute_tp_fp_fn (line 18) | def compute_tp_fp_fn( FILE: monai/metrics/active_learning_metrics.py class VarianceMetric (line 25) | class VarianceMetric(Metric): method __init__ (line 41) | def __init__( method __call__ (line 54) | def __call__(self, y_pred: Any) -> Any: class LabelQualityScore (line 73) | class LabelQualityScore(Metric): method __init__ (line 88) | def __init__(self, include_background: bool = True, scalar_reduction: ... method __call__ (line 93) | def __call__(self, y_pred: Any, y: Any) -> torch.Tensor | None: function compute_variance (line 108) | def compute_variance( function label_quality_score (line 165) | def label_quality_score( FILE: monai/metrics/average_precision.py class AveragePrecisionMetric (line 29) | class AveragePrecisionMetric(CumulativeIterationMetric): method __init__ (line 64) | def __init__(self, average: Average | str = Average.MACRO) -> None: method _compute_tensor (line 68) | def _compute_tensor(self, y_pred: torch.Tensor, y: torch.Tensor) -> tu... method aggregate (line 71) | def aggregate(self, average: Average | str | None = None) -> np.ndarra... function _calculate (line 89) | def _calculate(y_pred: torch.Tensor, y: torch.Tensor) -> float: function compute_average_precision (line 119) | def compute_average_precision( FILE: monai/metrics/calibration.py function calibration_binning (line 26) | def calibration_binning( class CalibrationReduction (line 141) | class CalibrationReduction(StrEnum): class CalibrationErrorMetric (line 162) | class CalibrationErrorMetric(CumulativeIterationMetric): method __init__ (line 252) | def __init__( method _compute_tensor (line 269) | def _compute_tensor(self, y_pred: torch.Tensor, y: torch.Tensor, **kwa... method aggregate (line 314) | def aggregate( FILE: monai/metrics/confusion_matrix.py class ConfusionMatrixMetric (line 25) | class ConfusionMatrixMetric(CumulativeIterationMetric): method __init__ (line 65) | def __init__( method _compute_tensor (line 80) | def _compute_tensor(self, y_pred: torch.Tensor, y: torch.Tensor) -> to... method aggregate (line 101) | def aggregate( function get_confusion_matrix (line 134) | def get_confusion_matrix(y_pred: torch.Tensor, y: torch.Tensor, include_... function compute_confusion_matrix_metric (line 179) | def compute_confusion_matrix_metric(metric_name: str, confusion_matrix: ... function check_confusion_matrix_metric_name (line 274) | def check_confusion_matrix_metric_name(metric_name: str) -> str: FILE: monai/metrics/cumulative_average.py class CumulativeAverage (line 23) | class CumulativeAverage: method __init__ (line 46) | def __init__(self) -> None: method reset (line 49) | def reset(self) -> None: method get_current (line 58) | def get_current(self, to_numpy: bool = True) -> NdarrayOrTensor: method aggregate (line 81) | def aggregate(self, to_numpy: bool = True) -> NdarrayOrTensor: method append (line 107) | def append(self, val: Any, count: Any | None = 1) -> None: FILE: monai/metrics/f_beta_score.py class FBetaScore (line 24) | class FBetaScore(CumulativeIterationMetric): method __init__ (line 26) | def __init__( method _compute_tensor (line 39) | def _compute_tensor(self, y_pred: torch.Tensor, y: torch.Tensor) -> to... method aggregate (line 45) | def aggregate( function get_f_beta_score (line 63) | def get_f_beta_score(y_pred: torch.Tensor, y: torch.Tensor, include_back... function compute_f_beta_score (line 90) | def compute_f_beta_score(confusion_matrix: torch.Tensor, beta: float) ->... FILE: monai/metrics/fid.py class FIDMetric (line 23) | class FIDMetric(Metric): method __call__ (line 36) | def __call__(self, y_pred: torch.Tensor, y: torch.Tensor) -> torch.Ten... function get_fid_score (line 40) | def get_fid_score(y_pred: torch.Tensor, y: torch.Tensor) -> torch.Tensor: function _cov (line 61) | def _cov(input_data: torch.Tensor, rowvar: bool = True) -> torch.Tensor: function _sqrtm (line 83) | def _sqrtm(input_data: torch.Tensor) -> torch.Tensor: function compute_frechet_distance (line 89) | def compute_frechet_distance( FILE: monai/metrics/froc.py function compute_fp_tp_probs_nd (line 22) | def compute_fp_tp_probs_nd( function compute_fp_tp_probs (line 78) | def compute_fp_tp_probs( function compute_froc_curve_data (line 122) | def compute_froc_curve_data( function compute_froc_score (line 158) | def compute_froc_score( FILE: monai/metrics/generalized_dice.py class GeneralizedDiceScore (line 22) | class GeneralizedDiceScore(CumulativeIterationMetric): method __init__ (line 49) | def __init__( method _compute_tensor (line 66) | def _compute_tensor(self, y_pred: torch.Tensor, y: torch.Tensor) -> to... method aggregate (line 95) | def aggregate(self, reduction: MetricReduction | str | None = None) ->... function compute_generalized_dice (line 115) | def compute_generalized_dice( FILE: monai/metrics/hausdorff_distance.py class HausdorffDistanceMetric (line 28) | class HausdorffDistanceMetric(CumulativeIterationMetric): method __init__ (line 57) | def __init__( method _compute_tensor (line 74) | def _compute_tensor(self, y_pred: torch.Tensor, y: torch.Tensor, **kwa... method aggregate (line 111) | def aggregate( function compute_hausdorff_distance (line 132) | def compute_hausdorff_distance( function _compute_percentile_hausdorff_distance (line 196) | def _compute_percentile_hausdorff_distance( FILE: monai/metrics/loss_metric.py class LossMetric (line 26) | class LossMetric(CumulativeIterationMetric): method __init__ (line 72) | def __init__( method aggregate (line 80) | def aggregate( method _compute_tensor (line 97) | def _compute_tensor(self, y_pred: torch.Tensor, y: torch.Tensor | None... FILE: monai/metrics/meandice.py class DiceMetric (line 24) | class DiceMetric(CumulativeIterationMetric): method __init__ (line 101) | def __init__( method _compute_tensor (line 126) | def _compute_tensor(self, y_pred: torch.Tensor, y: torch.Tensor) -> to... method aggregate (line 143) | def aggregate( function compute_dice (line 172) | def compute_dice( class DiceHelper (line 210) | class DiceHelper: method __init__ (line 253) | def __init__( method compute_channel (line 281) | def compute_channel(self, y_pred: torch.Tensor, y: torch.Tensor) -> to... method __call__ (line 300) | def __call__(self, y_pred: torch.Tensor, y: torch.Tensor) -> torch.Ten... FILE: monai/metrics/meaniou.py class MeanIoU (line 22) | class MeanIoU(CumulativeIterationMetric): method __init__ (line 51) | def __init__( method _compute_tensor (line 64) | def _compute_tensor(self, y_pred: torch.Tensor, y: torch.Tensor) -> to... method aggregate (line 84) | def aggregate( function compute_iou (line 105) | def compute_iou( FILE: monai/metrics/metric.py class Metric (line 26) | class Metric(ABC): method __call__ (line 34) | def __call__(self, *args: Any, **kwargs: Any) -> Any: method __str__ (line 40) | def __str__(self): class IterationMetric (line 44) | class IterationMetric(Metric): method __call__ (line 54) | def __call__( method _compute_list (line 83) | def _compute_list( method _compute_tensor (line 116) | def _compute_tensor(self, y_pred: torch.Tensor, y: torch.Tensor | None... class Cumulative (line 125) | class Cumulative: method __init__ (line 183) | def __init__(self) -> None: method reset (line 194) | def reset(self): method extend (line 203) | def extend(self, *data: Any) -> None: method append (line 227) | def append(self, *data: Any) -> None: method aggregate (line 248) | def aggregate(self, *args: Any, **kwargs: Any) -> Any: method _sync (line 256) | def _sync(self): method __len__ (line 272) | def __len__(self): method get_buffer (line 282) | def get_buffer(self): class CumulativeIterationMetric (line 296) | class CumulativeIterationMetric(Cumulative, IterationMetric): method __call__ (line 327) | def __call__( FILE: monai/metrics/mmd.py class MMDMetric (line 21) | class MMDMetric(Metric): method __init__ (line 35) | def __init__(self, y_mapping: Callable | None = None) -> None: method __call__ (line 39) | def __call__(self, y: torch.Tensor, y_pred: torch.Tensor) -> torch.Ten... function compute_mmd (line 43) | def compute_mmd(y: torch.Tensor, y_pred: torch.Tensor, y_mapping: Callab... FILE: monai/metrics/panoptic_quality.py class PanopticQualityMetric (line 27) | class PanopticQualityMetric(CumulativeIterationMetric): method __init__ (line 63) | def __init__( method _compute_tensor (line 80) | def _compute_tensor(self, y_pred: torch.Tensor, y: torch.Tensor) -> to... method aggregate (line 132) | def aggregate(self, reduction: MetricReduction | str | None = None) ->... function compute_panoptic_quality (line 171) | def compute_panoptic_quality( function _get_id_list (line 238) | def _get_id_list(gt: torch.Tensor) -> list[torch.Tensor]: function _get_pairwise_iou (line 247) | def _get_pairwise_iou( function _get_paired_iou (line 281) | def _get_paired_iou( function _check_panoptic_metric_name (line 303) | def _check_panoptic_metric_name(metric_name: str) -> str: function compute_mean_iou (line 315) | def compute_mean_iou(confusion_matrix: torch.Tensor, smooth_numerator: f... FILE: monai/metrics/regression.py class RegressionMetric (line 30) | class RegressionMetric(CumulativeIterationMetric): method __init__ (line 48) | def __init__(self, reduction: MetricReduction | str = MetricReduction.... method aggregate (line 53) | def aggregate( method _check_shape (line 69) | def _check_shape(self, y_pred: torch.Tensor, y: torch.Tensor) -> None: method _compute_metric (line 78) | def _compute_metric(self, y_pred: torch.Tensor, y: torch.Tensor) -> to... method _compute_tensor (line 81) | def _compute_tensor(self, y_pred: torch.Tensor, y: torch.Tensor) -> to... class MSEMetric (line 88) | class MSEMetric(RegressionMetric): method __init__ (line 109) | def __init__(self, reduction: MetricReduction | str = MetricReduction.... method _compute_metric (line 113) | def _compute_metric(self, y_pred: torch.Tensor, y: torch.Tensor) -> to... class MAEMetric (line 117) | class MAEMetric(RegressionMetric): method __init__ (line 138) | def __init__(self, reduction: MetricReduction | str = MetricReduction.... method _compute_metric (line 142) | def _compute_metric(self, y_pred: torch.Tensor, y: torch.Tensor) -> to... class MAPEMetric (line 146) | class MAPEMetric(RegressionMetric): method __init__ (line 169) | def __init__( method _compute_metric (line 175) | def _compute_metric(self, y_pred: torch.Tensor, y: torch.Tensor) -> to... class RMSEMetric (line 179) | class RMSEMetric(RegressionMetric): method __init__ (line 201) | def __init__(self, reduction: MetricReduction | str = MetricReduction.... method _compute_metric (line 205) | def _compute_metric(self, y_pred: torch.Tensor, y: torch.Tensor) -> to... class PSNRMetric (line 210) | class PSNRMetric(RegressionMetric): method __init__ (line 237) | def __init__( method _compute_metric (line 244) | def _compute_metric(self, y_pred: torch.Tensor, y: torch.Tensor) -> Any: function compute_mean_error_metrics (line 249) | def compute_mean_error_metrics(y_pred: torch.Tensor, y: torch.Tensor, fu... function compute_mape_metric (line 256) | def compute_mape_metric(y_pred: torch.Tensor, y: torch.Tensor, epsilon: ... class KernelType (line 273) | class KernelType(StrEnum): class SSIMMetric (line 278) | class SSIMMetric(RegressionMetric): method __init__ (line 307) | def __init__( method _compute_metric (line 336) | def _compute_metric(self, y_pred: torch.Tensor, y: torch.Tensor) -> to... function _gaussian_kernel (line 379) | def _gaussian_kernel( function compute_ssim_and_cs (line 419) | def compute_ssim_and_cs( class MultiScaleSSIMMetric (line 484) | class MultiScaleSSIMMetric(RegressionMetric): method __init__ (line 508) | def __init__( method _compute_metric (line 539) | def _compute_metric(self, y_pred: torch.Tensor, y: torch.Tensor) -> to... function compute_ms_ssim (line 554) | def compute_ms_ssim( FILE: monai/metrics/rocauc.py class ROCAUCMetric (line 29) | class ROCAUCMetric(CumulativeIterationMetric): method __init__ (line 53) | def __init__(self, average: Average | str = Average.MACRO) -> None: method _compute_tensor (line 57) | def _compute_tensor(self, y_pred: torch.Tensor, y: torch.Tensor) -> tu... method aggregate (line 60) | def aggregate(self, average: Average | str | None = None) -> np.ndarra... function _calculate (line 78) | def _calculate(y_pred: torch.Tensor, y: torch.Tensor) -> float: function compute_roc_auc (line 115) | def compute_roc_auc( FILE: monai/metrics/surface_dice.py class SurfaceDiceMetric (line 26) | class SurfaceDiceMetric(CumulativeIterationMetric): method __init__ (line 62) | def __init__( method _compute_tensor (line 79) | def _compute_tensor(self, y_pred: torch.Tensor, y: torch.Tensor, **kwa... method aggregate (line 113) | def aggregate( function compute_surface_dice (line 137) | def compute_surface_dice( FILE: monai/metrics/surface_distance.py class SurfaceDistanceMetric (line 26) | class SurfaceDistanceMetric(CumulativeIterationMetric): method __init__ (line 52) | def __init__( method _compute_tensor (line 67) | def _compute_tensor(self, y_pred: torch.Tensor, y: torch.Tensor, **kwa... method aggregate (line 102) | def aggregate( function compute_average_surface_distance (line 123) | def compute_average_surface_distance( FILE: monai/metrics/utils.py function ignore_background (line 54) | def ignore_background(y_pred: NdarrayTensor, y: NdarrayTensor) -> tuple[... function do_metric_reduction (line 71) | def do_metric_reduction( function get_mask_edges (line 139) | def get_mask_edges( function get_surface_distance (line 242) | def get_surface_distance( function get_edge_surface_distance (line 288) | def get_edge_surface_distance( function is_binary_tensor (line 347) | def is_binary_tensor(input: torch.Tensor, name: str) -> None: function remap_instance_id (line 366) | def remap_instance_id(pred: torch.Tensor, by_size: bool = False) -> torc... function prepare_spacing (line 400) | def prepare_spacing( function _get_neighbour_code_to_normals_table (line 469) | def _get_neighbour_code_to_normals_table(device=None): function create_table_neighbour_code_to_surface_area (line 742) | def create_table_neighbour_code_to_surface_area(spacing_mm, device=None): function create_table_neighbour_code_to_contour_length (line 771) | def create_table_neighbour_code_to_contour_length(spacing_mm, device=None): function get_code_to_measure_table (line 813) | def get_code_to_measure_table(spacing, device=None): FILE: monai/metrics/wrapper.py class MetricsReloadedWrapper (line 31) | class MetricsReloadedWrapper(CumulativeIterationMetric): method __init__ (line 47) | def __init__( method aggregate (line 60) | def aggregate( method prepare_onehot (line 70) | def prepare_onehot(self, y_pred, y): class MetricsReloadedBinary (line 79) | class MetricsReloadedBinary(MetricsReloadedWrapper): method __init__ (line 125) | def __init__( method _compute_tensor (line 139) | def _compute_tensor(self, y_pred: torch.Tensor, y: torch.Tensor) -> to... class MetricsReloadedCategorical (line 182) | class MetricsReloadedCategorical(MetricsReloadedWrapper): method __init__ (line 230) | def __init__( method _compute_tensor (line 246) | def _compute_tensor(self, y_pred: torch.Tensor, y: torch.Tensor) -> to... FILE: monai/networks/blocks/acti_norm.py class ADN (line 19) | class ADN(nn.Sequential): method __init__ (line 69) | def __init__( FILE: monai/networks/blocks/activation.py function monai_mish (line 21) | def monai_mish(x, inplace: bool = False): function monai_mish (line 26) | def monai_mish(x, inplace: bool = False): function monai_swish (line 32) | def monai_swish(x, inplace: bool = False): function monai_swish (line 37) | def monai_swish(x, inplace: bool = False): class Swish (line 41) | class Swish(nn.Module): method __init__ (line 64) | def __init__(self, alpha=1.0): method forward (line 68) | def forward(self, input: torch.Tensor) -> torch.Tensor: class SwishImplementation (line 72) | class SwishImplementation(torch.autograd.Function): method forward (line 81) | def forward(ctx, input): method backward (line 87) | def backward(ctx, grad_output): class MemoryEfficientSwish (line 93) | class MemoryEfficientSwish(nn.Module): method __init__ (line 124) | def __init__(self, inplace: bool = False): method forward (line 129) | def forward(self, input: torch.Tensor): class Mish (line 133) | class Mish(nn.Module): method __init__ (line 158) | def __init__(self, inplace: bool = False): method forward (line 163) | def forward(self, input: torch.Tensor): class GEGLU (line 167) | class GEGLU(nn.Module): method forward (line 190) | def forward(self, input: torch.Tensor): FILE: monai/networks/blocks/activation_checkpointing.py class ActivationCheckpointWrapper (line 21) | class ActivationCheckpointWrapper(nn.Module): method __init__ (line 28) | def __init__(self, module: nn.Module) -> None: method forward (line 32) | def forward(self, x: torch.Tensor) -> torch.Tensor: FILE: monai/networks/blocks/aspp.py class SimpleASPP (line 24) | class SimpleASPP(nn.Module): method __init__ (line 35) | def __init__( method forward (line 100) | def forward(self, x: torch.Tensor) -> torch.Tensor: FILE: monai/networks/blocks/attention_utils.py function get_rel_pos (line 17) | def get_rel_pos(q_size: int, k_size: int, rel_pos: torch.Tensor) -> torc... function add_decomposed_rel_pos (line 50) | def add_decomposed_rel_pos( FILE: monai/networks/blocks/backbone_fpn_utils.py class BackboneWithFPN (line 67) | class BackboneWithFPN(nn.Module): method __init__ (line 89) | def __init__( method forward (line 123) | def forward(self, x: Tensor) -> dict[str, Tensor]: function _resnet_fpn_extractor (line 138) | def _resnet_fpn_extractor( FILE: monai/networks/blocks/cablock.py class FeedForward (line 27) | class FeedForward(nn.Module): method __init__ (line 38) | def __init__(self, spatial_dims: int, dim: int, ffn_expansion_factor: ... method forward (line 72) | def forward(self, x: torch.Tensor) -> torch.Tensor: class CABlock (line 78) | class CABlock(nn.Module): method __init__ (line 96) | def __init__(self, spatial_dims, dim: int, num_heads: int, bias: bool,... method _get_attention_fn (line 129) | def _get_attention_fn(self): method _flash_attention (line 134) | def _flash_attention(self, q, k, v): method _normal_attention (line 140) | def _normal_attention(self, q, k, v): method forward (line 146) | def forward(self, x: torch.Tensor) -> torch.Tensor: FILE: monai/networks/blocks/convolutions.py class Convolution (line 25) | class Convolution(nn.Sequential): method __init__ (line 98) | def __init__( class ResidualUnit (line 174) | class ResidualUnit(nn.Module): method __init__ (line 248) | def __init__( method forward (line 315) | def forward(self, x: torch.Tensor) -> torch.Tensor: FILE: monai/networks/blocks/crf.py class CRF (line 23) | class CRF(torch.nn.Module): method __init__ (line 38) | def __init__( method forward (line 71) | def forward(self, input_tensor: torch.Tensor, reference_tensor: torch.... function _create_coordinate_tensor (line 115) | def _create_coordinate_tensor(tensor): FILE: monai/networks/blocks/crossattention.py class CrossAttentionBlock (line 23) | class CrossAttentionBlock(nn.Module): method __init__ (line 30) | def __init__( method forward (line 135) | def forward(self, x: torch.Tensor, context: torch.Tensor | None = None): FILE: monai/networks/blocks/denseblock.py class DenseBlock (line 25) | class DenseBlock(nn.Sequential): method __init__ (line 34) | def __init__(self, layers: Sequence[nn.Module]): method forward (line 39) | def forward(self, x): class ConvDenseBlock (line 47) | class ConvDenseBlock(DenseBlock): method __init__ (line 66) | def __init__( method _get_layer (line 103) | def _get_layer(self, in_channels, out_channels, dilation): FILE: monai/networks/blocks/dints_block.py class FactorizedIncreaseBlock (line 22) | class FactorizedIncreaseBlock(torch.nn.Sequential): method __init__ (line 27) | def __init__( class FactorizedReduceBlock (line 72) | class FactorizedReduceBlock(torch.nn.Module): method __init__ (line 78) | def __init__( method forward (line 126) | def forward(self, x: torch.Tensor) -> torch.Tensor: class P3DActiConvNormBlock (line 139) | class P3DActiConvNormBlock(torch.nn.Sequential): method __init__ (line 144) | def __init__( class ActiConvNormBlock (line 224) | class ActiConvNormBlock(torch.nn.Sequential): method __init__ (line 229) | def __init__( FILE: monai/networks/blocks/downsample.py class MaxAvgPool (line 26) | class MaxAvgPool(nn.Module): method __init__ (line 32) | def __init__( method forward (line 58) | def forward(self, x: torch.Tensor) -> torch.Tensor: class DownSample (line 69) | class DownSample(nn.Sequential): method __init__ (line 88) | def __init__( class SubpixelDownsample (line 221) | class SubpixelDownsample(nn.Module): method __init__ (line 241) | def __init__( method forward (line 285) | def forward(self, x: torch.Tensor) -> torch.Tensor: FILE: monai/networks/blocks/dynunet_block.py class UnetResBlock (line 25) | class UnetResBlock(nn.Module): method __init__ (line 43) | def __init__( method forward (line 98) | def forward(self, inp): class UnetBasicBlock (line 114) | class UnetBasicBlock(nn.Module): method __init__ (line 132) | def __init__( method forward (line 170) | def forward(self, inp): class UnetUpBlock (line 180) | class UnetUpBlock(nn.Module): method __init__ (line 200) | def __init__( method forward (line 239) | def forward(self, inp, skip): class UnetOutBlock (line 247) | class UnetOutBlock(nn.Module): method __init__ (line 249) | def __init__( method forward (line 266) | def forward(self, inp): function get_conv_layer (line 270) | def get_conv_layer( function get_padding (line 304) | def get_padding(kernel_size: Sequence[int] | int, stride: Sequence[int] ... function get_output_padding (line 315) | def get_output_padding( FILE: monai/networks/blocks/encoder.py class BaseEncoder (line 19) | class BaseEncoder(metaclass=ABCMeta): method get_encoder_parameters (line 32) | def get_encoder_parameters(cls) -> list[dict]: method num_channels_per_output (line 46) | def num_channels_per_output(cls) -> list[tuple[int, ...]]: method num_outputs (line 60) | def num_outputs(cls) -> list[int]: method get_encoder_names (line 74) | def get_encoder_names(cls) -> list[str]: FILE: monai/networks/blocks/fcn.py class GCN (line 26) | class GCN(nn.Module): method __init__ (line 32) | def __init__(self, inplanes: int, planes: int, ks: int = 7): method forward (line 47) | def forward(self, x: torch.Tensor) -> torch.Tensor: class Refine (line 60) | class Refine(nn.Module): method __init__ (line 65) | def __init__(self, planes: int): method forward (line 81) | def forward(self, x: torch.Tensor) -> torch.Tensor: class FCN (line 97) | class FCN(nn.Module): method __init__ (line 116) | def __init__( method forward (line 161) | def forward(self, x: torch.Tensor): class MCFCN (line 198) | class MCFCN(FCN): method __init__ (line 216) | def __init__( method forward (line 238) | def forward(self, x: torch.Tensor): FILE: monai/networks/blocks/feature_pyramid_network.py class ExtraFPNBlock (line 68) | class ExtraFPNBlock(nn.Module): method forward (line 75) | def forward(self, results: list[Tensor], x: list[Tensor], names: list[... class LastLevelMaxPool (line 90) | class LastLevelMaxPool(ExtraFPNBlock): method __init__ (line 96) | def __init__(self, spatial_dims: int): method forward (line 101) | def forward(self, results: list[Tensor], x: list[Tensor], names: list[... class LastLevelP6P7 (line 107) | class LastLevelP6P7(ExtraFPNBlock): method __init__ (line 114) | def __init__(self, spatial_dims: int, in_channels: int, out_channels: ... method forward (line 124) | def forward(self, results: list[Tensor], x: list[Tensor], names: list[... class FeaturePyramidNetwork (line 134) | class FeaturePyramidNetwork(nn.Module): method __init__ (line 173) | def __init__( method get_result_from_inner_blocks (line 206) | def get_result_from_inner_blocks(self, x: Tensor, idx: int) -> Tensor: method get_result_from_layer_blocks (line 220) | def get_result_from_layer_blocks(self, x: Tensor, idx: int) -> Tensor: method forward (line 234) | def forward(self, x: dict[str, Tensor]) -> dict[str, Tensor]: FILE: monai/networks/blocks/fft_utils_t.py function roll_1d (line 18) | def roll_1d(x: Tensor, shift: int, shift_dim: int) -> Tensor: function roll (line 42) | def roll(x: Tensor, shift: list[int], shift_dims: list[int]) -> Tensor: function fftshift (line 63) | def fftshift(x: Tensor, shift_dims: list[int]) -> Tensor: function ifftshift (line 82) | def ifftshift(x: Tensor, shift_dims: list[int]) -> Tensor: function ifftn_centered_t (line 101) | def ifftn_centered_t(ksp: Tensor, spatial_dims: int, is_complex: bool = ... function fftn_centered_t (line 145) | def fftn_centered_t(im: Tensor, spatial_dims: int, is_complex: bool = Tr... FILE: monai/networks/blocks/localnet_block.py function get_conv_block (line 25) | def get_conv_block( function get_conv_layer (line 48) | def get_conv_layer( function get_deconv_block (line 58) | def get_deconv_block(spatial_dims: int, in_channels: int, out_channels: ... class ResidualBlock (line 74) | class ResidualBlock(nn.Module): method __init__ (line 76) | def __init__( method forward (line 93) | def forward(self, x) -> torch.Tensor: class LocalNetResidualBlock (line 98) | class LocalNetResidualBlock(nn.Module): method __init__ (line 100) | def __init__(self, spatial_dims: int, in_channels: int, out_channels: ... method forward (line 110) | def forward(self, x, mid) -> torch.Tensor: class LocalNetDownSampleBlock (line 115) | class LocalNetDownSampleBlock(nn.Module): method __init__ (line 127) | def __init__( method forward (line 148) | def forward(self, x) -> tuple[torch.Tensor, torch.Tensor]: class LocalNetUpSampleBlock (line 171) | class LocalNetUpSampleBlock(nn.Module): method __init__ (line 183) | def __init__( method additive_upsampling (line 218) | def additive_upsampling(self, x, mid) -> torch.Tensor: method forward (line 226) | def forward(self, x, mid) -> torch.Tensor: class LocalNetFeatureExtractorBlock (line 251) | class LocalNetFeatureExtractorBlock(nn.Module): method __init__ (line 263) | def __init__( method forward (line 295) | def forward(self, x) -> torch.Tensor: FILE: monai/networks/blocks/mednext_block.py function get_conv_layer (line 24) | def get_conv_layer(spatial_dim: int = 3, transpose: bool = False): class MedNeXtBlock (line 31) | class MedNeXtBlock(nn.Module): method __init__ (line 46) | def __init__( method forward (line 101) | def forward(self, x): class MedNeXtDownBlock (line 130) | class MedNeXtDownBlock(MedNeXtBlock): method __init__ (line 145) | def __init__( method forward (line 182) | def forward(self, x): class MedNeXtUpBlock (line 201) | class MedNeXtUpBlock(MedNeXtBlock): method __init__ (line 216) | def __init__( method forward (line 254) | def forward(self, x): class MedNeXtOutBlock (line 283) | class MedNeXtOutBlock(nn.Module): method __init__ (line 293) | def __init__(self, in_channels, n_classes, dim): method forward (line 299) | def forward(self, x): FILE: monai/networks/blocks/mlp.py class MLPBlock (line 23) | class MLPBlock(nn.Module): method __init__ (line 29) | def __init__( method forward (line 73) | def forward(self, x): FILE: monai/networks/blocks/patchembedding.py class PatchEmbeddingBlock (line 32) | class PatchEmbeddingBlock(nn.Module): method __init__ (line 45) | def __init__( method _init_weights (line 138) | def _init_weights(self, m): method forward (line 147) | def forward(self, x): class PatchEmbed (line 156) | class PatchEmbed(nn.Module): method __init__ (line 172) | def __init__( method forward (line 205) | def forward(self, x): FILE: monai/networks/blocks/pos_embed_utils.py function _ntuple (line 24) | def _ntuple(n): function build_fourier_position_embedding (line 34) | def build_fourier_position_embedding( function build_sincos_position_embedding (line 87) | def build_sincos_position_embedding( FILE: monai/networks/blocks/regunet_block.py function get_conv_block (line 24) | def get_conv_block( function get_conv_layer (line 63) | def get_conv_layer( class RegistrationResidualConvBlock (line 73) | class RegistrationResidualConvBlock(nn.Module): method __init__ (line 79) | def __init__( method forward (line 107) | def forward(self, x: torch.Tensor) -> torch.Tensor: class RegistrationDownSampleBlock (line 128) | class RegistrationDownSampleBlock(nn.Module): method __init__ (line 137) | def __init__(self, spatial_dims: int, channels: int, pooling: bool) ->... method forward (line 157) | def forward(self, x: torch.Tensor) -> torch.Tensor: function get_deconv_block (line 175) | def get_deconv_block(spatial_dims: int, in_channels: int, out_channels: ... class RegistrationExtractionBlock (line 191) | class RegistrationExtractionBlock(nn.Module): method __init__ (line 197) | def __init__( method forward (line 240) | def forward(self, x: list[torch.Tensor], image_size: list[int]) -> tor... FILE: monai/networks/blocks/rel_pos_embedding.py class DecomposedRelativePosEmbedding (line 21) | class DecomposedRelativePosEmbedding(nn.Module): method __init__ (line 22) | def __init__(self, s_input_dims: tuple[int, int] | tuple[int, int, int... method forward (line 42) | def forward(self, x: torch.Tensor, att_mat: torch.Tensor, q: torch.Ten... FILE: monai/networks/blocks/segresnet_block.py function get_conv_layer (line 22) | def get_conv_layer( function get_upsample_layer (line 30) | def get_upsample_layer( class ResBlock (line 44) | class ResBlock(nn.Module): method __init__ (line 51) | def __init__( method forward (line 83) | def forward(self, x): FILE: monai/networks/blocks/selfattention.py class SABlock (line 24) | class SABlock(nn.Module): method __init__ (line 30) | def __init__( method forward (line 154) | def forward(self, x, attn_mask: torch.Tensor | None = None): FILE: monai/networks/blocks/spade_norm.py class SPADE (line 22) | class SPADE(nn.Module): method __init__ (line 38) | def __init__( method forward (line 78) | def forward(self, x: torch.Tensor, segmap: torch.Tensor) -> torch.Tensor: FILE: monai/networks/blocks/spatialattention.py class SpatialAttentionBlock (line 20) | class SpatialAttentionBlock(nn.Module): method __init__ (line 40) | def __init__( method forward (line 70) | def forward(self, x: torch.Tensor): FILE: monai/networks/blocks/squeeze_and_excitation.py class ChannelSELayer (line 23) | class ChannelSELayer(nn.Module): method __init__ (line 29) | def __init__( method forward (line 74) | def forward(self, x: torch.Tensor) -> torch.Tensor: class ResidualSELayer (line 92) | class ResidualSELayer(ChannelSELayer): method __init__ (line 101) | def __init__( class SEBlock (line 130) | class SEBlock(nn.Module): method __init__ (line 142) | def __init__( method forward (line 218) | def forward(self, x: torch.Tensor) -> torch.Tensor: class SEBottleneck (line 233) | class SEBottleneck(SEBlock): method __init__ (line 240) | def __init__( class SEResNetBottleneck (line 281) | class SEResNetBottleneck(SEBlock): method __init__ (line 290) | def __init__( class SEResNeXtBottleneck (line 331) | class SEResNeXtBottleneck(SEBlock): method __init__ (line 338) | def __init__( FILE: monai/networks/blocks/text_embedding.py class TextEncoder (line 26) | class TextEncoder(nn.Module): method __init__ (line 38) | def __init__( method forward (line 77) | def forward(self): FILE: monai/networks/blocks/transformerblock.py class TransformerBlock (line 20) | class TransformerBlock(nn.Module): method __init__ (line 26) | def __init__( method forward (line 91) | def forward( FILE: monai/networks/blocks/unetr_block.py class UnetrUpBlock (line 22) | class UnetrUpBlock(nn.Module): method __init__ (line 28) | def __init__( method forward (line 81) | def forward(self, inp, skip): class UnetrPrUpBlock (line 89) | class UnetrPrUpBlock(nn.Module): method __init__ (line 95) | def __init__( method forward (line 202) | def forward(self, x): class UnetrBasicBlock (line 209) | class UnetrBasicBlock(nn.Module): method __init__ (line 215) | def __init__( method forward (line 258) | def forward(self, inp): FILE: monai/networks/blocks/upsample.py class UpSample (line 26) | class UpSample(nn.Sequential): method __init__ (line 43) | def __init__( class SubpixelUpsample (line 187) | class SubpixelUpsample(nn.Module): method __init__ (line 212) | def __init__( method forward (line 274) | def forward(self, x: torch.Tensor) -> torch.Tensor: FILE: monai/networks/blocks/warp.py class Warp (line 30) | class Warp(nn.Module): method __init__ (line 35) | def __init__(self, mode=GridSampleMode.BILINEAR.value, padding_mode=Gr... method get_reference_grid (line 101) | def get_reference_grid(self, ddf: torch.Tensor, jitter: bool = False, ... method forward (line 120) | def forward(self, image: torch.Tensor, ddf: torch.Tensor): class DVF2DDF (line 154) | class DVF2DDF(nn.Module): method __init__ (line 164) | def __init__( method forward (line 173) | def forward(self, dvf: torch.Tensor) -> torch.Tensor: FILE: monai/networks/layers/conjugate_gradient.py function _zdot (line 20) | def _zdot(x1: torch.Tensor, x2: torch.Tensor) -> torch.Tensor: function _zdot_single (line 31) | def _zdot_single(x: torch.Tensor) -> torch.Tensor: class ConjugateGradient (line 42) | class ConjugateGradient(nn.Module): method __init__ (line 55) | def __init__(self, linear_op: Callable, num_iter: int): method update (line 66) | def update( method forward (line 87) | def forward(self, x: torch.Tensor, y: torch.Tensor) -> torch.Tensor: FILE: monai/networks/layers/convutils.py function same_padding (line 22) | def same_padding(kernel_size: Sequence[int] | int, dilation: Sequence[in... function stride_minus_kernel_padding (line 46) | def stride_minus_kernel_padding(kernel_size: Sequence[int] | int, stride... function calculate_out_shape (line 56) | def calculate_out_shape( function gaussian_1d (line 78) | def gaussian_1d( function polyval (line 134) | def polyval(coef, x) -> torch.Tensor: function _modified_bessel_0 (line 160) | def _modified_bessel_0(x: torch.Tensor) -> torch.Tensor: function _modified_bessel_1 (line 181) | def _modified_bessel_1(x: torch.Tensor) -> torch.Tensor: function _modified_bessel_i (line 204) | def _modified_bessel_i(n: int, x: torch.Tensor) -> torch.Tensor: FILE: monai/networks/layers/drop_path.py class DropPath (line 17) | class DropPath(nn.Module): method __init__ (line 23) | def __init__(self, drop_prob: float = 0.0, scale_by_keep: bool = True)... method drop_path (line 36) | def drop_path(self, x, drop_prob: float = 0.0, training: bool = False,... method forward (line 46) | def forward(self, x): FILE: monai/networks/layers/factories.py class LayerFactory (line 76) | class LayerFactory(ComponentStore): method __init__ (line 82) | def __init__(self, name: str, description: str) -> None: method add_factory_callable (line 90) | def add_factory_callable(self, name: str, func: Callable, desc: str | ... method add_factory_class (line 100) | def add_factory_class(self, name: str, cls: type, desc: str | None = N... method factory_function (line 106) | def factory_function(self, name: str) -> Callable: method get_constructor (line 117) | def get_constructor(self, factory_name: str, *args) -> Any: method __getitem__ (line 133) | def __getitem__(self, args) -> Any: method __getattr__ (line 151) | def __getattr__(self, key): function split_args (line 163) | def split_args(args): function dropout_factory (line 211) | def dropout_factory(dim: int) -> type[nn.Dropout | nn.Dropout2d | nn.Dro... function instance_factory (line 229) | def instance_factory(dim: int) -> type[nn.InstanceNorm1d | nn.InstanceNo... function batch_factory (line 244) | def batch_factory(dim: int) -> type[nn.BatchNorm1d | nn.BatchNorm2d | nn... function instance_nvfuser_factory (line 259) | def instance_nvfuser_factory(dim): function swish_factory (line 306) | def swish_factory(): function memswish_factory (line 319) | def memswish_factory(): function mish_factory (line 332) | def mish_factory(): function geglu_factory (line 345) | def geglu_factory(): function conv_factory (line 358) | def conv_factory(dim: int) -> type[nn.Conv1d | nn.Conv2d | nn.Conv3d]: function convtrans_factory (line 373) | def convtrans_factory(dim: int) -> type[nn.ConvTranspose1d | nn.ConvTran... function maxpooling_factory (line 388) | def maxpooling_factory(dim: int) -> type[nn.MaxPool1d | nn.MaxPool2d | n... function adaptive_maxpooling_factory (line 403) | def adaptive_maxpooling_factory(dim: int) -> type[nn.AdaptiveMaxPool1d |... function avgpooling_factory (line 418) | def avgpooling_factory(dim: int) -> type[nn.AvgPool1d | nn.AvgPool2d | n... function adaptive_avgpooling_factory (line 433) | def adaptive_avgpooling_factory(dim: int) -> type[nn.AdaptiveAvgPool1d |... function replication_pad_factory (line 448) | def replication_pad_factory(dim: int) -> type[nn.ReplicationPad1d | nn.R... function constant_pad_factory (line 463) | def constant_pad_factory(dim: int) -> type[nn.ConstantPad1d | nn.Constan... function decomposed_rel_pos_embedding (line 478) | def decomposed_rel_pos_embedding() -> type[nn.Module]: FILE: monai/networks/layers/filtering.py class BilateralFilter (line 23) | class BilateralFilter(torch.autograd.Function): method forward (line 48) | def forward(ctx, input, spatial_sigma=5, color_sigma=0.5, fast_approx=... method backward (line 59) | def backward(ctx, grad_output): class PHLFilter (line 66) | class PHLFilter(torch.autograd.Function): method forward (line 86) | def forward(ctx, input, features, sigmas=None): method backward (line 97) | def backward(ctx, grad_output): class TrainableBilateralFilterFunction (line 104) | class TrainableBilateralFilterFunction(torch.autograd.Function): method forward (line 125) | def forward(ctx, input_img, sigma_x, sigma_y, sigma_z, color_sigma): method backward (line 149) | def backward(ctx, grad_output): class TrainableBilateralFilter (line 184) | class TrainableBilateralFilter(torch.nn.Module): method __init__ (line 207) | def __init__(self, spatial_sigma, color_sigma): method forward (line 233) | def forward(self, input_tensor): class TrainableJointBilateralFilterFunction (line 265) | class TrainableJointBilateralFilterFunction(torch.autograd.Function): method forward (line 287) | def forward(ctx, input_img, guidance_img, sigma_x, sigma_y, sigma_z, c... method backward (line 312) | def backward(ctx, grad_output): class TrainableJointBilateralFilter (line 349) | class TrainableJointBilateralFilter(torch.nn.Module): method __init__ (line 375) | def __init__(self, spatial_sigma, color_sigma): method forward (line 401) | def forward(self, input_tensor, guidance_tensor): FILE: monai/networks/layers/gmm.py class GaussianMixtureModel (line 21) | class GaussianMixtureModel: method __init__ (line 31) | def __init__(self, channel_count: int, mixture_count: int, mixture_siz... method reset (line 51) | def reset(self): method learn (line 57) | def learn(self, features, labels): method apply (line 67) | def apply(self, features): class _ApplyFunc (line 80) | class _ApplyFunc(torch.autograd.Function): method forward (line 83) | def forward(ctx, params, features, compiled_extension): method backward (line 87) | def backward(ctx, grad_output): FILE: monai/networks/layers/simplelayers.py class ChannelPad (line 55) | class ChannelPad(nn.Module): method __init__ (line 61) | def __init__( method forward (line 95) | def forward(self, x: torch.Tensor) -> torch.Tensor: class SkipConnection (line 103) | class SkipConnection(nn.Module): method __init__ (line 113) | def __init__(self, submodule, dim: int = 1, mode: str | SkipMode = "ca... method forward (line 127) | def forward(self, x: torch.Tensor) -> torch.Tensor: class Flatten (line 139) | class Flatten(nn.Module): method forward (line 144) | def forward(self, x: torch.Tensor) -> torch.Tensor: class Reshape (line 148) | class Reshape(nn.Module): method __init__ (line 153) | def __init__(self, *shape: int) -> None: method forward (line 164) | def forward(self, x: torch.Tensor) -> torch.Tensor: function _separable_filtering_conv (line 170) | def _separable_filtering_conv( function separable_filtering (line 207) | def separable_filtering(x: torch.Tensor, kernels: list[torch.Tensor], mo... function apply_filter (line 252) | def apply_filter(x: torch.Tensor, kernel: torch.Tensor, **kwargs) -> tor... class SavitzkyGolayFilter (line 303) | class SavitzkyGolayFilter(nn.Module): method __init__ (line 315) | def __init__(self, window_length: int, order: int, axis: int = 2, mode... method forward (line 324) | def forward(self, x: torch.Tensor) -> torch.Tensor: method _make_coeffs (line 358) | def _make_coeffs(window_length, order): class HilbertTransform (line 370) | class HilbertTransform(nn.Module): method __init__ (line 379) | def __init__(self, axis: int = 2, n: int | None = None) -> None: method forward (line 384) | def forward(self, x: torch.Tensor) -> torch.Tensor: function get_binary_kernel (line 430) | def get_binary_kernel(window_size: Sequence[int], dtype=torch.float, dev... function median_filter (line 441) | def median_filter( class MedianFilter (line 501) | class MedianFilter(nn.Module): method __init__ (line 523) | def __init__(self, radius: Sequence[int] | int, spatial_dims: int = 3,... method forward (line 530) | def forward(self, in_tensor: torch.Tensor, number_of_passes=1) -> torc... class GaussianFilter (line 542) | class GaussianFilter(nn.Module): method __init__ (line 544) | def __init__( method forward (line 589) | def forward(self, x: torch.Tensor) -> torch.Tensor: class LLTMFunction (line 598) | class LLTMFunction(Function): method forward (line 601) | def forward(ctx, input, weights, bias, old_h, old_cell): method backward (line 610) | def backward(ctx, grad_h, grad_cell): class LLTM (line 617) | class LLTM(nn.Module): method __init__ (line 632) | def __init__(self, input_features: int, state_size: int): method reset_parameters (line 640) | def reset_parameters(self): method forward (line 645) | def forward(self, input, state): class ApplyFilter (line 649) | class ApplyFilter(nn.Module): method __init__ (line 652) | def __init__(self, filter: NdarrayOrTensor) -> None: method forward (line 657) | def forward(self, x: torch.Tensor) -> torch.Tensor: class MeanFilter (line 661) | class MeanFilter(ApplyFilter): method __init__ (line 667) | def __init__(self, spatial_dims: int, size: int) -> None: class LaplaceFilter (line 678) | class LaplaceFilter(ApplyFilter): method __init__ (line 685) | def __init__(self, spatial_dims: int, size: int) -> None: class EllipticalFilter (line 697) | class EllipticalFilter(ApplyFilter): method __init__ (line 703) | def __init__(self, spatial_dims: int, size: int) -> None: class SharpenFilter (line 716) | class SharpenFilter(EllipticalFilter): method __init__ (line 723) | def __init__(self, spatial_dims: int, size: int) -> None: FILE: monai/networks/layers/spatial_transforms.py class _GridPull (line 35) | class _GridPull(torch.autograd.Function): method forward (line 38) | def forward(ctx, input, grid, interpolation, bound, extrapolate): method backward (line 48) | def backward(ctx, grad): function grid_pull (line 60) | def grid_pull( class _GridPush (line 135) | class _GridPush(torch.autograd.Function): method forward (line 138) | def forward(ctx, input, grid, shape, interpolation, bound, extrapolate): method backward (line 148) | def backward(ctx, grad): function grid_push (line 160) | def grid_push( class _GridCount (line 240) | class _GridCount(torch.autograd.Function): method forward (line 243) | def forward(ctx, grid, shape, interpolation, bound, extrapolate): method backward (line 253) | def backward(ctx, grad): function grid_count (line 261) | def grid_count(grid: torch.Tensor, shape=None, interpolation="linear", b... class _GridGrad (line 340) | class _GridGrad(torch.autograd.Function): method forward (line 343) | def forward(ctx, input, grid, interpolation, bound, extrapolate): method backward (line 353) | def backward(ctx, grad): function grid_grad (line 365) | def grid_grad(input: torch.Tensor, grid: torch.Tensor, interpolation="li... class AffineTransform (line 439) | class AffineTransform(nn.Module): method __init__ (line 441) | def __init__( method forward (line 502) | def forward( FILE: monai/networks/layers/utils.py function get_norm_layer (line 22) | def get_norm_layer(name: tuple | str, spatial_dims: int | None = 1, chan... function get_act_layer (line 53) | def get_act_layer(name: tuple | str): function get_dropout_layer (line 76) | def get_dropout_layer(name: tuple | str | float | int, dropout_dim: int ... function get_pool_layer (line 105) | def get_pool_layer(name: tuple | str, spatial_dims: int | None = 1): function get_rel_pos_embedding_layer (line 129) | def get_rel_pos_embedding_layer(name: tuple | str, s_input_dims: tuple |... FILE: monai/networks/layers/vector_quantizer.py class EMAQuantizer (line 22) | class EMAQuantizer(nn.Module): method __init__ (line 44) | def __init__( method quantize (line 90) | def quantize(self, inputs: torch.Tensor) -> tuple[torch.Tensor, torch.... method embed (line 128) | def embed(self, embedding_indices: torch.Tensor) -> torch.Tensor: method distributed_synchronization (line 147) | def distributed_synchronization(self, encodings_sum: torch.Tensor, dw:... method forward (line 167) | def forward(self, inputs: torch.Tensor) -> tuple[torch.Tensor, torch.T... class VectorQuantizer (line 197) | class VectorQuantizer(torch.nn.Module): method __init__ (line 207) | def __init__(self, quantizer: EMAQuantizer): method forward (line 214) | def forward(self, inputs: torch.Tensor) -> tuple[torch.Tensor, torch.T... method embed (line 227) | def embed(self, embedding_indices: torch.Tensor) -> torch.Tensor: method quantize (line 230) | def quantize(self, encodings: torch.Tensor) -> torch.Tensor: FILE: monai/networks/layers/weight_init.py function _no_grad_trunc_normal_ (line 19) | def _no_grad_trunc_normal_(tensor, mean, std, a, b): function trunc_normal_ (line 47) | def trunc_normal_(tensor, mean=0.0, std=1.0, a=-2.0, b=2.0): FILE: monai/networks/nets/ahnet.py class Bottleneck3x3x1 (line 27) | class Bottleneck3x3x1(nn.Module): method __init__ (line 30) | def __init__( method forward (line 63) | def forward(self, x): class Projection (line 88) | class Projection(nn.Sequential): method __init__ (line 90) | def __init__(self, spatial_dims: int, num_input_features: int, num_out... class DenseBlock (line 102) | class DenseBlock(nn.Sequential): method __init__ (line 104) | def __init__( class UpTransition (line 121) | class UpTransition(nn.Sequential): method __init__ (line 123) | def __init__( class Final (line 147) | class Final(nn.Sequential): method __init__ (line 149) | def __init__( class Pseudo3DLayer (line 183) | class Pseudo3DLayer(nn.Module): method __init__ (line 185) | def __init__(self, spatial_dims: int, num_input_features: int, growth_... method forward (line 224) | def forward(self, x): class PSP (line 250) | class PSP(nn.Module): method __init__ (line 252) | def __init__(self, spatial_dims: int, psp_block_num: int, in_ch: int, ... method forward (line 279) | def forward(self, x: torch.Tensor) -> torch.Tensor: class AHNet (line 302) | class AHNet(nn.Module): method __init__ (line 337) | def __init__( method _make_layer (line 444) | def _make_layer(self, block: type[Bottleneck3x3x1], planes: int, block... method forward (line 470) | def forward(self, x): method copy_from (line 505) | def copy_from(self, net): function copy_conv_param (line 536) | def copy_conv_param(module2d, module3d): function copy_bn_param (line 541) | def copy_bn_param(module2d, module3d): FILE: monai/networks/nets/attentionunet.py class ConvBlock (line 25) | class ConvBlock(nn.Module): method __init__ (line 27) | def __init__( method forward (line 65) | def forward(self, x: torch.Tensor) -> torch.Tensor: class UpConv (line 70) | class UpConv(nn.Module): method __init__ (line 72) | def __init__(self, spatial_dims: int, in_channels: int, out_channels: ... method forward (line 87) | def forward(self, x: torch.Tensor) -> torch.Tensor: class AttentionBlock (line 92) | class AttentionBlock(nn.Module): method __init__ (line 94) | def __init__(self, spatial_dims: int, f_int: int, f_g: int, f_l: int, ... method forward (line 141) | def forward(self, g: torch.Tensor, x: torch.Tensor) -> torch.Tensor: class AttentionLayer (line 150) | class AttentionLayer(nn.Module): method __init__ (line 152) | def __init__( method forward (line 178) | def forward(self, x: torch.Tensor) -> torch.Tensor: class AttentionUnet (line 185) | class AttentionUnet(nn.Module): method __init__ (line 202) | def __init__( method _get_bottom_layer (line 270) | def _get_bottom_layer(self, in_channels: int, out_channels: int, strid... method forward (line 288) | def forward(self, x: torch.Tensor) -> torch.Tensor: FILE: monai/networks/nets/autoencoder.py class AutoEncoder (line 26) | class AutoEncoder(nn.Module): method __init__ (line 92) | def __init__( method _get_encode_module (line 140) | def _get_encode_module( method _get_intermediate_module (line 156) | def _get_intermediate_module(self, in_channels: int, num_inter_units: ... method _get_decode_module (line 207) | def _get_decode_module( method _get_encode_layer (line 223) | def _get_encode_layer(self, in_channels: int, out_channels: int, strid... method _get_decode_layer (line 259) | def _get_decode_layer(self, in_channels: int, out_channels: int, strid... method forward (line 302) | def forward(self, x: torch.Tensor) -> Any: FILE: monai/networks/nets/autoencoderkl.py class AsymmetricPad (line 28) | class AsymmetricPad(nn.Module): method __init__ (line 36) | def __init__(self, spatial_dims: int) -> None: method forward (line 40) | def forward(self, x: torch.Tensor) -> torch.Tensor: class AEKLDownsample (line 45) | class AEKLDownsample(nn.Module): method __init__ (line 54) | def __init__(self, spatial_dims: int, in_channels: int) -> None: method forward (line 68) | def forward(self, x: torch.Tensor) -> torch.Tensor: class AEKLResBlock (line 74) | class AEKLResBlock(nn.Module): method __init__ (line 88) | def __init__( method forward (line 130) | def forward(self, x: torch.Tensor) -> torch.Tensor: class Encoder (line 145) | class Encoder(nn.Module): method __init__ (line 165) | def __init__( method forward (line 285) | def forward(self, x: torch.Tensor) -> torch.Tensor: class Decoder (line 291) | class Decoder(nn.Module): method __init__ (line 312) | def __init__( method forward (line 465) | def forward(self, x: torch.Tensor) -> torch.Tensor: class AutoencoderKL (line 471) | class AutoencoderKL(nn.Module): method __init__ (line 497) | def __init__( method encode (line 593) | def encode(self, x: torch.Tensor) -> tuple[torch.Tensor, torch.Tensor]: method sampling (line 613) | def sampling(self, z_mu: torch.Tensor, z_sigma: torch.Tensor) -> torch... method reconstruct (line 630) | def reconstruct(self, x: torch.Tensor) -> torch.Tensor: method decode (line 644) | def decode(self, z: torch.Tensor) -> torch.Tensor: method forward (line 662) | def forward(self, x: torch.Tensor) -> tuple[torch.Tensor, torch.Tensor... method encode_stage_2_inputs (line 668) | def encode_stage_2_inputs(self, x: torch.Tensor) -> torch.Tensor: method decode_stage_2_outputs (line 673) | def decode_stage_2_outputs(self, z: torch.Tensor) -> torch.Tensor: method load_old_state_dict (line 677) | def load_old_state_dict(self, old_state_dict: dict, verbose=False) -> ... FILE: monai/networks/nets/basic_unet.py class TwoConv (line 26) | class TwoConv(nn.Sequential): method __init__ (line 29) | def __init__( class Down (line 60) | class Down(nn.Sequential): method __init__ (line 63) | def __init__( class UpCat (line 91) | class UpCat(nn.Module): method __init__ (line 94) | def __init__( method forward (line 152) | def forward(self, x: torch.Tensor, x_e: torch.Tensor | None): class BasicUNet (line 177) | class BasicUNet(nn.Module): method __init__ (line 179) | def __init__( method forward (line 253) | def forward(self, x: torch.Tensor): FILE: monai/networks/nets/basic_unetplusplus.py class BasicUNetPlusPlus (line 26) | class BasicUNetPlusPlus(nn.Module): method __init__ (line 28) | def __init__( method forward (line 130) | def forward(self, x: torch.Tensor): FILE: monai/networks/nets/cell_sam_wrapper.py class CellSamWrapper (line 25) | class CellSamWrapper(torch.nn.Module): method __init__ (line 43) | def __init__( method forward (line 79) | def forward(self, x): FILE: monai/networks/nets/classifier.py class Classifier (line 25) | class Classifier(Regressor): method __init__ (line 45) | def __init__( class Discriminator (line 68) | class Discriminator(Classifier): method __init__ (line 86) | def __init__( class Critic (line 102) | class Critic(Classifier): method __init__ (line 120) | def __init__( method _get_final_layer (line 134) | def _get_final_layer(self, in_shape: Sequence[int]): method forward (line 137) | def forward(self, x: torch.Tensor) -> torch.Tensor: FILE: monai/networks/nets/controlnet.py class ControlNetConditioningEmbedding (line 44) | class ControlNetConditioningEmbedding(nn.Module): method __init__ (line 49) | def __init__(self, spatial_dims: int, in_channels: int, out_channels: ... method forward (line 106) | def forward(self, conditioning): function zero_module (line 117) | def zero_module(module): class ControlNet (line 123) | class ControlNet(nn.Module): method __init__ (line 152) | def __init__( method forward (line 354) | def forward( method load_old_state_dict (line 425) | def load_old_state_dict(self, old_state_dict: dict, verbose=False) -> ... FILE: monai/networks/nets/daf3d.py class AttentionModule (line 45) | class AttentionModule(nn.Module): method __init__ (line 58) | def __init__( method forward (line 81) | def forward(self, slf, mlf): class Daf3dASPP (line 87) | class Daf3dASPP(SimpleASPP): method __init__ (line 116) | def __init__( method _init_weight (line 155) | def _init_weight(self, conv): class Daf3dResNetBottleneck (line 162) | class Daf3dResNetBottleneck(ResNetBottleneck): method __init__ (line 180) | def __init__( class Daf3dResNetDilatedBottleneck (line 208) | class Daf3dResNetDilatedBottleneck(Daf3dResNetBottleneck): method __init__ (line 221) | def __init__( class Daf3dResNet (line 233) | class Daf3dResNet(ResNet): method __init__ (line 257) | def __init__( class Daf3dBackbone (line 318) | class Daf3dBackbone(nn.Module): method __init__ (line 327) | def __init__(self, n_input_channels): method forward (line 343) | def forward(self, x): class Daf3dFPN (line 352) | class Daf3dFPN(FeaturePyramidNetwork): method __init__ (line 369) | def __init__( method forward (line 393) | def forward(self, x: dict[str, Tensor]) -> dict[str, Tensor]: class Daf3dBackboneWithFPN (line 420) | class Daf3dBackboneWithFPN(BackboneWithFPN): method __init__ (line 440) | def __init__( class DAF3D (line 466) | class DAF3D(nn.Module): method __init__ (line 486) | def __init__(self, in_channels, out_channels, visual_output=False): method forward (line 549) | def forward(self, x): FILE: monai/networks/nets/densenet.py class _DenseLayer (line 44) | class _DenseLayer(nn.Module): method __init__ (line 46) | def __init__( method forward (line 86) | def forward(self, x: torch.Tensor) -> torch.Tensor: class _DenseBlock (line 91) | class _DenseBlock(nn.Sequential): method __init__ (line 93) | def __init__( class _Transition (line 123) | class _Transition(nn.Sequential): method __init__ (line 125) | def __init__( class DenseNet (line 152) | class DenseNet(nn.Module): method __init__ (line 174) | def __init__( method forward (line 253) | def forward(self, x: torch.Tensor) -> torch.Tensor: function _load_state_dict (line 259) | def _load_state_dict(model: nn.Module, arch: str, progress: bool): class DenseNet121 (line 296) | class DenseNet121(DenseNet): method __init__ (line 299) | def __init__( class DenseNet169 (line 329) | class DenseNet169(DenseNet): method __init__ (line 332) | def __init__( class DenseNet201 (line 362) | class DenseNet201(DenseNet): method __init__ (line 365) | def __init__( class DenseNet264 (line 395) | class DenseNet264(DenseNet): method __init__ (line 398) | def __init__( FILE: monai/networks/nets/diffusion_model_unet.py function zero_module (line 51) | def zero_module(module: nn.Module) -> nn.Module: class DiffusionUNetTransformerBlock (line 60) | class DiffusionUNetTransformerBlock(nn.Module): method __init__ (line 78) | def __init__( method forward (line 117) | def forward(self, x: torch.Tensor, context: torch.Tensor | None = None... class SpatialTransformer (line 129) | class SpatialTransformer(nn.Module): method __init__ (line 152) | def __init__( method forward (line 214) | def forward(self, x: torch.Tensor, context: torch.Tensor | None = None... function get_timestep_embedding (line 245) | def get_timestep_embedding(timesteps: torch.Tensor, embedding_dim: int, ... class DiffusionUnetDownsample (line 272) | class DiffusionUnetDownsample(nn.Module): method __init__ (line 286) | def __init__( method forward (line 308) | def forward(self, x: torch.Tensor, emb: torch.Tensor | None = None) ->... class WrappedUpsample (line 319) | class WrappedUpsample(Upsample): method forward (line 324) | def forward(self, x: torch.Tensor, emb: torch.Tensor | None = None) ->... class DiffusionUNetResnetBlock (line 330) | class DiffusionUNetResnetBlock(nn.Module): method __init__ (line 345) | def __init__( method forward (line 418) | def forward(self, x: torch.Tensor, emb: torch.Tensor) -> torch.Tensor: class DownBlock (line 445) | class DownBlock(nn.Module): method __init__ (line 462) | def __init__( method forward (line 518) | def forward( class AttnDownBlock (line 535) | class AttnDownBlock(nn.Module): method __init__ (line 557) | def __init__( method forward (line 631) | def forward( class CrossAttnDownBlock (line 649) | class CrossAttnDownBlock(nn.Module): method __init__ (line 675) | def __init__( method forward (line 759) | def forward( class AttnMidBlock (line 776) | class AttnMidBlock(nn.Module): method __init__ (line 793) | def __init__( method forward (line 835) | def forward( class CrossAttnMidBlock (line 846) | class CrossAttnMidBlock(nn.Module): method __init__ (line 866) | def __init__( method forward (line 916) | def forward( class UpBlock (line 926) | class UpBlock(nn.Module): method __init__ (line 943) | def __init__( method forward (line 1013) | def forward( class AttnUpBlock (line 1035) | class AttnUpBlock(nn.Module): method __init__ (line 1057) | def __init__( method forward (line 1146) | def forward( class CrossAttnUpBlock (line 1169) | class CrossAttnUpBlock(nn.Module): method __init__ (line 1195) | def __init__( method forward (line 1293) | def forward( function get_down_block (line 1315) | def get_down_block( function get_mid_block (line 1386) | def get_mid_block( function get_up_block (line 1432) | def get_up_block( class DiffusionModelUNet (line 1507) | class DiffusionModelUNet(nn.Module): method __init__ (line 1537) | def __init__( method forward (line 1733) | def forward( method load_old_state_dict (line 1810) | def load_old_state_dict(self, old_state_dict: dict, verbose=False) -> ... class DiffusionModelEncoder (line 1877) | class DiffusionModelEncoder(nn.Module): method __init__ (line 1901) | def __init__( method forward (line 2022) | def forward( FILE: monai/networks/nets/dints.py class CellInterface (line 40) | class CellInterface(torch.nn.Module): method forward (line 43) | def forward(self, x: torch.Tensor, weight: torch.Tensor | None) -> tor... class StemInterface (line 48) | class StemInterface(torch.nn.Module): method forward (line 51) | def forward(self, x: torch.Tensor) -> torch.Tensor: # type: ignore class StemTS (line 55) | class StemTS(StemInterface): method __init__ (line 58) | def __init__(self, *mod): method forward (line 62) | def forward(self, x: torch.Tensor) -> torch.Tensor: function _dfs (line 66) | def _dfs(node, paths): class _IdentityWithRAMCost (line 74) | class _IdentityWithRAMCost(nn.Identity): method __init__ (line 76) | def __init__(self, *args, **kwargs): class _ActiConvNormBlockWithRAMCost (line 81) | class _ActiConvNormBlockWithRAMCost(ActiConvNormBlock): method __init__ (line 93) | def __init__( class _P3DActiConvNormBlockWithRAMCost (line 107) | class _P3DActiConvNormBlockWithRAMCost(P3DActiConvNormBlock): method __init__ (line 109) | def __init__( class _FactorizedIncreaseBlockWithRAMCost (line 125) | class _FactorizedIncreaseBlockWithRAMCost(FactorizedIncreaseBlock): method __init__ (line 127) | def __init__( class _FactorizedReduceBlockWithRAMCost (line 142) | class _FactorizedReduceBlockWithRAMCost(FactorizedReduceBlock): method __init__ (line 144) | def __init__( class MixedOp (line 159) | class MixedOp(nn.Module): method __init__ (line 168) | def __init__(self, c: int, ops: dict, arch_code_c=None): method forward (line 177) | def forward(self, x: torch.Tensor, weight: torch.Tensor | None = None): class Cell (line 193) | class Cell(CellInterface): method __init__ (line 239) | def __init__( method forward (line 305) | def forward(self, x: torch.Tensor, weight: torch.Tensor | None) -> tor... class DiNTS (line 316) | class DiNTS(nn.Module): method __init__ (line 354) | def __init__( method weight_parameters (line 481) | def weight_parameters(self): method forward (line 484) | def forward(self, x: torch.Tensor): class TopologyConstruction (line 517) | class TopologyConstruction(nn.Module): method __init__ (line 555) | def __init__( method forward (line 628) | def forward(self, x): class TopologyInstance (line 632) | class TopologyInstance(TopologyConstruction): method __init__ (line 637) | def __init__( method forward (line 669) | def forward(self, x: list[torch.Tensor]) -> list[torch.Tensor]: class TopologySearch (line 688) | class TopologySearch(TopologyConstruction): method __init__ (line 737) | def __init__( method gen_mtx (line 799) | def gen_mtx(self, depth: int): method weight_parameters (line 838) | def weight_parameters(self): method get_prob_a (line 841) | def get_prob_a(self, child: bool = False): method get_ram_cost_usage (line 873) | def get_ram_cost_usage(self, in_size, full: bool = False): method get_topology_entropy (line 906) | def get_topology_entropy(self, probs): method decode (line 944) | def decode(self): method forward (line 1020) | def forward(self, x): FILE: monai/networks/nets/dynunet.py class DynUNetSkipLayer (line 26) | class DynUNetSkipLayer(nn.Module): method __init__ (line 38) | def __init__(self, index, downsample, upsample, next_layer, heads=None... method forward (line 47) | def forward(self, x): class DynUNet (line 57) | class DynUNet(nn.Module): method __init__ (line 131) | def __init__( method check_kernel_stride (line 237) | def check_kernel_stride(self): method check_deep_supr_num (line 254) | def check_deep_supr_num(self): method check_filters (line 262) | def check_filters(self): method forward (line 269) | def forward(self, x): method get_input_block (line 279) | def get_input_block(self): method get_bottleneck (line 291) | def get_bottleneck(self): method get_output_block (line 303) | def get_output_block(self, idx: int): method get_downsamples (line 306) | def get_downsamples(self): method get_upsamples (line 311) | def get_upsamples(self): method get_module_list (line 325) | def get_module_list( method get_deep_supervision_heads (line 370) | def get_deep_supervision_heads(self): method initialize_weights (line 374) | def initialize_weights(module): FILE: monai/networks/nets/efficientnet.py class MBConvBlock (line 75) | class MBConvBlock(nn.Module): method __init__ (line 77) | def __init__( method forward (line 181) | def forward(self, inputs: torch.Tensor): method set_swish (line 221) | def set_swish(self, memory_efficient: bool = True) -> None: class EfficientNet (line 230) | class EfficientNet(nn.Module): method __init__ (line 232) | def __init__( method set_swish (line 410) | def set_swish(self, memory_efficient: bool = True) -> None: method forward (line 425) | def forward(self, inputs: torch.Tensor): method _initialize_weights (line 451) | def _initialize_weights(self) -> None: class EfficientNetBN (line 478) | class EfficientNetBN(EfficientNet): method __init__ (line 480) | def __init__( class EfficientNetBNFeatures (line 565) | class EfficientNetBNFeatures(EfficientNet): method __init__ (line 567) | def __init__( method forward (line 622) | def forward(self, inputs: torch.Tensor): class EfficientNetEncoder (line 645) | class EfficientNetEncoder(EfficientNetBNFeatures, BaseEncoder): method get_encoder_parameters (line 664) | def get_encoder_parameters(cls) -> list[dict]: method num_channels_per_output (line 685) | def num_channels_per_output(cls) -> list[tuple[int, ...]]: method num_outputs (line 703) | def num_outputs(cls) -> list[int]: method get_encoder_names (line 712) | def get_encoder_names(cls) -> list[str]: function get_efficientnet_image_size (line 719) | def get_efficientnet_image_size(model_name: str) -> int: function drop_connect (line 740) | def drop_connect(inputs: torch.Tensor, p: float, training: bool) -> torc... function _load_state_dict (line 787) | def _load_state_dict(model: nn.Module, arch: str, progress: bool, adv_pr... function _get_same_padding_conv_nd (line 808) | def _get_same_padding_conv_nd( function _make_same_padder (line 850) | def _make_same_padder(conv_op: nn.Conv1d | nn.Conv2d | nn.Conv3d, image_... function _round_filters (line 874) | def _round_filters(filters: int, width_coefficient: float | None, depth_... function _round_repeats (line 901) | def _round_repeats(repeats: int, depth_coefficient: float | None) -> int: function _calculate_output_image_size (line 919) | def _calculate_output_image_size(input_image_size: list[int], stride: in... class BlockArgs (line 944) | class BlockArgs(NamedTuple): method from_string (line 960) | def from_string(block_string: str): method to_string (line 999) | def to_string(self): FILE: monai/networks/nets/flexible_unet.py class FlexUNetEncoderRegister (line 33) | class FlexUNetEncoderRegister: method __init__ (line 42) | def __init__(self): method register_class (line 45) | def register_class(self, name: type[Any] | str): class UNetDecoder (line 85) | class UNetDecoder(nn.Module): method __init__ (line 113) | def __init__( method forward (line 160) | def forward(self, features: list[torch.Tensor], skip_connect: int = 4): class SegmentationHead (line 175) | class SegmentationHead(nn.Sequential): method __init__ (line 191) | def __init__( class FlexibleUNet (line 219) | class FlexibleUNet(nn.Module): method __init__ (line 224) | def __init__( method forward (line 330) | def forward(self, inputs: torch.Tensor): FILE: monai/networks/nets/fullyconnectednet.py function _get_adn_layer (line 25) | def _get_adn_layer(act: tuple | str | None, dropout: tuple | str | float... class FullyConnectedNet (line 31) | class FullyConnectedNet(nn.Sequential): method __init__ (line 53) | def __init__( method _get_layer (line 84) | def _get_layer(self, in_channels: int, out_channels: int, bias: bool) ... class VarFullyConnectedNet (line 91) | class VarFullyConnectedNet(nn.Module): method __init__ (line 114) | def __init__( method _get_layer (line 152) | def _get_layer(self, in_channels: int, out_channels: int, bias: bool) ... method encode_forward (line 157) | def encode_forward(self, x: torch.Tensor) -> tuple[torch.Tensor, torch... method decode_forward (line 164) | def decode_forward(self, z: torch.Tensor, use_sigmoid: bool = True) ->... method reparameterize (line 174) | def reparameterize(self, mu: torch.Tensor, logvar: torch.Tensor) -> to... method forward (line 182) | def forward(self, x: torch.Tensor) -> tuple[torch.Tensor, torch.Tensor... FILE: monai/networks/nets/generator.py class Generator (line 26) | class Generator(nn.Module): method __init__ (line 61) | def __init__( method _get_layer (line 103) | def _get_layer( method forward (line 146) | def forward(self, x: torch.Tensor) -> torch.Tensor: FILE: monai/networks/nets/highresnet.py class HighResBlock (line 38) | class HighResBlock(nn.Module): method __init__ (line 40) | def __init__( method forward (line 103) | def forward(self, x: torch.Tensor) -> torch.Tensor: class HighResNet (line 108) | class HighResNet(nn.Module): method __init__ (line 139) | def __init__( method forward (line 225) | def forward(self, x: torch.Tensor) -> torch.Tensor: FILE: monai/networks/nets/hovernet.py class _DenseLayerDecoder (line 51) | class _DenseLayerDecoder(nn.Module): method __init__ (line 53) | def __init__( method forward (line 95) | def forward(self, x: torch.Tensor) -> torch.Tensor: class _DecoderBlock (line 106) | class _DecoderBlock(nn.Sequential): method __init__ (line 108) | def __init__( class _DenseLayer (line 163) | class _DenseLayer(nn.Sequential): method __init__ (line 165) | def __init__( class _Transition (line 224) | class _Transition(nn.Sequential): method __init__ (line 226) | def __init__( class _ResidualBlock (line 241) | class _ResidualBlock(nn.Module): method __init__ (line 243) | def __init__( method forward (line 300) | def forward(self, x: torch.Tensor) -> torch.Tensor: class _DecoderBranch (line 319) | class _DecoderBranch(nn.ModuleList): method __init__ (line 321) | def __init__( method forward (line 394) | def forward(self, xin: torch.Tensor, short_cuts: list[torch.Tensor]) -... class HoVerNet (line 412) | class HoVerNet(nn.Module): method __init__ (line 459) | def __init__( method forward (line 582) | def forward(self, x: torch.Tensor) -> dict[str, torch.Tensor]: function _load_pretrained_encoder (line 612) | def _load_pretrained_encoder(model: nn.Module, state_dict: OrderedDict |... function _remap_preact_resnet_model (line 628) | def _remap_preact_resnet_model(model_url: str): function _remap_standard_resnet_model (line 658) | def _remap_standard_resnet_model(model_url: str, state_dict_key: str | N... FILE: monai/networks/nets/masked_autoencoder_vit.py class MaskedAutoEncoderViT (line 32) | class MaskedAutoEncoderViT(nn.Module): method __init__ (line 40) | def __init__( method _init_weights (line 154) | def _init_weights(self): method _masking (line 179) | def _masking(self, x, masking_ratio: float | None = None): method forward (line 191) | def forward(self, x, masking_ratio: float | None = None): FILE: monai/networks/nets/mednext.py class MedNeXt (line 47) | class MedNeXt(nn.Module): method __init__ (line 69) | def __init__( method forward (line 215) | def forward(self, x: torch.Tensor) -> torch.Tensor | Sequence[torch.Te... function create_mednext (line 269) | def create_mednext( FILE: monai/networks/nets/milmodel.py class MILModel (line 24) | class MILModel(nn.Module): method __init__ (line 53) | def __init__( method calc_head (line 172) | def calc_head(self, x: torch.Tensor) -> torch.Tensor: method forward (line 227) | def forward(self, x: torch.Tensor, no_head: bool = False) -> torch.Ten... FILE: monai/networks/nets/netadapter.py class NetAdapter (line 26) | class NetAdapter(torch.nn.Module): method __init__ (line 52) | def __init__( method forward (line 108) | def forward(self, x): FILE: monai/networks/nets/patchgan_discriminator.py class MultiScalePatchDiscriminator (line 24) | class MultiScalePatchDiscriminator(nn.Sequential): method __init__ (line 50) | def __init__( method forward (line 96) | def forward(self, i: torch.Tensor) -> tuple[list[torch.Tensor], list[l... class PatchDiscriminator (line 116) | class PatchDiscriminator(nn.Sequential): method __init__ (line 137) | def __init__( method forward (line 217) | def forward(self, x: torch.Tensor) -> list[torch.Tensor]: FILE: monai/networks/nets/quicknat.py class SkipConnectionWithIdx (line 35) | class SkipConnectionWithIdx(SkipConnection): method forward (line 45) | def forward(self, input, indices): # type: ignore[override] class SequentialWithIdx (line 49) | class SequentialWithIdx(nn.Sequential): method __init__ (line 57) | def __init__(self, *args): method forward (line 60) | def forward(self, input, indices): # type: ignore[override] class ClassifierBlock (line 66) | class ClassifierBlock(Convolution): method __init__ (line 84) | def __init__(self, spatial_dims, in_channels, out_channels, strides, k... method forward (line 87) | def forward(self, input: torch.Tensor, weights=None, indices=None): class ConvConcatDenseBlock (line 104) | class ConvConcatDenseBlock(ConvDenseBlock): method __init__ (line 123) | def __init__( method _get_layer (line 143) | def _get_layer(self, in_channels, out_channels, dilation): method forward (line 168) | def forward(self, input, _): # type: ignore[override] class Encoder (line 197) | class Encoder(ConvConcatDenseBlock): method __init__ (line 214) | def __init__(self, in_channels: int, max_pool, se_layer, dropout, kern... method forward (line 218) | def forward(self, input, indices=None): # type: ignore[override] class Decoder (line 226) | class Decoder(ConvConcatDenseBlock): method __init__ (line 242) | def __init__(self, in_channels: int, un_pool, se_layer, dropout, kerne... method forward (line 246) | def forward(self, input, indices): # type: ignore[override] class Bottleneck (line 252) | class Bottleneck(ConvConcatDenseBlock): method __init__ (line 268) | def __init__(self, in_channels: int, se_layer, dropout, max_pool, un_p... method forward (line 273) | def forward(self, input, indices): # type: ignore[override] class Quicknat (line 280) | class Quicknat(nn.Module): method __init__ (line 350) | def __init__( method get_selayer (line 409) | def get_selayer(self, n_filters, se_block_type="None"): method is_cuda (line 433) | def is_cuda(self): method forward (line 439) | def forward(self, input: torch.Tensor) -> torch.Tensor: FILE: monai/networks/nets/regressor.py class Regressor (line 29) | class Regressor(nn.Module): method __init__ (line 60) | def __init__( method _get_layer (line 104) | def _get_layer( method _get_final_layer (line 145) | def _get_final_layer(self, in_shape: Sequence[int]): method forward (line 149) | def forward(self, x: torch.Tensor) -> torch.Tensor: FILE: monai/networks/nets/regunet.py class RegUNet (line 30) | class RegUNet(nn.Module): method __init__ (line 44) | def __init__( method build_layers (line 111) | def build_layers(self): method build_encode_layers (line 115) | def build_encode_layers(self): method build_conv_block (line 134) | def build_conv_block(self, in_channels, out_channels, kernel_size): method build_down_sampling_block (line 150) | def build_down_sampling_block(self, channels: int): method build_bottom_block (line 153) | def build_bottom_block(self, in_channels: int, out_channels: int): method build_decode_layers (line 170) | def build_decode_layers(self): method build_up_sampling_block (line 191) | def build_up_sampling_block(self, in_channels: int, out_channels: int)... method build_output_block (line 194) | def build_output_block(self) -> nn.Module: method forward (line 204) | def forward(self, x): class AffineHead (line 236) | class AffineHead(nn.Module): method __init__ (line 238) | def __init__( method get_reference_grid (line 278) | def get_reference_grid(image_size: tuple[int] | list[int]) -> torch.Te... method affine_transform (line 283) | def affine_transform(self, theta: torch.Tensor): method forward (line 296) | def forward(self, x: list[torch.Tensor], image_size: list[int]) -> tor... class GlobalNet (line 306) | class GlobalNet(RegUNet): method __init__ (line 317) | def __init__( method build_output_block (line 368) | def build_output_block(self): class AdditiveUpSampleBlock (line 378) | class AdditiveUpSampleBlock(nn.Module): method __init__ (line 380) | def __init__( method forward (line 393) | def forward(self, x: torch.Tensor) -> torch.Tensor: class LocalNet (line 402) | class LocalNet(RegUNet): method __init__ (line 414) | def __init__( method build_bottom_block (line 461) | def build_bottom_block(self, in_channels: int, out_channels: int): method build_up_sampling_block (line 467) | def build_up_sampling_block(self, in_channels: int, out_channels: int)... FILE: monai/networks/nets/resnet.py function get_inplanes (line 63) | def get_inplanes(): function get_avgpool (line 67) | def get_avgpool(): class ResNetBlock (line 71) | class ResNetBlock(nn.Module): method __init__ (line 74) | def __init__( method forward (line 106) | def forward(self, x: torch.Tensor) -> torch.Tensor: class ResNetBottleneck (line 125) | class ResNetBottleneck(nn.Module): method __init__ (line 128) | def __init__( method forward (line 164) | def forward(self, x: torch.Tensor) -> torch.Tensor: class ResNet (line 187) | class ResNet(nn.Module): method __init__ (line 217) | def __init__( method _downsample_basic_block (line 290) | def _downsample_basic_block(self, x: torch.Tensor, planes: int, stride... method _make_layer (line 296) | def _make_layer( method forward (line 346) | def forward(self, x: torch.Tensor) -> torch.Tensor: class ResNetFeatures (line 367) | class ResNetFeatures(ResNet): method __init__ (line 369) | def __init__(self, model_name: str, pretrained: bool = True, spatial_d... method forward (line 405) | def forward(self, inputs: torch.Tensor): class ResNetEncoder (line 439) | class ResNetEncoder(ResNetFeatures, BaseEncoder): method get_encoder_parameters (line 445) | def get_encoder_parameters(cls) -> list[dict]: method num_channels_per_output (line 455) | def num_channels_per_output(cls) -> list[tuple[int, ...]]: method num_outputs (line 468) | def num_outputs(cls) -> list[int]: method get_encoder_names (line 476) | def get_encoder_names(cls) -> list[str]: function _resnet (line 481) | def _resnet( function resnet10 (line 536) | def resnet10(pretrained: bool = False, progress: bool = True, **kwargs: ... function resnet18 (line 548) | def resnet18(pretrained: bool = False, progress: bool = True, **kwargs: ... function resnet34 (line 560) | def resnet34(pretrained: bool = False, progress: bool = True, **kwargs: ... function resnet50 (line 572) | def resnet50(pretrained: bool = False, progress: bool = True, **kwargs: ... function resnet101 (line 584) | def resnet101(pretrained: bool = False, progress: bool = True, **kwargs:... function resnet152 (line 596) | def resnet152(pretrained: bool = False, progress: bool = True, **kwargs:... function resnet200 (line 608) | def resnet200(pretrained: bool = False, progress: bool = True, **kwargs:... function get_pretrained_resnet_medicalnet (line 620) | def get_pretrained_resnet_medicalnet(resnet_depth: int, device: str = "c... function get_medicalnet_pretrained_resnet_args (line 675) | def get_medicalnet_pretrained_resnet_args(resnet_depth: int): function _load_state_dict (line 688) | def _load_state_dict(model: nn.Module, model_name: str, datasets23: bool... FILE: monai/networks/nets/restormer.py class MDTATransformerBlock (line 24) | class MDTATransformerBlock(nn.Module): method __init__ (line 39) | def __init__( method forward (line 55) | def forward(self, x: torch.Tensor) -> torch.Tensor: class OverlapPatchEmbed (line 61) | class OverlapPatchEmbed(Convolution): method __init__ (line 73) | def __init__(self, spatial_dims: int, in_channels: int = 3, embed_dim:... method forward (line 85) | def forward(self, x: torch.Tensor) -> torch.Tensor: class Restormer (line 90) | class Restormer(nn.Module): method __init__ (line 106) | def __init__( method forward (line 294) | def forward(self, x: torch.Tensor) -> torch.Tensor: FILE: monai/networks/nets/segresnet.py class SegResNet (line 29) | class SegResNet(nn.Module): method __init__ (line 59) | def __init__( method _make_down_layers (line 103) | def _make_down_layers(self): method _make_up_layers (line 119) | def _make_up_layers(self): method _make_final_conv (line 149) | def _make_final_conv(self, out_channels: int): method encode (line 156) | def encode(self, x: torch.Tensor) -> tuple[torch.Tensor, list[torch.Te... method decode (line 169) | def decode(self, x: torch.Tensor, down_x: list[torch.Tensor]) -> torch... method forward (line 179) | def forward(self, x: torch.Tensor) -> torch.Tensor: class SegResNetVAE (line 187) | class SegResNetVAE(SegResNet): method __init__ (line 220) | def __init__( method _prepare_vae_modules (line 264) | def _prepare_vae_modules(self): method _get_vae_loss (line 287) | def _get_vae_loss(self, net_input: torch.Tensor, vae_input: torch.Tens... method forward (line 326) | def forward(self, x): FILE: monai/networks/nets/segresnet_ds.py function scales_for_resolution (line 29) | def scales_for_resolution(resolution: tuple | list, n_stages: int | None... function aniso_kernel (line 57) | def aniso_kernel(scale: tuple | list): class SegResBlock (line 69) | class SegResBlock(nn.Module): method __init__ (line 75) | def __init__( method forward (line 120) | def forward(self, x): class SegResEncoder (line 127) | class SegResEncoder(nn.Module): method __init__ (line 144) | def __init__( method _forward (line 216) | def _forward(self, x: torch.Tensor) -> list[torch.Tensor]: method forward (line 230) | def forward(self, x: torch.Tensor) -> list[torch.Tensor]: class SegResNetDS (line 234) | class SegResNetDS(nn.Module): method __init__ (line 259) | def __init__( method shape_factor (line 373) | def shape_factor(self): method is_valid_shape (line 383) | def is_valid_shape(self, x): method _forward (line 390) | def _forward(self, x: torch.Tensor) -> None | torch.Tensor | list[torc... method forward (line 426) | def forward(self, x: torch.Tensor) -> None | torch.Tensor | list[torch... class SegResNetDS2 (line 430) | class SegResNetDS2(SegResNetDS): method __init__ (line 453) | def __init__( method forward (line 485) | def forward( # type: ignore method set_auto_grad (line 542) | def set_auto_grad(self, auto_freeze=False, point_freeze=False): FILE: monai/networks/nets/senet.py class SENet (line 50) | class SENet(nn.Module): method __init__ (line 96) | def __init__( method _make_layer (line 214) | def _make_layer( method features (line 263) | def features(self, x: torch.Tensor): method logits (line 271) | def logits(self, x: torch.Tensor): method forward (line 279) | def forward(self, x: torch.Tensor) -> torch.Tensor: function _load_state_dict (line 285) | def _load_state_dict(model: nn.Module, arch: str, progress: bool): class SENet154 (line 336) | class SENet154(SENet): method __init__ (line 339) | def __init__( class SEResNet50 (line 354) | class SEResNet50(SENet): method __init__ (line 357) | def __init__( class SEResNet101 (line 386) | class SEResNet101(SENet): method __init__ (line 391) | def __init__( class SEResNet152 (line 418) | class SEResNet152(SENet): method __init__ (line 423) | def __init__( class SEResNext50 (line 450) | class SEResNext50(SENet): method __init__ (line 455) | def __init__( class SEResNext101 (line 484) | class SEResNext101(SENet): method __init__ (line 489) | def __init__( FILE: monai/networks/nets/spade_autoencoderkl.py class SPADEResBlock (line 28) | class SPADEResBlock(nn.Module): method __init__ (line 45) | def __init__( method forward (line 109) | def forward(self, x: torch.Tensor, seg: torch.Tensor) -> torch.Tensor: class SPADEDecoder (line 123) | class SPADEDecoder(nn.Module): method __init__ (line 146) | def __init__( method forward (line 300) | def forward(self, x: torch.Tensor, seg: torch.Tensor) -> torch.Tensor: class SPADEAutoencoderKL (line 309) | class SPADEAutoencoderKL(nn.Module): method __init__ (line 332) | def __init__( method encode (line 428) | def encode(self, x: torch.Tensor) -> tuple[torch.Tensor, torch.Tensor]: method sampling (line 444) | def sampling(self, z_mu: torch.Tensor, z_sigma: torch.Tensor) -> torch... method reconstruct (line 461) | def reconstruct(self, x: torch.Tensor, seg: torch.Tensor) -> torch.Ten... method decode (line 475) | def decode(self, z: torch.Tensor, seg: torch.Tensor) -> torch.Tensor: method forward (line 489) | def forward(self, x: torch.Tensor, seg: torch.Tensor) -> tuple[torch.T... method encode_stage_2_inputs (line 495) | def encode_stage_2_inputs(self, x: torch.Tensor) -> torch.Tensor: method decode_stage_2_outputs (line 500) | def decode_stage_2_outputs(self, z: torch.Tensor, seg: torch.Tensor) -... FILE: monai/networks/nets/spade_diffusion_model_unet.py class SPADEDiffResBlock (line 56) | class SPADEDiffResBlock(nn.Module): method __init__ (line 74) | def __init__( method forward (line 167) | def forward(self, x: torch.Tensor, emb: torch.Tensor, seg: torch.Tenso... class SPADEUpBlock (line 194) | class SPADEUpBlock(nn.Module): method __init__ (line 214) | def __init__( method forward (line 287) | def forward( class SPADEAttnUpBlock (line 309) | class SPADEAttnUpBlock(nn.Module): method __init__ (line 334) | def __init__( method forward (line 425) | def forward( class SPADECrossAttnUpBlock (line 448) | class SPADECrossAttnUpBlock(nn.Module): method __init__ (line 474) | def __init__( method forward (line 572) | def forward( function get_spade_up_block (line 594) | def get_spade_up_block( class SPADEDiffusionModelUNet (line 673) | class SPADEDiffusionModelUNet(nn.Module): method __init__ (line 702) | def __init__( method forward (line 895) | def forward( FILE: monai/networks/nets/spade_network.py class UpsamplingModes (line 30) | class UpsamplingModes(StrEnum): class SPADENetResBlock (line 36) | class SPADENetResBlock(nn.Module): method __init__ (line 50) | def __init__( method forward (line 112) | def forward(self, x, seg): method shortcut (line 119) | def shortcut(self, x, seg): class SPADEEncoder (line 127) | class SPADEEncoder(nn.Module): method __init__ (line 143) | def __init__( method forward (line 192) | def forward(self, x): method encode (line 200) | def encode(self, x): method reparameterize (line 208) | def reparameterize(self, mu, logvar): class SPADEDecoder (line 214) | class SPADEDecoder(nn.Module): method __init__ (line 236) | def __init__( method forward (line 308) | def forward(self, seg, z: torch.Tensor | None = None): class SPADENet (line 337) | class SPADENet(nn.Module): method __init__ (line 360) | def __init__( method forward (line 419) | def forward(self, seg: torch.Tensor, x: torch.Tensor | None = None): method encode (line 428) | def encode(self, x: torch.Tensor): method decode (line 434) | def decode(self, seg: torch.Tensor, z: torch.Tensor | None = None): FILE: monai/networks/nets/swin_unetr.py class SwinUNETR (line 45) | class SwinUNETR(nn.Module): method __init__ (line 52) | def __init__( method load_from (line 258) | def load_from(self, weights): method _check_input_size (line 305) | def _check_input_size(self, spatial_shape): method forward (line 315) | def forward(self, x_in): function window_partition (line 333) | def window_partition(x, window_size): function window_reverse (line 367) | def window_reverse(windows, window_size, dims): function get_window_size (line 399) | def get_window_size(x_size, window_size, shift_size=None): class WindowAttention (line 426) | class WindowAttention(nn.Module): method __init__ (line 434) | def __init__( method forward (line 509) | def forward(self, x, mask): class SwinTransformerBlock (line 535) | class SwinTransformerBlock(nn.Module): method __init__ (line 543) | def __init__( method forward_part1 (line 596) | def forward_part1(self, x, mask_matrix): method forward_part2 (line 650) | def forward_part2(self, x): method load_from (line 653) | def load_from(self, weights, n_block, layer): method forward (line 687) | def forward(self, x, mask_matrix): class PatchMergingV2 (line 701) | class PatchMergingV2(nn.Module): method __init__ (line 709) | def __init__(self, dim: int, norm_layer: type[LayerNorm] = nn.LayerNor... method forward (line 726) | def forward(self, x): class PatchMerging (line 749) | class PatchMerging(PatchMergingV2): method forward (line 752) | def forward(self, x): function compute_mask (line 779) | def compute_mask(dims, window_size, shift_size, device): class BasicLayer (line 819) | class BasicLayer(nn.Module): method __init__ (line 827) | def __init__( method forward (line 886) | def forward(self, x): class SwinTransformer (line 919) | class SwinTransformer(nn.Module): method __init__ (line 927) | def __init__( method proj_out (line 1040) | def proj_out(self, x, normalize=False): method forward (line 1055) | def forward(self, x, normalize=True): function filter_swinunetr (line 1078) | def filter_swinunetr(key, value): FILE: monai/networks/nets/torchvision_fc.py class TorchVisionFCModel (line 24) | class TorchVisionFCModel(NetAdapter): method __init__ (line 100) | def __init__( FILE: monai/networks/nets/transchex.py class BertPreTrainedModel (line 32) | class BertPreTrainedModel(nn.Module): method __init__ (line 41) | def __init__(self, *inputs, **kwargs) -> None: method init_bert_weights (line 44) | def init_bert_weights(self, module): method from_pretrained (line 54) | def from_pretrained( class BertAttention (line 112) | class BertAttention(nn.Module): method __init__ (line 118) | def __init__(self, config) -> None: method transpose_for_scores (line 128) | def transpose_for_scores(self, x): method forward (line 133) | def forward(self, hidden_states, context): class BertOutput (line 150) | class BertOutput(nn.Module): method __init__ (line 156) | def __init__(self, config) -> None: method forward (line 162) | def forward(self, hidden_states, input_tensor): class BertMixedLayer (line 169) | class BertMixedLayer(nn.Module): method __init__ (line 175) | def __init__(self, config) -> None: method forward (line 182) | def forward(self, x, y): class Pooler (line 188) | class Pooler(nn.Module): method __init__ (line 194) | def __init__(self, hidden_size) -> None: method forward (line 199) | def forward(self, hidden_states): class MultiModal (line 206) | class MultiModal(BertPreTrainedModel): method __init__ (line 211) | def __init__( method _get_hidden_states (line 230) | def _get_hidden_states(layer_output): method forward (line 240) | def forward(self, input_ids, token_type_ids=None, vision_feats=None, a... class Transchex (line 251) | class Transchex(torch.nn.Module): method __init__ (line 257) | def __init__( method forward (line 375) | def forward(self, input_ids, token_type_ids=None, vision_feats=None): FILE: monai/networks/nets/transformer.py class AbsolutePositionalEmbedding (line 22) | class AbsolutePositionalEmbedding(nn.Module): method __init__ (line 30) | def __init__(self, max_seq_len: int, embedding_dim: int) -> None: method forward (line 36) | def forward(self, x: torch.Tensor) -> torch.Tensor: class DecoderOnlyTransformer (line 43) | class DecoderOnlyTransformer(nn.Module): method __init__ (line 60) | def __init__( method forward (line 106) | def forward(self, x: torch.Tensor, context: torch.Tensor | None = None... method load_old_state_dict (line 116) | def load_old_state_dict(self, old_state_dict: dict, verbose=False) -> ... FILE: monai/networks/nets/unet.py class UNet (line 28) | class UNet(nn.Module): method __init__ (line 107) | def __init__( method _get_connection_block (line 185) | def _get_connection_block(self, down_path: nn.Module, up_path: nn.Modu... method _get_down_layer (line 198) | def _get_down_layer(self, in_channels: int, out_channels: int, strides... method _get_bottom_layer (line 240) | def _get_bottom_layer(self, in_channels: int, out_channels: int) -> nn... method _get_up_layer (line 250) | def _get_up_layer(self, in_channels: int, out_channels: int, strides: ... method forward (line 297) | def forward(self, x: torch.Tensor) -> torch.Tensor: class CheckpointUNet (line 302) | class CheckpointUNet(UNet): method _get_connection_block (line 310) | def _get_connection_block(self, down_path: nn.Module, up_path: nn.Modu... FILE: monai/networks/nets/unetr.py class UNETR (line 24) | class UNETR(nn.Module): method __init__ (line 30) | def __init__( method proj_feat (line 193) | def proj_feat(self, x): method forward (line 199) | def forward(self, x_in): FILE: monai/networks/nets/varautoencoder.py class VarAutoEncoder (line 28) | class VarAutoEncoder(AutoEncoder): method __init__ (line 74) | def __init__( method encode_forward (line 128) | def encode_forward(self, x: torch.Tensor) -> tuple[torch.Tensor, torch... method decode_forward (line 136) | def decode_forward(self, z: torch.Tensor, use_sigmoid: bool = True) ->... method reparameterize (line 144) | def reparameterize(self, mu: torch.Tensor, logvar: torch.Tensor) -> to... method forward (line 152) | def forward(self, x: torch.Tensor) -> tuple[torch.Tensor, torch.Tensor... FILE: monai/networks/nets/vista3d.py function vista3d132 (line 36) | def vista3d132(encoder_embed_dim: int = 48, in_channels: int = 1): class VISTA3D (line 59) | class VISTA3D(nn.Module): method __init__ (line 71) | def __init__(self, image_encoder: nn.Module, class_head: nn.Module, po... method update_slidingwindow_padding (line 82) | def update_slidingwindow_padding( method get_foreground_class_count (line 111) | def get_foreground_class_count(self, class_vector: torch.Tensor | None... method convert_point_label (line 120) | def convert_point_label( method sample_points_patch_val (line 149) | def sample_points_patch_val( method update_point_to_patch (line 182) | def update_point_to_patch( method connected_components_combine (line 217) | def connected_components_combine( method gaussian_combine (line 274) | def gaussian_combine( method set_auto_grad (line 305) | def set_auto_grad(self, auto_freeze: bool = False, point_freeze: bool ... method forward (line 333) | def forward( class PointMappingSAM (line 472) | class PointMappingSAM(nn.Module): method __init__ (line 473) | def __init__(self, feature_size: int, max_prompt: int = 32, n_classes:... method forward (line 519) | def forward( class ClassMappingClassify (line 592) | class ClassMappingClassify(nn.Module): method __init__ (line 595) | def __init__(self, n_classes: int, feature_size: int, use_mlp: bool = ... method forward (line 632) | def forward(self, src: torch.Tensor, class_vector: torch.Tensor): class TwoWayTransformer (line 644) | class TwoWayTransformer(nn.Module): method __init__ (line 645) | def __init__( method forward (line 689) | def forward( class TwoWayAttentionBlock (line 727) | class TwoWayAttentionBlock(nn.Module): method __init__ (line 728) | def __init__( method forward (line 766) | def forward( class Attention (line 800) | class Attention(nn.Module): method __init__ (line 812) | def __init__(self, embedding_dim: int, num_heads: int, downsample_rate... method _separate_heads (line 825) | def _separate_heads(self, x: torch.Tensor, num_heads: int) -> torch.Te... method _recombine_heads (line 831) | def _recombine_heads(self, x: torch.Tensor) -> torch.Tensor: method forward (line 837) | def forward(self, q: torch.Tensor, k: torch.Tensor, v: torch.Tensor) -... class PositionEmbeddingRandom (line 862) | class PositionEmbeddingRandom(nn.Module): method __init__ (line 872) | def __init__(self, num_pos_feats: int = 64, scale: float | None = None... method _pe_encoding (line 878) | def _pe_encoding(self, coords: torch.torch.Tensor) -> torch.torch.Tensor: method forward (line 890) | def forward(self, size: tuple[int, int, int]) -> torch.torch.Tensor: method forward_with_coords (line 905) | def forward_with_coords( class MLP (line 917) | class MLP(nn.Module): method __init__ (line 930) | def __init__( method forward (line 939) | def forward(self, x: torch.Tensor) -> torch.Tensor: FILE: monai/networks/nets/vit.py class ViT (line 25) | class ViT(nn.Module): method __init__ (line 33) | def __init__( method forward (line 121) | def forward(self, x): FILE: monai/networks/nets/vitautoenc.py class ViTAutoEnc (line 28) | class ViTAutoEnc(nn.Module): method __init__ (line 36) | def __init__( method forward (line 117) | def forward(self, x): FILE: monai/networks/nets/vnet.py function get_acti_layer (line 24) | def get_acti_layer(act: tuple[str, dict] | str, nchan: int = 0): class LUConv (line 32) | class LUConv(nn.Module): method __init__ (line 34) | def __init__(self, spatial_dims: int, nchan: int, act: tuple[str, dict... method forward (line 48) | def forward(self, x): function _make_nconv (line 54) | def _make_nconv(spatial_dims: int, nchan: int, depth: int, act: tuple[st... class InputTransition (line 61) | class InputTransition(nn.Module): method __init__ (line 63) | def __init__( method forward (line 87) | def forward(self, x): class DownTransition (line 95) | class DownTransition(nn.Module): method __init__ (line 97) | def __init__( method forward (line 121) | def forward(self, x): class UpTransition (line 132) | class UpTransition(nn.Module): method __init__ (line 134) | def __init__( method forward (line 158) | def forward(self, x, skipx): class OutputTransition (line 171) | class OutputTransition(nn.Module): method __init__ (line 173) | def __init__( method forward (line 192) | def forward(self, x): class VNet (line 200) | class VNet(nn.Module): method __init__ (line 240) | def __init__( method forward (line 268) | def forward(self, x): FILE: monai/networks/nets/voxelmorph.py class VoxelMorphUNet (line 28) | class VoxelMorphUNet(nn.Module): method __init__ (line 67) | def __init__( method _get_connection_block (line 205) | def _get_connection_block(self, down_path: nn.Module, up_path: nn.Modu... method _get_down_layer (line 220) | def _get_down_layer(self, in_channels: int, out_channels: int, is_top:... method _get_bottom_layer (line 259) | def _get_bottom_layer(self, in_channels: int, out_channels: int) -> nn... method _get_up_layer (line 285) | def _get_up_layer(self, in_channels: int, out_channels: int, is_top: b... method forward (line 332) | def forward(self, concatenated_pairs: torch.Tensor) -> torch.Tensor: class VoxelMorph (line 340) | class VoxelMorph(nn.Module): method __init__ (line 410) | def __init__( method forward (line 443) | def forward(self, moving: torch.Tensor, fixed: torch.Tensor) -> tuple[... FILE: monai/networks/nets/vqvae.py class VQVAEResidualUnit (line 27) | class VQVAEResidualUnit(nn.Module): method __init__ (line 44) | def __init__( method forward (line 80) | def forward(self, x): class Encoder (line 84) | class Encoder(nn.Module): method __init__ (line 101) | def __init__( method forward (line 168) | def forward(self, x: torch.Tensor) -> torch.Tensor: class Decoder (line 174) | class Decoder(nn.Module): method __init__ (line 192) | def __init__( method forward (line 269) | def forward(self, x: torch.Tensor) -> torch.Tensor: class VQVAE (line 275) | class VQVAE(nn.Module): method __init__ (line 306) | def __init__( method encode (line 430) | def encode(self, images: torch.Tensor) -> torch.Tensor: method quantize (line 438) | def quantize(self, encodings: torch.Tensor) -> tuple[torch.Tensor, tor... method decode (line 442) | def decode(self, quantizations: torch.Tensor) -> torch.Tensor: method index_quantize (line 451) | def index_quantize(self, images: torch.Tensor) -> torch.Tensor: method decode_samples (line 454) | def decode_samples(self, embedding_indices: torch.Tensor) -> torch.Ten... method forward (line 457) | def forward(self, images: torch.Tensor) -> tuple[torch.Tensor, torch.T... method encode_stage_2_inputs (line 463) | def encode_stage_2_inputs(self, x: torch.Tensor) -> torch.Tensor: method decode_stage_2_outputs (line 468) | def decode_stage_2_outputs(self, z: torch.Tensor) -> torch.Tensor: FILE: monai/networks/schedulers/ddim.py class DDIMScheduler (line 43) | class DDIMScheduler(Scheduler): method __init__ (line 66) | def __init__( method set_timesteps (line 104) | def set_timesteps(self, num_inference_steps: int, device: str | torch.... method _get_variance (line 130) | def _get_variance(self, timestep: int, prev_timestep: int) -> torch.Te... method step (line 140) | def step( method reversed_step (line 226) | def reversed_step( FILE: monai/networks/schedulers/ddpm.py class DDPMVarianceType (line 41) | class DDPMVarianceType(StrEnum): class DDPMPredictionType (line 53) | class DDPMPredictionType(StrEnum): class DDPMScheduler (line 67) | class DDPMScheduler(Scheduler): method __init__ (line 84) | def __init__( method set_timesteps (line 108) | def set_timesteps(self, num_inference_steps: int, device: str | torch.... method _get_mean (line 128) | def _get_mean(self, timestep: int, x_0: torch.Tensor, x_t: torch.Tenso... method _get_variance (line 153) | def _get_variance(self, timestep: int, predicted_variance: torch.Tenso... method step (line 186) | def step( FILE: monai/networks/schedulers/pndm.py class PNDMPredictionType (line 44) | class PNDMPredictionType(StrEnum): class PNDMScheduler (line 56) | class PNDMScheduler(Scheduler): method __init__ (line 80) | def __init__( method set_timesteps (line 119) | def set_timesteps(self, num_inference_steps: int, device: str | torch.... method step (line 165) | def step(self, model_output: torch.Tensor, timestep: int, sample: torc... method step_prk (line 185) | def step_prk(self, model_output: torch.Tensor, timestep: int, sample: ... method step_plms (line 227) | def step_plms(self, model_output: torch.Tensor, timestep: int, sample:... method _get_prev_sample (line 279) | def _get_prev_sample(self, sample: torch.Tensor, timestep: int, prev_t... FILE: monai/networks/schedulers/rectified_flow.py class RFlowPredictionType (line 41) | class RFlowPredictionType(StrEnum): function timestep_transform (line 51) | def timestep_transform( class RFlowScheduler (line 78) | class RFlowScheduler(Scheduler): method __init__ (line 144) | def __init__( method add_noise (line 180) | def add_noise(self, original_samples: torch.Tensor, noise: torch.Tenso... method set_timesteps (line 207) | def set_timesteps( method sample_timesteps (line 253) | def sample_timesteps(self, x_start): method step (line 283) | def step( FILE: monai/networks/schedulers/scheduler.py function _linear_beta (line 44) | def _linear_beta(num_train_timesteps: int, beta_start: float = 1e-4, bet... function _scaled_linear_beta (line 60) | def _scaled_linear_beta(num_train_timesteps: int, beta_start: float = 1e... function _sigmoid_beta (line 76) | def _sigmoid_beta(num_train_timesteps: int, beta_start: float = 1e-4, be... function _cosine_beta (line 94) | def _cosine_beta(num_train_timesteps: int, s: float = 8e-3): class Scheduler (line 115) | class Scheduler(nn.Module): method __init__ (line 152) | def __init__(self, num_train_timesteps: int = 1000, schedule: str = "l... method add_noise (line 172) | def add_noise(self, original_samples: torch.Tensor, noise: torch.Tenso... method get_velocity (line 196) | def get_velocity(self, sample: torch.Tensor, noise: torch.Tensor, time... FILE: monai/networks/trt_compiler.py function trt_to_torch_dtype_dict (line 51) | def trt_to_torch_dtype_dict(): function get_dynamic_axes (line 63) | def get_dynamic_axes(profiles): function cuassert (line 84) | def cuassert(cuda_ret): class ShapeError (line 98) | class ShapeError(Exception): class TRTEngine (line 104) | class TRTEngine: method __init__ (line 110) | def __init__(self, plan_path, logger=None): method allocate_buffers (line 142) | def allocate_buffers(self, device): method set_inputs (line 157) | def set_inputs(self, feed_dict, stream): method infer (line 193) | def infer(self, stream, use_cuda_graph=False): function make_tensor (line 226) | def make_tensor(d): function unroll_input (line 230) | def unroll_input(input_names, input_example): function parse_groups (line 244) | def parse_groups( class TrtCompiler (line 294) | class TrtCompiler: method __init__ (line 302) | def __init__( method _inputs_to_dict (line 391) | def _inputs_to_dict(self, input_example): method _load_engine (line 398) | def _load_engine(self): method forward (line 417) | def forward(self, model, argv, kwargs): method _onnx_to_trt (line 487) | def _onnx_to_trt(self, onnx_path): method _build_and_save (line 510) | def _build_and_save(self, model, input_example): function trt_forward (line 593) | def trt_forward(self, *argv, **kwargs): function trt_compile (line 601) | def trt_compile( FILE: monai/networks/utils.py function get_profile_shapes (line 76) | def get_profile_shapes(input_shape: Sequence[int], dynamic_batchsize: Se... function has_nvfuser_instance_norm (line 96) | def has_nvfuser_instance_norm(): function look_up_named_module (line 116) | def look_up_named_module(name: str, mod, print_all_options=False): function set_named_module (line 147) | def set_named_module(mod, name: str, new_layer): function one_hot (line 170) | def one_hot(labels: torch.Tensor, num_classes: int, dtype: torch.dtype =... function predict_segmentation (line 223) | def predict_segmentation(logits: torch.Tensor, mutually_exclusive: bool ... function normalize_transform (line 243) | def normalize_transform( function to_norm_affine (line 289) | def to_norm_affine( function normal_init (line 329) | def normal_init( function icnr_init (line 350) | def icnr_init(conv, upsample_factor, init=nn.init.kaiming_normal_): function pixelshuffle (line 370) | def pixelshuffle(x: torch.Tensor, spatial_dims: int, scale_factor: int) ... function pixelunshuffle (line 415) | def pixelunshuffle(x: torch.Tensor, spatial_dims: int, scale_factor: int... function eval_mode (line 458) | def eval_mode(*nets: nn.Module): function train_mode (line 493) | def train_mode(*nets: nn.Module): function get_state_dict (line 528) | def get_state_dict(obj: torch.nn.Module | Mapping): function copy_model_state (line 542) | def copy_model_state( function save_state (line 627) | def save_state(src: torch.nn.Module | dict, path: PathLike, **kwargs): function convert_to_onnx (line 661) | def convert_to_onnx( function convert_to_torchscript (line 796) | def convert_to_torchscript( function _onnx_trt_compile (line 866) | def _onnx_trt_compile( function convert_to_trt (line 940) | def convert_to_trt( function meshgrid_ij (line 1079) | def meshgrid_ij(*tensors): function meshgrid_xy (line 1086) | def meshgrid_xy(*tensors): function _replace_modules (line 1093) | def _replace_modules( function replace_modules (line 1131) | def replace_modules( function replace_modules_temp (line 1169) | def replace_modules_temp( function freeze_layers (line 1192) | def freeze_layers(model: nn.Module, freeze_vars=None, exclude_vars=None): class CastTempType (line 1236) | class CastTempType(nn.Module): method __init__ (line 1241) | def __init__(self, initial_type, temporary_type, submodule): method forward (line 1247) | def forward(self, x): function cast_tensor (line 1257) | def cast_tensor(x, from_dtype=torch.float16, to_dtype=torch.float32): function cast_all (line 1264) | def cast_all(x, from_dtype=torch.float16, to_dtype=torch.float32): class CastToFloat (line 1280) | class CastToFloat(torch.nn.Module): method __init__ (line 1286) | def __init__(self, mod): method forward (line 1290) | def forward(self, x): class CastToFloatAll (line 1297) | class CastToFloatAll(torch.nn.Module): method __init__ (line 1303) | def __init__(self, mod): method forward (line 1307) | def forward(self, *args): function wrap_module (line 1314) | def wrap_module(base_t: type[nn.Module], dest_t: type[nn.Module]) -> Cal... function simple_replace (line 1331) | def simple_replace(base_t: type[nn.Module], dest_t: type[nn.Module]) -> ... function _swap_modules (line 1353) | def _swap_modules(model: nn.Module, mapping: dict[str, nn.Module]) -> nn... function replace_modules_by_type (line 1375) | def replace_modules_by_type( function add_casts_around_norms (line 1401) | def add_casts_around_norms(model: nn.Module) -> nn.Module: FILE: monai/optimizers/lr_finder.py class DataLoaderIter (line 45) | class DataLoaderIter: method __init__ (line 47) | def __init__(self, data_loader: DataLoader, image_extractor: Callable,... method dataset (line 58) | def dataset(self): method inputs_labels_from_batch (line 61) | def inputs_labels_from_batch(self, batch_data): method __iter__ (line 66) | def __iter__(self): method __next__ (line 69) | def __next__(self): class TrainDataLoaderIter (line 74) | class TrainDataLoaderIter(DataLoaderIter): method __init__ (line 76) | def __init__( method __next__ (line 82) | def __next__(self): class ValDataLoaderIter (line 96) | class ValDataLoaderIter(DataLoaderIter): method __init__ (line 117) | def __init__(self, data_loader: DataLoader, image_extractor: Callable,... method __iter__ (line 122) | def __iter__(self): method __next__ (line 128) | def __next__(self): function default_image_extractor (line 133) | def default_image_extractor(x: Any) -> torch.Tensor: function default_label_extractor (line 139) | def default_label_extractor(x: Any) -> torch.Tensor: class LearningRateFinder (line 145) | class LearningRateFinder: method __init__ (line 184) | def __init__( method reset (line 248) | def reset(self) -> None: method range_test (line 255) | def range_test( method _set_learning_rate (line 377) | def _set_learning_rate(self, new_lrs: float | list) -> None: method _check_for_scheduler (line 389) | def _check_for_scheduler(self): method _train_batch (line 395) | def _train_batch( method _validate (line 430) | def _validate(self, val_iter: ValDataLoaderIter, non_blocking_transfer... method get_lrs_and_losses (line 447) | def get_lrs_and_losses(self, skip_start: int = 0, skip_end: int = 0) -... method get_steepest_gradient (line 467) | def get_steepest_gradient(self, skip_start: int = 0, skip_end: int = 0... method plot (line 486) | def plot( FILE: monai/optimizers/lr_scheduler.py class _LRSchedulerMONAI (line 22) | class _LRSchedulerMONAI(_LRScheduler): method __init__ (line 26) | def __init__(self, optimizer: Optimizer, end_lr: float, num_iter: int,... class LinearLR (line 41) | class LinearLR(_LRSchedulerMONAI): method get_lr (line 46) | def get_lr(self): class ExponentialLR (line 51) | class ExponentialLR(_LRSchedulerMONAI): method get_lr (line 56) | def get_lr(self): class WarmupCosineSchedule (line 61) | class WarmupCosineSchedule(LambdaLR): method __init__ (line 66) | def __init__( method lr_lambda (line 98) | def lr_lambda(self, step): method get_lr (line 105) | def get_lr(self): FILE: monai/optimizers/novograd.py class Novograd (line 23) | class Novograd(Optimizer): method __init__ (line 42) | def __init__( method __setstate__ (line 68) | def __setstate__(self, state): method step (line 73) | def step(self, closure: Callable[[], T] | None = None) -> T | None: #... FILE: monai/optimizers/utils.py function generate_param_groups (line 23) | def generate_param_groups( FILE: monai/transforms/adaptors.py function adaptor (line 131) | def adaptor(function, outputs, inputs=None): function apply_alias (line 215) | def apply_alias(fn, name_map): function to_kwargs (line 235) | def to_kwargs(fn): class FunctionSignature (line 243) | class FunctionSignature: method __init__ (line 245) | def __init__(self, function: Callable) -> None: method __repr__ (line 262) | def __repr__(self) -> str: method __str__ (line 266) | def __str__(self) -> str: FILE: monai/transforms/compose.py function execute_compose (line 40) | def execute_compose( class Compose (line 116) | class Compose(Randomizable, InvertibleTransform, LazyTransform): method __init__ (line 231) | def __init__( method lazy (line 259) | def lazy(self, val: bool): method set_random_state (line 262) | def set_random_state(self, seed: int | None = None, state: np.random.R... method randomize (line 270) | def randomize(self, data: Any | None = None) -> None: method get_index_of_first (line 282) | def get_index_of_first(self, predicate): method flatten (line 317) | def flatten(self): method __len__ (line 333) | def __len__(self): method __call__ (line 337) | def __call__(self, input_, start=0, end=None, threading=False, lazy: b... method inverse (line 354) | def inverse(self, data): method _raise_if_not_invertible (line 374) | def _raise_if_not_invertible(data: Any): class OneOf (line 389) | class OneOf(Compose): method __init__ (line 423) | def __init__( method _normalize_probabilities (line 446) | def _normalize_probabilities(self, weights): method flatten (line 457) | def flatten(self): method __call__ (line 473) | def __call__(self, data, start=0, end=None, threading=False, lazy: boo... method inverse (line 508) | def inverse(self, data): class RandomOrder (line 532) | class RandomOrder(Compose): method __init__ (line 557) | def __init__( method __call__ (line 569) | def __call__(self, input_, start=0, end=None, threading=False, lazy: b... method inverse (line 603) | def inverse(self, data): class SomeOf (line 631) | class SomeOf(Compose): method __init__ (line 665) | def __init__( method _ensure_valid_num_transforms (line 683) | def _ensure_valid_num_transforms(self, num_transforms: int | tuple[int... method _normalize_probabilities (line 715) | def _normalize_probabilities(self, weights): method __call__ (line 735) | def __call__(self, data, start=0, end=None, threading=False, lazy: boo... method inverse (line 770) | def inverse(self, data): FILE: monai/transforms/croppad/array.py class Pad (line 81) | class Pad(InvertibleTransform, LazyTransform): method __init__ (line 109) | def __init__( method compute_pad_width (line 121) | def compute_pad_width(self, spatial_shape: Sequence[int]) -> tuple[tup... method __call__ (line 132) | def __call__( # type: ignore[override] method inverse (line 168) | def inverse(self, data: MetaTensor) -> MetaTensor: class SpatialPad (line 182) | class SpatialPad(Pad): method __init__ (line 209) | def __init__( method compute_pad_width (line 221) | def compute_pad_width(self, spatial_shape: Sequence[int]) -> tuple[tup... class BorderPad (line 240) | class BorderPad(Pad): method __init__ (line 270) | def __init__( method compute_pad_width (line 276) | def compute_pad_width(self, spatial_shape: Sequence[int]) -> tuple[tup... class DivisiblePad (line 298) | class DivisiblePad(Pad): method __init__ (line 308) | def __init__( method compute_pad_width (line 339) | def compute_pad_width(self, spatial_shape: Sequence[int]) -> tuple[tup... class Crop (line 345) | class Crop(InvertibleTransform, LazyTransform): method __init__ (line 358) | def __init__(self, lazy: bool = False): method compute_slices (line 362) | def compute_slices( method __call__ (line 408) | def __call__( # type: ignore[override] method inverse (line 427) | def inverse(self, img: MetaTensor) -> MetaTensor: class SpatialCrop (line 437) | class SpatialCrop(Crop): method __init__ (line 454) | def __init__( method __call__ (line 480) | def __call__(self, img: torch.Tensor, lazy: bool | None = None) -> tor... class CenterSpatialCrop (line 490) | class CenterSpatialCrop(Crop): method __init__ (line 509) | def __init__(self, roi_size: Sequence[int] | int, lazy: bool = False) ... method compute_slices (line 513) | def compute_slices(self, spatial_size: Sequence[int]) -> tuple[slice]:... method __call__ (line 518) | def __call__(self, img: torch.Tensor, lazy: bool | None = None) -> tor... class CenterScaleCrop (line 532) | class CenterScaleCrop(Crop): method __init__ (line 545) | def __init__(self, roi_scale: Sequence[float] | float, lazy: bool = Fa... method __call__ (line 549) | def __call__(self, img: torch.Tensor, lazy: bool | None = None) -> tor... class RandSpatialCrop (line 558) | class RandSpatialCrop(Randomizable, Crop): method __init__ (line 586) | def __init__( method randomize (line 602) | def randomize(self, img_size: Sequence[int]) -> None: method __call__ (line 613) | def __call__(self, img: torch.Tensor, randomize: bool = True, lazy: bo... class RandScaleCrop (line 631) | class RandScaleCrop(RandSpatialCrop): method __init__ (line 656) | def __init__( method get_max_roi_size (line 670) | def get_max_roi_size(self, img_size): method randomize (line 678) | def randomize(self, img_size: Sequence[int]) -> None: method __call__ (line 682) | def __call__(self, img: torch.Tensor, randomize: bool = True, lazy: bo... class RandSpatialCropSamples (line 693) | class RandSpatialCropSamples(Randomizable, TraceableTransform, LazyTrans... method __init__ (line 730) | def __init__( method set_random_state (line 745) | def set_random_state( method lazy (line 753) | def lazy(self, value: bool) -> None: method randomize (line 757) | def randomize(self, data: Any | None = None) -> None: method __call__ (line 760) | def __call__(self, img: torch.Tensor, lazy: bool | None = None) -> lis... class CropForeground (line 776) | class CropForeground(Crop): method __init__ (line 811) | def __init__( method lazy (line 857) | def lazy(self, _val: bool): method requires_current_data (line 862) | def requires_current_data(self): method compute_bounding_box (line 865) | def compute_bounding_box(self, img: torch.Tensor) -> tuple[np.ndarray,... method crop_pad (line 884) | def crop_pad( method __call__ (line 928) | def __call__( # type: ignore[override] method inverse (line 943) | def inverse(self, img: MetaTensor) -> MetaTensor: class RandWeightedCrop (line 954) | class RandWeightedCrop(Randomizable, TraceableTransform, LazyTransform, ... method __init__ (line 973) | def __init__( method randomize (line 986) | def randomize(self, weight_map: NdarrayOrTensor) -> None: method lazy (line 992) | def lazy(self, _val: bool): method __call__ (line 995) | def __call__( class RandCropByPosNegLabel (line 1041) | class RandCropByPosNegLabel(Randomizable, TraceableTransform, LazyTransf... method __init__ (line 1102) | def __init__( method randomize (line 1132) | def randomize( method lazy (line 1164) | def lazy(self, _val: bool): method requires_current_data (line 1168) | def requires_current_data(self): method __call__ (line 1171) | def __call__( class RandCropByLabelClasses (line 1220) | class RandCropByLabelClasses(Randomizable, TraceableTransform, LazyTrans... method __init__ (line 1292) | def __init__( method randomize (line 1321) | def randomize( method lazy (line 1346) | def lazy(self, _val: bool): method requires_current_data (line 1350) | def requires_current_data(self): method __call__ (line 1353) | def __call__( class ResizeWithPadOrCrop (line 1397) | class ResizeWithPadOrCrop(InvertibleTransform, LazyTransform): method __init__ (line 1426) | def __init__( method lazy (line 1439) | def lazy(self, val: bool): method __call__ (line 1444) | def __call__( # type: ignore[override] method inverse (line 1489) | def inverse(self, img: MetaTensor) -> MetaTensor: method inverse_transform (line 1493) | def inverse_transform(self, img: MetaTensor, transform) -> MetaTensor: class BoundingRect (line 1505) | class BoundingRect(Transform): method __init__ (line 1531) | def __init__(self, select_fn: Callable = is_positive) -> None: method __call__ (line 1534) | def __call__(self, img: NdarrayOrTensor) -> np.ndarray: FILE: monai/transforms/croppad/batch.py function replace_element (line 32) | def replace_element(to_replace, batch, idx, key_or_idx): class PadListDataCollate (line 44) | class PadListDataCollate(InvertibleTransform): method __init__ (line 67) | def __init__(self, method: str = Method.SYMMETRIC, mode: str = Pytorch... method __call__ (line 72) | def __call__(self, batch: Any): method inverse (line 117) | def inverse(data: dict) -> dict[Hashable, np.ndarray]: FILE: monai/transforms/croppad/dictionary.py class Padd (line 113) | class Padd(MapTransform, InvertibleTransform, LazyTransform): method __init__ (line 123) | def __init__( method lazy (line 154) | def lazy(self, value: bool) -> None: method __call__ (line 159) | def __call__(self, data: Mapping[Hashable, torch.Tensor], lazy: bool |... method inverse (line 174) | def inverse(self, data: Mapping[Hashable, MetaTensor]) -> dict[Hashabl... class SpatialPadd (line 181) | class SpatialPadd(Padd): method __init__ (line 190) | def __init__( class BorderPadd (line 228) | class BorderPadd(Padd): method __init__ (line 239) | def __init__( class DivisiblePadd (line 280) | class DivisiblePadd(Padd): method __init__ (line 291) | def __init__( class Cropd (line 329) | class Cropd(MapTransform, InvertibleTransform, LazyTransform): method __init__ (line 346) | def __init__(self, keys: KeysCollection, cropper: Crop, allow_missing_... method lazy (line 352) | def lazy(self, value: bool) -> None: method __call__ (line 357) | def __call__(self, data: Mapping[Hashable, torch.Tensor], lazy: bool |... method inverse (line 364) | def inverse(self, data: Mapping[Hashable, MetaTensor]) -> dict[Hashabl... class RandCropd (line 371) | class RandCropd(Cropd, Randomizable): method __init__ (line 388) | def __init__(self, keys: KeysCollection, cropper: Crop, allow_missing_... method set_random_state (line 391) | def set_random_state(self, seed: int | None = None, state: np.random.R... method randomize (line 397) | def randomize(self, img_size: Sequence[int]) -> None: method __call__ (line 401) | def __call__(self, data: Mapping[Hashable, torch.Tensor], lazy: bool |... class SpatialCropd (line 420) | class SpatialCropd(Cropd): method __init__ (line 438) | def __init__( class CenterSpatialCropd (line 467) | class CenterSpatialCropd(Cropd): method __init__ (line 489) | def __init__( class CenterScaleCropd (line 496) | class CenterScaleCropd(Cropd): method __init__ (line 514) | def __init__( class RandSpatialCropd (line 525) | class RandSpatialCropd(RandCropd): method __init__ (line 559) | def __init__( class RandScaleCropd (line 573) | class RandScaleCropd(RandCropd): method __init__ (line 602) | def __init__( class RandSpatialCropSamplesd (line 616) | class RandSpatialCropSamplesd(Randomizable, MapTransform, LazyTransform,... method __init__ (line 658) | def __init__( method lazy (line 676) | def lazy(self, value: bool) -> None: method randomize (line 680) | def randomize(self, data: Any | None = None) -> None: method __call__ (line 683) | def __call__( class CropForegroundd (line 703) | class CropForegroundd(Cropd): method __init__ (line 719) | def __init__( method lazy (line 781) | def lazy(self, value: bool) -> None: method requires_current_data (line 786) | def requires_current_data(self): method __call__ (line 789) | def __call__(self, data: Mapping[Hashable, torch.Tensor], lazy: bool |... class RandWeightedCropd (line 804) | class RandWeightedCropd(Randomizable, MapTransform, LazyTransform, Multi... method __init__ (line 828) | def __init__( method set_random_state (line 842) | def set_random_state( method randomize (line 849) | def randomize(self, weight_map: NdarrayOrTensor) -> None: method lazy (line 853) | def lazy(self, value: bool) -> None: method __call__ (line 857) | def __call__( class RandCropByPosNegLabeld (line 875) | class RandCropByPosNegLabeld(Randomizable, MapTransform, LazyTransform, ... method __init__ (line 933) | def __init__( method set_random_state (line 965) | def set_random_state( method randomize (line 972) | def randomize( method lazy (line 982) | def lazy(self, value: bool) -> None: method requires_current_data (line 987) | def requires_current_data(self): method __call__ (line 990) | def __call__( class RandCropByLabelClassesd (line 1013) | class RandCropByLabelClassesd(Randomizable, MapTransform, LazyTransform,... method __init__ (line 1093) | def __init__( method set_random_state (line 1127) | def set_random_state( method randomize (line 1134) | def randomize( method lazy (line 1140) | def lazy(self, value: bool) -> None: method requires_current_data (line 1145) | def requires_current_data(self): method __call__ (line 1148) | def __call__(self, data: Mapping[Hashable, Any], lazy: bool | None = N... class ResizeWithPadOrCropd (line 1166) | class ResizeWithPadOrCropd(Padd): method __init__ (line 1194) | def __init__( class BoundingRectd (line 1210) | class BoundingRectd(MapTransform): method __init__ (line 1225) | def __init__( method __call__ (line 1236) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... FILE: monai/transforms/croppad/functional.py function _convert_pt_pad_mode (line 34) | def _convert_pt_pad_mode(padding_mode): function _np_pad (line 45) | def _np_pad(img: NdarrayTensor, pad_width: list[tuple[int, int]], mode: ... function _pt_pad (line 59) | def _pt_pad(img: NdarrayTensor, pad_width: list[tuple[int, int]], mode: ... function pad_nd (line 73) | def pad_nd( function crop_or_pad_nd (line 121) | def crop_or_pad_nd(img: torch.Tensor, translation_mat, spatial_size: tup... function pad_func (line 155) | def pad_func( function crop_func (line 217) | def crop_func(img: torch.Tensor, slices: tuple[slice, ...], lazy: bool, ... FILE: monai/transforms/intensity/array.py class RandGaussianNoise (line 86) | class RandGaussianNoise(RandomizableTransform): method __init__ (line 101) | def __init__( method randomize (line 116) | def randomize(self, img: NdarrayOrTensor, mean: float | None = None) -... method __call__ (line 125) | def __call__(self, img: NdarrayOrTensor, mean: float | None = None, ra... class RandRicianNoise (line 143) | class RandRicianNoise(RandomizableTransform): method __init__ (line 170) | def __init__( method _add_noise (line 191) | def _add_noise(self, img: NdarrayOrTensor, mean: float, std: float): method __call__ (line 204) | def __call__(self, img: NdarrayOrTensor, randomize: bool = True) -> Nd... class ShiftIntensity (line 232) | class ShiftIntensity(Transform): method __init__ (line 244) | def __init__(self, offset: float, safe: bool = False) -> None: method __call__ (line 248) | def __call__(self, img: NdarrayOrTensor, offset: float | None = None) ... class RandShiftIntensity (line 261) | class RandShiftIntensity(RandomizableTransform): method __init__ (line 268) | def __init__( method randomize (line 292) | def randomize(self, data: Any | None = None) -> None: method __call__ (line 301) | def __call__(self, img: NdarrayOrTensor, factor: float | None = None, ... class StdShiftIntensity (line 330) | class StdShiftIntensity(Transform): method __init__ (line 347) | def __init__( method _stdshift (line 355) | def _stdshift(self, img: NdarrayOrTensor) -> NdarrayOrTensor: method __call__ (line 371) | def __call__(self, img: NdarrayOrTensor) -> NdarrayOrTensor: class RandStdShiftIntensity (line 384) | class RandStdShiftIntensity(RandomizableTransform): method __init__ (line 392) | def __init__( method randomize (line 422) | def randomize(self, data: Any | None = None) -> None: method __call__ (line 428) | def __call__(self, img: NdarrayOrTensor, randomize: bool = True) -> Nd... class ScaleIntensity (line 445) | class ScaleIntensity(Transform): method __init__ (line 453) | def __init__( method __call__ (line 477) | def __call__(self, img: NdarrayOrTensor) -> NdarrayOrTensor: class ScaleIntensityFixedMean (line 500) | class ScaleIntensityFixedMean(Transform): method __init__ (line 508) | def __init__( method __call__ (line 533) | def __call__(self, img: NdarrayOrTensor, factor=None) -> NdarrayOrTensor: class RandScaleIntensityFixedMean (line 589) | class RandScaleIntensityFixedMean(RandomizableTransform): method __init__ (line 598) | def __init__( method randomize (line 635) | def randomize(self, data: Any | None = None) -> None: method __call__ (line 641) | def __call__(self, img: NdarrayOrTensor, randomize: bool = True) -> Nd... class RandScaleIntensity (line 655) | class RandScaleIntensity(RandomizableTransform): method __init__ (line 663) | def __init__( method randomize (line 691) | def randomize(self, data: Any | None = None) -> None: method __call__ (line 700) | def __call__(self, img: NdarrayOrTensor, randomize: bool = True) -> Nd... class RandBiasField (line 723) | class RandBiasField(RandomizableTransform): method __init__ (line 745) | def __init__( method _generate_random_field (line 761) | def _generate_random_field(self, spatial_shape: Sequence[int], degree:... method randomize (line 784) | def randomize(self, img_size: Sequence[int]) -> None: method __call__ (line 791) | def __call__(self, img: NdarrayOrTensor, randomize: bool = True) -> Nd... class NormalizeIntensity (line 816) | class NormalizeIntensity(Transform): method __init__ (line 837) | def __init__( method _mean (line 852) | def _mean(x): method _std (line 859) | def _std(x): method _normalize (line 865) | def _normalize(self, img: NdarrayOrTensor, sub=None, div=None) -> Ndar... method __call__ (line 899) | def __call__(self, img: NdarrayOrTensor) -> NdarrayOrTensor: class ThresholdIntensity (line 928) | class ThresholdIntensity(Transform): method __init__ (line 941) | def __init__(self, threshold: float, above: bool = True, cval: float =... method __call__ (line 948) | def __call__(self, img: NdarrayOrTensor) -> NdarrayOrTensor: class ScaleIntensityRange (line 959) | class ScaleIntensityRange(Transform): method __init__ (line 978) | def __init__( method __call__ (line 994) | def __call__(self, img: NdarrayOrTensor) -> NdarrayOrTensor: class ClipIntensityPercentiles (line 1016) | class ClipIntensityPercentiles(Transform): method __init__ (line 1065) | def __init__( method _clip (line 1115) | def _clip(self, img: NdarrayOrTensor) -> NdarrayOrTensor: method __call__ (line 1143) | def __call__(self, img: NdarrayOrTensor) -> NdarrayOrTensor: class AdjustContrast (line 1161) | class AdjustContrast(Transform): method __init__ (line 1184) | def __init__(self, gamma: float, invert_image: bool = False, retain_st... method __call__ (line 1191) | def __call__(self, img: NdarrayOrTensor, gamma=None) -> NdarrayOrTensor: class RandAdjustContrast (line 1224) | class RandAdjustContrast(RandomizableTransform): method __init__ (line 1249) | def __init__( method randomize (line 1277) | def randomize(self, data: Any | None = None) -> None: method __call__ (line 1283) | def __call__(self, img: NdarrayOrTensor, randomize: bool = True) -> Nd... class ScaleIntensityRangePercentiles (line 1300) | class ScaleIntensityRangePercentiles(Transform): method __init__ (line 1365) | def __init__( method _normalize (line 1389) | def _normalize(self, img: NdarrayOrTensor) -> NdarrayOrTensor: method __call__ (line 1408) | def __call__(self, img: NdarrayOrTensor) -> NdarrayOrTensor: class MaskIntensity (line 1422) | class MaskIntensity(Transform): method __init__ (line 1442) | def __init__(self, mask_data: NdarrayOrTensor | None = None, select_fn... method __call__ (line 1446) | def __call__(self, img: NdarrayOrTensor, mask_data: NdarrayOrTensor | ... class SavitzkyGolaySmooth (line 1476) | class SavitzkyGolaySmooth(Transform): method __init__ (line 1490) | def __init__(self, window_length: int, order: int, axis: int = 1, mode... method __call__ (line 1500) | def __call__(self, img: NdarrayOrTensor) -> NdarrayOrTensor: class DetectEnvelope (line 1521) | class DetectEnvelope(Transform): method __init__ (line 1534) | def __init__(self, axis: int = 1, n: int | None = None) -> None: method __call__ (line 1541) | def __call__(self, img: NdarrayOrTensor): class MedianSmooth (line 1562) | class MedianSmooth(Transform): method __init__ (line 1577) | def __init__(self, radius: Sequence[int] | int = 1) -> None: method __call__ (line 1580) | def __call__(self, img: NdarrayTensor) -> NdarrayTensor: class GaussianSmooth (line 1591) | class GaussianSmooth(Transform): method __init__ (line 1607) | def __init__(self, sigma: Sequence[float] | float = 1.0, approx: str =... method __call__ (line 1611) | def __call__(self, img: NdarrayTensor) -> NdarrayTensor: class RandGaussianSmooth (line 1626) | class RandGaussianSmooth(RandomizableTransform): method __init__ (line 1642) | def __init__( method randomize (line 1660) | def randomize(self, data: Any | None = None) -> None: method __call__ (line 1668) | def __call__(self, img: NdarrayOrTensor, randomize: bool = True) -> Nd... class GaussianSharpen (line 1680) | class GaussianSharpen(Transform): method __init__ (line 1709) | def __init__( method __call__ (line 1721) | def __call__(self, img: NdarrayTensor) -> NdarrayTensor: class RandGaussianSharpen (line 1736) | class RandGaussianSharpen(RandomizableTransform): method __init__ (line 1760) | def __init__( method randomize (line 1789) | def randomize(self, data: Any | None = None) -> None: method __call__ (line 1804) | def __call__(self, img: NdarrayOrTensor, randomize: bool = True) -> Nd... class RandHistogramShift (line 1819) | class RandHistogramShift(RandomizableTransform): method __init__ (line 1832) | def __init__(self, num_control_points: tuple[int, int] | int = 10, pro... method interp (line 1848) | def interp(self, x: NdarrayOrTensor, xp: NdarrayOrTensor, fp: NdarrayO... method randomize (line 1865) | def randomize(self, data: Any | None = None) -> None: method __call__ (line 1877) | def __call__(self, img: NdarrayOrTensor, randomize: bool = True) -> Nd... class GibbsNoise (line 1903) | class GibbsNoise(Transform, Fourier): method __init__ (line 1925) | def __init__(self, alpha: float = 0.1) -> None: method __call__ (line 1930) | def __call__(self, img: NdarrayOrTensor) -> NdarrayOrTensor: method _apply_mask (line 1945) | def _apply_mask(self, k: NdarrayOrTensor) -> NdarrayOrTensor: class RandGibbsNoise (line 1979) | class RandGibbsNoise(RandomizableTransform): method __init__ (line 2003) | def __init__(self, prob: float = 0.1, alpha: float | Sequence[float] =... method randomize (line 2019) | def randomize(self, data: Any) -> None: method __call__ (line 2029) | def __call__(self, img: NdarrayOrTensor, randomize: bool = True): class KSpaceSpikeNoise (line 2041) | class KSpaceSpikeNoise(Transform, Fourier): method __init__ (line 2078) | def __init__(self, loc: tuple | Sequence[tuple], k_intensity: Sequence... method __call__ (line 2093) | def __call__(self, img: NdarrayOrTensor) -> NdarrayOrTensor: method _check_indices (line 2134) | def _check_indices(self, img) -> None: method _set_spike (line 2152) | def _set_spike(self, k: NdarrayOrTensor, idx: tuple, val: Sequence[flo... class RandKSpaceSpikeNoise (line 2169) | class RandKSpaceSpikeNoise(RandomizableTransform, Fourier): method __init__ (line 2206) | def __init__( method __call__ (line 2222) | def __call__(self, img: NdarrayOrTensor, randomize: bool = True): method randomize (line 2251) | def randomize(self, img: NdarrayOrTensor, intensity_range: Sequence[Se... method _make_sequence (line 2278) | def _make_sequence(self, x: NdarrayOrTensor) -> Sequence[Sequence[floa... method _set_default_range (line 2290) | def _set_default_range(self, img: NdarrayOrTensor) -> Sequence[Sequenc... class RandCoarseTransform (line 2308) | class RandCoarseTransform(RandomizableTransform): method __init__ (line 2333) | def __init__( method randomize (line 2350) | def randomize(self, img_size: Sequence[int]) -> None: method _transform_holes (line 2365) | def _transform_holes(self, img: np.ndarray) -> np.ndarray: method __call__ (line 2372) | def __call__(self, img: NdarrayOrTensor, randomize: bool = True) -> Nd... class RandCoarseDropout (line 2386) | class RandCoarseDropout(RandCoarseTransform): method __init__ (line 2417) | def __init__( method _transform_holes (line 2436) | def _transform_holes(self, img: np.ndarray): class RandCoarseShuffle (line 2461) | class RandCoarseShuffle(RandCoarseTransform): method _transform_holes (line 2486) | def _transform_holes(self, img: np.ndarray): class HistogramNormalize (line 2501) | class HistogramNormalize(Transform): method __init__ (line 2520) | def __init__( method __call__ (line 2534) | def __call__(self, img: NdarrayOrTensor, mask: NdarrayOrTensor | None ... class IntensityRemap (line 2548) | class IntensityRemap(RandomizableTransform): method __init__ (line 2572) | def __init__(self, kernel_size: int = 30, slope: float = 0.7): method __call__ (line 2578) | def __call__(self, img: torch.Tensor) -> torch.Tensor: class RandIntensityRemap (line 2603) | class RandIntensityRemap(RandomizableTransform): method __init__ (line 2626) | def __init__(self, prob: float = 0.1, kernel_size: int = 30, slope: fl... method __call__ (line 2632) | def __call__(self, img: torch.Tensor) -> torch.Tensor: class ForegroundMask (line 2653) | class ForegroundMask(Transform): method __init__ (line 2675) | def __init__( method _set_threshold (line 2706) | def _set_threshold(self, threshold, mode): method _get_threshold (line 2718) | def _get_threshold(self, image, mode): method __call__ (line 2724) | def __call__(self, image: NdarrayOrTensor): class ComputeHoVerMaps (line 2750) | class ComputeHoVerMaps(Transform): method __init__ (line 2763) | def __init__(self, dtype: DtypeLike = "float32") -> None: method __call__ (line 2767) | def __call__(self, mask: NdarrayOrTensor): class UltrasoundConfidenceMapTransform (line 2791) | class UltrasoundConfidenceMapTransform(Transform): method __init__ (line 2814) | def __init__( method __call__ (line 2846) | def __call__(self, img: NdarrayOrTensor, mask: NdarrayOrTensor | None ... FILE: monai/transforms/intensity/dictionary.py class RandGaussianNoised (line 177) | class RandGaussianNoised(RandomizableTransform, MapTransform): method __init__ (line 196) | def __init__( method set_random_state (line 210) | def set_random_state( method __call__ (line 217) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class RandRicianNoised (line 239) | class RandRicianNoised(RandomizableTransform, MapTransform): method __init__ (line 265) | def __init__( method set_random_state (line 289) | def set_random_state(self, seed: int | None = None, state: np.random.R... method __call__ (line 294) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class ShiftIntensityd (line 307) | class ShiftIntensityd(MapTransform): method __init__ (line 314) | def __init__( method __call__ (line 355) | def __call__(self, data) -> dict[Hashable, NdarrayOrTensor]: class RandShiftIntensityd (line 367) | class RandShiftIntensityd(RandomizableTransform, MapTransform): method __init__ (line 374) | def __init__( method set_random_state (line 424) | def set_random_state( method __call__ (line 431) | def __call__(self, data) -> dict[Hashable, NdarrayOrTensor]: class StdShiftIntensityd (line 457) | class StdShiftIntensityd(MapTransform): method __init__ (line 464) | def __init__( method __call__ (line 487) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class RandStdShiftIntensityd (line 494) | class RandStdShiftIntensityd(RandomizableTransform, MapTransform): method __init__ (line 501) | def __init__( method set_random_state (line 529) | def set_random_state( method __call__ (line 536) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class ScaleIntensityd (line 551) | class ScaleIntensityd(MapTransform): method __init__ (line 560) | def __init__( method __call__ (line 587) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class RandScaleIntensityd (line 594) | class RandScaleIntensityd(RandomizableTransform, MapTransform): method __init__ (line 601) | def __init__( method set_random_state (line 628) | def set_random_state( method __call__ (line 635) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class RandScaleIntensityFixedMeand (line 657) | class RandScaleIntensityFixedMeand(RandomizableTransform, MapTransform): method __init__ (line 666) | def __init__( method set_random_state (line 700) | def set_random_state( method __call__ (line 707) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class RandBiasFieldd (line 722) | class RandBiasFieldd(RandomizableTransform, MapTransform): method __init__ (line 729) | def __init__( method set_random_state (line 755) | def set_random_state(self, seed: int | None = None, state: np.random.R... method __call__ (line 760) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class NormalizeIntensityd (line 782) | class NormalizeIntensityd(MapTransform): method __init__ (line 802) | def __init__( method __call__ (line 815) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class ThresholdIntensityd (line 822) | class ThresholdIntensityd(MapTransform): method __init__ (line 837) | def __init__( method __call__ (line 848) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class ScaleIntensityRanged (line 855) | class ScaleIntensityRanged(MapTransform): method __init__ (line 873) | def __init__( method __call__ (line 887) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class ClipIntensityPercentilesd (line 894) | class ClipIntensityPercentilesd(MapTransform): method __init__ (line 902) | def __init__( method __call__ (line 917) | def __call__(self, data: dict) -> dict: class AdjustContrastd (line 924) | class AdjustContrastd(MapTransform): method __init__ (line 951) | def __init__( method __call__ (line 962) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class RandAdjustContrastd (line 969) | class RandAdjustContrastd(RandomizableTransform, MapTransform): method __init__ (line 998) | def __init__( method set_random_state (line 1012) | def set_random_state( method __call__ (line 1019) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class ScaleIntensityRangePercentilesd (line 1034) | class ScaleIntensityRangePercentilesd(MapTransform): method __init__ (line 1055) | def __init__( method __call__ (line 1071) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class MaskIntensityd (line 1078) | class MaskIntensityd(MapTransform): method __init__ (line 1101) | def __init__( method __call__ (line 1113) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class SavitzkyGolaySmoothd (line 1120) | class SavitzkyGolaySmoothd(MapTransform): method __init__ (line 1138) | def __init__( method __call__ (line 1150) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class MedianSmoothd (line 1157) | class MedianSmoothd(MapTransform): method __init__ (line 1173) | def __init__(self, keys: KeysCollection, radius: Sequence[int] | int, ... method __call__ (line 1177) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class GaussianSmoothd (line 1184) | class GaussianSmoothd(MapTransform): method __init__ (line 1202) | def __init__( method __call__ (line 1212) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class RandGaussianSmoothd (line 1219) | class RandGaussianSmoothd(RandomizableTransform, MapTransform): method __init__ (line 1238) | def __init__( method set_random_state (line 1254) | def set_random_state( method __call__ (line 1261) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class GaussianSharpend (line 1276) | class GaussianSharpend(MapTransform): method __init__ (line 1298) | def __init__( method __call__ (line 1310) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class RandGaussianSharpend (line 1317) | class RandGaussianSharpend(RandomizableTransform, MapTransform): method __init__ (line 1343) | def __init__( method set_random_state (line 1371) | def set_random_state( method __call__ (line 1378) | def __call__(self, data: dict[Hashable, NdarrayOrTensor]) -> dict[Hash... class RandHistogramShiftd (line 1393) | class RandHistogramShiftd(RandomizableTransform, MapTransform): method __init__ (line 1410) | def __init__( method set_random_state (line 1421) | def set_random_state( method __call__ (line 1428) | def __call__(self, data: dict[Hashable, NdarrayOrTensor]) -> dict[Hash... class RandGibbsNoised (line 1443) | class RandGibbsNoised(RandomizableTransform, MapTransform): method __init__ (line 1471) | def __init__( method set_random_state (line 1482) | def set_random_state(self, seed: int | None = None, state: np.random.R... method __call__ (line 1487) | def __call__(self, data: dict[Hashable, NdarrayOrTensor]) -> dict[Hash... class GibbsNoised (line 1502) | class GibbsNoised(MapTransform): method __init__ (line 1523) | def __init__(self, keys: KeysCollection, alpha: float = 0.5, allow_mis... method __call__ (line 1527) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class KSpaceSpikeNoised (line 1534) | class KSpaceSpikeNoised(MapTransform): method __init__ (line 1577) | def __init__( method __call__ (line 1587) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class RandKSpaceSpikeNoised (line 1599) | class RandKSpaceSpikeNoised(RandomizableTransform, MapTransform): method __init__ (line 1638) | def __init__( method set_random_state (line 1650) | def set_random_state( method __call__ (line 1657) | def __call__(self, data: dict[Hashable, NdarrayOrTensor]) -> dict[Hash... class RandCoarseDropoutd (line 1670) | class RandCoarseDropoutd(RandomizableTransform, MapTransform): method __init__ (line 1704) | def __init__( method set_random_state (line 1728) | def set_random_state( method __call__ (line 1735) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class RandCoarseShuffled (line 1757) | class RandCoarseShuffled(RandomizableTransform, MapTransform): method __init__ (line 1785) | def __init__( method set_random_state (line 1801) | def set_random_state( method __call__ (line 1808) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class HistogramNormalized (line 1830) | class HistogramNormalized(MapTransform): method __init__ (line 1852) | def __init__( method __call__ (line 1867) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class ForegroundMaskd (line 1875) | class ForegroundMaskd(MapTransform): method __init__ (line 1899) | def __init__( method __call__ (line 1912) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class ComputeHoVerMapsd (line 1921) | class ComputeHoVerMapsd(MapTransform): method __init__ (line 1934) | def __init__( method __call__ (line 1945) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... FILE: monai/transforms/inverse.py class TraceableTransform (line 42) | class TraceableTransform(Transform): method _init_trace_threadlocal (line 74) | def _init_trace_threadlocal(self): method __getstate__ (line 85) | def __getstate__(self): method tracing (line 93) | def tracing(self) -> bool: method tracing (line 101) | def tracing(self, val: bool): method trace_key (line 107) | def trace_key(key: Hashable = None): method transform_info_keys (line 114) | def transform_info_keys(): method get_transform_info (line 118) | def get_transform_info(self) -> dict: method push_transform (line 130) | def push_transform(self, data, *args, **kwargs): method track_transform_meta (line 168) | def track_transform_meta( method check_transforms_match (line 302) | def check_transforms_match(self, transform: Mapping) -> None: method get_most_recent_transform (line 322) | def get_most_recent_transform(self, data, key: Hashable = None, check:... method pop_transform (line 358) | def pop_transform(self, data, key: Hashable = None, check: bool = True): method trace_transform (line 376) | def trace_transform(self, to_trace: bool): class InvertibleTransform (line 384) | class InvertibleTransform(TraceableTransform, InvertibleTrait): method inverse_update (line 421) | def inverse_update(self, data): method inverse (line 437) | def inverse(self, data: Any) -> Any: FILE: monai/transforms/inverse_batch_transform.py class _BatchInverseDataset (line 32) | class _BatchInverseDataset(Dataset): method __init__ (line 34) | def __init__(self, data: Sequence[Any], transform: InvertibleTransform... method __getitem__ (line 39) | def __getitem__(self, index: int): method __len__ (line 50) | def __len__(self) -> int: class BatchInverseTransform (line 54) | class BatchInverseTransform(Transform): method __init__ (line 60) | def __init__( method __call__ (line 99) | def __call__(self, data: dict[str, Any]) -> Any: class Decollated (line 114) | class Decollated(MapTransform): method __init__ (line 134) | def __init__( method __call__ (line 147) | def __call__(self, data: dict | list): FILE: monai/transforms/io/array.py function switch_endianness (line 74) | def switch_endianness(data, new="<"): class LoadImage (line 109) | class LoadImage(Transform): method __init__ (line 131) | def __init__( method register (line 225) | def register(self, reader: ImageReader): method __call__ (line 237) | def __call__(self, filename: Sequence[PathLike] | PathLike, reader: Im... class SaveImage (line 308) | class SaveImage(Transform): method __init__ (line 383) | def __init__( method set_options (line 450) | def set_options(self, init_kwargs=None, data_kwargs=None, meta_kwargs=... method __call__ (line 472) | def __call__( class WriteFileMapping (line 527) | class WriteFileMapping(Transform): method __init__ (line 536) | def __init__(self, mapping_file_path: Path | str = "mapping.json"): method __call__ (line 539) | def __call__(self, img: NdarrayOrTensor): method _write_to_file (line 563) | def _write_to_file(self, log_data): FILE: monai/transforms/io/dictionary.py class LoadImaged (line 40) | class LoadImaged(MapTransform): method __init__ (line 75) | def __init__( method register (line 152) | def register(self, reader: ImageReader): method __call__ (line 155) | def __call__(self, data, reader: ImageReader | None = None): class SaveImaged (line 181) | class SaveImaged(MapTransform): method __init__ (line 261) | def __init__( method set_options (line 310) | def set_options(self, init_kwargs=None, data_kwargs=None, meta_kwargs=... method __call__ (line 314) | def __call__(self, data): class WriteFileMappingd (line 324) | class WriteFileMappingd(MapTransform): method __init__ (line 336) | def __init__( method __call__ (line 342) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... FILE: monai/transforms/lazy/array.py class ApplyPending (line 19) | class ApplyPending(InvertibleTrait): method __call__ (line 28) | def __call__(self, data): method inverse (line 31) | def inverse(self, data): FILE: monai/transforms/lazy/dictionary.py class ApplyPendingd (line 21) | class ApplyPendingd(InvertibleTrait, MapTransform): method __init__ (line 33) | def __init__(self, keys: KeysCollection): method __call__ (line 36) | def __call__(self, data): method inverse (line 39) | def inverse(self, data): FILE: monai/transforms/lazy/functional.py function _log_pending_info (line 39) | def _log_pending_info( function _log_applied_info (line 74) | def _log_applied_info(data: Any, key=None, logger_name: bool | str = Fal... function apply_pending_transforms (line 84) | def apply_pending_transforms( function apply_pending_transforms_in_order (line 145) | def apply_pending_transforms_in_order( function apply_pending (line 196) | def apply_pending(data: torch.Tensor | MetaTensor, pending: list | None ... FILE: monai/transforms/lazy/utils.py class Affine (line 28) | class Affine: method __init__ (line 33) | def __init__(self, data): method is_affine_shaped (line 37) | def is_affine_shaped(data): class DisplacementField (line 48) | class DisplacementField: method __init__ (line 53) | def __init__(self, data): method is_ddf_shaped (line 57) | def is_ddf_shaped(data): function combine_transforms (line 68) | def combine_transforms(left: torch.Tensor, right: torch.Tensor) -> torch... function affine_from_pending (line 83) | def affine_from_pending(pending_item): function kwargs_from_pending (line 92) | def kwargs_from_pending(pending_item): function is_compatible_apply_kwargs (line 107) | def is_compatible_apply_kwargs(kwargs_1, kwargs_2): function requires_interp (line 112) | def requires_interp(matrix, atol=AFFINE_TOL): function resample (line 148) | def resample(data: torch.Tensor, matrix: NdarrayOrTensor, kwargs: dict |... FILE: monai/transforms/meta_utility/dictionary.py class FromMetaTensord (line 42) | class FromMetaTensord(MapTransform, InvertibleTransform): method __init__ (line 52) | def __init__( method __call__ (line 65) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... method inverse (line 73) | def inverse(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[Ha... class ToMetaTensord (line 89) | class ToMetaTensord(MapTransform, InvertibleTransform): method __call__ (line 99) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... method inverse (line 110) | def inverse(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[Ha... FILE: monai/transforms/nvtx.py class RangePush (line 51) | class RangePush(Transform): method __init__ (line 60) | def __init__(self, msg: str) -> None: method __call__ (line 64) | def __call__(self, data): class RandRangePush (line 69) | class RandRangePush(RangePush, RandomizableTrait): class RangePop (line 79) | class RangePop(Transform): method __call__ (line 85) | def __call__(self, data): class RandRangePop (line 90) | class RandRangePop(RangePop, RandomizableTrait): class Mark (line 97) | class Mark(Transform): method __init__ (line 105) | def __init__(self, msg: str) -> None: method __call__ (line 108) | def __call__(self, data): class RandMark (line 113) | class RandMark(Mark, RandomizableTrait): FILE: monai/transforms/post/array.py class Activations (line 69) | class Activations(Transform): method __init__ (line 90) | def __init__(self, sigmoid: bool = False, softmax: bool = False, other... method __call__ (line 98) | def __call__( class AsDiscrete (line 140) | class AsDiscrete(Transform): method __init__ (line 180) | def __init__( method __call__ (line 196) | def __call__( class KeepLargestConnectedComponent (line 247) | class KeepLargestConnectedComponent(Transform): method __init__ (line 293) | def __init__( method __call__ (line 327) | def __call__(self, img: NdarrayOrTensor) -> NdarrayOrTensor: class RemoveSmallObjects (line 365) | class RemoveSmallObjects(Transform): method __init__ (line 424) | def __init__( method __call__ (line 438) | def __call__(self, img: NdarrayOrTensor) -> NdarrayOrTensor: class LabelFilter (line 453) | class LabelFilter(Transform): method __init__ (line 473) | def __init__(self, applied_labels: Iterable[int] | int) -> None: method __call__ (line 482) | def __call__(self, img: NdarrayOrTensor) -> NdarrayOrTensor: class FillHoles (line 511) | class FillHoles(Transform): method __init__ (line 553) | def __init__(self, applied_labels: Iterable[int] | int | None = None, ... method __call__ (line 566) | def __call__(self, img: NdarrayOrTensor) -> NdarrayOrTensor: class LabelToContour (line 589) | class LabelToContour(Transform): method __init__ (line 604) | def __init__(self, kernel_type: str = "Laplace") -> None: method __call__ (line 609) | def __call__(self, img: NdarrayOrTensor) -> NdarrayOrTensor: class Ensemble (line 642) | class Ensemble: method get_stacked_torch (line 645) | def get_stacked_torch(img: Sequence[NdarrayOrTensor] | NdarrayOrTensor... method post_convert (line 655) | def post_convert(img: torch.Tensor, orig_img: Sequence[NdarrayOrTensor... class MeanEnsemble (line 661) | class MeanEnsemble(Ensemble, Transform): method __init__ (line 686) | def __init__(self, weights: Sequence[float] | NdarrayOrTensor | None =... method __call__ (line 689) | def __call__(self, img: Sequence[NdarrayOrTensor] | NdarrayOrTensor) -... class VoteEnsemble (line 704) | class VoteEnsemble(Ensemble, Transform): method __init__ (line 726) | def __init__(self, num_classes: int | None = None) -> None: method __call__ (line 729) | def __call__(self, img: Sequence[NdarrayOrTensor] | NdarrayOrTensor) -... class GenerateHeatmap (line 753) | class GenerateHeatmap(Transform): method __init__ (line 779) | def __init__( method __call__ (line 806) | def __call__(self, points: NdarrayOrTensor, spatial_shape: Sequence[in... method _resolve_spatial_shape (line 879) | def _resolve_spatial_shape(self, call_shape: Sequence[int] | None, spa... method _resolve_sigma (line 893) | def _resolve_sigma(self, spatial_dims: int) -> tuple[float, ...]: class ProbNMS (line 901) | class ProbNMS(Transform): method __init__ (line 934) | def __init__( method __call__ (line 960) | def __call__(self, prob_map: NdarrayOrTensor): class Invert (line 989) | class Invert(Transform): method __init__ (line 996) | def __init__( method __call__ (line 1022) | def __call__(self, data): class SobelGradients (line 1042) | class SobelGradients(Transform): method __init__ (line 1060) | def __init__( method _get_kernel (line 1076) | def _get_kernel(self, size, dtype) -> tuple[torch.Tensor, torch.Tensor]: method __call__ (line 1103) | def __call__(self, image: NdarrayOrTensor) -> torch.Tensor: class DistanceTransformEDT (line 1152) | class DistanceTransformEDT(Transform): method __init__ (line 1167) | def __init__(self, sampling: None | float | list[float] = None) -> None: method __call__ (line 1171) | def __call__(self, img: NdarrayOrTensor) -> NdarrayOrTensor: FILE: monai/transforms/post/dictionary.py class Activationsd (line 108) | class Activationsd(MapTransform): method __init__ (line 116) | def __init__( method __call__ (line 148) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class AsDiscreted (line 155) | class AsDiscreted(MapTransform): method __init__ (line 162) | def __init__( method __call__ (line 209) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class KeepLargestConnectedComponentd (line 218) | class KeepLargestConnectedComponentd(MapTransform): method __init__ (line 225) | def __init__( method __call__ (line 266) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class RemoveSmallObjectsd (line 273) | class RemoveSmallObjectsd(MapTransform): method __init__ (line 297) | def __init__( method __call__ (line 310) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class LabelFilterd (line 317) | class LabelFilterd(MapTransform): method __init__ (line 324) | def __init__( method __call__ (line 338) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class FillHolesd (line 345) | class FillHolesd(MapTransform): method __init__ (line 352) | def __init__( method __call__ (line 375) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class LabelToContourd (line 382) | class LabelToContourd(MapTransform): method __init__ (line 389) | def __init__(self, keys: KeysCollection, kernel_type: str = "Laplace",... method __call__ (line 401) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class Ensembled (line 408) | class Ensembled(MapTransform): method __init__ (line 416) | def __init__( method __call__ (line 445) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class MeanEnsembled (line 459) | class MeanEnsembled(Ensembled): method __init__ (line 466) | def __init__( class VoteEnsembled (line 494) | class VoteEnsembled(Ensembled): method __init__ (line 501) | def __init__(self, keys: KeysCollection, output_key: str | None = None... class GenerateHeatmapd (line 516) | class GenerateHeatmapd(MapTransform): method __init__ (line 594) | def __init__( method __call__ (line 614) | def __call__(self, data: Mapping[Hashable, Any]) -> dict[Hashable, Any]: method _prepare_heatmap_keys (line 637) | def _prepare_heatmap_keys(self, heatmap_keys: KeysCollection | None) -... method _prepare_optional_keys (line 647) | def _prepare_optional_keys(self, maybe_keys: KeysCollection | None) ->... method _prepare_shapes (line 657) | def _prepare_shapes( method _determine_shape (line 679) | def _determine_shape( method _shape_from_reference (line 698) | def _shape_from_reference(self, reference: Any, spatial_dims: int) -> ... method _update_spatial_metadata (line 710) | def _update_spatial_metadata(self, heatmap: MetaTensor, spatial_shape:... class ProbNMSd (line 718) | class ProbNMSd(MapTransform): method __init__ (line 751) | def __init__( method __call__ (line 765) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]): class Invertd (line 772) | class Invertd(MapTransform): method __init__ (line 801) | def __init__( method __call__ (line 862) | def __call__(self, data: Mapping[Hashable, Any]) -> dict[Hashable, Any]: class SaveClassificationd (line 943) | class SaveClassificationd(MapTransform): method __init__ (line 949) | def __init__( method __call__ (line 1001) | def __call__(self, data): method get_saver (line 1013) | def get_saver(self): class SobelGradientsd (line 1022) | class SobelGradientsd(MapTransform): method __init__ (line 1044) | def __init__( method __call__ (line 1069) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class DistanceTransformEDTd (line 1078) | class DistanceTransformEDTd(MapTransform): method __init__ (line 1108) | def __init__( method __call__ (line 1115) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> Mappin... FILE: monai/transforms/regularization/array.py class Mixer (line 26) | class Mixer(RandomizableTransform): method __init__ (line 28) | def __init__(self, batch_size: int, alpha: float = 1.0) -> None: method apply (line 48) | def apply(self, data: torch.Tensor): method randomize (line 51) | def randomize(self, data=None) -> None: class MixUp (line 66) | class MixUp(Mixer): method apply (line 75) | def apply(self, data: torch.Tensor): method __call__ (line 87) | def __call__(self, data: torch.Tensor, labels: torch.Tensor | None = N... class CutMix (line 103) | class CutMix(Mixer): method apply (line 133) | def apply(self, data: torch.Tensor): method apply_on_labels (line 147) | def apply_on_labels(self, labels: torch.Tensor): method __call__ (line 156) | def __call__(self, data: torch.Tensor, labels: torch.Tensor | None = N... class CutOut (line 170) | class CutOut(Mixer): method apply (line 182) | def apply(self, data: torch.Tensor): method __call__ (line 196) | def __call__(self, data: torch.Tensor, randomize=True): FILE: monai/transforms/regularization/dictionary.py class MixUpd (line 30) | class MixUpd(MapTransform, RandomizableTransform): method __init__ (line 38) | def __init__( method set_random_state (line 44) | def set_random_state(self, seed: int | None = None, state: np.random.R... method __call__ (line 49) | def __call__(self, data): class CutMixd (line 58) | class CutMixd(MapTransform, RandomizableTransform): method __init__ (line 67) | def __init__( method set_random_state (line 79) | def set_random_state(self, seed: int | None = None, state: np.random.R... method __call__ (line 84) | def __call__(self, data): class CutOutd (line 99) | class CutOutd(MapTransform, RandomizableTransform): method __init__ (line 106) | def __init__(self, keys: KeysCollection, batch_size: int, allow_missin... method set_random_state (line 110) | def set_random_state(self, seed: int | None = None, state: np.random.R... method __call__ (line 115) | def __call__(self, data): FILE: monai/transforms/signal/array.py class SignalRandShift (line 54) | class SignalRandShift(RandomizableTransform): method __init__ (line 61) | def __init__( method __call__ (line 78) | def __call__(self, signal: NdarrayOrTensor) -> NdarrayOrTensor: class SignalRandScale (line 92) | class SignalRandScale(RandomizableTransform): method __init__ (line 99) | def __init__(self, boundaries: Sequence[float] = (-1.0, 1.0)) -> None: method __call__ (line 108) | def __call__(self, signal: NdarrayOrTensor) -> NdarrayOrTensor: class SignalRandDrop (line 120) | class SignalRandDrop(RandomizableTransform): method __init__ (line 127) | def __init__(self, boundaries: Sequence[float] = (0.0, 1.0)) -> None: method __call__ (line 137) | def __call__(self, signal: NdarrayOrTensor) -> NdarrayOrTensor: class SignalRandAddSine (line 154) | class SignalRandAddSine(RandomizableTransform): method __init__ (line 161) | def __init__(self, boundaries: Sequence[float] = (0.1, 0.3), frequenci... method __call__ (line 174) | def __call__(self, signal: NdarrayOrTensor) -> NdarrayOrTensor: class SignalRandAddSquarePulse (line 193) | class SignalRandAddSquarePulse(RandomizableTransform): method __init__ (line 200) | def __init__(self, boundaries: Sequence[float] = (0.01, 0.2), frequenc... method __call__ (line 213) | def __call__(self, signal: NdarrayOrTensor) -> NdarrayOrTensor: class SignalRandAddSinePartial (line 231) | class SignalRandAddSinePartial(RandomizableTransform): method __init__ (line 238) | def __init__( method __call__ (line 259) | def __call__(self, signal: NdarrayOrTensor) -> NdarrayOrTensor: class SignalRandAddGaussianNoise (line 282) | class SignalRandAddGaussianNoise(RandomizableTransform): method __init__ (line 289) | def __init__(self, boundaries: Sequence[float] = (0.001, 0.02)) -> None: method __call__ (line 299) | def __call__(self, signal: NdarrayOrTensor) -> NdarrayOrTensor: class SignalRandAddSquarePulsePartial (line 314) | class SignalRandAddSquarePulsePartial(RandomizableTransform): method __init__ (line 321) | def __init__( method __call__ (line 342) | def __call__(self, signal: NdarrayOrTensor) -> NdarrayOrTensor: class SignalFillEmpty (line 363) | class SignalFillEmpty(Transform): method __init__ (line 370) | def __init__(self, replacement: float = 0.0) -> None: method __call__ (line 378) | def __call__(self, signal: NdarrayOrTensor) -> NdarrayOrTensor: class SignalRemoveFrequency (line 387) | class SignalRemoveFrequency(Transform): method __init__ (line 394) | def __init__( method __call__ (line 409) | def __call__(self, signal: np.ndarray) -> Any: class SignalContinuousWavelet (line 422) | class SignalContinuousWavelet(Transform): method __init__ (line 429) | def __init__(self, type: str = "mexh", length: float = 125.0, frequenc... method __call__ (line 443) | def __call__(self, signal: np.ndarray) -> Any: FILE: monai/transforms/signal/dictionary.py class SignalFillEmptyd (line 28) | class SignalFillEmptyd(MapTransform): method __init__ (line 41) | def __init__(self, keys: KeysCollection = None, allow_missing_keys: bo... method __call__ (line 45) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> Mappin... FILE: monai/transforms/smooth_field/array.py class SmoothField (line 35) | class SmoothField(Randomizable): method __init__ (line 59) | def __init__( method randomize (line 98) | def randomize(self, data: Any | None = None) -> None: method set_spatial_size (line 101) | def set_spatial_size(self, spatial_size: Sequence[int] | None) -> None: method set_mode (line 116) | def set_mode(self, mode: str) -> None: method __call__ (line 119) | def __call__(self, randomize=False) -> torch.Tensor: class RandSmoothFieldAdjustContrast (line 146) | class RandSmoothFieldAdjustContrast(RandomizableTransform): method __init__ (line 169) | def __init__( method set_random_state (line 203) | def set_random_state( method randomize (line 210) | def randomize(self, data: Any | None = None) -> None: method set_mode (line 216) | def set_mode(self, mode: str) -> None: method __call__ (line 219) | def __call__(self, img: NdarrayOrTensor, randomize: bool = True) -> Nd... class RandSmoothFieldAdjustIntensity (line 247) | class RandSmoothFieldAdjustIntensity(RandomizableTransform): method __init__ (line 270) | def __init__( method set_random_state (line 304) | def set_random_state( method randomize (line 311) | def randomize(self, data: Any | None = None) -> None: method set_mode (line 317) | def set_mode(self, mode: str) -> None: method __call__ (line 320) | def __call__(self, img: NdarrayOrTensor, randomize: bool = True) -> Nd... class RandSmoothDeform (line 342) | class RandSmoothDeform(RandomizableTransform): method __init__ (line 367) | def __init__( method set_random_state (line 418) | def set_random_state(self, seed: int | None = None, state: np.random.R... method randomize (line 423) | def randomize(self, data: Any | None = None) -> None: method set_field_mode (line 429) | def set_field_mode(self, mode: str) -> None: method set_grid_mode (line 432) | def set_grid_mode(self, mode: str) -> None: method __call__ (line 435) | def __call__( FILE: monai/transforms/smooth_field/dictionary.py class RandSmoothFieldAdjustContrastd (line 44) | class RandSmoothFieldAdjustContrastd(RandomizableTransform, MapTransform): method __init__ (line 66) | def __init__( method set_random_state (line 94) | def set_random_state( method randomize (line 101) | def randomize(self, data: Any | None = None) -> None: method __call__ (line 107) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> Mappin... class RandSmoothFieldAdjustIntensityd (line 122) | class RandSmoothFieldAdjustIntensityd(RandomizableTransform, MapTransform): method __init__ (line 144) | def __init__( method set_random_state (line 172) | def set_random_state( method randomize (line 179) | def randomize(self, data: Any | None = None) -> None: method __call__ (line 183) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> Mappin... class RandSmoothDeformd (line 199) | class RandSmoothDeformd(RandomizableTransform, MapTransform): method __init__ (line 225) | def __init__( method set_random_state (line 262) | def set_random_state( method randomize (line 269) | def randomize(self, data: Any | None = None) -> None: method __call__ (line 273) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> Mappin... FILE: monai/transforms/spatial/array.py class SpatialResample (line 124) | class SpatialResample(InvertibleTransform, LazyTransform): method __init__ (line 138) | def __init__( method __call__ (line 172) | def __call__( method inverse (line 240) | def inverse(self, data: torch.Tensor) -> torch.Tensor: class ResampleToMatch (line 258) | class ResampleToMatch(SpatialResample): method __call__ (line 267) | def __call__( # type: ignore class Spacing (line 340) | class Spacing(InvertibleTransform, LazyTransform): method __init__ (line 350) | def __init__( method lazy (line 435) | def lazy(self, val: bool) -> None: method __call__ (line 439) | def __call__( method inverse (line 547) | def inverse(self, data: torch.Tensor) -> torch.Tensor: class Orientation (line 551) | class Orientation(InvertibleTransform, LazyTransform): method __init__ (line 570) | def __init__( method __call__ (line 613) | def __call__(self, data_array: torch.Tensor, lazy: bool | None = None)... method inverse (line 680) | def inverse(self, data: torch.Tensor) -> torch.Tensor: class Flip (line 704) | class Flip(InvertibleTransform, LazyTransform): method __init__ (line 726) | def __init__(self, spatial_axis: Sequence[int] | int | None = None, la... method __call__ (line 730) | def __call__(self, img: torch.Tensor, lazy: bool | None = None) -> tor... method inverse (line 742) | def inverse(self, data: torch.Tensor) -> torch.Tensor: class Resize (line 749) | class Resize(InvertibleTransform, LazyTransform): method __init__ (line 790) | def __init__( method __call__ (line 810) | def __call__( method inverse (line 888) | def inverse(self, data: torch.Tensor) -> torch.Tensor: method inverse_transform (line 892) | def inverse_transform(self, data: torch.Tensor, transform) -> torch.Te... class Rotate (line 910) | class Rotate(InvertibleTransform, LazyTransform): method __init__ (line 939) | def __init__( method __call__ (line 957) | def __call__( method inverse (line 1010) | def inverse(self, data: torch.Tensor) -> torch.Tensor: method inverse_transform (line 1014) | def inverse_transform(self, data: torch.Tensor, transform) -> torch.Te... class Zoom (line 1042) | class Zoom(InvertibleTransform, LazyTransform): method __init__ (line 1081) | def __init__( method __call__ (line 1101) | def __call__( method inverse (line 1153) | def inverse(self, data: torch.Tensor) -> torch.Tensor: method inverse_transform (line 1157) | def inverse_transform(self, data: torch.Tensor, transform) -> torch.Te... class Rotate90 (line 1179) | class Rotate90(InvertibleTransform, LazyTransform): method __init__ (line 1191) | def __init__(self, k: int = 1, spatial_axes: tuple[int, int] = (0, 1),... method __call__ (line 1208) | def __call__(self, img: torch.Tensor, lazy: bool | None = None) -> tor... method inverse (line 1221) | def inverse(self, data: torch.Tensor) -> torch.Tensor: method inverse_transform (line 1225) | def inverse_transform(self, data: torch.Tensor, transform) -> torch.Te... class RandRotate90 (line 1234) | class RandRotate90(RandomizableTransform, InvertibleTransform, LazyTrans... method __init__ (line 1245) | def __init__( method randomize (line 1265) | def randomize(self, data: Any | None = None) -> None: method __call__ (line 1271) | def __call__(self, img: torch.Tensor, randomize: bool = True, lazy: bo... method inverse (line 1294) | def inverse(self, data: torch.Tensor) -> torch.Tensor: class RandRotate (line 1302) | class RandRotate(RandomizableTransform, InvertibleTransform, LazyTransfo... method __init__ (line 1337) | def __init__( method randomize (line 1372) | def randomize(self, data: Any | None = None) -> None: method __call__ (line 1380) | def __call__( method inverse (line 1430) | def inverse(self, data: torch.Tensor) -> torch.Tensor: class RandFlip (line 1437) | class RandFlip(RandomizableTransform, InvertibleTransform, LazyTransform): method __init__ (line 1455) | def __init__(self, prob: float = 0.1, spatial_axis: Sequence[int] | in... method lazy (line 1461) | def lazy(self, val: bool): method __call__ (line 1465) | def __call__(self, img: torch.Tensor, randomize: bool = True, lazy: bo... method inverse (line 1482) | def inverse(self, data: torch.Tensor) -> torch.Tensor: class RandAxisFlip (line 1490) | class RandAxisFlip(RandomizableTransform, InvertibleTransform, LazyTrans... method __init__ (line 1507) | def __init__(self, prob: float = 0.1, lazy: bool = False) -> None: method lazy (line 1514) | def lazy(self, val: bool): method randomize (line 1518) | def randomize(self, data: NdarrayOrTensor) -> None: method __call__ (line 1524) | def __call__(self, img: torch.Tensor, randomize: bool = True, lazy: bo... method inverse (line 1545) | def inverse(self, data: torch.Tensor) -> torch.Tensor: class RandZoom (line 1554) | class RandZoom(RandomizableTransform, InvertibleTransform, LazyTransform): method __init__ (line 1598) | def __init__( method randomize (line 1628) | def randomize(self, img: NdarrayOrTensor) -> None: method __call__ (line 1640) | def __call__( method inverse (line 1695) | def inverse(self, data: torch.Tensor) -> torch.Tensor: class AffineGrid (line 1702) | class AffineGrid(LazyTransform): method __init__ (line 1740) | def __init__( method __call__ (line 1763) | def __call__( class RandAffineGrid (line 1828) | class RandAffineGrid(Randomizable, LazyTransform): method __init__ (line 1838) | def __init__( method _get_rand_param (line 1900) | def _get_rand_param(self, param_range, add_scalar: float = 0.0): method randomize (line 1911) | def randomize(self, data: Any | None = None) -> None: method __call__ (line 1917) | def __call__( method get_transformation_matrix (line 1955) | def get_transformation_matrix(self) -> torch.Tensor | None: class RandDeformGrid (line 1960) | class RandDeformGrid(Randomizable, Transform): method __init__ (line 1967) | def __init__( method randomize (line 1987) | def randomize(self, grid_size: Sequence[int]) -> None: method __call__ (line 1991) | def __call__(self, spatial_size: Sequence[int]) -> torch.Tensor: class Resample (line 2004) | class Resample(Transform): method __init__ (line 2007) | def __init__( method __call__ (line 2057) | def __call__( class Affine (line 2162) | class Affine(InvertibleTransform, LazyTransform): method __init__ (line 2173) | def __init__( method lazy (line 2266) | def lazy(self, val: bool) -> None: method __call__ (line 2270) | def __call__( method compute_w_affine (line 2325) | def compute_w_affine(cls, spatial_rank, mat, img_size, sp_size): method inverse (line 2333) | def inverse(self, data: torch.Tensor) -> torch.Tensor: class RandAffine (line 2359) | class RandAffine(RandomizableTransform, InvertibleTransform, LazyTransfo... method __init__ (line 2370) | def __init__( method lazy (line 2466) | def lazy(self, val: bool) -> None: method _init_identity_cache (line 2470) | def _init_identity_cache(self, lazy: bool): method get_identity_grid (line 2494) | def get_identity_grid(self, spatial_size: Sequence[int], lazy: bool): method set_random_state (line 2514) | def set_random_state(self, seed: int | None = None, state: np.random.R... method randomize (line 2519) | def randomize(self, data: Any | None = None) -> None: method __call__ (line 2525) | def __call__( method inverse (line 2599) | def inverse(self, data: torch.Tensor) -> torch.Tensor: class Rand2DElastic (line 2628) | class Rand2DElastic(RandomizableTransform): method __init__ (line 2637) | def __init__( method set_random_state (line 2720) | def set_random_state(self, seed: int | None = None, state: np.random.R... method set_device (line 2726) | def set_device(self, device): method randomize (line 2732) | def randomize(self, spatial_size: Sequence[int]) -> None: method __call__ (line 2739) | def __call__( class Rand3DElastic (line 2794) | class Rand3DElastic(RandomizableTransform): method __init__ (line 2803) | def __init__( method set_random_state (line 2894) | def set_random_state(self, seed: int | None = None, state: np.random.R... method set_device (line 2899) | def set_device(self, device): method randomize (line 2904) | def randomize(self, grid_size: Sequence[int]) -> None: method __call__ (line 2913) | def __call__( class GridDistortion (line 2963) | class GridDistortion(Transform): method __init__ (line 2966) | def __init__( method __call__ (line 3003) | def __call__( class RandGridDistortion (line 3062) | class RandGridDistortion(RandomizableTransform): method __init__ (line 3065) | def __init__( method randomize (line 3110) | def randomize(self, spatial_shape: Sequence[int]) -> None: method __call__ (line 3119) | def __call__( class GridSplit (line 3148) | class GridSplit(Transform, MultiSampleTrait): method __init__ (line 3168) | def __init__(self, grid: tuple[int, int] = (2, 2), size: int | tuple[i... method __call__ (line 3175) | def __call__( method _get_params (line 3213) | def _get_params(self, image_size: Sequence[int] | np.ndarray, size: Se... class GridPatch (line 3234) | class GridPatch(Transform, MultiSampleTrait): method __init__ (line 3277) | def __init__( method filter_threshold (line 3297) | def filter_threshold(self, image_np: NdarrayOrTensor, locations: np.nd... method filter_count (line 3313) | def filter_count(self, image_np: NdarrayOrTensor, locations: np.ndarra... method __call__ (line 3338) | def __call__(self, array: NdarrayOrTensor) -> MetaTensor: class RandGridPatch (line 3406) | class RandGridPatch(GridPatch, RandomizableTransform, MultiSampleTrait): method __init__ (line 3453) | def __init__( method randomize (line 3480) | def randomize(self, array): method filter_count (line 3492) | def filter_count(self, image_np: NdarrayOrTensor, locations: np.ndarra... method __call__ (line 3504) | def __call__(self, array: NdarrayOrTensor, randomize: bool = True): class RandSimulateLowResolution (line 3510) | class RandSimulateLowResolution(RandomizableTransform): method __init__ (line 3520) | def __init__( method randomize (line 3551) | def randomize(self, data: Any | None = None) -> None: method __call__ (line 3557) | def __call__(self, img: torch.Tensor, randomize: bool = True) -> torch... class ConvertBoxToPoints (line 3602) | class ConvertBoxToPoints(Transform): method __init__ (line 3611) | def __init__(self, mode: str | BoxMode | type[BoxMode] | None = None) ... method __call__ (line 3619) | def __call__(self, data: Any): class ConvertPointsToBoxes (line 3625) | class ConvertPointsToBoxes(Transform): method __init__ (line 3634) | def __init__(self) -> None: method __call__ (line 3637) | def __call__(self, data: Any): FILE: monai/transforms/spatial/dictionary.py class SpatialResampled (line 155) | class SpatialResampled(MapTransform, InvertibleTransform, LazyTransform): method __init__ (line 175) | def __init__( method lazy (line 225) | def lazy(self, val: bool) -> None: method __call__ (line 229) | def __call__(self, data: Mapping[Hashable, torch.Tensor], lazy: bool |... method inverse (line 259) | def inverse(self, data: Mapping[Hashable, torch.Tensor]) -> dict[Hasha... class ResampleToMatchd (line 266) | class ResampleToMatchd(MapTransform, InvertibleTransform, LazyTransform): method __init__ (line 277) | def __init__( method lazy (line 327) | def lazy(self, val: bool) -> None: method __call__ (line 331) | def __call__(self, data: Mapping[Hashable, torch.Tensor], lazy: bool |... method inverse (line 360) | def inverse(self, data: Mapping[Hashable, torch.Tensor]) -> dict[Hasha... class Spacingd (line 367) | class Spacingd(MapTransform, InvertibleTransform, LazyTransform): method __init__ (line 386) | def __init__( method lazy (line 482) | def lazy(self, val: bool) -> None: method __call__ (line 486) | def __call__(self, data: Mapping[Hashable, torch.Tensor], lazy: bool |... method inverse (line 536) | def inverse(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[Ha... class Orientationd (line 543) | class Orientationd(MapTransform, InvertibleTransform, LazyTransform): method __init__ (line 566) | def __init__( method lazy (line 608) | def lazy(self, val: bool) -> None: method __call__ (line 612) | def __call__(self, data: Mapping[Hashable, torch.Tensor], lazy: bool |... method inverse (line 631) | def inverse(self, data: Mapping[Hashable, torch.Tensor]) -> dict[Hasha... class Rotate90d (line 638) | class Rotate90d(MapTransform, InvertibleTransform, LazyTransform): method __init__ (line 648) | def __init__( method lazy (line 670) | def lazy(self, val: bool) -> None: method __call__ (line 674) | def __call__(self, data: Mapping[Hashable, torch.Tensor], lazy: bool |... method inverse (line 693) | def inverse(self, data: Mapping[Hashable, torch.Tensor]) -> dict[Hasha... class RandRotate90d (line 700) | class RandRotate90d(RandomizableTransform, MapTransform, InvertibleTrans... method __init__ (line 712) | def __init__( method randomize (line 744) | def randomize(self, data: Any | None = None) -> None: method __call__ (line 748) | def __call__( method inverse (line 775) | def inverse(self, data: Mapping[Hashable, torch.Tensor]) -> dict[Hasha... class Resized (line 786) | class Resized(MapTransform, InvertibleTransform, LazyTransform): method __init__ (line 831) | def __init__( method lazy (line 854) | def lazy(self, val: bool) -> None: method __call__ (line 858) | def __call__(self, data: Mapping[Hashable, torch.Tensor], lazy: bool |... method inverse (line 887) | def inverse(self, data: Mapping[Hashable, torch.Tensor]) -> dict[Hasha... class Affined (line 894) | class Affined(MapTransform, InvertibleTransform, LazyTransform): method __init__ (line 904) | def __init__( method lazy (line 996) | def lazy(self, val: bool) -> None: method __call__ (line 1000) | def __call__(self, data: Mapping[Hashable, torch.Tensor], lazy: bool |... method inverse (line 1019) | def inverse(self, data: Mapping[Hashable, torch.Tensor]) -> dict[Hasha... class RandAffined (line 1026) | class RandAffined(RandomizableTransform, MapTransform, InvertibleTransfo... method __init__ (line 1036) | def __init__( method lazy (line 1137) | def lazy(self, val: bool) -> None: method set_random_state (line 1141) | def set_random_state(self, seed: int | None = None, state: np.random.R... method __call__ (line 1146) | def __call__( method inverse (line 1196) | def inverse(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[Ha... class Rand2DElasticd (line 1210) | class Rand2DElasticd(RandomizableTransform, MapTransform): method __init__ (line 1217) | def __init__( method set_random_state (line 1306) | def set_random_state(self, seed: int | None = None, state: np.random.R... method __call__ (line 1311) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class Rand3DElasticd (line 1359) | class Rand3DElasticd(RandomizableTransform, MapTransform): method __init__ (line 1366) | def __init__( method set_random_state (line 1457) | def set_random_state(self, seed: int | None = None, state: np.random.R... method __call__ (line 1462) | def __call__(self, data: Mapping[Hashable, torch.Tensor]) -> dict[Hash... class Flipd (line 1503) | class Flipd(MapTransform, InvertibleTransform, LazyTransform): method __init__ (line 1523) | def __init__( method lazy (line 1535) | def lazy(self, val: bool): method __call__ (line 1539) | def __call__(self, data: Mapping[Hashable, torch.Tensor], lazy: bool |... method inverse (line 1558) | def inverse(self, data: Mapping[Hashable, torch.Tensor]) -> dict[Hasha... class RandFlipd (line 1565) | class RandFlipd(RandomizableTransform, MapTransform, InvertibleTransform... method __init__ (line 1586) | def __init__( method lazy (line 1600) | def lazy(self, val: bool): method set_random_state (line 1604) | def set_random_state(self, seed: int | None = None, state: np.random.R... method __call__ (line 1608) | def __call__(self, data: Mapping[Hashable, torch.Tensor], lazy: bool |... method inverse (line 1633) | def inverse(self, data: Mapping[Hashable, torch.Tensor]) -> dict[Hasha... class RandAxisFlipd (line 1644) | class RandAxisFlipd(RandomizableTransform, MapTransform, InvertibleTrans... method __init__ (line 1664) | def __init__( method lazy (line 1673) | def lazy(self, val: bool): method set_random_state (line 1677) | def set_random_state(self, seed: int | None = None, state: np.random.R... method __call__ (line 1682) | def __call__(self, data: Mapping[Hashable, torch.Tensor], lazy: bool |... method inverse (line 1714) | def inverse(self, data: Mapping[Hashable, torch.Tensor]) -> dict[Hasha... class Rotated (line 1724) | class Rotated(MapTransform, InvertibleTransform, LazyTransform): method __init__ (line 1759) | def __init__( method lazy (line 1781) | def lazy(self, val: bool): method __call__ (line 1785) | def __call__(self, data: Mapping[Hashable, torch.Tensor], lazy: bool |... method inverse (line 1808) | def inverse(self, data: Mapping[Hashable, torch.Tensor]) -> dict[Hasha... class RandRotated (line 1815) | class RandRotated(RandomizableTransform, MapTransform, InvertibleTransfo... method __init__ (line 1857) | def __init__( method lazy (line 1884) | def lazy(self, val: bool): method set_random_state (line 1888) | def set_random_state(self, seed: int | None = None, state: np.random.R... method __call__ (line 1893) | def __call__(self, data: Mapping[Hashable, torch.Tensor], lazy: bool |... method inverse (line 1931) | def inverse(self, data: Mapping[Hashable, torch.Tensor]) -> dict[Hasha... class Zoomd (line 1941) | class Zoomd(MapTransform, InvertibleTransform, LazyTransform): method __init__ (line 1981) | def __init__( method lazy (line 2004) | def lazy(self, val: bool): method __call__ (line 2008) | def __call__(self, data: Mapping[Hashable, torch.Tensor], lazy: bool |... method inverse (line 2031) | def inverse(self, data: Mapping[Hashable, torch.Tensor]) -> dict[Hasha... class RandZoomd (line 2038) | class RandZoomd(RandomizableTransform, MapTransform, InvertibleTransform... method __init__ (line 2085) | def __init__( method lazy (line 2112) | def lazy(self, val: bool): method set_random_state (line 2116) | def set_random_state(self, seed: int | None = None, state: np.random.R... method __call__ (line 2121) | def __call__(self, data: Mapping[Hashable, torch.Tensor], lazy: bool |... method inverse (line 2164) | def inverse(self, data: Mapping[Hashable, torch.Tensor]) -> dict[Hasha... class GridDistortiond (line 2174) | class GridDistortiond(MapTransform): method __init__ (line 2181) | def __init__( method __call__ (line 2220) | def __call__(self, data: Mapping[Hashable, torch.Tensor]) -> dict[Hash... class RandGridDistortiond (line 2236) | class RandGridDistortiond(RandomizableTransform, MapTransform): method __init__ (line 2243) | def __init__( method set_random_state (line 2288) | def set_random_state( method __call__ (line 2295) | def __call__(self, data: Mapping[Hashable, torch.Tensor]) -> dict[Hash... class GridSplitd (line 2324) | class GridSplitd(MapTransform, MultiSampleTrait): method __init__ (line 2342) | def __init__( method __call__ (line 2354) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> list[d... class GridPatchd (line 2374) | class GridPatchd(MapTransform, MultiSampleTrait): method __init__ (line 2419) | def __init__( method __call__ (line 2444) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class RandGridPatchd (line 2460) | class RandGridPatchd(RandomizableTransform, MapTransform, MultiSampleTra... method __init__ (line 2509) | def __init__( method set_random_state (line 2536) | def set_random_state(self, seed: int | None = None, state: np.random.R... method __call__ (line 2541) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class RandSimulateLowResolutiond (line 2561) | class RandSimulateLowResolutiond(RandomizableTransform, MapTransform): method __init__ (line 2572) | def __init__( method set_random_state (line 2619) | def set_random_state( method __call__ (line 2626) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class ConvertBoxToPointsd (line 2650) | class ConvertBoxToPointsd(MapTransform): method __init__ (line 2657) | def __init__( method __call__ (line 2675) | def __call__(self, data): class ConvertPointsToBoxesd (line 2682) | class ConvertPointsToBoxesd(MapTransform): method __init__ (line 2687) | def __init__(self, keys: KeysCollection, box_key="box", allow_missing_... method __call__ (line 2698) | def __call__(self, data): FILE: monai/transforms/spatial/functional.py function _maybe_new_metatensor (line 57) | def _maybe_new_metatensor(img, dtype=None, device=None): function spatial_resample (line 68) | def spatial_resample( function orientation (line 187) | def orientation(img, original_affine, spatial_ornt, lazy, transform_info... function flip (line 233) | def flip(img, sp_axes, lazy, transform_info): function resize (line 269) | def resize( function rotate (line 343) | def rotate(img, angle, output_shape, mode, padding_mode, align_corners, ... function zoom (line 414) | def zoom(img, scale_factor, keep_size, mode, padding_mode, align_corners... function rotate90 (line 498) | def rotate90(img, axes, k, lazy, transform_info): function affine_func (line 548) | def affine_func( function convert_box_to_points (line 616) | def convert_box_to_points(bbox, mode): function convert_points_to_box (line 666) | def convert_points_to_box(points): FILE: monai/transforms/traits.py class LazyTrait (line 22) | class LazyTrait: method lazy (line 32) | def lazy(self): method lazy (line 41) | def lazy(self, enabled: bool): method requires_current_data (line 50) | def requires_current_data(self): class InvertibleTrait (line 59) | class InvertibleTrait: method inverse (line 65) | def inverse(self, data: Any) -> Any: class RandomizableTrait (line 69) | class RandomizableTrait: class MultiSampleTrait (line 78) | class MultiSampleTrait: class ThreadUnsafe (line 87) | class ThreadUnsafe: class ReduceTrait (line 98) | class ReduceTrait: FILE: monai/transforms/transform.py function _apply_transform (line 46) | def _apply_transform( function apply_transform (line 101) | def apply_transform( class Randomizable (line 183) | class Randomizable(ThreadUnsafe, RandomizableTrait): method set_random_state (line 197) | def set_random_state(self, seed: int | None = None, state: np.random.R... method randomize (line 229) | def randomize(self, data: Any) -> None: class Transform (line 244) | class Transform(ABC): method __call__ (line 275) | def __call__(self, data: Any): class LazyTransform (line 300) | class LazyTransform(Transform, LazyTrait): method __init__ (line 306) | def __init__(self, lazy: bool | None = False): method lazy (line 313) | def lazy(self): method lazy (line 317) | def lazy(self, lazy: bool | None): method requires_current_data (line 324) | def requires_current_data(self): class RandomizableTransform (line 328) | class RandomizableTransform(Randomizable, Transform): method __init__ (line 356) | def __init__(self, prob: float = 1.0, do_transform: bool = True): method randomize (line 360) | def randomize(self, data: Any) -> None: class MapTransform (line 372) | class MapTransform(Transform): method __new__ (line 397) | def __new__(cls, *args, **kwargs): method __init__ (line 407) | def __init__(self, keys: KeysCollection, allow_missing_keys: bool = Fa... method call_update (line 417) | def call_update(self, data): method __call__ (line 439) | def __call__(self, data): method key_iterator (line 465) | def key_iterator(self, data: Mapping[Hashable, Any], *extra_iterables:... method first_key (line 488) | def first_key(self, data: dict[Hashable, Any]): FILE: monai/transforms/utility/array.py class Identity (line 117) | class Identity(Transform): method __call__ (line 126) | def __call__(self, img: NdarrayOrTensor) -> NdarrayOrTensor: class RandIdentity (line 133) | class RandIdentity(RandomizableTrait): method __call__ (line 141) | def __call__(self, data: Any) -> Any: class AsChannelLast (line 145) | class AsChannelLast(Transform): method __init__ (line 162) | def __init__(self, channel_dim: int = 0) -> None: method __call__ (line 167) | def __call__(self, img: NdarrayOrTensor) -> NdarrayOrTensor: class EnsureChannelFirst (line 175) | class EnsureChannelFirst(Transform): method __init__ (line 193) | def __init__(self, strict_check: bool = True, channel_dim: None | str ... method __call__ (line 197) | def __call__(self, img: torch.Tensor, meta_dict: Mapping | None = None... class RepeatChannel (line 237) | class RepeatChannel(Transform): method __init__ (line 249) | def __init__(self, repeats: int) -> None: method __call__ (line 254) | def __call__(self, img: NdarrayOrTensor) -> NdarrayOrTensor: class RemoveRepeatedChannel (line 262) | class RemoveRepeatedChannel(Transform): method __init__ (line 274) | def __init__(self, repeats: int) -> None: method __call__ (line 280) | def __call__(self, img: NdarrayOrTensor) -> NdarrayOrTensor: class SplitDim (line 291) | class SplitDim(Transform, MultiSampleTrait): method __init__ (line 308) | def __init__(self, dim: int = -1, keepdim: bool = True, update_meta=Tr... method __call__ (line 313) | def __call__(self, img: torch.Tensor) -> list[torch.Tensor]: class CastToType (line 337) | class CastToType(Transform): method __init__ (line 362) | def __init__(self, dtype=np.float32) -> None: method __call__ (line 369) | def __call__(self, img: NdarrayOrTensor, dtype: DtypeLike | torch.dtyp... class ToTensor (line 383) | class ToTensor(Transform): method __init__ (line 402) | def __init__( method __call__ (line 415) | def __call__(self, img: NdarrayOrTensor): class EnsureType (line 426) | class EnsureType(Transform): method __init__ (line 462) | def __init__( method __call__ (line 476) | def __call__(self, data: NdarrayOrTensor, dtype: DtypeLike | torch.dty... class ToNumpy (line 501) | class ToNumpy(Transform): method __init__ (line 514) | def __init__(self, dtype: DtypeLike = None, wrap_sequence: bool = True... method __call__ (line 519) | def __call__(self, img: NdarrayOrTensor): class ToCupy (line 526) | class ToCupy(Transform): method __init__ (line 541) | def __init__(self, dtype: np.dtype | None = None, wrap_sequence: bool ... method __call__ (line 546) | def __call__(self, data: NdarrayOrTensor): class ToPIL (line 553) | class ToPIL(Transform): method __call__ (line 560) | def __call__(self, img): class Transpose (line 571) | class Transpose(Transform): method __init__ (line 578) | def __init__(self, indices: Sequence[int] | None) -> None: method __call__ (line 581) | def __call__(self, img: NdarrayOrTensor) -> NdarrayOrTensor: class SqueezeDim (line 589) | class SqueezeDim(Transform): method __init__ (line 596) | def __init__(self, dim: int | None = 0, update_meta=True) -> None: method __call__ (line 612) | def __call__(self, img: NdarrayOrTensor) -> NdarrayOrTensor: class DataStats (line 640) | class DataStats(Transform): method __init__ (line 655) | def __init__( method __call__ (line 708) | def __call__( class SimulateDelay (line 749) | class SimulateDelay(Transform): method __init__ (line 763) | def __init__(self, delay_time: float = 0.0) -> None: method __call__ (line 772) | def __call__(self, img: NdarrayOrTensor, delay_time: float | None = No... class Lambda (line 783) | class Lambda(InvertibleTransform): method __init__ (line 810) | def __init__( method __call__ (line 819) | def __call__(self, img: NdarrayOrTensor, func: Callable | None = None): method inverse (line 841) | def inverse(self, data: torch.Tensor): class RandLambda (line 847) | class RandLambda(Lambda, RandomizableTransform): method __init__ (line 864) | def __init__( method __call__ (line 874) | def __call__(self, img: NdarrayOrTensor, func: Callable | None = None): method inverse (line 885) | def inverse(self, data: torch.Tensor): class LabelToMask (line 894) | class LabelToMask(Transform): method __init__ (line 915) | def __init__( # pytype: disable=annotation-type-mismatch method __call__ (line 921) | def __call__( class FgBgToIndices (line 950) | class FgBgToIndices(Transform, MultiSampleTrait): method __init__ (line 967) | def __init__(self, image_threshold: float = 0.0, output_shape: Sequenc... method __call__ (line 971) | def __call__( class ClassesToIndices (line 991) | class ClassesToIndices(Transform, MultiSampleTrait): method __init__ (line 994) | def __init__( method __call__ (line 1022) | def __call__( class ConvertToMultiChannelBasedOnBratsClasses (line 1046) | class ConvertToMultiChannelBasedOnBratsClasses(Transform): method __call__ (line 1057) | def __call__(self, img: NdarrayOrTensor) -> NdarrayOrTensor: class AddExtremePointsChannel (line 1068) | class AddExtremePointsChannel(Randomizable, Transform): method __init__ (line 1090) | def __init__(self, background: int = 0, pert: float = 0.0) -> None: method randomize (line 1095) | def randomize(self, label: NdarrayOrTensor) -> None: method __call__ (line 1098) | def __call__( class TorchVision (line 1132) | class TorchVision(Transform): method __init__ (line 1140) | def __init__(self, name: str, *args, **kwargs) -> None: method __call__ (line 1153) | def __call__(self, img: NdarrayOrTensor): class RandTorchVision (line 1166) | class RandTorchVision(Transform, RandomizableTrait): method __init__ (line 1174) | def __init__(self, name: str, *args, **kwargs) -> None: method __call__ (line 1187) | def __call__(self, img: NdarrayOrTensor): class TorchIO (line 1200) | class TorchIO(Transform): method __init__ (line 1208) | def __init__(self, name: str, *args, **kwargs) -> None: method __call__ (line 1220) | def __call__(self, img: NdarrayOrTensor | Mapping[Hashable, NdarrayOrT... class RandTorchIO (line 1230) | class RandTorchIO(Transform, RandomizableTrait): method __init__ (line 1240) | def __init__(self, name: str, *args, **kwargs) -> None: method __call__ (line 1252) | def __call__(self, img: NdarrayOrTensor | Mapping[Hashable, NdarrayOrT... class MapLabelValue (line 1262) | class MapLabelValue: method __init__ (line 1273) | def __init__(self, orig_labels: Sequence, target_labels: Sequence, dty... method __call__ (line 1296) | def __call__(self, img: NdarrayOrTensor): class IntensityStats (line 1318) | class IntensityStats(Transform): method __init__ (line 1339) | def __init__(self, ops: Sequence[str | Callable], key_prefix: str, cha... method __call__ (line 1344) | def __call__( class ToDevice (line 1395) | class ToDevice(Transform): method __init__ (line 1410) | def __init__(self, device: torch.device | str, **kwargs) -> None: method __call__ (line 1421) | def __call__(self, img: torch.Tensor): class CuCIM (line 1428) | class CuCIM(Transform): method __init__ (line 1443) | def __init__(self, name: str, *args, **kwargs) -> None: method __call__ (line 1450) | def __call__(self, data): class RandCuCIM (line 1462) | class RandCuCIM(CuCIM, RandomizableTrait): method __init__ (line 1479) | def __init__(self, name: str, *args, **kwargs) -> None: class AddCoordinateChannels (line 1483) | class AddCoordinateChannels(Transform): method __init__ (line 1501) | def __init__(self, spatial_dims: Sequence[int]) -> None: method __call__ (line 1504) | def __call__(self, img: NdarrayOrTensor) -> NdarrayOrTensor: class ImageFilter (line 1519) | class ImageFilter(Transform): method __init__ (line 1654) | def __init__(self, filter: str | NdarrayOrTensor | nn.Module, filter_s... method __call__ (line 1661) | def __call__( method _check_all_values_uneven (line 1692) | def _check_all_values_uneven(self, x: tuple) -> None: method _check_filter_format (line 1697) | def _check_filter_format(self, filter: str | NdarrayOrTensor | nn.Modu... method _check_kwargs_are_present (line 1716) | def _check_kwargs_are_present(self, filter: str | NdarrayOrTensor | nn... method _get_filter_from_string (line 1737) | def _get_filter_from_string(self, filter: str, size: int, ndim: int) -... method _apply_filter (line 1765) | def _apply_filter(self, img: torch.Tensor) -> torch.Tensor: class RandImageFilter (line 1774) | class RandImageFilter(RandomizableTransform): method __init__ (line 1793) | def __init__( method __call__ (line 1799) | def __call__(self, img: NdarrayOrTensor, meta_dict: Mapping | None = N... class ApplyTransformToPoints (line 1816) | class ApplyTransformToPoints(InvertibleTransform, Transform): method __init__ (line 1849) | def __init__( method _compute_final_affine (line 1861) | def _compute_final_affine(self, affine: torch.Tensor, applied_affine: ... method transform_coordinates (line 1885) | def transform_coordinates( method __call__ (line 1926) | def __call__(self, data: torch.Tensor, affine: torch.Tensor | None = N... method inverse (line 1943) | def inverse(self, data: torch.Tensor) -> torch.Tensor: class FlattenSequence (line 1956) | class FlattenSequence(Transform, ReduceTrait): method __init__ (line 1973) | def __init__(self): method __call__ (line 1976) | def __call__(self, data: list | tuple | Any) -> list | tuple | Any: FILE: monai/transforms/utility/dictionary.py class Identityd (line 203) | class Identityd(MapTransform): method __init__ (line 210) | def __init__(self, keys: KeysCollection, allow_missing_keys: bool = Fa... method __call__ (line 221) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class AsChannelLastd (line 228) | class AsChannelLastd(MapTransform): method __init__ (line 235) | def __init__(self, keys: KeysCollection, channel_dim: int = 0, allow_m... method __call__ (line 246) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class EnsureChannelFirstd (line 253) | class EnsureChannelFirstd(MapTransform): method __init__ (line 260) | def __init__( method __call__ (line 277) | def __call__(self, data: Mapping[Hashable, torch.Tensor]) -> dict[Hash... class RepeatChanneld (line 285) | class RepeatChanneld(MapTransform): method __init__ (line 292) | def __init__(self, keys: KeysCollection, repeats: int, allow_missing_k... method __call__ (line 303) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class RemoveRepeatedChanneld (line 310) | class RemoveRepeatedChanneld(MapTransform): method __init__ (line 317) | def __init__(self, keys: KeysCollection, repeats: int, allow_missing_k... method __call__ (line 328) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class SplitDimd (line 335) | class SplitDimd(MapTransform, MultiSampleTrait): method __init__ (line 338) | def __init__( method __call__ (line 371) | def __call__( class CastToTyped (line 401) | class CastToTyped(MapTransform): method __init__ (line 408) | def __init__( method __call__ (line 428) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class ToTensord (line 436) | class ToTensord(MapTransform, InvertibleTransform): method __init__ (line 443) | def __init__( method __call__ (line 468) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... method inverse (line 475) | def inverse(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[Ha... class EnsureTyped (line 487) | class EnsureTyped(MapTransform): method __init__ (line 502) | def __init__( method __call__ (line 532) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class ToNumpyd (line 539) | class ToNumpyd(MapTransform): method __init__ (line 546) | def __init__( method __call__ (line 565) | def __call__(self, data: Mapping[Hashable, Any]) -> dict[Hashable, Any]: class ToCupyd (line 572) | class ToCupyd(MapTransform): method __init__ (line 589) | def __init__( method __call__ (line 599) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class ToPILd (line 606) | class ToPILd(MapTransform): method __init__ (line 613) | def __init__(self, keys: KeysCollection, allow_missing_keys: bool = Fa... method __call__ (line 623) | def __call__(self, data: Mapping[Hashable, Any]) -> dict[Hashable, Any]: class Transposed (line 630) | class Transposed(MapTransform, InvertibleTransform): method __init__ (line 637) | def __init__(self, keys: KeysCollection, indices: Sequence[int] | None... method __call__ (line 641) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... method inverse (line 650) | def inverse(self, data: Mapping[Hashable, Any]) -> dict[Hashable, Any]: class DeleteItemsd (line 665) | class DeleteItemsd(MapTransform): method __init__ (line 673) | def __init__(self, keys: KeysCollection, sep: str = ".", use_re: Seque... method __call__ (line 687) | def __call__(self, data): class SelectItemsd (line 703) | class SelectItemsd(MapTransform): method __call__ (line 711) | def __call__(self, data): class FlattenSubKeysd (line 715) | class FlattenSubKeysd(MapTransform): method __init__ (line 730) | def __init__( method __call__ (line 742) | def __call__(self, data): class SqueezeDimd (line 764) | class SqueezeDimd(MapTransform): method __init__ (line 771) | def __init__( method __call__ (line 785) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class DataStatsd (line 792) | class DataStatsd(MapTransform): method __init__ (line 799) | def __init__( method __call__ (line 846) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class SimulateDelayd (line 873) | class SimulateDelayd(MapTransform): method __init__ (line 880) | def __init__( method __call__ (line 896) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class CopyItemsd (line 903) | class CopyItemsd(MapTransform): method __init__ (line 911) | def __init__( method __call__ (line 947) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class ConcatItemsd (line 964) | class ConcatItemsd(MapTransform): method __init__ (line 973) | def __init__(self, keys: KeysCollection, name: str, dim: int = 0, allo... method __call__ (line 986) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class Lambdad (line 1017) | class Lambdad(MapTransform, InvertibleTransform): method __init__ (line 1054) | def __init__( method __call__ (line 1069) | def __call__(self, data: Mapping[Hashable, torch.Tensor]) -> dict[Hash... method inverse (line 1079) | def inverse(self, data): class RandLambdad (line 1088) | class RandLambdad(Lambdad, RandomizableTransform): method __init__ (line 1116) | def __init__( method __call__ (line 1137) | def __call__(self, data): method inverse (line 1153) | def inverse(self, data: Mapping[Hashable, torch.Tensor]) -> dict[Hasha... class LabelToMaskd (line 1166) | class LabelToMaskd(MapTransform): method __init__ (line 1184) | def __init__( # pytype: disable=annotation-type-mismatch method __call__ (line 1194) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class FgBgToIndicesd (line 1202) | class FgBgToIndicesd(MapTransform, MultiSampleTrait): method __init__ (line 1224) | def __init__( method __call__ (line 1240) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class ClassesToIndicesd (line 1249) | class ClassesToIndicesd(MapTransform, MultiSampleTrait): method __init__ (line 1272) | def __init__( method __call__ (line 1288) | def __call__(self, data: Mapping[Hashable, Any]): class ConvertToMultiChannelBasedOnBratsClassesd (line 1297) | class ConvertToMultiChannelBasedOnBratsClassesd(MapTransform): method __init__ (line 1310) | def __init__(self, keys: KeysCollection, allow_missing_keys: bool = Fa... method __call__ (line 1314) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class AddExtremePointsChanneld (line 1321) | class AddExtremePointsChanneld(Randomizable, MapTransform): method __init__ (line 1342) | def __init__( method randomize (line 1362) | def randomize(self, label: NdarrayOrTensor) -> None: method __call__ (line 1365) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class TorchVisiond (line 1388) | class TorchVisiond(MapTransform): method __init__ (line 1400) | def __init__(self, keys: KeysCollection, name: str, allow_missing_keys... method __call__ (line 1415) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class RandTorchVisiond (line 1422) | class RandTorchVisiond(MapTransform, RandomizableTrait): method __init__ (line 1447) | def __init__(self, keys: KeysCollection, name: str, allow_missing_keys... method __call__ (line 1452) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class TorchIOd (line 1459) | class TorchIOd(MapTransform): method __init__ (line 1467) | def __init__(self, keys: KeysCollection, name: str, allow_missing_keys... method __call__ (line 1484) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> Mappin... class RandTorchIOd (line 1488) | class RandTorchIOd(MapTransform, RandomizableTrait): method __init__ (line 1496) | def __init__(self, keys: KeysCollection, name: str, allow_missing_keys... method __call__ (line 1513) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> Mappin... class MapLabelValued (line 1517) | class MapLabelValued(MapTransform): method __init__ (line 1524) | def __init__( method __call__ (line 1546) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class IntensityStatsd (line 1553) | class IntensityStatsd(MapTransform): method __init__ (line 1590) | def __init__( method __call__ (line 1609) | def __call__(self, data) -> dict[Hashable, NdarrayOrTensor]: class ToDeviced (line 1621) | class ToDeviced(MapTransform): method __init__ (line 1628) | def __init__( method __call__ (line 1643) | def __call__(self, data: Mapping[Hashable, torch.Tensor]) -> dict[Hash... class CuCIMd (line 1650) | class CuCIMd(MapTransform): method __init__ (line 1668) | def __init__(self, keys: KeysCollection, name: str, allow_missing_keys... method __call__ (line 1673) | def __call__(self, data): class RandCuCIMd (line 1688) | class RandCuCIMd(MapTransform, RandomizableTrait): method __init__ (line 1709) | def __init__(self, keys: KeysCollection, name: str, allow_missing_keys... method __call__ (line 1714) | def __call__(self, data): class AddCoordinateChannelsd (line 1729) | class AddCoordinateChannelsd(MapTransform): method __init__ (line 1745) | def __init__(self, keys: KeysCollection, spatial_dims: Sequence[int], ... method __call__ (line 1749) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class ImageFilterd (line 1756) | class ImageFilterd(MapTransform): method __init__ (line 1776) | def __init__( method __call__ (line 1787) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class RandImageFilterd (line 1794) | class RandImageFilterd(MapTransform, RandomizableTransform): method __init__ (line 1820) | def __init__( method __call__ (line 1833) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... class ApplyTransformToPointsd (line 1842) | class ApplyTransformToPointsd(MapTransform, InvertibleTransform): method __init__ (line 1874) | def __init__( method __call__ (line 1890) | def __call__(self, data: Mapping[Hashable, torch.Tensor]): method inverse (line 1906) | def inverse(self, data: Mapping[Hashable, torch.Tensor]) -> dict[Hasha... class FlattenSequenced (line 1913) | class FlattenSequenced(MapTransform, ReduceTrait): method __init__ (line 1924) | def __init__(self, keys: KeysCollection, allow_missing_keys: bool = Fa... method __call__ (line 1928) | def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]) -> dict[H... FILE: monai/transforms/utils.py function soft_clip (line 147) | def soft_clip( function rand_choice (line 182) | def rand_choice(prob: float = 0.5) -> bool: function img_bounds (line 189) | def img_bounds(img: np.ndarray): function in_bounds (line 198) | def in_bounds(x: float, y: float, margin: float, maxx: float, maxy: floa... function is_empty (line 205) | def is_empty(img: np.ndarray | torch.Tensor) -> bool: function is_positive (line 212) | def is_positive(img): function zero_margins (line 219) | def zero_margins(img: np.ndarray, margin: int) -> bool: function rescale_array (line 229) | def rescale_array( function rescale_instance_array (line 260) | def rescale_instance_array( function rescale_array_int_max (line 273) | def rescale_array_int_max(arr: np.ndarray, dtype: DtypeLike = np.uint16)... function copypaste_arrays (line 281) | def copypaste_arrays( function resize_center (line 337) | def resize_center(img: np.ndarray, *resize_dims: int | None, fill_value:... function check_non_lazy_pending_ops (line 358) | def check_non_lazy_pending_ops( function map_and_generate_sampling_centers (line 379) | def map_and_generate_sampling_centers( function map_binary_to_indices (line 443) | def map_binary_to_indices( function map_classes_to_indices (line 479) | def map_classes_to_indices( function weighted_patch_samples (line 544) | def weighted_patch_samples( function correct_crop_centers (line 593) | def correct_crop_centers( function generate_pos_neg_label_crop_centers (line 637) | def generate_pos_neg_label_crop_centers( function generate_label_classes_crop_centers (line 695) | def generate_label_classes_crop_centers( function create_grid (line 758) | def create_grid( function _create_grid_numpy (line 790) | def _create_grid_numpy( function _create_grid_torch (line 807) | def _create_grid_torch( function create_control_grid (line 834) | def create_control_grid( function create_rotate (line 859) | def create_rotate( function _create_rotate (line 897) | def _create_rotate( function create_shear (line 944) | def create_shear( function _create_shear (line 982) | def _create_shear(spatial_dims: int, coefs: Sequence[float] | float, eye... function create_scale (line 998) | def create_scale( function _create_scale (line 1025) | def _create_scale(spatial_dims: int, scaling_factor: Sequence[float] | f... function create_translate (line 1030) | def create_translate( function _create_translate (line 1059) | def _create_translate( function generate_spatial_bounding_box (line 1069) | def generate_spatial_bounding_box( function get_largest_connected_component_mask (line 1134) | def get_largest_connected_component_mask( function keep_merge_components_with_points (line 1183) | def keep_merge_components_with_points( function keep_components_with_positive_points (line 1255) | def keep_components_with_positive_points( function convert_points_to_disc (line 1298) | def convert_points_to_disc( function sample_points_from_label (line 1334) | def sample_points_from_label( function remove_small_objects (line 1404) | def remove_small_objects( function get_unique_labels (line 1478) | def get_unique_labels(img: NdarrayOrTensor, is_onehot: bool, discard: in... function fill_holes (line 1504) | def fill_holes( function get_extreme_points (line 1563) | def get_extreme_points( function extreme_points_to_image (line 1621) | def extreme_points_to_image( function map_spatial_axes (line 1667) | def map_spatial_axes( function allow_missing_keys_mode (line 1703) | def allow_missing_keys_mode(transform: MapTransform | Compose | tuple[Ma... function convert_applied_interp_mode (line 1752) | def convert_applied_interp_mode(trans_info, mode: str = "nearest", align... function reset_ops_id (line 1788) | def reset_ops_id(data): function compute_divisible_spatial_size (line 1803) | def compute_divisible_spatial_size(spatial_shape: Sequence[int], k: Sequ... function equalize_hist (line 1823) | def equalize_hist( class Fourier (line 1859) | class Fourier: method shift_fourier (line 1865) | def shift_fourier(x: NdarrayOrTensor, spatial_dims: int, as_contiguous... method inv_shift_fourier (line 1887) | def inv_shift_fourier(k: NdarrayOrTensor, spatial_dims: int, as_contig... function get_number_image_type_conversions (line 1909) | def get_number_image_type_conversions(transform: Compose, test_data: Any... function get_transform_backends (line 1946) | def get_transform_backends(): function print_transform_backends (line 1996) | def print_transform_backends(): function convert_pad_mode (line 2037) | def convert_pad_mode(dst: NdarrayOrTensor, mode: str | None): function convert_to_contiguous (line 2061) | def convert_to_contiguous( function scale_affine (line 2083) | def scale_affine(spatial_size, new_spatial_size, centered: bool = True): function attach_hook (line 2106) | def attach_hook(func, hook, mode="pre"): function sync_meta_info (line 2125) | def sync_meta_info(key, data_dict, t: bool = True): function check_boundaries (line 2162) | def check_boundaries(boundaries) -> None: function paste_slices (line 2172) | def paste_slices(tup): function paste (line 2186) | def paste(orig, block, loc): function squarepulse (line 2200) | def squarepulse(sig, duty: float = 0.5): function _to_numpy_resample_interp_mode (line 2222) | def _to_numpy_resample_interp_mode(interp_mode): function _to_torch_resample_interp_mode (line 2241) | def _to_torch_resample_interp_mode(interp_mode): function _to_numpy_resample_padding_mode (line 2256) | def _to_numpy_resample_padding_mode(m): function _to_torch_resample_padding_mode (line 2271) | def _to_torch_resample_padding_mode(m): function resolves_modes (line 2291) | def resolves_modes( function check_applied_operations (line 2341) | def check_applied_operations(entry: list | dict, status_key: str, defaul... function has_status_keys (line 2369) | def has_status_keys(data: torch.Tensor, status_key: Any, default_message... function distance_transform_edt (line 2416) | def distance_transform_edt( function apply_affine_to_points (line 2553) | def apply_affine_to_points(data: torch.Tensor, affine: torch.Tensor, dty... FILE: monai/transforms/utils_create_transform_ims.py function get_data (line 203) | def get_data(keys): function update_docstring (line 233) | def update_docstring(code_path, transform_name): function pre_process_data (line 271) | def pre_process_data(data, ndim, is_map, is_post): function get_2d_slice (line 280) | def get_2d_slice(image, view: int, is_label): function get_stacked_2d_ims (line 297) | def get_stacked_2d_ims(im, is_label): function get_stacked_before_after (line 305) | def get_stacked_before_after(before, after, is_label=False): function save_image (line 312) | def save_image(images, labels, filename, transform_name, transform_args,... function get_images (line 370) | def get_images(data, is_label=False): function create_transform_im (line 413) | def create_transform_im( FILE: monai/transforms/utils_morphological_ops.py function erode (line 26) | def erode(mask: NdarrayOrTensor, filter_size: int | Sequence[int] = 3, p... function dilate (line 58) | def dilate(mask: NdarrayOrTensor, filter_size: int | Sequence[int] = 3, ... function get_morphological_filter_result_t (line 90) | def get_morphological_filter_result_t(mask_t: Tensor, filter_size: int |... function erode_t (line 130) | def erode_t(mask_t: Tensor, filter_size: int | Sequence[int] = 3, pad_va... function dilate_t (line 153) | def dilate_t(mask_t: Tensor, filter_size: int | Sequence[int] = 3, pad_v... FILE: monai/transforms/utils_pytorch_numpy_unification.py function softplus (line 58) | def softplus(x: NdarrayOrTensor) -> NdarrayOrTensor: function allclose (line 72) | def allclose(a: NdarrayTensor, b: NdarrayOrTensor, rtol=1e-5, atol=1e-8,... function moveaxis (line 80) | def moveaxis(x: NdarrayOrTensor, src: int | Sequence[int], dst: int | Se... function in1d (line 87) | def in1d(x, y): function clip (line 94) | def clip(a: NdarrayOrTensor, a_min, a_max) -> NdarrayOrTensor: function percentile (line 104) | def percentile( function where (line 139) | def where(condition: NdarrayOrTensor, x=None, y=None) -> NdarrayOrTensor: function argwhere (line 159) | def argwhere(a: NdarrayTensor) -> NdarrayTensor: function argsort (line 174) | def argsort(a: NdarrayTensor, axis: int | None = -1) -> NdarrayTensor: function nonzero (line 189) | def nonzero(x: NdarrayOrTensor) -> NdarrayOrTensor: function floor_divide (line 203) | def floor_divide(a: NdarrayOrTensor, b) -> NdarrayOrTensor: function unravel_index (line 222) | def unravel_index(idx, shape) -> NdarrayOrTensor: function unravel_indices (line 241) | def unravel_indices(idx, shape) -> NdarrayOrTensor: function ravel (line 255) | def ravel(x: NdarrayOrTensor) -> NdarrayOrTensor: function any_np_pt (line 271) | def any_np_pt(x: NdarrayOrTensor, axis: int | Sequence[int]) -> NdarrayO... function maximum (line 297) | def maximum(a: NdarrayOrTensor, b: NdarrayOrTensor) -> NdarrayOrTensor: function concatenate (line 312) | def concatenate(to_cat: Sequence[NdarrayOrTensor], axis: int = 0, out=No... function cumsum (line 319) | def cumsum(a: NdarrayOrTensor, axis=None, **kwargs) -> NdarrayOrTensor: function isfinite (line 338) | def isfinite(x: NdarrayOrTensor) -> NdarrayOrTensor: function searchsorted (line 345) | def searchsorted(a: NdarrayTensor, v: NdarrayOrTensor, right=False, sort... function repeat (line 364) | def repeat(a: NdarrayOrTensor, repeats: int, axis: int | None = None, **... function isnan (line 381) | def isnan(x: NdarrayOrTensor) -> NdarrayOrTensor: function ascontiguousarray (line 396) | def ascontiguousarray(x: NdarrayTensor | T, **kwargs) -> NdarrayOrTensor... function stack (line 414) | def stack(x: Sequence[NdarrayTensor], dim: int) -> NdarrayTensor: function mode (line 426) | def mode(x: NdarrayTensor, dim: int = -1, to_long: bool = True) -> Ndarr... function unique (line 441) | def unique(x: NdarrayTensor, **kwargs) -> NdarrayTensor: function linalg_inv (line 450) | def linalg_inv(x: NdarrayTensor) -> NdarrayTensor: function max (line 461) | def max(x: NdarrayTensor, dim: int | tuple | None = None, **kwargs) -> N... function mean (line 484) | def mean(x: NdarrayTensor, dim: int | tuple | None = None, **kwargs) -> ... function median (line 506) | def median(x: NdarrayTensor, dim: int | tuple | None = None, **kwargs) -... function min (line 528) | def min(x: NdarrayTensor, dim: int | tuple | None = None, **kwargs) -> N... function std (line 550) | def std(x: NdarrayTensor, dim: int | tuple | None = None, unbiased: bool... function sum (line 572) | def sum(x: NdarrayTensor, dim: int | tuple | None = None, **kwargs) -> N... FILE: monai/utils/component_store.py function is_variable (line 23) | def is_variable(name): class ComponentStore (line 28) | class ComponentStore: method __init__ (line 56) | def __init__(self, name: str, description: str) -> None: method add (line 63) | def add(self, name: str, desc: str, value: T) -> T: method add_def (line 71) | def add_def(self, name: str, desc: str) -> Callable: method names (line 81) | def names(self) -> tuple[str, ...]: method __contains__ (line 88) | def __contains__(self, name: str) -> bool: method __len__ (line 92) | def __len__(self) -> int: method __iter__ (line 96) | def __iter__(self) -> Iterable: method __str__ (line 101) | def __str__(self): method __getattr__ (line 114) | def __getattr__(self, name: str) -> Any: method __getitem__ (line 121) | def __getitem__(self, name: str) -> Any: FILE: monai/utils/decorators.py class RestartGenerator (line 22) | class RestartGenerator: method __init__ (line 28) | def __init__(self, create_gen: Callable[[], Generator]) -> None: method __iter__ (line 31) | def __iter__(self) -> Generator: class MethodReplacer (line 35) | class MethodReplacer: method __init__ (line 42) | def __init__(self, meth: Callable) -> None: method replace_method (line 45) | def replace_method(self, meth): method __set_name__ (line 51) | def __set_name__(self, owner, name): FILE: monai/utils/deprecate_utils.py class DeprecatedError (line 29) | class DeprecatedError(Exception): function warn_deprecated (line 33) | def warn_deprecated(obj, msg, warning_category=FutureWarning): function deprecated (line 40) | def deprecated( function deprecated_arg (line 122) | def deprecated_arg( function deprecated_arg_default (line 229) | def deprecated_arg_default( FILE: monai/utils/dist.py function get_dist_device (line 30) | def get_dist_device(): function evenly_divisible_all_gather (line 48) | def evenly_divisible_all_gather(data: torch.Tensor, concat: Literal[True... function evenly_divisible_all_gather (line 52) | def evenly_divisible_all_gather(data: torch.Tensor, concat: Literal[Fals... function evenly_divisible_all_gather (line 56) | def evenly_divisible_all_gather(data: torch.Tensor, concat: bool) -> tor... function evenly_divisible_all_gather (line 59) | def evenly_divisible_all_gather(data: torch.Tensor, concat: bool = True)... function string_list_all_gather (line 143) | def string_list_all_gather(strings: list[str], delimiter: str = "\t") ->... class RankFilter (line 174) | class RankFilter(Filter): method __init__ (line 186) | def __init__(self, rank: int | None = None, filter_fn: Callable = lamb... method filter (line 200) | def filter(self, *_args): FILE: monai/utils/enums.py class StrEnum (line 68) | class StrEnum(str, Enum): method __str__ (line 86) | def __str__(self): method __repr__ (line 89) | def __repr__(self): class NumpyPadMode (line 93) | class NumpyPadMode(StrEnum): class NdimageMode (line 111) | class NdimageMode(StrEnum): class GridSampleMode (line 127) | class GridSampleMode(StrEnum): class SplineMode (line 145) | class SplineMode(StrEnum): class InterpolateMode (line 160) | class InterpolateMode(StrEnum): class UpsampleMode (line 174) | class UpsampleMode(StrEnum): class DownsampleMode (line 185) | class DownsampleMode(StrEnum): class BlendMode (line 197) | class BlendMode(StrEnum): class PytorchPadMode (line 206) | class PytorchPadMode(StrEnum): class GridSamplePadMode (line 217) | class GridSamplePadMode(StrEnum): class Average (line 227) | class Average(StrEnum): class MetricReduction (line 239) | class MetricReduction(StrEnum): class LossReduction (line 253) | class LossReduction(StrEnum): class DiceCEReduction (line 267) | class DiceCEReduction(StrEnum): class Weight (line 277) | class Weight(StrEnum): class ChannelMatching (line 287) | class ChannelMatching(StrEnum): class SkipMode (line 296) | class SkipMode(StrEnum): class Method (line 306) | class Method(StrEnum): class ForwardMode (line 315) | class ForwardMode(StrEnum): class TraceKeys (line 324) | class TraceKeys(StrEnum): class TraceStatusKeys (line 339) | class TraceStatusKeys(StrEnum): class CommonKeys (line 345) | class CommonKeys(StrEnum): class GanKeys (line 363) | class GanKeys(StrEnum): class PostFix (line 376) | class PostFix(StrEnum): method _get_str (line 380) | def _get_str(prefix: str | None, suffix: str) -> str: method meta (line 384) | def meta(key: str | None = None) -> str: method orig_meta (line 388) | def orig_meta(key: str | None = None) -> str: method transforms (line 392) | def transforms(key: str | None = None) -> str: class TransformBackends (line 396) | class TransformBackends(StrEnum): class CompInitMode (line 410) | class CompInitMode(StrEnum): class JITMetadataKeys (line 422) | class JITMetadataKeys(StrEnum): class BoxModeName (line 434) | class BoxModeName(StrEnum): class ProbMapKeys (line 450) | class ProbMapKeys(StrEnum): class GridPatchSort (line 461) | class GridPatchSort(StrEnum): method min_fn (line 471) | def min_fn(x): method max_fn (line 475) | def max_fn(x): method get_sort_fn (line 479) | def get_sort_fn(sort_fn): class PatchKeys (line 493) | class PatchKeys(StrEnum): class WSIPatchKeys (line 503) | class WSIPatchKeys(StrEnum): class FastMRIKeys (line 515) | class FastMRIKeys(StrEnum): class SpaceKeys (line 530) | class SpaceKeys(StrEnum): class MetaKeys (line 540) | class MetaKeys(StrEnum): class ColorOrder (line 555) | class ColorOrder(StrEnum): class EngineStatsKeys (line 564) | class EngineStatsKeys(StrEnum): class DataStatsKeys (line 579) | class DataStatsKeys(StrEnum): class ImageStatsKeys (line 595) | class ImageStatsKeys(StrEnum): class LabelStatsKeys (line 610) | class LabelStatsKeys(StrEnum): class HoVerNetMode (line 624) | class HoVerNetMode(StrEnum): class HoVerNetBranch (line 635) | class HoVerNetBranch(StrEnum): class LazyAttr (line 648) | class LazyAttr(StrEnum): class BundleProperty (line 665) | class BundleProperty(StrEnum): class BundlePropertyConfig (line 676) | class BundlePropertyConfig(StrEnum): class AlgoKeys (line 689) | class AlgoKeys(StrEnum): class AdversarialKeys (line 704) | class AdversarialKeys(StrEnum): class OrderingType (line 728) | class OrderingType(StrEnum): class OrderingTransformations (line 734) | class OrderingTransformations(StrEnum): class IgniteInfo (line 740) | class IgniteInfo(StrEnum): class AdversarialIterationEvents (line 757) | class AdversarialIterationEvents(EventEnum): FILE: monai/utils/jupyter_utils.py function plot_metric_graph (line 46) | def plot_metric_graph( function plot_metric_images (line 93) | def plot_metric_images( function tensor_to_images (line 141) | def tensor_to_images(name: str, tensor: torch.Tensor) -> np.ndarray | None: function plot_engine_status (line 158) | def plot_engine_status( function _get_loss_from_output (line 236) | def _get_loss_from_output( class StatusMembers (line 251) | class StatusMembers(Enum): class ThreadContainer (line 262) | class ThreadContainer(Thread): method __init__ (line 278) | def __init__( method run (line 296) | def run(self): method stop (line 300) | def stop(self): method _update_status (line 305) | def _update_status(self): method status_dict (line 339) | def status_dict(self) -> dict[str, str]: method status (line 346) | def status(self) -> str: method plot_status (line 362) | def plot_status(self, logger: Any, plot_func: Callable = plot_engine_s... FILE: monai/utils/misc.py function _strtobool (line 81) | def _strtobool(val: str) -> bool: function zip_with (line 110) | def zip_with(op, *vals, mapfunc=map): function star_zip_with (line 117) | def star_zip_with(op, *vals): function first (line 129) | def first(iterable: Iterable[T], default: T) -> T: ... function first (line 133) | def first(iterable: Iterable[T]) -> T | None: ... function first (line 136) | def first(iterable: Iterable[T], default: T | None = None) -> T | None: function issequenceiterable (line 145) | def issequenceiterable(obj: Any) -> bool: function is_immutable (line 157) | def is_immutable(obj: Any) -> bool: function ensure_tuple (line 166) | def ensure_tuple(vals: Any, wrap_array: bool = False) -> tuple: function ensure_tuple_size (line 181) | def ensure_tuple_size(vals: Any, dim: int, pad_val: Any = 0, pad_from_st... function ensure_tuple_rep (line 194) | def ensure_tuple_rep(tup: Any, dim: int) -> tuple[Any, ...]: function to_tuple_of_dictionaries (line 229) | def to_tuple_of_dictionaries(dictionary_of_tuples: dict, keys: Any) -> t... function fall_back_tuple (line 260) | def fall_back_tuple( function is_scalar_tensor (line 306) | def is_scalar_tensor(val: Any) -> bool: function is_scalar (line 310) | def is_scalar(val: Any) -> bool: function progress_bar (line 316) | def progress_bar(index: int, count: int, desc: str | None = None, bar_le... function get_seed (line 335) | def get_seed() -> int | None: function set_determinism (line 339) | def set_determinism( function list_to_dict (line 393) | def list_to_dict(items): function copy_to_device (line 425) | def copy_to_device( function str2bool (line 459) | def str2bool(value: str | bool, default: bool = False, raise_exc: bool =... function str2list (line 494) | def str2list(value: str | list | None, raise_exc: bool = True) -> list |... class MONAIEnvVars (line 526) | class MONAIEnvVars: method data_dir (line 532) | def data_dir() -> str | None: method debug (line 536) | def debug() -> bool: method doc_images (line 541) | def doc_images() -> str | None: method algo_hash (line 545) | def algo_hash() -> str | None: method trace_transform (line 549) | def trace_transform() -> str | None: method eval_expr (line 553) | def eval_expr() -> str | None: method allow_missing_reference (line 557) | def allow_missing_reference() -> str | None: method extra_test_data (line 561) | def extra_test_data() -> str | None: method testing_algo_template (line 565) | def testing_algo_template() -> str | None: class ImageMetaKey (line 569) | class ImageMetaKey: function has_option (line 579) | def has_option(obj: Callable, keywords: str | Sequence[str]) -> bool: function is_module_ver_at_least (line 589) | def is_module_ver_at_least(module, version): function sample_slices (line 602) | def sample_slices(data: NdarrayOrTensor, dim: int = 1, as_indices: bool ... function check_parent_dir (line 620) | def check_parent_dir(path: PathLike, create_dir: bool = True) -> None: function save_obj (line 639) | def save_obj( function label_union (line 687) | def label_union(x: list | np.ndarray) -> list: function prob2class (line 699) | def prob2class(x: torch.Tensor, sigmoid: bool = False, threshold: float ... function path_to_uri (line 710) | def path_to_uri(path: PathLike) -> str: function pprint_edges (line 721) | def pprint_edges(val: Any, n_lines: int = 20) -> str: function check_key_duplicates (line 735) | def check_key_duplicates(ordered_pairs: Sequence[tuple[Any, Any]]) -> di... class CheckKeyDuplicatesYamlLoader (line 760) | class CheckKeyDuplicatesYamlLoader(SafeLoader): method construct_mapping (line 762) | def construct_mapping(self, node, deep=False): class ConvertUnits (line 775) | class ConvertUnits: method __init__ (line 805) | def __init__(self, input_unit: str, target_unit: str) -> None: method _get_valid_unit_and_base (line 817) | def _get_valid_unit_and_base(self, unit): method _get_unit_power (line 826) | def _get_unit_power(self, unit): method _calculate_conversion_factor (line 836) | def _calculate_conversion_factor(self): method __call__ (line 844) | def __call__(self, value: int | float) -> Any: function check_kwargs_exist_in_class_init (line 848) | def check_kwargs_exist_in_class_init(cls, kwargs): function run_cmd (line 868) | def run_cmd(cmd_list: list[str], **kwargs: Any) -> subprocess.CompletedP... function is_sqrt (line 901) | def is_sqrt(num: Sequence[int] | int) -> bool: function unsqueeze_right (line 911) | def unsqueeze_right(arr: NT, ndim: int) -> NT: function unsqueeze_left (line 916) | def unsqueeze_left(arr: NT, ndim: int) -> NT: function flatten_dict (line 921) | def flatten_dict(metrics: dict[str, Any]) -> dict[str, Any]: FILE: monai/utils/module.py function look_up_option (line 61) | def look_up_option( function damerau_levenshtein_distance (line 144) | def damerau_levenshtein_distance(s1: str, s2: str) -> int: function load_submodules (line 173) | def load_submodules( function instantiate (line 205) | def instantiate(__path: str, __mode: str, **kwargs: Any) -> Any: function get_full_type_name (line 262) | def get_full_type_name(typeobj): function min_version (line 273) | def min_version(the_module: Any, min_version_str: str = "", *_args: Any)... function exact_version (line 288) | def exact_version(the_module: Any, version_str: str = "", *_args: Any) -... class InvalidPyTorchVersionError (line 298) | class InvalidPyTorchVersionError(Exception): method __init__ (line 304) | def __init__(self, required_version, name): class OptionalImportError (line 309) | class OptionalImportError(ImportError): function optional_import (line 315) | def optional_import( function require_pkg (line 448) | def require_pkg( function get_package_version (line 487) | def get_package_version(dep_name, default="NOT INSTALLED or UNKNOWN VERS... function get_torch_version_tuple (line 498) | def get_torch_version_tuple(): function parse_version_strs (line 506) | def parse_version_strs(lhs: str, rhs: str) -> tuple[Iterable[int | str],... function version_leq (line 532) | def version_leq(lhs: str, rhs: str) -> bool: function version_geq (line 560) | def version_geq(lhs: str, rhs: str) -> bool: function pytorch_after (line 589) | def pytorch_after(major: int, minor: int, patch: int = 0, current_ver_st... function compute_capabilities_after (line 640) | def compute_capabilities_after(major: int, minor: int = 0, current_ver_s... FILE: monai/utils/nvtx.py class Range (line 33) | class Range: method __init__ (line 55) | def __init__( method __call__ (line 67) | def __call__(self, obj: Any) -> Any: method _decorate_method (line 111) | def _decorate_method(self, obj, method, append_method_name): method _get_method (line 144) | def _get_method(self, obj: Any) -> tuple: method __enter__ (line 167) | def __enter__(self): method __exit__ (line 175) | def __exit__(self, type, value, traceback): FILE: monai/utils/ordering.py class Ordering (line 19) | class Ordering: method __init__ (line 44) | def __init__( method __call__ (line 89) | def __call__(self, x: np.ndarray) -> np.ndarray: method get_sequence_ordering (line 94) | def get_sequence_ordering(self) -> np.ndarray: method get_revert_sequence_ordering (line 97) | def get_revert_sequence_ordering(self) -> np.ndarray: method _create_ordering (line 100) | def _create_ordering(self) -> np.ndarray: method _create_template (line 106) | def _create_template(self) -> np.ndarray: method _transform_template (line 112) | def _transform_template(self) -> np.ndarray: method _transpose_template (line 123) | def _transpose_template(self, template: np.ndarray) -> np.ndarray: method _flip_template (line 130) | def _flip_template(self, template: np.ndarray) -> np.ndarray: method _rot90_template (line 137) | def _rot90_template(self, template: np.ndarray) -> np.ndarray: method _order_template (line 144) | def _order_template(self, template: np.ndarray) -> np.ndarray: method raster_scan_idx (line 158) | def raster_scan_idx(rows: int, cols: int, depths: int | None = None) -... method s_curve_idx (line 174) | def s_curve_idx(rows: int, cols: int, depths: int | None = None) -> np... method random_idx (line 193) | def random_idx(rows: int, cols: int, depths: int | None = None) -> np.... FILE: monai/utils/profiling.py function torch_profiler_full (line 51) | def torch_profiler_full(func): function torch_profiler_time_cpu_gpu (line 70) | def torch_profiler_time_cpu_gpu(func): function torch_profiler_time_end_to_end (line 95) | def torch_profiler_time_end_to_end(func): class PerfContext (line 121) | class PerfContext: method __init__ (line 128) | def __init__(self): method __enter__ (line 132) | def __enter__(self): method __exit__ (line 136) | def __exit__(self, exc_type, exc_value, exc_traceback): function select_transform_call (line 146) | def select_transform_call(frame): class WorkflowProfiler (line 154) | class WorkflowProfiler: method __init__ (line 202) | def __init__(self, call_selector=select_transform_call): method _is_parent (line 211) | def _is_parent(self): method _is_thread_active (line 215) | def _is_thread_active(self): method _read_thread_func (line 219) | def _read_thread_func(self): method _put_result (line 235) | def _put_result(self, name, timedelta, filename, lineno): method _trace_call (line 240) | def _trace_call(self, frame, why, arg): method __enter__ (line 270) | def __enter__(self): method __exit__ (line 281) | def __exit__(self, exc_type, exc_value, traceback): method add_result (line 297) | def add_result(self, result: ProfileResult) -> None: method get_results (line 302) | def get_results(self): method profile_ctx (line 311) | def profile_ctx(self, name, caller=None): method profile_callable (line 323) | def profile_callable(self, name=None): method profile_iter (line 335) | def profile_iter(self, name, iterable): method get_times_summary (line 358) | def get_times_summary(self, times_in_s=True): method get_times_summary_pd (line 378) | def get_times_summary_pd(self, times_in_s=True): method dump_csv (line 390) | def dump_csv(self, stream=sys.stdout): class ProfileHandler (line 401) | class ProfileHandler: method __init__ (line 414) | def __init__(self, name: str, profiler: WorkflowProfiler, start_event:... method attach (line 421) | def attach(self, engine): method start (line 426) | def start(self, engine): method end (line 430) | def end(self, engine): FILE: monai/utils/state_cacher.py class StateCacher (line 30) | class StateCacher: method __init__ (line 45) | def __init__( method store (line 82) | def store( method retrieve (line 116) | def retrieve(self, key: Hashable) -> Any: method __del__ (line 133) | def __del__(self): FILE: monai/utils/tf32.py function has_ampere_or_later (line 22) | def has_ampere_or_later() -> bool: function detect_default_tf32 (line 53) | def detect_default_tf32() -> bool: FILE: monai/utils/type_conversion.py function get_numpy_dtype_from_string (line 47) | def get_numpy_dtype_from_string(dtype: str) -> np.dtype: function get_torch_dtype_from_string (line 52) | def get_torch_dtype_from_string(dtype: str) -> torch.dtype: function dtype_torch_to_numpy (line 57) | def dtype_torch_to_numpy(dtype: torch.dtype) -> np.dtype: function dtype_numpy_to_torch (line 62) | def dtype_numpy_to_torch(dtype: np.dtype) -> torch.dtype: function get_equivalent_dtype (line 67) | def get_equivalent_dtype(dtype, data_type): function get_dtype (line 92) | def get_dtype(data: Any) -> DtypeLike | torch.dtype: function get_dtype_string (line 106) | def get_dtype_string(dtype: DtypeLike | torch.dtype) -> str: function convert_to_tensor (line 113) | def convert_to_tensor( function convert_to_numpy (line 196) | def convert_to_numpy(data: Any, dtype: DtypeLike = None, wrap_sequence: ... function convert_to_cupy (line 241) | def convert_to_cupy(data: Any, dtype: np.dtype | None = None, wrap_seque... function convert_data_type (line 286) | def convert_data_type( function convert_to_dst_type (line 355) | def convert_to_dst_type( function convert_to_list (line 408) | def convert_to_list(data: Sequence | torch.Tensor | np.ndarray) -> list: function get_dtype_bound_value (line 420) | def get_dtype_bound_value(dtype: DtypeLike | torch.dtype) -> tuple[float... function safe_dtype_range (line 439) | def safe_dtype_range(data: Any, dtype: DtypeLike | torch.dtype = None) -... FILE: monai/visualize/class_activation_maps.py function default_normalizer (line 31) | def default_normalizer(x: NdarrayTensor) -> NdarrayTensor: class ModelWithHooks (line 50) | class ModelWithHooks: method __init__ (line 55) | def __init__( method backward_hook (line 95) | def backward_hook(self, name): method forward_hook (line 102) | def forward_hook(self, name): method get_layer (line 109) | def get_layer(self, layer_id: str | Callable[[nn.Module], nn.Module]) ... method class_score (line 127) | def class_score(self, logits: torch.Tensor, class_idx: int) -> torch.T... method __call__ (line 130) | def __call__(self, x, class_idx=None, retain_graph=False, **kwargs): method get_wrapped_net (line 152) | def get_wrapped_net(self): class CAMBase (line 156) | class CAMBase: method __init__ (line 161) | def __init__( method feature_map_size (line 181) | def feature_map_size(self, input_size, device="cpu", layer_idx=-1, **k... method compute_map (line 194) | def compute_map(self, x, class_idx=None, layer_idx=-1): method _upsample_and_post_process (line 208) | def _upsample_and_post_process(self, acti_map, x): method __call__ (line 214) | def __call__(self): class CAM (line 218) | class CAM(CAMBase): method __init__ (line 260) | def __init__( method compute_map (line 290) | def compute_map(self, x, class_idx=None, layer_idx=-1, **kwargs): # t... method __call__ (line 302) | def __call__(self, x, class_idx=None, layer_idx=-1, **kwargs): # type... class GradCAM (line 319) | class GradCAM(CAMBase): method compute_map (line 361) | def compute_map(self, x, class_idx=None, retain_graph=False, layer_idx... method __call__ (line 369) | def __call__(self, x, class_idx=None, layer_idx=-1, retain_graph=False... class GradCAMpp (line 387) | class GradCAMpp(GradCAM): method compute_map (line 401) | def compute_map(self, x, class_idx=None, retain_graph=False, layer_idx... FILE: monai/visualize/gradient_based.py class _AutoGradReLU (line 28) | class _AutoGradReLU(torch.autograd.Function): method forward (line 31) | def forward(ctx, x): method backward (line 38) | def backward(ctx, grad_output): class _GradReLU (line 47) | class _GradReLU(torch.nn.Module): method forward (line 52) | def forward(self, x: torch.Tensor) -> torch.Tensor: class VanillaGrad (line 57) | class VanillaGrad: method __init__ (line 71) | def __init__(self, model: torch.nn.Module) -> None: method model (line 78) | def model(self): method model (line 82) | def model(self, m): method get_grad (line 88) | def get_grad( method __call__ (line 99) | def __call__(self, x: torch.Tensor, index: torch.Tensor | int | None =... class SmoothGrad (line 103) | class SmoothGrad(VanillaGrad): method __init__ (line 113) | def __init__( method __call__ (line 131) | def __call__(self, x: torch.Tensor, index: torch.Tensor | int | None =... class GuidedBackpropGrad (line 151) | class GuidedBackpropGrad(VanillaGrad): method __call__ (line 162) | def __call__(self, x: torch.Tensor, index: torch.Tensor | int | None =... class GuidedBackpropSmoothGrad (line 167) | class GuidedBackpropSmoothGrad(SmoothGrad): method __call__ (line 172) | def __call__(self, x: torch.Tensor, index: torch.Tensor | int | None =... FILE: monai/visualize/img2tensorboard.py function _image3_animated_gif (line 42) | def _image3_animated_gif( function make_animated_gif_summary (line 80) | def make_animated_gif_summary( function add_animated_gif (line 116) | def add_animated_gif( function plot_2d_or_3d_image (line 146) | def plot_2d_or_3d_image( FILE: monai/visualize/occlusion_sensitivity.py class OcclusionSensitivity (line 27) | class OcclusionSensitivity: method __init__ (line 76) | def __init__( method constant_occlusion (line 123) | def constant_occlusion(x: torch.Tensor, val: float, mask_size: Sequenc... method gaussian_occlusion (line 129) | def gaussian_occlusion(x: torch.Tensor, mask_size: Sequence, sigma: fl... method predictor (line 152) | def predictor( method crop_meshgrid (line 228) | def crop_meshgrid( method __call__ (line 254) | def __call__( FILE: monai/visualize/utils.py function matshow3d (line 34) | def matshow3d( function blend_images (line 164) | def blend_images( FILE: monai/visualize/visualizer.py function default_upsampler (line 24) | def default_upsampler(spatial_size: Sized, align_corners: bool = False) ... FILE: setup.py function torch_parallel_backend (line 56) | def torch_parallel_backend(): function omp_flags (line 73) | def omp_flags(): function get_extensions (line 83) | def get_extensions(): function get_cmds (line 125) | def get_cmds(): FILE: tests/apps/deepedit/test_deepedit_transforms.py class TestAddGuidanceFromPointsCustomd (line 212) | class TestAddGuidanceFromPointsCustomd(unittest.TestCase): method test_correct_results (line 215) | def test_correct_results(self, arguments, input_data, expected_result): class TestAddGuidanceSignalCustomd (line 221) | class TestAddGuidanceSignalCustomd(unittest.TestCase): method test_correct_results (line 224) | def test_correct_results(self, arguments, input_data, expected_result): class TestAddInitialSeedPointMissingLabelsd (line 230) | class TestAddInitialSeedPointMissingLabelsd(unittest.TestCase): method test_correct_results (line 233) | def test_correct_results(self, arguments, input_data, expected_result): class TestAddRandomGuidanceCustomd (line 241) | class TestAddRandomGuidanceCustomd(unittest.TestCase): method test_correct_results (line 244) | def test_correct_results(self, arguments, input_data, expected_result): class TestDiscardAddGuidanced (line 251) | class TestDiscardAddGuidanced(unittest.TestCase): method test_correct_results (line 254) | def test_correct_results(self, arguments, input_data, expected_result): class TestFindAllValidSlicesMissingLabelsd (line 260) | class TestFindAllValidSlicesMissingLabelsd(unittest.TestCase): method test_correct_results (line 263) | def test_correct_results(self, arguments, input_data, expected_result): class TestFindDiscrepancyRegionsCustomd (line 269) | class TestFindDiscrepancyRegionsCustomd(unittest.TestCase): method test_correct_results (line 272) | def test_correct_results(self, arguments, input_data, expected_result): class TestNormalizeLabelsDatasetd (line 278) | class TestNormalizeLabelsDatasetd(unittest.TestCase): method test_correct_results (line 281) | def test_correct_results(self, arguments, input_data, expected_result): method test_ordering_determinism (line 286) | def test_ordering_determinism(self): method test_multiple_labels (line 317) | def test_multiple_labels(self): method test_deprecated_name_warning (line 331) | def test_deprecated_name_warning(self): class TestResizeGuidanceMultipleLabelCustomd (line 381) | class TestResizeGuidanceMultipleLabelCustomd(unittest.TestCase): method test_correct_results (line 384) | def test_correct_results(self, arguments, input_data, expected_result): class TestSingleLabelSelectiond (line 390) | class TestSingleLabelSelectiond(unittest.TestCase): method test_correct_results (line 393) | def test_correct_results(self, arguments, input_data, expected_result): class TestSplitPredsLabeld (line 399) | class TestSplitPredsLabeld(unittest.TestCase): method test_correct_results (line 402) | def test_correct_results(self, arguments, input_data, expected_result): FILE: tests/apps/deepgrow/test_deepgrow_dataset.py class TestCreateDataset (line 53) | class TestCreateDataset(unittest.TestCase): method setUp (line 55) | def setUp(self): method _create_data (line 59) | def _create_data(self, length=1, image_channel=1, with_label=True): method test_create_dataset (line 88) | def test_create_dataset(self, args, data_args, expected_length, expect... method test_invalid_dim (line 95) | def test_invalid_dim(self): method test_empty_datalist (line 99) | def test_empty_datalist(self): method tearDown (line 103) | def tearDown(self): FILE: tests/apps/deepgrow/transforms/test_deepgrow_interaction.py function add_one (line 33) | def add_one(engine): class TestInteractions (line 40) | class TestInteractions(unittest.TestCase): method run_interaction (line 42) | def run_interaction(self, train, compose): method test_train_interaction (line 89) | def test_train_interaction(self): method test_val_interaction (line 92) | def test_val_interaction(self): FILE: tests/apps/deepgrow/transforms/test_deepgrow_transforms.py class TestFindAllValidSlicesd (line 422) | class TestFindAllValidSlicesd(unittest.TestCase): method test_correct_results (line 425) | def test_correct_results(self, arguments, input_data, expected_result): class TestSpatialCropForegroundd (line 430) | class TestSpatialCropForegroundd(unittest.TestCase): method test_correct_results (line 433) | def test_correct_results(self, arguments, input_data, expected_result): method test_correct_shape (line 438) | def test_correct_shape(self, arguments, input_data, expected_shape): method test_foreground_position (line 443) | def test_foreground_position(self, arguments, input_data, _): class TestAddInitialSeedPointd (line 455) | class TestAddInitialSeedPointd(unittest.TestCase): method test_correct_results (line 458) | def test_correct_results(self, arguments, input_data, expected_result): class TestAddGuidanceSignald (line 466) | class TestAddGuidanceSignald(unittest.TestCase): method test_correct_results (line 469) | def test_correct_results(self, arguments, input_data, expected_result): class TestFindDiscrepancyRegionsd (line 474) | class TestFindDiscrepancyRegionsd(unittest.TestCase): method test_correct_results (line 477) | def test_correct_results(self, arguments, input_data, expected_result): class TestAddRandomGuidanced (line 482) | class TestAddRandomGuidanced(unittest.TestCase): method test_correct_results (line 485) | def test_correct_results(self, arguments, input_data, expected_result): class TestAddGuidanceFromPointsd (line 493) | class TestAddGuidanceFromPointsd(unittest.TestCase): method test_correct_results (line 505) | def test_correct_results(self, arguments, input_data, expected_pos, ex... class TestSpatialCropGuidanced (line 511) | class TestSpatialCropGuidanced(unittest.TestCase): method test_correct_results (line 516) | def test_correct_results(self, arguments, input_data, expected_result): class TestResizeGuidanced (line 521) | class TestResizeGuidanced(unittest.TestCase): method test_correct_results (line 524) | def test_correct_results(self, arguments, input_data, expected_result): class TestRestoreLabeld (line 529) | class TestRestoreLabeld(unittest.TestCase): method test_correct_results (line 542) | def test_correct_results(self, arguments, input_data, expected_result): class TestFetch2DSliced (line 547) | class TestFetch2DSliced(unittest.TestCase): method test_correct_results (line 550) | def test_correct_results(self, arguments, input_data, expected_result): FILE: tests/apps/detection/metrics/test_detection_coco_metrics.py class TestCOCOMetrics (line 25) | class TestCOCOMetrics(unittest.TestCase): method test_coco_run (line 27) | def test_coco_run(self): FILE: tests/apps/detection/networks/test_retinanet.py class TestRetinaNet (line 100) | class TestRetinaNet(unittest.TestCase): method test_retina_shape (line 102) | def test_retina_shape(self, model, input_param, input_shape): method test_script (line 140) | def test_script(self, model, input_param, input_shape): method test_onnx (line 174) | def test_onnx(self, model, input_param, input_shape): FILE: tests/apps/detection/networks/test_retinanet_detector.py class NaiveNetwork (line 95) | class NaiveNetwork(torch.nn.Module): method __init__ (line 96) | def __init__(self, spatial_dims, num_classes, **kwargs): method forward (line 105) | def forward(self, images): class TestRetinaNetDetector (line 115) | class TestRetinaNetDetector(unittest.TestCase): method test_retina_detector_resnet_backbone_shape (line 117) | def test_retina_detector_resnet_backbone_shape(self, input_param, inpu... method test_naive_retina_detector_shape (line 154) | def test_naive_retina_detector_shape(self, input_param, input_shape): method test_script (line 187) | def test_script(self, input_param, input_shape): FILE: tests/apps/detection/test_box_transform.py class TestBoxTransform (line 81) | class TestBoxTransform(unittest.TestCase): method test_value_2d_mask (line 83) | def test_value_2d_mask(self, mask, expected_box_label): method test_value_2d (line 89) | def test_value_2d(self, data, expected_mask): method test_value_3d_mask (line 110) | def test_value_3d_mask(self): method test_shape_assertion (line 134) | def test_shape_assertion(self): method test_value_3d (line 153) | def test_value_3d( method test_crop_shape (line 350) | def test_crop_shape(self): FILE: tests/apps/detection/utils/test_anchor_box.py class TestAnchorGenerator (line 43) | class TestAnchorGenerator(unittest.TestCase): method test_anchor_2d (line 45) | def test_anchor_2d(self, input_param, image_shape, feature_maps_shapes): method test_script_2d (line 70) | def test_script_2d(self, input_param, image_shape, feature_maps_shapes): method test_script_3d (line 78) | def test_script_3d(self, input_param, image_shape, feature_maps_shapes): FILE: tests/apps/detection/utils/test_atss_box_matcher.py class TestATSS (line 35) | class TestATSS(unittest.TestCase): method test_atss (line 37) | def test_atss(self, input_param, boxes, anchors, num_anchors_per_level... FILE: tests/apps/detection/utils/test_box_coder.py class TestBoxTransform (line 23) | class TestBoxTransform(unittest.TestCase): method test_value (line 24) | def test_value(self): FILE: tests/apps/detection/utils/test_detector_boxselector.py class TestBoxSelector (line 58) | class TestBoxSelector(unittest.TestCase): method test_box_selector (line 60) | def test_box_selector(self, input_param, boxes, logits, image_shape, e... FILE: tests/apps/detection/utils/test_detector_utils.py class TestDetectorUtils (line 81) | class TestDetectorUtils(unittest.TestCase): method test_detector_utils (line 83) | def test_detector_utils(self, input_param, input_shape, expected_shape): FILE: tests/apps/detection/utils/test_hardnegsampler.py class TestSampleSlices (line 39) | class TestSampleSlices(unittest.TestCase): method test_shape (line 41) | def test_shape(self, target_label0, target_label1, concat_fg_probs, ex... FILE: tests/apps/maisi/networks/test_autoencoderkl_maisi.py class TestAutoencoderKlMaisi (line 78) | class TestAutoencoderKlMaisi(unittest.TestCase): method test_shape (line 80) | def test_shape(self, input_param, input_shape, expected_shape, expecte... method test_shape_with_convtranspose_and_checkpointing (line 89) | def test_shape_with_convtranspose_and_checkpointing( method test_model_channels_not_multiple_of_norm_num_group (line 101) | def test_model_channels_not_multiple_of_norm_num_group(self): method test_model_num_channels_not_same_size_of_attention_levels (line 116) | def test_model_num_channels_not_same_size_of_attention_levels(self): method test_model_num_channels_not_same_size_of_num_res_blocks (line 131) | def test_model_num_channels_not_same_size_of_num_res_blocks(self): method test_shape_reconstruction (line 146) | def test_shape_reconstruction(self): method test_shape_reconstruction_with_convtranspose_and_checkpointing (line 153) | def test_shape_reconstruction_with_convtranspose_and_checkpointing(self): method test_shape_encode (line 162) | def test_shape_encode(self): method test_shape_encode_with_convtranspose_and_checkpointing (line 170) | def test_shape_encode_with_convtranspose_and_checkpointing(self): method test_shape_sampling (line 180) | def test_shape_sampling(self): method test_shape_sampling_convtranspose_and_checkpointing (line 189) | def test_shape_sampling_convtranspose_and_checkpointing(self): method test_shape_decode (line 200) | def test_shape_decode(self): method test_shape_decode_convtranspose_and_checkpointing (line 207) | def test_shape_decode_convtranspose_and_checkpointing(self): FILE: tests/apps/maisi/networks/test_controlnet_maisi.py class TestControlNet (line 129) | class TestControlNet(unittest.TestCase): method test_shape_unconditioned_models (line 132) | def test_shape_unconditioned_models(self, input_param, expected_num_do... method test_shape_conditioned_models (line 146) | def test_shape_conditioned_models(self, input_param, expected_num_down... method test_error_input (line 160) | def test_error_input(self, input_param, expected_error): FILE: tests/apps/maisi/networks/test_diffusion_model_unet_maisi.py class TestDiffusionModelUNetMaisi2D (line 291) | class TestDiffusionModelUNetMaisi2D(unittest.TestCase): method test_shape_unconditioned_models (line 295) | def test_shape_unconditioned_models(self, input_param): method test_timestep_with_wrong_shape (line 302) | def test_timestep_with_wrong_shape(self): method test_shape_with_different_in_channel_out_channel (line 317) | def test_shape_with_different_in_channel_out_channel(self): method test_model_channels_not_multiple_of_norm_num_group (line 333) | def test_model_channels_not_multiple_of_norm_num_group(self): method test_attention_levels_with_different_length_num_head_channels (line 345) | def test_attention_levels_with_different_length_num_head_channels(self): method test_num_res_blocks_with_different_length_channels (line 358) | def test_num_res_blocks_with_different_length_channels(self): method test_shape_conditioned_models (line 371) | def test_shape_conditioned_models(self): method test_with_conditioning_cross_attention_dim_none (line 393) | def test_with_conditioning_cross_attention_dim_none(self): method test_context_with_conditioning_none (line 409) | def test_context_with_conditioning_none(self): method test_shape_conditioned_models_class_conditioning (line 431) | def test_shape_conditioned_models_class_conditioning(self): method test_conditioned_models_no_class_labels (line 452) | def test_conditioned_models_no_class_labels(self): method test_model_channels_not_same_size_of_attention_levels (line 469) | def test_model_channels_not_same_size_of_attention_levels(self): method test_conditioned_2d_models_shape (line 485) | def test_conditioned_2d_models_shape(self, input_param): method test_shape_with_additional_inputs (line 493) | def test_shape_with_additional_inputs(self, input_param): class TestDiffusionModelUNetMaisi3D (line 509) | class TestDiffusionModelUNetMaisi3D(unittest.TestCase): method test_shape_unconditioned_models (line 513) | def test_shape_unconditioned_models(self, input_param): method test_shape_with_different_in_channel_out_channel (line 520) | def test_shape_with_different_in_channel_out_channel(self): method test_shape_conditioned_models (line 537) | def test_shape_conditioned_models(self): method test_wrong_dropout (line 560) | def test_wrong_dropout(self, input_param): method test_right_dropout (line 566) | def test_right_dropout(self, input_param): method test_shape_with_additional_inputs (line 571) | def test_shape_with_additional_inputs(self, input_param): FILE: tests/apps/nuclick/test_nuclick_transforms.py class TestFilterImaged (line 181) | class TestFilterImaged(unittest.TestCase): method test_correct_shape (line 184) | def test_correct_shape(self, arguments, input_data, expected_shape): class TestFlattenLabeld (line 189) | class TestFlattenLabeld(unittest.TestCase): method test_correct_num_labels (line 192) | def test_correct_num_labels(self, arguments, input_data, expected_resu... class TestExtractPatchd (line 197) | class TestExtractPatchd(unittest.TestCase): method test_correct_patch_size (line 200) | def test_correct_patch_size(self, arguments, input_data, expected_shape): method test_correct_results (line 205) | def test_correct_results(self, arguments, input_data, expected_result): class TestSplitLabelsd (line 210) | class TestSplitLabelsd(unittest.TestCase): method test_correct_results (line 213) | def test_correct_results(self, arguments, input_data, expected_result): class TestGuidanceSignal (line 218) | class TestGuidanceSignal(unittest.TestCase): method test_correct_shape (line 221) | def test_correct_shape(self, arguments, input_data, expected_shape): class TestClickSignal (line 226) | class TestClickSignal(unittest.TestCase): method test_correct_shape (line 229) | def test_correct_shape(self, arguments, input_data, expected_shape): class TestPostFilterLabel (line 234) | class TestPostFilterLabel(unittest.TestCase): method test_correct_shape (line 237) | def test_correct_shape(self, arguments, input_data, expected_shape): class TestAddLabelAsGuidance (line 242) | class TestAddLabelAsGuidance(unittest.TestCase): method test_correct_shape (line 245) | def test_correct_shape(self, arguments, input_data, expected_shape): class TestSetLabelClass (line 250) | class TestSetLabelClass(unittest.TestCase): method test_correct_results (line 253) | def test_correct_results(self, arguments, input_data, expected_result): FILE: tests/apps/pathology/handlers/test_from_engine_hovernet.py class TestFromEngineHovernet (line 30) | class TestFromEngineHovernet(unittest.TestCase): method test_results (line 32) | def test_results(self, input, expected): FILE: tests/apps/pathology/test_lesion_froc.py function save_as_tif (line 31) | def save_as_tif(filename, array): function around (line 39) | def around(val, interval=3): function prepare_test_data (line 48) | def prepare_test_data(): class TestEvaluateTumorFROC (line 300) | class TestEvaluateTumorFROC(unittest.TestCase): method setUp (line 306) | def setUp(self): method test_read_patches_cucim (line 323) | def test_read_patches_cucim(self, input_parameters, expected): FILE: tests/apps/pathology/test_pathology_prob_nms.py class TestPathologyProbNMS (line 45) | class TestPathologyProbNMS(unittest.TestCase): method test_output (line 48) | def test_output(self, class_args, call_args, probs_map, expected): FILE: tests/apps/pathology/test_prepare_batch_hovernet.py class TestNet (line 30) | class TestNet(torch.nn.Module): method forward (line 33) | def forward(self, x: torch.Tensor): class TestPrepareBatchHoVerNet (line 37) | class TestPrepareBatchHoVerNet(unittest.TestCase): method test_content (line 39) | def test_content(self, input_args, expected_value): FILE: tests/apps/pathology/test_sliding_window_hovernet_inference.py class TestSlidingWindowHoVerNetInference (line 38) | class TestSlidingWindowHoVerNetInference(unittest.TestCase): method test_sliding_window_with_padding (line 40) | def test_sliding_window_with_padding( method test_sliding_window_default (line 75) | def test_sliding_window_default(self, image_shape, roi_shape, sw_batch... method test_sigma (line 99) | def test_sigma(self): method test_cval (line 184) | def test_cval(self): method test_args_kwargs (line 212) | def test_args_kwargs(self): method test_multioutput (line 253) | def test_multioutput(self, inputs): FILE: tests/apps/pathology/transforms/post/test_generate_distance_map.py class TestGenerateDistanceMap (line 38) | class TestGenerateDistanceMap(unittest.TestCase): method test_value (line 40) | def test_value(self, arguments, mask, probmap, exception_type): method test_value2 (line 45) | def test_value2(self, arguments, mask, probmap, expected_shape): FILE: tests/apps/pathology/transforms/post/test_generate_distance_mapd.py class TestGenerateDistanceMapd (line 57) | class TestGenerateDistanceMapd(unittest.TestCase): method test_value (line 59) | def test_value(self, arguments, mask, border_map, exception_type): method test_value2 (line 64) | def test_value2(self, arguments, mask, border_map, expected_shape): FILE: tests/apps/pathology/transforms/post/test_generate_instance_border.py class TestGenerateInstanceBorder (line 36) | class TestGenerateInstanceBorder(unittest.TestCase): method test_value (line 38) | def test_value(self, arguments, mask, hover_map, exception_type): method test_value2 (line 43) | def test_value2(self, arguments, mask, hover_map, expected_shape): FILE: tests/apps/pathology/transforms/post/test_generate_instance_borderd.py class TestGenerateInstanceBorderd (line 46) | class TestGenerateInstanceBorderd(unittest.TestCase): method test_value (line 48) | def test_value(self, arguments, mask, hover_map, exception_type): method test_value2 (line 53) | def test_value2(self, arguments, mask, hover_map, expected_shape): FILE: tests/apps/pathology/transforms/post/test_generate_instance_centroid.py class TestGenerateInstanceCentroid (line 43) | class TestGenerateInstanceCentroid(unittest.TestCase): method test_shape (line 45) | def test_shape(self, in_type, test_data, offset, expected): FILE: tests/apps/pathology/transforms/post/test_generate_instance_centroidd.py class TestGenerateInstanceCentroidd (line 43) | class TestGenerateInstanceCentroidd(unittest.TestCase): method test_shape (line 45) | def test_shape(self, in_type, test_data, offset, expected): FILE: tests/apps/pathology/transforms/post/test_generate_instance_contour.py class TestGenerateInstanceContour (line 48) | class TestGenerateInstanceContour(unittest.TestCase): method test_shape (line 50) | def test_shape(self, in_type, test_data, min_num_points, offset, expec... FILE: tests/apps/pathology/transforms/post/test_generate_instance_contourd.py class TestGenerateInstanceContourd (line 48) | class TestGenerateInstanceContourd(unittest.TestCase): method test_shape (line 50) | def test_shape(self, in_type, test_data, min_num_points, offset, expec... FILE: tests/apps/pathology/transforms/post/test_generate_instance_type.py class TestGenerateInstanceType (line 43) | class TestGenerateInstanceType(unittest.TestCase): method test_shape (line 45) | def test_shape(self, in_type, type_pred, seg_pred, bbox, expected): FILE: tests/apps/pathology/transforms/post/test_generate_instance_typed.py class TestGenerateInstanceTyped (line 43) | class TestGenerateInstanceTyped(unittest.TestCase): method test_shape (line 45) | def test_shape(self, in_type, type_pred, seg_pred, bbox, expected): FILE: tests/apps/pathology/transforms/post/test_generate_succinct_contour.py class TestGenerateSuccinctContour (line 46) | class TestGenerateSuccinctContour(unittest.TestCase): method test_shape (line 49) | def test_shape(self, test_data, height, width, expected): FILE: tests/apps/pathology/transforms/post/test_generate_succinct_contourd.py class TestGenerateSuccinctContour (line 47) | class TestGenerateSuccinctContour(unittest.TestCase): method test_shape (line 50) | def test_shape(self, data, height, width, expected): FILE: tests/apps/pathology/transforms/post/test_generate_watershed_markers.py class TestGenerateWatershedMarkers (line 40) | class TestGenerateWatershedMarkers(unittest.TestCase): method test_value (line 42) | def test_value(self, arguments, mask, probmap, exception_type): method test_value2 (line 47) | def test_value2(self, arguments, mask, probmap, expected_shape): FILE: tests/apps/pathology/transforms/post/test_generate_watershed_markersd.py class TestGenerateWatershedMarkersd (line 70) | class TestGenerateWatershedMarkersd(unittest.TestCase): method test_value (line 72) | def test_value(self, arguments, mask, border_map, exception_type): method test_value2 (line 77) | def test_value2(self, arguments, mask, border_map, expected_shape): FILE: tests/apps/pathology/transforms/post/test_generate_watershed_mask.py class TestGenerateWatershedMask (line 60) | class TestGenerateWatershedMask(unittest.TestCase): method test_value (line 62) | def test_value(self, arguments, exception_type): method test_value2 (line 67) | def test_value2(self, arguments, image, expected_shape, expected_value): FILE: tests/apps/pathology/transforms/post/test_generate_watershed_maskd.py class TestGenerateWatershedMaskd (line 60) | class TestGenerateWatershedMaskd(unittest.TestCase): method test_value (line 62) | def test_value(self, arguments, exception_type): method test_value2 (line 67) | def test_value2(self, arguments, image, expected_shape, expected_value): FILE: tests/apps/pathology/transforms/post/test_hovernet_instance_map_post_processing.py class TestHoVerNetInstanceMapPostProcessing (line 44) | class TestHoVerNetInstanceMapPostProcessing(unittest.TestCase): method test_value (line 46) | def test_value(self, in_type, test_data, kwargs, expected_info, expect... FILE: tests/apps/pathology/transforms/post/test_hovernet_instance_map_post_processingd.py class TestHoVerNetInstanceMapPostProcessingd (line 45) | class TestHoVerNetInstanceMapPostProcessingd(unittest.TestCase): method test_value (line 47) | def test_value(self, in_type, test_data, kwargs, expected_info, expect... FILE: tests/apps/pathology/transforms/post/test_hovernet_nuclear_type_post_processing.py class TestHoVerNetNuclearTypePostProcessing (line 43) | class TestHoVerNetNuclearTypePostProcessing(unittest.TestCase): method test_value (line 45) | def test_value(self, in_type, test_data, kwargs, expected_info, expect... FILE: tests/apps/pathology/transforms/post/test_watershed.py class TestWatershed (line 45) | class TestWatershed(unittest.TestCase): method test_output (line 47) | def test_output(self, args, image, hover_map, expected_shape): FILE: tests/apps/pathology/transforms/post/test_watershedd.py class TestWatershedd (line 50) | class TestWatershedd(unittest.TestCase): method test_output (line 52) | def test_output(self, args, image, hover_map, expected_shape): FILE: tests/apps/pathology/transforms/test_pathology_he_stain.py class TestExtractHEStains (line 75) | class TestExtractHEStains(unittest.TestCase): method test_transparent_image (line 80) | def test_transparent_image(self, image): method test_identical_result_vectors (line 96) | def test_identical_result_vectors(self, image): method test_result_value (line 113) | def test_result_value(self, image, expected_data): class TestNormalizeHEStains (line 148) | class TestNormalizeHEStains(unittest.TestCase): method test_transparent_image (line 153) | def test_transparent_image(self, image): method test_result_value (line 176) | def test_result_value(self, arguments, image, expected_data): FILE: tests/apps/pathology/transforms/test_pathology_he_stain_dict.py class TestExtractHEStainsD (line 69) | class TestExtractHEStainsD(unittest.TestCase): method test_transparent_image (line 72) | def test_transparent_image(self, image): method test_identical_result_vectors (line 89) | def test_identical_result_vectors(self, image): method test_result_value (line 107) | def test_result_value(self, image, expected_data): class TestNormalizeHEStainsD (line 143) | class TestNormalizeHEStainsD(unittest.TestCase): method test_transparent_image (line 146) | def test_transparent_image(self, image): method test_result_value (line 170) | def test_result_value(self, arguments, image, expected_data): FILE: tests/apps/reconstruction/nets/test_recon_net_utils.py class TestReconNetUtils (line 51) | class TestReconNetUtils(unittest.TestCase): method test_reshape_channel_complex (line 53) | def test_reshape_channel_complex(self, test_data): method test_complex_normalize (line 63) | def test_complex_normalize(self, test_data): method test_pad (line 69) | def test_pad(self, test_data): method test_sens_expand_reduce (line 75) | def test_sens_expand_reduce(self, test_data, sens): FILE: tests/apps/reconstruction/test_complex_utils.py class TestMRIUtils (line 53) | class TestMRIUtils(unittest.TestCase): method test_to_tensor_complex (line 55) | def test_to_tensor_complex(self, test_data, expected_shape): method test_complex_abs (line 61) | def test_complex_abs(self, test_data, res_data): method test_complex_mul (line 66) | def test_complex_mul(self, test_x, test_y, res_data): method test_complex_conj (line 71) | def test_complex_conj(self, test_data, res_data): FILE: tests/apps/reconstruction/test_fastmri_reader.py class TestMRIUtils (line 68) | class TestMRIUtils(unittest.TestCase): method test_get_data (line 70) | def test_get_data(self, test_data, test_res, test_meta): FILE: tests/apps/reconstruction/test_mri_utils.py class TestMRIUtils (line 29) | class TestMRIUtils(unittest.TestCase): method test_rss (line 31) | def test_rss(self, test_data, res_data): FILE: tests/apps/reconstruction/transforms/test_kspace_mask.py class TestMRIUtils (line 28) | class TestMRIUtils(unittest.TestCase): method test_mask (line 31) | def test_mask(self, test_data): FILE: tests/apps/reconstruction/transforms/test_reference_based_normalize_intensity.py class TestDetailedNormalizeIntensityd (line 54) | class TestDetailedNormalizeIntensityd(unittest.TestCase): method test_target_mean_std (line 56) | def test_target_mean_std(self, args, data, normalized_data, normalized... FILE: tests/apps/reconstruction/transforms/test_reference_based_spatial_cropd.py class TestTargetBasedSpatialCropd (line 48) | class TestTargetBasedSpatialCropd(unittest.TestCase): method test_shape (line 50) | def test_shape(self, args, data, expected_shape): FILE: tests/apps/test_auto3dseg.py function create_sim_data (line 82) | def create_sim_data(dataroot: str, sim_datalist: dict, sim_dim: tuple, i... class TestOperations (line 121) | class TestOperations(Operations): method __init__ (line 128) | def __init__(self) -> None: class TestAnalyzer (line 132) | class TestAnalyzer(Analyzer): method __init__ (line 139) | def __init__(self, key, report_format, stats_name="test"): method __call__ (line 143) | def __call__(self, data): class TestImageAnalyzer (line 151) | class TestImageAnalyzer(Analyzer): method __init__ (line 158) | def __init__(self, image_key="image", stats_name="test_image"): method __call__ (line 165) | def __call__(self, data): class TestDataAnalyzer (line 173) | class TestDataAnalyzer(unittest.TestCase): method setUp (line 174) | def setUp(self): method test_data_analyzer_cpu (line 183) | def test_data_analyzer_cpu(self, input_params): method test_data_analyzer_histogram (line 199) | def test_data_analyzer_histogram(self): method test_data_analyzer_gpu (line 216) | def test_data_analyzer_gpu(self, input_params): method test_basic_operation_class (line 231) | def test_basic_operation_class(self): method test_sample_operations (line 245) | def test_sample_operations(self): method test_summary_operations (line 260) | def test_summary_operations(self): method test_basic_analyzer_class (line 272) | def test_basic_analyzer_class(self): method test_transform_analyzer_class (line 283) | def test_transform_analyzer_class(self): method test_image_stats_case_analyzer (line 297) | def test_image_stats_case_analyzer(self): method test_foreground_image_stats_cases_analyzer (line 318) | def test_foreground_image_stats_cases_analyzer(self): method test_label_stats_case_analyzer (line 340) | def test_label_stats_case_analyzer(self): method test_filename_case_analyzer (line 363) | def test_filename_case_analyzer(self): method test_filename_case_analyzer_image_only (line 376) | def test_filename_case_analyzer_image_only(self): method test_image_stats_summary_analyzer (line 390) | def test_image_stats_summary_analyzer(self): method test_fg_image_stats_summary_analyzer (line 413) | def test_fg_image_stats_summary_analyzer(self): method test_label_stats_summary_analyzer (line 438) | def test_label_stats_summary_analyzer(self): method test_seg_summarizer (line 463) | def test_seg_summarizer(self): method tearDown (line 490) | def tearDown(self) -> None: FILE: tests/apps/test_auto3dseg_bundlegen.py function create_sim_data (line 48) | def create_sim_data(dataroot, sim_datalist, sim_dim, **kwargs): function run_auto3dseg_before_bundlegen (line 73) | def run_auto3dseg_before_bundlegen(test_path, work_dir): class TestBundleGen (line 102) | class TestBundleGen(unittest.TestCase): method setUp (line 103) | def setUp(self) -> None: method test_move_bundle_gen_folder (line 107) | def test_move_bundle_gen_folder(self) -> None: method tearDown (line 143) | def tearDown(self) -> None: FILE: tests/apps/test_check_hash.py class TestCheckMD5 (line 34) | class TestCheckMD5(unittest.TestCase): method test_result (line 37) | def test_result(self, md5_value, t, expected_result): method test_hash_type_error (line 46) | def test_hash_type_error(self): FILE: tests/apps/test_cross_validation.py class TestCrossValidation (line 23) | class TestCrossValidation(unittest.TestCase): method test_values (line 25) | def test_values(self): FILE: tests/apps/test_decathlondataset.py class TestDecathlonDataset (line 25) | class TestDecathlonDataset(unittest.TestCase): method test_values (line 27) | def test_values(self): FILE: tests/apps/test_download_and_extract.py class TestDownloadAndExtract (line 28) | class TestDownloadAndExtract(unittest.TestCase): method test_actions (line 30) | def test_actions(self): method test_default (line 58) | def test_default(self, key, file_type): class TestPathTraversalProtection (line 71) | class TestPathTraversalProtection(unittest.TestCase): method test_valid_zip_extraction (line 74) | def test_valid_zip_extraction(self): method test_malicious_zip_path_traversal (line 104) | def test_malicious_zip_path_traversal(self): method test_valid_tar_extraction (line 124) | def test_valid_tar_extraction(self): method test_malicious_tar_path_traversal (line 158) | def test_malicious_tar_path_traversal(self): method test_absolute_path_protection (line 181) | def test_absolute_path_protection(self): method test_malicious_symlink_protection (line 199) | def test_malicious_symlink_protection(self): method test_malicious_hardlink_protection (line 225) | def test_malicious_hardlink_protection(self): FILE: tests/apps/test_download_url_yandex.py class TestDownloadUrlYandex (line 31) | class TestDownloadUrlYandex(unittest.TestCase): method test_verify (line 34) | def test_verify(self): method test_verify_error (line 38) | def test_verify_error(self): FILE: tests/apps/test_mednistdataset.py class TestMedNISTDataset (line 27) | class TestMedNISTDataset(unittest.TestCase): method test_values (line 29) | def test_values(self): FILE: tests/apps/test_mmar_download.py class TestMMMARDownload (line 118) | class TestMMMARDownload(unittest.TestCase): method test_download (line 121) | def test_download(self, idx): method test_load_ckpt (line 134) | def test_load_ckpt(self, input_args, expected_name, expected_val): method test_unique (line 141) | def test_unique(self): method test_search (line 146) | def test_search(self): FILE: tests/apps/test_tciadataset.py class TestTciaDataset (line 26) | class TestTciaDataset(unittest.TestCase): method test_values (line 28) | def test_values(self): FILE: tests/apps/vista3d/test_point_based_window_inferer.py class TestPointBasedWindowInferer (line 64) | class TestPointBasedWindowInferer(unittest.TestCase): method test_vista3d (line 66) | def test_vista3d(self, vista3d_params, inputs_shape, inferer_params): FILE: tests/apps/vista3d/test_vista3d_sampler.py class TestGeneratePrompt (line 91) | class TestGeneratePrompt(unittest.TestCase): method test_result (line 93) | def test_result(self, input_data, expected): FILE: tests/apps/vista3d/test_vista3d_transforms.py class TestVistaPreTransformd (line 76) | class TestVistaPreTransformd(unittest.TestCase): method test_result (line 78) | def test_result(self, input_data, expected): class TestVistaPostTransformd (line 85) | class TestVistaPostTransformd(unittest.TestCase): method test_result (line 87) | def test_result(self, input_data, expected): FILE: tests/bundle/test_bundle_ckpt_export.py class TestCKPTExport (line 37) | class TestCKPTExport(unittest.TestCase): method setUp (line 39) | def setUp(self): method tearDown (line 44) | def tearDown(self): method test_export (line 51) | def test_export(self, key_in_ckpt, use_trace): method test_default_value (line 83) | def test_default_value(self, key_in_ckpt, use_trace): FILE: tests/bundle/test_bundle_download.py class TestDownload (line 140) | class TestDownload(unittest.TestCase): method test_github_download_bundle (line 143) | def test_github_download_bundle(self, bundle_name, version): method test_url_download_bundle (line 163) | def test_url_download_bundle(self, bundle_files, bundle_name, url, has... method test_hf_hub_download_bundle (line 183) | def test_hf_hub_download_bundle(self, bundle_files, bundle_name, repo): method test_monaihosting_url_download_bundle (line 205) | def test_monaihosting_url_download_bundle(self, bundle_files, bundle_n... method test_ngc_private_source_download_bundle (line 223) | def test_ngc_private_source_download_bundle(self, bundle_files, bundle... method test_monaihosting_source_download_bundle (line 241) | def test_monaihosting_source_download_bundle(self, bundle_files, bundl... method test_examine_monai_version (line 257) | def test_examine_monai_version(self, mock_get_versions): method test_examine_monai_version_rc (line 263) | def test_examine_monai_version_rc(self, mock_get_versions): method test_list_latest_versions (line 267) | def test_list_latest_versions(self): method test_download_monaihosting (line 289) | def test_download_monaihosting(self, mock_get_versions): method test_download_ngc (line 300) | def test_download_ngc(self, mock_get_versions): class TestLoad (line 310) | class TestLoad(unittest.TestCase): method test_load_weights (line 313) | def test_load_weights(self, bundle_files, bundle_name, repo, device, m... method test_load_weights_with_net_override (line 366) | def test_load_weights_with_net_override(self, bundle_name, device, net... method test_load_ts_module (line 403) | def test_load_ts_module(self, bundle_files, bundle_name, version, repo... class TestDownloadLargefiles (line 437) | class TestDownloadLargefiles(unittest.TestCase): method test_url_download_large_files (line 440) | def test_url_download_large_files(self, bundle_files, bundle_name, url... class TestNgcBundleDownload (line 466) | class TestNgcBundleDownload(unittest.TestCase): method test_ngc_download_bundle (line 469) | def test_ngc_download_bundle(self, bundle_name, version, remove_prefix... FILE: tests/bundle/test_bundle_get_data.py class TestGetBundleData (line 47) | class TestGetBundleData(unittest.TestCase): method test_get_all_bundles_list (line 50) | def test_get_all_bundles_list(self, params): method test_get_bundle_versions (line 59) | def test_get_bundle_versions(self, params): method test_get_bundle_info (line 69) | def test_get_bundle_info(self, params): method test_get_bundle_info_monaihosting (line 78) | def test_get_bundle_info_monaihosting(self, params): method test_fake_token (line 87) | def test_fake_token(self, params): FILE: tests/bundle/test_bundle_push_to_hf_hub.py class TestPushToHuggingFaceHub (line 30) | class TestPushToHuggingFaceHub(unittest.TestCase): method test_push_to_huggingface_hub (line 37) | def test_push_to_huggingface_hub(self, repo, bundle_name, test_creater... FILE: tests/bundle/test_bundle_trt_export.py class TestTRTExport (line 58) | class TestTRTExport(unittest.TestCase): method setUp (line 59) | def setUp(self): method tearDown (line 64) | def tearDown(self): method test_trt_export (line 72) | def test_trt_export(self, convert_precision, input_shape, dynamic_batch): method test_onnx_trt_export (line 110) | def test_onnx_trt_export(self, convert_precision, input_shape, dynamic... FILE: tests/bundle/test_bundle_utils.py class TestLoadBundleConfig (line 53) | class TestLoadBundleConfig(unittest.TestCase): method setUp (line 54) | def setUp(self): method tearDown (line 83) | def tearDown(self): method test_load_config_dir (line 86) | def test_load_config_dir(self): method test_load_config_zip (line 93) | def test_load_config_zip(self): method test_run (line 103) | def test_run(self): method test_load_config_ts (line 120) | def test_load_config_ts(self): class TestPPrintEdges (line 136) | class TestPPrintEdges(unittest.TestCase): method test_str (line 137) | def test_str(self): FILE: tests/bundle/test_bundle_verify_metadata.py class TestVerifyMetaData (line 32) | class TestVerifyMetaData(unittest.TestCase): method setUp (line 33) | def setUp(self): method test_verify (line 43) | def test_verify(self, meta_file, schema_file): method test_verify_error (line 53) | def test_verify_error(self): FILE: tests/bundle/test_bundle_verify_net.py class TestVerifyNetwork (line 33) | class TestVerifyNetwork(unittest.TestCase): method test_verify (line 35) | def test_verify(self, meta_file, config_file): method test_verify_fp16 (line 48) | def test_verify_fp16(self, meta_file, config_file): method test_verify_fp16_extra_forward_args (line 63) | def test_verify_fp16_extra_forward_args(self, meta_file, config_file): FILE: tests/bundle/test_bundle_workflow.py class TestBundleWorkflow (line 47) | class TestBundleWorkflow(unittest.TestCase): method setUp (line 48) | def setUp(self): method tearDown (line 57) | def tearDown(self): method _test_inferer (line 60) | def _test_inferer(self, inferer): method test_inference_config (line 98) | def test_inference_config(self, config_file): method test_responsive_inference_config (line 127) | def test_responsive_inference_config(self, config_file): method test_train_config (line 156) | def test_train_config(self, config_file): method test_non_config (line 193) | def test_non_config(self): method test_non_config_wrong_log_cases (line 200) | def test_non_config_wrong_log_cases(self, meta_file, logging_file, exp... method test_pythonic_workflow (line 204) | def test_pythonic_workflow(self): method test_create_pythonic_workflow (line 230) | def test_create_pythonic_workflow(self): FILE: tests/bundle/test_component_locator.py class TestComponentLocator (line 23) | class TestComponentLocator(unittest.TestCase): method test_locate (line 25) | def test_locate(self): FILE: tests/bundle/test_config_item.py class TestConfigItem (line 54) | class TestConfigItem(unittest.TestCase): method test_item (line 57) | def test_item(self, test_input, expected): method test_component (line 68) | def test_component(self, test_input, output_type): method test_expression (line 81) | def test_expression(self, id, test_input): method test_lazy_instantiation (line 92) | def test_lazy_instantiation(self): method test_import (line 105) | def test_import(self, stmt, mod_name): method test_import_from (line 118) | def test_import_from(self, stmt, mod_name): method test_is_import_stmt (line 127) | def test_is_import_stmt(self, stmt, expected): method test_error_expr (line 132) | def test_error_expr(self): FILE: tests/bundle/test_config_parser.py function case_pdb (line 36) | def case_pdb(sarg=None): function case_pdb_inst (line 43) | def case_pdb_inst(sarg=None): class TestClass (line 74) | class TestClass: method compute (line 76) | def compute(a, b, func=lambda x, y: x + y): method cls_compute (line 80) | def cls_compute(cls, a, b, func=lambda x, y: x + y): method __call__ (line 83) | def __call__(self, a, b): class TestConfigParser (line 144) | class TestConfigParser(unittest.TestCase): method test_config_content (line 145) | def test_config_content(self): method test_parse (line 166) | def test_parse(self, config, expected_ids, output_types): method test_function (line 196) | def test_function(self, config): method test_relative_id (line 210) | def test_relative_id(self, config): method test_macro_replace (line 219) | def test_macro_replace(self): method test_allow_missing_reference (line 230) | def test_allow_missing_reference(self, config): method test_list_expressions (line 250) | def test_list_expressions(self): method test_contains (line 262) | def test_contains(self): method test_lambda_reference (line 284) | def test_lambda_reference(self): method test_non_str_target (line 294) | def test_non_str_target(self): method test_error_instance (line 302) | def test_error_instance(self): method test_pdb (line 308) | def test_pdb(self): method test_get_via_attributes (line 313) | def test_get_via_attributes(self): method test_builtin (line 329) | def test_builtin(self): method test_slicing (line 333) | def test_slicing(self): method test_substring_reference (line 340) | def test_substring_reference(self, config, expected): method test_parse_json_raise (line 347) | def test_parse_json_raise(self, config_string, extension, _, __): method test_parse_json_warn (line 360) | def test_parse_json_warn(self, config_string, extension, expected_uniq... method test_load_configs (line 376) | def test_load_configs( FILE: tests/bundle/test_reference_resolver.py class TestReferenceResolver (line 72) | class TestReferenceResolver(unittest.TestCase): method test_resolve (line 75) | def test_resolve(self, configs, expected_id, output_type): method test_circular_references (line 102) | def test_circular_references(self): FILE: tests/clang_format_utils.py function get_and_check_clang_format (line 49) | def get_and_check_clang_format(): FILE: tests/config/test_cv2_dist.py function main_worker (line 25) | def main_worker(rank, ngpus_per_node, port): class TestCV2Dist (line 43) | class TestCV2Dist(unittest.TestCase): method test_cv2_cuda_ops (line 44) | def test_cv2_cuda_ops(self): FILE: tests/config/test_print_info.py class TestPrintInfo (line 19) | class TestPrintInfo(unittest.TestCase): method test_print_info (line 21) | def test_print_info(self): FILE: tests/croppers.py class CropTest (line 26) | class CropTest(unittest.TestCase): method get_arr (line 28) | def get_arr(shape): method crop_test (line 31) | def crop_test(self, input_param, input_shape, expected_shape, same_are... method crop_test_value (line 69) | def crop_test_value(self, input_param, input_arr, expected_array): method multi_inverse (line 81) | def multi_inverse(self, input_shape, init_params): method crop_test_pending_ops (line 109) | def crop_test_pending_ops(self, input_param, input_shape, align_corner... method crop_test_combine_ops (line 137) | def crop_test_combine_ops(self, funcs, input_shape): FILE: tests/data/meta_tensor/test_meta_tensor.py function rand_string (line 44) | def rand_string(min_len=5, max_len=10): class TestMetaTensor (line 50) | class TestMetaTensor(unittest.TestCase): method get_im (line 52) | def get_im(shape=None, dtype=None, device=None): method check_ids (line 65) | def check_ids(self, a, b, should_match): method check_meta (line 69) | def check_meta(self, a: MetaTensor, b: MetaTensor) -> None: method check (line 80) | def check( method test_as_tensor (line 113) | def test_as_tensor(self, device, dtype): method test_as_dict (line 121) | def test_as_dict(self): method test_constructor (line 130) | def test_constructor(self, device, dtype): method test_to_cuda (line 145) | def test_to_cuda(self, device, dtype): method test_affine_device (line 163) | def test_affine_device(self): method test_copy (line 169) | def test_copy(self, device, dtype): method test_add (line 185) | def test_add(self, device, dtype): method test_conv (line 202) | def test_conv(self, device): method test_stack (line 210) | def test_stack(self, device, dtype): method test_get_set_meta_fns (line 220) | def test_get_set_meta_fns(self): method test_torchscript (line 227) | def test_torchscript(self, device): method test_pickling (line 243) | def test_pickling(self): method test_amp (line 252) | def test_amp(self): method test_out (line 263) | def test_out(self): method test_collate (line 275) | def test_collate(self, device, dtype): method test_dataset (line 293) | def test_dataset(self, device, dtype): method test_dataloader (line 300) | def test_dataloader(self, dtype): method test_indexing (line 316) | def test_indexing(self): method test_slicing (line 395) | def test_slicing(self): method test_decollate (line 407) | def test_decollate(self, dtype): method test_str (line 420) | def test_str(self): method test_shape (line 426) | def test_shape(self): method test_astype (line 432) | def test_astype(self): method test_transforms (line 440) | def test_transforms(self): method test_construct_with_pre_applied_transforms (line 495) | def test_construct_with_pre_applied_transforms(self): method test_pending_ops (line 503) | def test_pending_ops(self): method test_multiprocessing (line 515) | def test_multiprocessing(self, device=None, dtype=None): method test_array_function (line 531) | def test_array_function(self, device="cpu", dtype=float): method test_numpy (line 548) | def test_numpy(self, device=None, dtype=None): FILE: tests/data/meta_tensor/test_to_from_meta_tensord.py function rand_string (line 37) | def rand_string(min_len=5, max_len=10): class TestToFromMetaTensord (line 44) | class TestToFromMetaTensord(unittest.TestCase): method get_im (line 46) | def get_im(shape=None, dtype=None, device=None): method check_ids (line 59) | def check_ids(self, a, b, should_match): method check (line 63) | def check( method test_from_to_meta_tensord (line 102) | def test_from_to_meta_tensord(self, device, dtype, data_type="tensor"): FILE: tests/data/test_arraydataset.py class TestCompose (line 42) | class TestCompose(Compose): method __call__ (line 45) | def __call__(self, input_, lazy=False): class TestArrayDataset (line 81) | class TestArrayDataset(unittest.TestCase): method test_shape (line 84) | def test_shape(self, img_transform, label_transform, indices, expected... method test_default_none (line 118) | def test_default_none(self, img_transform, expected_shape): method test_dataloading_img (line 141) | def test_dataloading_img(self, img_transform, expected_shape): method test_dataloading_img_label (line 162) | def test_dataloading_img_label(self, img_transform, expected_shape): FILE: tests/data/test_box_utils.py class TestCreateBoxList (line 143) | class TestCreateBoxList(unittest.TestCase): method test_value (line 145) | def test_value(self, input_data, mode2, expected_box, expected_area): class TestBoxUtilsDtype (line 222) | class TestBoxUtilsDtype(unittest.TestCase): method test_dtype_behavior (line 246) | def test_dtype_behavior(self, boxes1, boxes2): method test_integer_truncation_bug (line 262) | def test_integer_truncation_bug(self): FILE: tests/data/test_cachedataset.py class TestCacheDataset (line 40) | class TestCacheDataset(unittest.TestCase): method test_shape (line 43) | def test_shape(self, transform, expected_shape): method test_set_data (line 79) | def test_set_data(self): class _StatefulTransform (line 109) | class _StatefulTransform(Transform, ThreadUnsafe): method __init__ (line 115) | def __init__(self): method __call__ (line 118) | def __call__(self, data): class TestCacheThread (line 123) | class TestCacheThread(unittest.TestCase): method test_thread_safe (line 130) | def test_thread_safe(self, persistent_workers, cache_workers, loader_w... method test_hash_as_key (line 194) | def test_hash_as_key(self, transform, expected_shape): FILE: tests/data/test_cachedataset_parallel.py class TestCacheDatasetParallel (line 32) | class TestCacheDatasetParallel(unittest.TestCase): method test_shape (line 35) | def test_shape(self, num_workers, dataset_size, transform): FILE: tests/data/test_cachedataset_persistent_workers.py class TestTransformsWCacheDatasetAndPersistentWorkers (line 20) | class TestTransformsWCacheDatasetAndPersistentWorkers(unittest.TestCase): method test_duplicate_transforms (line 22) | def test_duplicate_transforms(self): FILE: tests/data/test_cachentransdataset.py class TestCacheNTransDataset (line 36) | class TestCacheNTransDataset(unittest.TestCase): method test_n_trans (line 39) | def test_n_trans(self, transform, expected_shape): FILE: tests/data/test_check_missing_files.py class TestCheckMissingFiles (line 25) | class TestCheckMissingFiles(unittest.TestCase): method test_content (line 27) | def test_content(self): FILE: tests/data/test_create_cross_validation_datalist.py class TestCreateCrossValidationDatalist (line 22) | class TestCreateCrossValidationDatalist(unittest.TestCase): method test_content (line 24) | def test_content(self): FILE: tests/data/test_csv_dataset.py class TestCSVDataset (line 25) | class TestCSVDataset(unittest.TestCase): method test_values (line 27) | def test_values(self): FILE: tests/data/test_csv_iterable_dataset.py class TestCSVIterableDataset (line 28) | class TestCSVIterableDataset(unittest.TestCase): method test_values (line 29) | def test_values(self): FILE: tests/data/test_csv_saver.py class TestCSVSaver (line 25) | class TestCSVSaver(unittest.TestCase): method test_saved_content (line 27) | def test_saved_content(self): FILE: tests/data/test_dataloader.py class TestDataLoader (line 31) | class TestDataLoader(unittest.TestCase): method test_values (line 32) | def test_values(self): method test_exception (line 53) | def test_exception(self, datalist): class _RandomDataset (line 61) | class _RandomDataset(torch.utils.data.Dataset, Randomizable): method __getitem__ (line 62) | def __getitem__(self, index): method __len__ (line 65) | def __len__(self): class TestLoaderRandom (line 69) | class TestLoaderRandom(unittest.TestCase): method setUp (line 74) | def setUp(self): method tearDown (line 77) | def tearDown(self): method test_randomize (line 81) | def test_randomize(self, workers): method test_zipdataset (line 92) | def test_zipdataset(self): FILE: tests/data/test_dataset.py class TestDataset (line 32) | class TestDataset(unittest.TestCase): method test_shape (line 34) | def test_shape(self, expected_shape): method test_dataset_lazy_on_call (line 96) | def test_dataset_lazy_on_call(self): class TestTupleDataset (line 101) | class TestTupleDataset(unittest.TestCase): method test_shape (line 103) | def test_shape(self, expected_shape): class TestDatsesetWithLazy (line 166) | class TestDatsesetWithLazy(unittest.TestCase): method init_logger (line 169) | def init_logger(self, name=LOGGER_NAME): method test_dataset_lazy_with_logging (line 182) | def test_dataset_lazy_with_logging(self, compose_type, pipeline, lazy,... FILE: tests/data/test_dataset_func.py class TestDatasetFunc (line 22) | class TestDatasetFunc(unittest.TestCase): method test_seg_values (line 24) | def test_seg_values(self): FILE: tests/data/test_dataset_summary.py function test_collate (line 29) | def test_collate(batch): class TestDatasetSummary (line 38) | class TestDatasetSummary(unittest.TestCase): method test_spacing_intensity (line 40) | def test_spacing_intensity(self): method test_anisotropic_spacing (line 76) | def test_anisotropic_spacing(self): FILE: tests/data/test_fft_utils.py class TestFFT (line 44) | class TestFFT(unittest.TestCase): method test (line 46) | def test(self, test_data, res_data): method test_consistency (line 51) | def test_consistency(self, test_data): method test_consistency_complex (line 58) | def test_consistency_complex(self, test_data): FILE: tests/data/test_folder_layout.py class TestFolderLayout (line 62) | class TestFolderLayout(unittest.TestCase): method test_value (line 65) | def test_value(self, con_params, f_params, expected): method test_mkdir (line 69) | def test_mkdir(self): FILE: tests/data/test_gdsdataset.py class _InplaceXform (line 65) | class _InplaceXform(Transform): method __call__ (line 66) | def __call__(self, data): class TestDataset (line 74) | class TestDataset(unittest.TestCase): method test_cache (line 75) | def test_cache(self): method test_metatensor (line 106) | def test_metatensor(self): method test_dtype (line 113) | def test_dtype(self): method test_shape (line 134) | def test_shape(self, transform, expected_shape): method test_different_transforms (line 208) | def test_different_transforms(self): FILE: tests/data/test_grid_dataset.py function identity_generator (line 26) | def identity_generator(x): class TestGridPatchDataset (line 60) | class TestGridPatchDataset(unittest.TestCase): method setUp (line 61) | def setUp(self): method tearDown (line 64) | def tearDown(self): method test_iter_patch (line 68) | def test_iter_patch(self, in_type, cb): method test_patch_iter (line 79) | def test_patch_iter(self, in_type, input_parameters, image, expected, ... method test_patch_iterd (line 87) | def test_patch_iterd(self, in_type, input_parameters, image, expected,... method test_shape (line 95) | def test_shape(self): method test_loading_array (line 110) | def test_loading_array(self): method test_loading_dict (line 138) | def test_loading_dict(self): method test_set_data (line 180) | def test_set_data(self): FILE: tests/data/test_handler_smartcache.py class TestHandlerSmartCache (line 24) | class TestHandlerSmartCache(unittest.TestCase): method test_content (line 26) | def test_content(self): FILE: tests/data/test_hashing.py class TestPickleHashing (line 22) | class TestPickleHashing(unittest.TestCase): method test_pickle (line 24) | def test_pickle(self): class TestJSONHashing (line 48) | class TestJSONHashing(unittest.TestCase): method test_json (line 50) | def test_json(self): FILE: tests/data/test_header_correct.py class TestCorrection (line 22) | class TestCorrection(unittest.TestCase): method test_correct (line 24) | def test_correct(self): method test_affine (line 33) | def test_affine(self): FILE: tests/data/test_image_dataset.py class RandTest (line 36) | class RandTest(RandomizableTransform): method randomize (line 41) | def randomize(self, data=None): method __call__ (line 44) | def __call__(self, data): class _TestCompose (line 49) | class _TestCompose(Compose): method __call__ (line 51) | def __call__(self, data, meta, lazy): class TestImageDataset (line 60) | class TestImageDataset(unittest.TestCase): method test_use_case (line 62) | def test_use_case(self): method test_dataset (line 84) | def test_dataset(self): FILE: tests/data/test_image_rw.py class TestLoadSaveNifti (line 35) | class TestLoadSaveNifti(unittest.TestCase): method setUp (line 36) | def setUp(self): method tearDown (line 39) | def tearDown(self): method nifti_rw (line 42) | def nifti_rw(self, test_data, reader, writer, dtype, resample=True): method test_2d (line 81) | def test_2d(self, reader, writer): method test_3d (line 87) | def test_3d(self, reader, writer): method test_4d (line 93) | def test_4d(self, reader, writer): class TestLoadSavePNG (line 99) | class TestLoadSavePNG(unittest.TestCase): method setUp (line 100) | def setUp(self): method tearDown (line 103) | def tearDown(self): method png_rw (line 106) | def png_rw(self, test_data, reader, writer, dtype, resample=True): method test_2d (line 129) | def test_2d(self, reader, writer): method test_rgb (line 134) | def test_rgb(self, reader, writer): class TestRegRes (line 139) | class TestRegRes(unittest.TestCase): method test_0_default (line 140) | def test_0_default(self): method test_1_new (line 148) | def test_1_new(self): class TestLoadSaveNrrd (line 155) | class TestLoadSaveNrrd(unittest.TestCase): method setUp (line 156) | def setUp(self): method tearDown (line 159) | def tearDown(self): method nrrd_rw (line 162) | def nrrd_rw(self, test_data, reader, writer, dtype, resample=True): method test_2d (line 181) | def test_2d(self, reader, writer): method test_3d (line 186) | def test_3d(self, reader, writer): FILE: tests/data/test_init_reader.py class TestInitLoadImage (line 21) | class TestInitLoadImage(unittest.TestCase): method test_load_image (line 22) | def test_load_image(self): method test_load_image_to_gpu (line 35) | def test_load_image_to_gpu(self): method test_readers (line 48) | def test_readers(self): method test_readers_to_gpu (line 74) | def test_readers_to_gpu(self): FILE: tests/data/test_is_supported_format.py class TestIsSupportedFormat (line 35) | class TestIsSupportedFormat(unittest.TestCase): method test_value (line 38) | def test_value(self, input_param, result): FILE: tests/data/test_iterable_dataset.py class _Stream (line 28) | class _Stream: method __init__ (line 30) | def __init__(self, data): method __iter__ (line 33) | def __iter__(self): class TestIterableDataset (line 37) | class TestIterableDataset(unittest.TestCase): method test_shape (line 39) | def test_shape(self): method test_supervisedevaluator (line 64) | def test_supervisedevaluator(self): FILE: tests/data/test_itk_torch_bridge.py class TestITKTorchAffineMatrixBridge (line 58) | class TestITKTorchAffineMatrixBridge(unittest.TestCase): method setUp (line 59) | def setUp(self): method tearDown (line 73) | def tearDown(self): method create_itk_affine_from_parameters (line 76) | def create_itk_affine_from_parameters( method itk_affine_resample (line 126) | def itk_affine_resample(self, image, matrix, translation, center_of_ro... method monai_affine_resample (line 154) | def monai_affine_resample(self, metatensor, affine_matrix): method remove_border (line 162) | def remove_border(self, image): method itk_warp (line 177) | def itk_warp(self, image, ddf): method monai_warp (line 197) | def monai_warp(self, image_tensor, ddf_tensor): method test_setting_affine_parameters (line 212) | def test_setting_affine_parameters(self, filepath): method test_arbitary_center_of_rotation (line 248) | def test_arbitary_center_of_rotation(self, filepath): method test_monai_to_itk (line 291) | def test_monai_to_itk(self, filepath): method test_cyclic_conversion (line 337) | def test_cyclic_conversion(self, filepath): method test_random_array (line 383) | def test_random_array(self, ndim): method test_real_data (line 420) | def test_real_data(self, filepath): method test_use_reference_space (line 441) | def test_use_reference_space(self, ref_filepath, filepath): class TestITKTorchRW (line 502) | class TestITKTorchRW(unittest.TestCase): method setUp (line 503) | def setUp(self): method tearDown (line 506) | def tearDown(self): method test_rw_itk (line 510) | def test_rw_itk(self, filepath, reader, flip): FILE: tests/data/test_itk_writer.py class TestITKWriter (line 29) | class TestITKWriter(unittest.TestCase): method test_channel_shape (line 31) | def test_channel_shape(self): method test_rgb (line 44) | def test_rgb(self): method test_no_channel (line 56) | def test_no_channel(self): FILE: tests/data/test_list_data_collate.py class TestListDataCollate (line 39) | class TestListDataCollate(unittest.TestCase): method test_type_shape (line 42) | def test_type_shape(self, input_data, expected_type, expected_shape): FILE: tests/data/test_lmdbdataset.py class _InplaceXform (line 83) | class _InplaceXform(Transform): method __call__ (line 84) | def __call__(self, data): class TestLMDBDataset (line 93) | class TestLMDBDataset(unittest.TestCase): method test_cache (line 94) | def test_cache(self): method test_shape (line 126) | def test_shape(self, transform, expected_shape, kwargs=None): FILE: tests/data/test_lmdbdataset_dist.py class _InplaceXform (line 25) | class _InplaceXform(Transform): method __call__ (line 26) | def __call__(self, data): class TestMPLMDBDataset (line 35) | class TestMPLMDBDataset(DistTestCase): method setUp (line 36) | def setUp(self): method tearDown (line 39) | def tearDown(self): method test_mp_cache (line 43) | def test_mp_cache(self): FILE: tests/data/test_load_decathlon_datalist.py class TestLoadDecathlonDatalist (line 23) | class TestLoadDecathlonDatalist(unittest.TestCase): method test_seg_values (line 25) | def test_seg_values(self): method test_cls_values (line 47) | def test_cls_values(self): method test_seg_no_basedir (line 64) | def test_seg_no_basedir(self): method test_seg_no_labels (line 92) | def test_seg_no_labels(self): method test_additional_items (line 107) | def test_additional_items(self): FILE: tests/data/test_make_nifti.py class TestMakeNifti (line 36) | class TestMakeNifti(unittest.TestCase): method test_make_nifti (line 38) | def test_make_nifti(self, params): FILE: tests/data/test_mapping_file.py function create_input_file (line 30) | def create_input_file(temp_dir, name): function create_transform (line 38) | def create_transform(temp_dir, mapping_file_path, savepath_in_metadict=T... class TestWriteFileMapping (line 49) | class TestWriteFileMapping(unittest.TestCase): method setUp (line 50) | def setUp(self): method tearDown (line 53) | def tearDown(self): method test_mapping_file (line 57) | def test_mapping_file(self, savepath_in_metadict): method test_multiprocess_mapping_file (line 83) | def test_multiprocess_mapping_file(self): FILE: tests/data/test_masked_patch_wsi_dataset.py function setUpModule (line 72) | def setUpModule(): class MaskedPatchWSIDatasetTests (line 78) | class MaskedPatchWSIDatasetTests: class Tests (line 79) | class Tests(unittest.TestCase): method test_gen_patches (line 83) | def test_gen_patches(self, input_parameters, expected): class TestSlidingPatchWSIDatasetCuCIM (line 104) | class TestSlidingPatchWSIDatasetCuCIM(MaskedPatchWSIDatasetTests.Tests): method setUpClass (line 106) | def setUpClass(cls): class TestSlidingPatchWSIDatasetOpenSlide (line 111) | class TestSlidingPatchWSIDatasetOpenSlide(MaskedPatchWSIDatasetTests.Tes... method setUpClass (line 113) | def setUpClass(cls): FILE: tests/data/test_nifti_header_revise.py class TestRectifyHeaderSformQform (line 22) | class TestRectifyHeaderSformQform(unittest.TestCase): method test_revise_q (line 24) | def test_revise_q(self): method test_revise_both (line 31) | def test_revise_both(self): FILE: tests/data/test_nifti_rw.py class TestNiftiLoadRead (line 74) | class TestNiftiLoadRead(unittest.TestCase): method test_orientation (line 76) | def test_orientation(self, array, affine, reader_param, expected): method test_consistency (line 109) | def test_consistency(self): method test_write_2d (line 151) | def test_write_2d(self): method test_write_3d (line 175) | def test_write_3d(self): method test_write_4d (line 199) | def test_write_4d(self): method test_write_5d (line 223) | def test_write_5d(self): FILE: tests/data/test_npzdictitemdataset.py class TestNPZDictItemDataset (line 23) | class TestNPZDictItemDataset(unittest.TestCase): method test_load_stream (line 25) | def test_load_stream(self): method test_load_file (line 40) | def test_load_file(self): FILE: tests/data/test_nrrd_reader.py class TestNrrdReader (line 50) | class TestNrrdReader(unittest.TestCase): method test_verify_suffix (line 52) | def test_verify_suffix(self): method test_read_int (line 59) | def test_read_int(self, data_shape, filename, expected_shape, dtype): method test_read_float (line 73) | def test_read_float(self, data_shape, filename, expected_shape, dtype): method test_read_list (line 86) | def test_read_list(self, data_shape, filenames, expected_shape, dtype): method test_read_with_header (line 100) | def test_read_with_header(self, data_shape, filename, expected_shape, ... method test_read_with_header_index_order_c (line 119) | def test_read_with_header_index_order_c(self, data_shape, filename, ex... FILE: tests/data/test_numpy_reader.py class TestNumpyReader (line 26) | class TestNumpyReader(unittest.TestCase): method test_npy (line 27) | def test_npy(self): method test_npz1 (line 39) | def test_npz1(self): method test_npz2 (line 51) | def test_npz2(self): method test_npz3 (line 64) | def test_npz3(self): method test_npy_pickle (line 77) | def test_npy_pickle(self): method test_kwargs (line 88) | def test_kwargs(self): method test_dataloader (line 98) | def test_dataloader(self): method test_channel_dim (line 127) | def test_channel_dim(self): FILE: tests/data/test_partition_dataset.py class TestPartitionDataset (line 120) | class TestPartitionDataset(unittest.TestCase): method test_value (line 125) | def test_value(self, input_param, result): FILE: tests/data/test_partition_dataset_classes.py class TestPartitionDatasetClasses (line 78) | class TestPartitionDatasetClasses(unittest.TestCase): method test_value (line 81) | def test_value(self, input_param, result): FILE: tests/data/test_patch_dataset.py function identity (line 24) | def identity(x): class TestPatchDataset (line 29) | class TestPatchDataset(unittest.TestCase): method test_shape (line 31) | def test_shape(self): method test_loading_array (line 47) | def test_loading_array(self): FILE: tests/data/test_patch_wsi_dataset.py function setUpModule (line 126) | def setUpModule(): class PatchWSIDatasetTests (line 132) | class PatchWSIDatasetTests: class Tests (line 133) | class Tests(unittest.TestCase): method test_read_patches_str (line 137) | def test_read_patches_str(self, input_parameters, expected): method test_read_patches_class (line 146) | def test_read_patches_class(self, input_parameters, expected): method test_read_patches_object (line 161) | def test_read_patches_object(self, input_parameters, expected): method test_read_patches_str_multi (line 176) | def test_read_patches_str_multi(self, input_parameters, expected): class TestPatchWSIDatasetCuCIM (line 186) | class TestPatchWSIDatasetCuCIM(PatchWSIDatasetTests.Tests): method setUpClass (line 188) | def setUpClass(cls): class TestPatchWSIDatasetOpenSlide (line 193) | class TestPatchWSIDatasetOpenSlide(PatchWSIDatasetTests.Tests): method setUpClass (line 195) | def setUpClass(cls): FILE: tests/data/test_persistentdataset.py class _InplaceXform (line 56) | class _InplaceXform(Transform): method __call__ (line 57) | def __call__(self, data): class TestDataset (line 65) | class TestDataset(unittest.TestCase): method test_cache (line 66) | def test_cache(self): method test_shape (line 91) | def test_shape(self, transform, expected_shape): method test_different_transforms (line 165) | def test_different_transforms(self): method test_track_meta_and_weights_only (line 179) | def test_track_meta_and_weights_only(self, track_meta, weights_only, e... FILE: tests/data/test_persistentdataset_dist.py class _InplaceXform (line 27) | class _InplaceXform(Transform): method __call__ (line 28) | def __call__(self, data): class TestDistDataset (line 37) | class TestDistDataset(DistTestCase): method setUp (line 38) | def setUp(self): method tearDown (line 41) | def tearDown(self): method test_mp_dataset (line 45) | def test_mp_dataset(self): class TestDistCreateDataset (line 62) | class TestDistCreateDataset(DistTestCase): method setUp (line 63) | def setUp(self): method tearDown (line 66) | def tearDown(self): method test_mp_dataset (line 70) | def test_mp_dataset(self): FILE: tests/data/test_pil_reader.py class TestPNGReader (line 39) | class TestPNGReader(unittest.TestCase): method test_shape_value (line 42) | def test_shape_value(self, data_shape, filenames, expected_shape, meta... method test_converter (line 63) | def test_converter(self, data_shape, filenames, expected_shape, meta_s... FILE: tests/data/test_png_rw.py class TestPngWrite (line 24) | class TestPngWrite(unittest.TestCase): method test_write_gray (line 26) | def test_write_gray(self): method test_write_gray_1height (line 38) | def test_write_gray_1height(self): method test_write_gray_1channel (line 50) | def test_write_gray_1channel(self): method test_write_rgb (line 62) | def test_write_rgb(self): method test_write_2channels (line 75) | def test_write_2channels(self): method test_write_output_shape (line 87) | def test_write_output_shape(self): FILE: tests/data/test_resample_datalist.py class TestResampleDatalist (line 34) | class TestResampleDatalist(unittest.TestCase): method test_value_shape (line 37) | def test_value_shape(self, input_param, expected): FILE: tests/data/test_sampler_dist.py class DistributedSamplerTest (line 26) | class DistributedSamplerTest(DistTestCase): method test_even (line 28) | def test_even(self): method test_uneven (line 40) | def test_uneven(self): method test_uneven_less_data (line 52) | def test_uneven_less_data(self): method test_cachedataset (line 58) | def test_cachedataset(self): FILE: tests/data/test_select_cross_validation_folds.py class TestSelectCrossValidationFolds (line 45) | class TestSelectCrossValidationFolds(unittest.TestCase): method test_value (line 48) | def test_value(self, input_param, result): FILE: tests/data/test_shuffle_buffer.py class TestShuffleBuffer (line 23) | class TestShuffleBuffer(unittest.TestCase): method test_shape (line 24) | def test_shape(self): method test_epochs (line 40) | def test_epochs(self): FILE: tests/data/test_sliding_patch_wsi_dataset.py function setUpModule (line 208) | def setUpModule(): class SlidingPatchWSIDatasetTests (line 217) | class SlidingPatchWSIDatasetTests: class Tests (line 218) | class Tests(unittest.TestCase): method test_read_patches (line 235) | def test_read_patches(self, input_parameters, expected): method test_read_patches_large (line 244) | def test_read_patches_large(self, input_parameters, expected): class TestSlidingPatchWSIDatasetCuCIM (line 256) | class TestSlidingPatchWSIDatasetCuCIM(SlidingPatchWSIDatasetTests.Tests): method setUpClass (line 258) | def setUpClass(cls): class TestSlidingPatchWSIDatasetOpenSlide (line 263) | class TestSlidingPatchWSIDatasetOpenSlide(SlidingPatchWSIDatasetTests.Te... method setUpClass (line 265) | def setUpClass(cls): FILE: tests/data/test_smartcachedataset.py class TestSmartCacheDataset (line 40) | class TestSmartCacheDataset(unittest.TestCase): method test_shape (line 42) | def test_shape(self, replace_rate, num_replace_workers, transform): method test_update_cache (line 90) | def test_update_cache(self): method test_shuffle (line 119) | def test_shuffle(self): method test_set_data (line 146) | def test_set_data(self): method test_datalist (line 189) | def test_datalist(self): FILE: tests/data/test_synthetic.py class TestDiceCELoss (line 43) | class TestDiceCELoss(unittest.TestCase): method test_create_test_image (line 46) | def test_create_test_image(self, dim, input_param, expected_img, expec... method test_ill_radius (line 57) | def test_ill_radius(self): FILE: tests/data/test_thread_buffer.py class TestDataLoader (line 26) | class TestDataLoader(unittest.TestCase): method setUp (line 27) | def setUp(self): method test_values (line 37) | def test_values(self): method test_dataloader (line 49) | def test_dataloader(self): method test_deterministic (line 61) | def test_deterministic(self): method test_time (line 74) | def test_time(self): method test_dataloader_repeats (line 99) | def test_dataloader_repeats(self): method test_thread_workers (line 115) | def test_thread_workers(self): FILE: tests/data/test_threadcontainer.py class TestThreadContainer (line 39) | class TestThreadContainer(unittest.TestCase): method test_container (line 41) | def test_container(self): method test_plot (line 71) | def test_plot(self): FILE: tests/data/test_video_datasets.py class Base (line 34) | class Base: class TestVideoDataset (line 35) | class TestVideoDataset(unittest.TestCase): method get_video_source (line 39) | def get_video_source(self): method get_ds (line 42) | def get_ds(self, *args, **kwargs) -> VideoDataset: method test_no_opencv_raises (line 46) | def test_no_opencv_raises(self): method test_multiprocessing (line 51) | def test_multiprocessing(self): method test_multiple_sources (line 59) | def test_multiple_sources(self, should_match: bool = True): method test_dataset (line 66) | def test_dataset(self, known_num_frames=None, known_fps=None): class TestCameraDataset (line 82) | class TestCameraDataset(Base.TestVideoDataset): method test_multiple_sources (line 87) | def test_multiple_sources(self): method test_device_out_of_range (line 91) | def test_device_out_of_range(self): class TestVideoFileDataset (line 97) | class TestVideoFileDataset(Base.TestVideoDataset): method setUpClass (line 101) | def setUpClass(cls): method test_dataset (line 129) | def test_dataset(self): method test_available_codecs (line 133) | def test_available_codecs(self): method get_video_source (line 140) | def get_video_source(self): FILE: tests/data/test_weighted_random_sampler_dist.py class DistributedWeightedRandomSamplerTest (line 26) | class DistributedWeightedRandomSamplerTest(DistTestCase): method test_sampling (line 28) | def test_sampling(self): method test_num_samples (line 43) | def test_num_samples(self): FILE: tests/data/test_zipdataset.py class Dataset_ (line 22) | class Dataset_(torch.utils.data.Dataset): method __init__ (line 24) | def __init__(self, length, index_only=True): method __len__ (line 28) | def __len__(self): method __getitem__ (line 31) | def __getitem__(self, index): class TestZipDataset (line 51) | class TestZipDataset(unittest.TestCase): method test_value (line 54) | def test_value(self, datasets, transform, expected_output, expected_le... method test_slicing (line 59) | def test_slicing(self): method test_sequence (line 65) | def test_sequence(self): FILE: tests/data/utils/test_decollate.py class TestDeCollate (line 83) | class TestDeCollate(unittest.TestCase): method setUp (line 84) | def setUp(self) -> None: method tearDown (line 91) | def tearDown(self) -> None: method check_match (line 94) | def check_match(self, in1, in2): method check_decollate (line 116) | def check_decollate(self, dataset): method test_decollation_dict (line 131) | def test_decollation_dict(self, *transforms): method test_decollation_tensor (line 141) | def test_decollation_tensor(self, *transforms): method test_decollation_list (line 151) | def test_decollation_list(self, *transforms): class TestBasicDeCollate (line 161) | class TestBasicDeCollate(unittest.TestCase): method test_decollation_examples (line 163) | def test_decollation_examples(self, input_val, expected_out): method test_dict_examples (line 167) | def test_dict_examples(self): method test_decollated (line 215) | def test_decollated(self): FILE: tests/data/utils/test_dev_collate.py class DevCollateTest (line 38) | class DevCollateTest(unittest.TestCase): method test_dev_collate (line 41) | def test_dev_collate(self, inputs, msg): FILE: tests/data/utils/test_file_basename.py class TestFilename (line 22) | class TestFilename(unittest.TestCase): method test_value (line 24) | def test_value(self): method test_relative_path (line 80) | def test_relative_path(self): FILE: tests/data/utils/test_ori_ras_lps.py class TestITKWriter (line 42) | class TestITKWriter(unittest.TestCase): method test_ras_to_lps (line 44) | def test_ras_to_lps(self, param, expected): FILE: tests/data/utils/test_zoom_affine.py class TestZoomAffine (line 66) | class TestZoomAffine(unittest.TestCase): method test_correct (line 69) | def test_correct(self, affine, scale, expected): method test_diagonal (line 77) | def test_diagonal(self, affine, scale, expected): FILE: tests/engines/test_ensemble_evaluator.py class TestEnsembleEvaluator (line 28) | class TestEnsembleEvaluator(unittest.TestCase): method test_content (line 30) | def test_content(self, pred_keys): FILE: tests/engines/test_prepare_batch_default.py class TestNet (line 23) | class TestNet(torch.nn.Module): method forward (line 26) | def forward(self, x: torch.Tensor): class TestPrepareBatchDefault (line 30) | class TestPrepareBatchDefault(unittest.TestCase): method test_prepare_batch (line 51) | def test_prepare_batch(self, dataloader, network, should_run): FILE: tests/engines/test_prepare_batch_default_dist.py class TestNet (line 45) | class TestNet(torch.nn.Module): method forward (line 48) | def forward(self, x: torch.Tensor): class DistributedPrepareBatchDefault (line 52) | class DistributedPrepareBatchDefault(DistTestCase): method test_compute (line 55) | def test_compute(self, dataloaders): FILE: tests/engines/test_prepare_batch_diffusion.py class TestPrepareBatchDiffusion (line 55) | class TestPrepareBatchDiffusion(unittest.TestCase): method test_output_sizes (line 57) | def test_output_sizes(self, input_args, image_size): method test_conditioning (line 80) | def test_conditioning(self, input_args, image_size): FILE: tests/engines/test_prepare_batch_extra_input.py class TestNet (line 38) | class TestNet(torch.nn.Module): method forward (line 41) | def forward(self, x: torch.Tensor, t1=None, t2=None, t3=None): class TestPrepareBatchExtraInput (line 45) | class TestPrepareBatchExtraInput(unittest.TestCase): method test_content (line 47) | def test_content(self, input_args, expected_value): FILE: tests/fl/monai_algo/test_fl_monai_algo.py class TestFLMonaiAlgo (line 184) | class TestFLMonaiAlgo(unittest.TestCase): method test_train (line 186) | def test_train(self, input_params): method test_evaluate (line 211) | def test_evaluate(self, input_params): method test_get_weights (line 236) | def test_get_weights(self, input_params): FILE: tests/fl/monai_algo/test_fl_monai_algo_dist.py class TestFLMonaiAlgo (line 35) | class TestFLMonaiAlgo(DistTestCase): method test_train (line 38) | def test_train(self): method test_evaluate (line 84) | def test_evaluate(self): FILE: tests/fl/test_fl_monai_algo_stats.py class TestFLMonaiAlgo (line 67) | class TestFLMonaiAlgo(unittest.TestCase): method test_get_data_stats (line 69) | def test_get_data_stats(self, input_params): FILE: tests/fl/utils/test_fl_exchange_object.py class TestFLExchangeObject (line 48) | class TestFLExchangeObject(unittest.TestCase): method test_init (line 50) | def test_init(self, input_params, expected_str): method test_failures (line 57) | def test_failures(self, input_params): FILE: tests/handlers/test_handler_average_precision.py class TestHandlerAveragePrecision (line 25) | class TestHandlerAveragePrecision(unittest.TestCase): method test_compute (line 27) | def test_compute(self): class DistributedAveragePrecision (line 49) | class DistributedAveragePrecision(DistTestCase): method test_compute (line 52) | def test_compute(self): FILE: tests/handlers/test_handler_calibration_error.py class TestHandlerCalibrationError (line 83) | class TestHandlerCalibrationError(unittest.TestCase): method test_compute (line 86) | def test_compute(self, input_params, expected_value, expected_rows, ex... class TestHandlerCalibrationErrorEdgeCases (line 117) | class TestHandlerCalibrationErrorEdgeCases(unittest.TestCase): method test_single_iteration (line 119) | def test_single_iteration(self): method test_save_details_false (line 144) | def test_save_details_false(self): FILE: tests/handlers/test_handler_checkpoint_loader.py class TestHandlerCheckpointLoader (line 25) | class TestHandlerCheckpointLoader(unittest.TestCase): method test_one_save_one_load (line 26) | def test_one_save_one_load(self): method test_two_save_one_load (line 60) | def test_two_save_one_load(self): method test_save_single_device_load_multi_devices (line 81) | def test_save_single_device_load_multi_devices(self): method test_partial_under_load (line 101) | def test_partial_under_load(self): method test_partial_over_load (line 123) | def test_partial_over_load(self): method test_strict_shape (line 145) | def test_strict_shape(self): FILE: tests/handlers/test_handler_checkpoint_saver.py class TestHandlerCheckpointSaver (line 113) | class TestHandlerCheckpointSaver(unittest.TestCase): method test_file (line 118) | def test_file( method test_exception (line 173) | def test_exception(self): method test_load_state_dict (line 191) | def test_load_state_dict(self): FILE: tests/handlers/test_handler_classification_saver.py class TestHandlerClassificationSaver (line 28) | class TestHandlerClassificationSaver(unittest.TestCase): method test_saved_content (line 30) | def test_saved_content(self): FILE: tests/handlers/test_handler_classification_saver_dist.py class DistributedHandlerClassificationSaver (line 29) | class DistributedHandlerClassificationSaver(DistTestCase): method test_saved_content (line 31) | def test_saved_content(self): FILE: tests/handlers/test_handler_clearml_image.py class TestHandlerClearMLImageHandler (line 31) | class TestHandlerClearMLImageHandler(unittest.TestCase): method test_task_init (line 33) | def test_task_init(self): FILE: tests/handlers/test_handler_clearml_stats.py class TestHandlerClearMLStatsHandler (line 31) | class TestHandlerClearMLStatsHandler(unittest.TestCase): method test_task_init (line 33) | def test_task_init(self): FILE: tests/handlers/test_handler_confusion_matrix.py class TestHandlerConfusionMatrix (line 50) | class TestHandlerConfusionMatrix(unittest.TestCase): method test_compute (line 54) | def test_compute(self, input_params, expected_avg): method test_compute_seg (line 69) | def test_compute_seg(self, input_params, expected_avg): method test_shape_mismatch (line 90) | def test_shape_mismatch(self, input_params, _expected): FILE: tests/handlers/test_handler_confusion_matrix_dist.py class DistributedConfusionMatrix (line 25) | class DistributedConfusionMatrix(DistTestCase): method test_compute (line 27) | def test_compute(self): method _compute (line 30) | def _compute(self): FILE: tests/handlers/test_handler_decollate_batch.py class TestHandlerDecollateBatch (line 24) | class TestHandlerDecollateBatch(unittest.TestCase): method test_compute (line 25) | def test_compute(self): FILE: tests/handlers/test_handler_early_stop.py class TestHandlerEarlyStop (line 21) | class TestHandlerEarlyStop(unittest.TestCase): method test_early_stop_train_loss (line 23) | def test_early_stop_train_loss(self): method test_early_stop_val_metric (line 37) | def test_early_stop_val_metric(self): FILE: tests/handlers/test_handler_garbage_collector.py class TestHandlerGarbageCollector (line 35) | class TestHandlerGarbageCollector(unittest.TestCase): method test_content (line 39) | def test_content(self, data, trigger_event): FILE: tests/handlers/test_handler_hausdorff_distance.py function create_spherical_seg_3d (line 24) | def create_spherical_seg_3d( class TestHandlerHausdorffDistance (line 62) | class TestHandlerHausdorffDistance(unittest.TestCase): method test_compute (line 65) | def test_compute(self): method test_shape_mismatch (line 87) | def test_shape_mismatch(self): method test_reduction (line 94) | def test_reduction(self): FILE: tests/handlers/test_handler_ignite_metric.py class TestHandlerIgniteMetricHandler (line 101) | class TestHandlerIgniteMetricHandler(unittest.TestCase): method test_metric_fn (line 104) | def test_metric_fn(self, loss_params, metric_params, handler_params, e... method test_loss_fn (line 129) | def test_loss_fn(self, loss_params, metric_params, handler_params, exp... method test_dice_loss (line 153) | def test_dice_loss(self, input_param, input_data, expected_val): method test_old_ignite_metric (line 172) | def test_old_ignite_metric(self, input_param, input_data, expected_val): FILE: tests/handlers/test_handler_lr_scheduler.py class TestHandlerLrSchedule (line 27) | class TestHandlerLrSchedule(unittest.TestCase): method test_content (line 29) | def test_content(self): FILE: tests/handlers/test_handler_mean_dice.py class TestHandlerMeanDice (line 32) | class TestHandlerMeanDice(unittest.TestCase): method test_compute (line 36) | def test_compute(self, input_params, expected_avg, details_shape): method test_shape_mismatch (line 60) | def test_shape_mismatch(self, input_params, _expected_avg, _details_sh... method test_compute_n_class (line 73) | def test_compute_n_class(self, input_params, expected_avg, details_sha... FILE: tests/handlers/test_handler_mean_iou.py class TestHandlerMeanIoU (line 32) | class TestHandlerMeanIoU(unittest.TestCase): method test_compute (line 36) | def test_compute(self, input_params, expected_avg, details_shape): method test_shape_mismatch (line 62) | def test_shape_mismatch(self, input_params, _expected_avg, _details_sh... FILE: tests/handlers/test_handler_metrics_reloaded.py class TestHandlerMetricsReloadedBinary (line 75) | class TestHandlerMetricsReloadedBinary(unittest.TestCase): method test_compute (line 77) | def test_compute(self, input_params, y_pred, y, expected_value): method test_shape_mismatch (line 100) | def test_shape_mismatch(self, input_params, _y_pred, _y, _expected_val... class TestMetricsReloadedCategorical (line 115) | class TestMetricsReloadedCategorical(unittest.TestCase): method test_compute (line 117) | def test_compute(self, input_params, y_pred, y, expected_value): method test_shape_mismatch (line 140) | def test_shape_mismatch(self, input_params, y_pred, y, _expected_value): FILE: tests/handlers/test_handler_metrics_saver.py class TestHandlerMetricsSaver (line 26) | class TestHandlerMetricsSaver(unittest.TestCase): method test_content (line 28) | def test_content(self): FILE: tests/handlers/test_handler_metrics_saver_dist.py class DistributedMetricsSaver (line 29) | class DistributedMetricsSaver(DistTestCase): method test_content (line 31) | def test_content(self): method _run (line 35) | def _run(self, tempdir): FILE: tests/handlers/test_handler_mlflow.py function get_event_filter (line 35) | def get_event_filter(e): function dummy_train (line 44) | def dummy_train(tracking_folder): class TestHandlerMLFlow (line 67) | class TestHandlerMLFlow(unittest.TestCase): method setUp (line 68) | def setUp(self): method tearDown (line 71) | def tearDown(self): method test_multi_run (line 76) | def test_multi_run(self): method test_metrics_track (line 109) | def test_metrics_track(self): method test_metrics_track_mock (line 155) | def test_metrics_track_mock(self, epoch_log): method test_metrics_track_iters_mock (line 194) | def test_metrics_track_iters_mock(self, iteration_log): method test_multi_thread (line 233) | def test_multi_thread(self): method test_dataset_tracking (line 247) | def test_dataset_tracking(self): FILE: tests/handlers/test_handler_nvtx.py class TestHandlerDecollateBatch (line 38) | class TestHandlerDecollateBatch(unittest.TestCase): method test_compute (line 41) | def test_compute(self, data, expected): FILE: tests/handlers/test_handler_panoptic_quality.py class TestHandlerPanopticQuality (line 62) | class TestHandlerPanopticQuality(unittest.TestCase): method test_compute (line 64) | def test_compute(self, input_params, expected_avg): FILE: tests/handlers/test_handler_parameter_scheduler.py class ToyNet (line 23) | class ToyNet(Module): method __init__ (line 24) | def __init__(self, value): method forward (line 28) | def forward(self, input): method get_value (line 31) | def get_value(self): method set_value (line 34) | def set_value(self, value): class TestHandlerParameterScheduler (line 38) | class TestHandlerParameterScheduler(unittest.TestCase): method test_linear_scheduler (line 39) | def test_linear_scheduler(self): method test_exponential_scheduler (line 79) | def test_exponential_scheduler(self): method test_step_scheduler (line 92) | def test_step_scheduler(self): method test_multistep_scheduler (line 105) | def test_multistep_scheduler(self): method test_custom_scheduler (line 118) | def test_custom_scheduler(self): FILE: tests/handlers/test_handler_post_processing.py class TestHandlerPostProcessing (line 42) | class TestHandlerPostProcessing(unittest.TestCase): method test_compute (line 44) | def test_compute(self, input_params, decollate, expected): FILE: tests/handlers/test_handler_prob_map_producer.py class TestDataset (line 33) | class TestDataset(Dataset): method __init__ (line 36) | def __init__(self, name, size): method __getitem__ (line 56) | def __getitem__(self, index): class TestEvaluator (line 68) | class TestEvaluator(Evaluator): method _iteration (line 71) | def _iteration(self, engine, batchdata): class TestHandlerProbMapGenerator (line 75) | class TestHandlerProbMapGenerator(unittest.TestCase): method test_prob_map_generator (line 77) | def test_prob_map_generator(self, name, size): FILE: tests/handlers/test_handler_regression_metrics.py function flatten (line 26) | def flatten(data): function msemetric_np (line 31) | def msemetric_np(y_pred, y): function maemetric_np (line 35) | def maemetric_np(y_pred, y): function rmsemetric_np (line 39) | def rmsemetric_np(y_pred, y): function psnrmetric_np (line 43) | def psnrmetric_np(max_val, y_pred, y): class TestHandlerRegressionMetrics (line 48) | class TestHandlerRegressionMetrics(unittest.TestCase): method test_compute (line 50) | def test_compute(self): method test_compute_engine (line 91) | def test_compute_engine(self): method test_ill_shape (line 138) | def test_ill_shape(self): FILE: tests/handlers/test_handler_regression_metrics_dist.py function flatten (line 27) | def flatten(data): function msemetric_np (line 32) | def msemetric_np(y_pred, y): function maemetric_np (line 36) | def maemetric_np(y_pred, y): function rmsemetric_np (line 40) | def rmsemetric_np(y_pred, y): function psnrmetric_np (line 44) | def psnrmetric_np(max_val, y_pred, y): class DistributedMeanSquaredError (line 59) | class DistributedMeanSquaredError(DistTestCase): method test_compute (line 61) | def test_compute(self): method _compute (line 65) | def _compute(self): class DistributedMeanAbsoluteError (line 105) | class DistributedMeanAbsoluteError(DistTestCase): method test_compute (line 107) | def test_compute(self): method _compute (line 111) | def _compute(self): class DistributedRootMeanSquaredError (line 151) | class DistributedRootMeanSquaredError(DistTestCase): method test_compute (line 153) | def test_compute(self): method _compute (line 157) | def _compute(self): class DistributedPeakSignalToNoiseRatio (line 197) | class DistributedPeakSignalToNoiseRatio(DistTestCase): method test_compute (line 199) | def test_compute(self): method _compute (line 203) | def _compute(self): FILE: tests/handlers/test_handler_rocauc.py class TestHandlerROCAUC (line 23) | class TestHandlerROCAUC(unittest.TestCase): method test_compute (line 25) | def test_compute(self): FILE: tests/handlers/test_handler_rocauc_dist.py class DistributedROCAUC (line 25) | class DistributedROCAUC(DistTestCase): method test_compute (line 27) | def test_compute(self): FILE: tests/handlers/test_handler_stats.py function get_event_filter (line 28) | def get_event_filter(e): class TestHandlerStats (line 38) | class TestHandlerStats(unittest.TestCase): method test_metrics_print (line 41) | def test_metrics_print(self, epoch_log): method test_loss_print (line 84) | def test_loss_print(self, iteration_log): method test_loss_dict (line 123) | def test_loss_dict(self): method test_loss_file (line 155) | def test_loss_file(self): method test_exception (line 189) | def test_exception(self): method test_attributes_print (line 203) | def test_attributes_print(self): method test_default_logger (line 244) | def test_default_logger(self): FILE: tests/handlers/test_handler_surface_distance.py function create_spherical_seg_3d (line 24) | def create_spherical_seg_3d( class TestHandlerSurfaceDistance (line 62) | class TestHandlerSurfaceDistance(unittest.TestCase): method test_compute (line 65) | def test_compute(self): method test_shape_mismatch (line 87) | def test_shape_mismatch(self): method test_reduction (line 94) | def test_reduction(self): FILE: tests/handlers/test_handler_tb_image.py class TestHandlerTBImage (line 33) | class TestHandlerTBImage(unittest.TestCase): method test_tb_image_shape (line 35) | def test_tb_image_shape(self, shape): FILE: tests/handlers/test_handler_tb_stats.py function get_event_filter (line 28) | def get_event_filter(e): class TestHandlerTBStats (line 39) | class TestHandlerTBStats(unittest.TestCase): method test_metrics_print (line 41) | def test_metrics_print(self): method test_metrics_print_mock (line 64) | def test_metrics_print_mock(self, epoch_log): method test_metrics_writer (line 92) | def test_metrics_writer(self): method test_metrics_writer_mock (line 124) | def test_metrics_writer_mock(self, iteration_log): FILE: tests/handlers/test_handler_validation.py class TestEvaluator (line 24) | class TestEvaluator(Evaluator): method _iteration (line 27) | def _iteration(self, engine, batchdata): class TestHandlerValidation (line 32) | class TestHandlerValidation(unittest.TestCase): method test_content (line 34) | def test_content(self): FILE: tests/handlers/test_trt_compile.py class ListAdd (line 38) | class ListAdd(torch.nn.Module): method __init__ (line 39) | def __init__(self): method forward (line 42) | def forward(self, x: list[torch.Tensor], y: torch.Tensor, z: torch.Ten... class TestTRTCompile (line 58) | class TestTRTCompile(unittest.TestCase): method setUp (line 59) | def setUp(self): method tearDown (line 62) | def tearDown(self): method test_handler (line 68) | def test_handler(self): method test_lists (line 88) | def test_lists(self): method test_cell_sam_wrapper_value (line 111) | def test_cell_sam_wrapper_value(self, precision): method test_vista3d (line 125) | def test_vista3d(self, precision): FILE: tests/handlers/test_write_metrics_reports.py class TestWriteMetricsReports (line 25) | class TestWriteMetricsReports(unittest.TestCase): method test_content (line 27) | def test_content(self): FILE: tests/hvd_evenly_divisible_all_gather.py class HvdEvenlyDivisibleAllGather (line 23) | class HvdEvenlyDivisibleAllGather: method test_data (line 24) | def test_data(self): method _run (line 31) | def _run(self): FILE: tests/inferers/test_avg_merger.py class AvgMergerTests (line 139) | class AvgMergerTests(unittest.TestCase): method test_avg_merger_patches (line 153) | def test_avg_merger_patches(self, arguments, patch_locations, expected): method test_avg_merger_finalized_error (line 167) | def test_avg_merger_finalized_error(self): method test_avg_merge_none_merged_shape_error (line 173) | def test_avg_merge_none_merged_shape_error(self): FILE: tests/inferers/test_controlnet_inferers.py class ControlNetTestDiffusionSamplingInferer (line 486) | class ControlNetTestDiffusionSamplingInferer(unittest.TestCase): method test_call (line 489) | def test_call(self, model_params, controlnet_params, input_shape): method test_sample_intermediates (line 511) | def test_sample_intermediates(self, model_params, controlnet_params, i... method test_ddpm_sampler (line 541) | def test_ddpm_sampler(self, model_params, controlnet_params, input_sha... method test_ddim_sampler (line 567) | def test_ddim_sampler(self, model_params, controlnet_params, input_sha... method test_rflow_sampler (line 593) | def test_rflow_sampler(self, model_params, controlnet_params, input_sh... method test_sampler_conditioned (line 619) | def test_sampler_conditioned(self, model_params, controlnet_params, in... method test_get_likelihood (line 670) | def test_get_likelihood(self, model_params, controlnet_params, input_s... method test_normal_cdf (line 695) | def test_normal_cdf(self): method test_sampler_conditioned_concat (line 707) | def test_sampler_conditioned_concat(self, model_params, controlnet_par... class LatentControlNetTestDiffusionSamplingInferer (line 765) | class LatentControlNetTestDiffusionSamplingInferer(unittest.TestCase): method test_prediction_shape (line 768) | def test_prediction_shape( method test_pred_shape (line 839) | def test_pred_shape( method test_sample_intermediates (line 906) | def test_sample_intermediates( method test_get_likelihoods (line 979) | def test_get_likelihoods( method test_resample_likelihoods (line 1049) | def test_resample_likelihoods( method test_prediction_shape_conditioned_concat (line 1121) | def test_prediction_shape_conditioned_concat( method test_sample_shape_conditioned_concat (line 1206) | def test_sample_shape_conditioned_concat( method test_shape_different_latents (line 1286) | def test_shape_different_latents( method test_sample_shape_different_latents (line 1365) | def test_sample_shape_different_latents( method test_incompatible_spade_setup (line 1442) | def test_incompatible_spade_setup(self): FILE: tests/inferers/test_diffusion_inferer.py class TestDiffusionSamplingInferer (line 58) | class TestDiffusionSamplingInferer(unittest.TestCase): method test_call (line 61) | def test_call(self, model_params, input_shape): method test_sample_intermediates (line 77) | def test_sample_intermediates(self, model_params, input_shape): method test_sample_cfg (line 93) | def test_sample_cfg(self, model_params, input_shape): method test_ddpm_sampler (line 115) | def test_ddpm_sampler(self, model_params, input_shape): method test_ddim_sampler (line 131) | def test_ddim_sampler(self, model_params, input_shape): method test_rflow_sampler (line 147) | def test_rflow_sampler(self, model_params, input_shape): method test_sampler_conditioned (line 163) | def test_sampler_conditioned(self, model_params, input_shape): method test_sampler_conditioned_rflow (line 187) | def test_sampler_conditioned_rflow(self, model_params, input_shape): method test_get_likelihood (line 211) | def test_get_likelihood(self, model_params, input_shape): method test_normal_cdf (line 227) | def test_normal_cdf(self): method test_sampler_conditioned_concat (line 240) | def test_sampler_conditioned_concat(self, model_params, input_shape): method test_sampler_conditioned_concat_cfg (line 271) | def test_sampler_conditioned_concat_cfg(self, model_params, input_shape): method test_sampler_conditioned_concat_rflow (line 303) | def test_sampler_conditioned_concat_rflow(self, model_params, input_sh... method test_call_conditioned_concat (line 334) | def test_call_conditioned_concat(self, model_params, input_shape): method test_call_conditioned_concat_rflow (line 361) | def test_call_conditioned_concat_rflow(self, model_params, input_shape): FILE: tests/inferers/test_latent_diffusion_inferer.py class TestDiffusionSamplingInferer (line 317) | class TestDiffusionSamplingInferer(unittest.TestCase): method test_prediction_shape (line 320) | def test_prediction_shape( method test_sample_shape (line 371) | def test_sample_shape( method test_sample_shape_with_cfg (line 419) | def test_sample_shape_with_cfg( method test_sample_intermediates (line 469) | def test_sample_intermediates( method test_get_likelihoods (line 527) | def test_get_likelihoods( method test_resample_likelihoods (line 582) | def test_resample_likelihoods( method test_prediction_shape_conditioned_concat (line 639) | def test_prediction_shape_conditioned_concat( method test_sample_shape_conditioned_concat (line 707) | def test_sample_shape_conditioned_concat( method test_shape_different_latents (line 770) | def test_shape_different_latents( method test_sample_shape_different_latents (line 830) | def test_sample_shape_different_latents( method test_incompatible_spade_setup (line 891) | def test_incompatible_spade_setup(self): FILE: tests/inferers/test_patch_inferer.py class PatchInfererTests (line 247) | class PatchInfererTests(unittest.TestCase): method test_patch_inferer_tensor (line 268) | def test_patch_inferer_tensor(self, inputs, arguments, network, expect... method test_patch_inferer_list_tensor (line 274) | def test_patch_inferer_list_tensor(self, inputs, arguments, network, e... method test_patch_inferer_dict (line 281) | def test_patch_inferer_dict(self, inputs, arguments, network, expected): method test_patch_inferer_errors (line 301) | def test_patch_inferer_errors(self, inputs, arguments, expected_error): class PatchInfererTestsCond (line 481) | class PatchInfererTestsCond(unittest.TestCase): method test_patch_inferer_tensor (line 502) | def test_patch_inferer_tensor(self, inputs, arguments, network, expect... method test_patch_inferer_list_tensor (line 512) | def test_patch_inferer_list_tensor(self, inputs, arguments, network, e... method test_patch_inferer_dict (line 523) | def test_patch_inferer_dict(self, inputs, arguments, network, expected): FILE: tests/inferers/test_saliency_inferer.py class TestSaliencyInferer (line 30) | class TestSaliencyInferer(unittest.TestCase): method test_shape (line 33) | def test_shape(self, cam_name): FILE: tests/inferers/test_slice_inferer.py class TestSliceInferer (line 25) | class TestSliceInferer(unittest.TestCase): method test_shape (line 28) | def test_shape(self, spatial_dim): class TestSliceInfererCond (line 56) | class TestSliceInfererCond(unittest.TestCase): method test_shape (line 59) | def test_shape(self, spatial_dim): FILE: tests/inferers/test_sliding_window_inference.py class TestSlidingWindowInference (line 73) | class TestSlidingWindowInference(unittest.TestCase): method test_buffers (line 75) | def test_buffers(self, size_params, buffer_steps, buffer_dim, device_p... method test_sliding_window_default (line 100) | def test_sliding_window_default(self, image_shape, roi_shape, sw_batch... method test_default_device (line 125) | def test_default_device(self, data_type): method test_sw_device (line 144) | def test_sw_device(self, data_type, device, sw_device): method test_sigma (line 159) | def test_sigma(self): method test_cval (line 244) | def test_cval(self): method test_args_kwargs (line 270) | def test_args_kwargs(self): method test_multioutput (line 315) | def test_multioutput(self): method test_strict_shape_validation (line 376) | def test_strict_shape_validation(self): class TestSlidingWindowInferenceCond (line 397) | class TestSlidingWindowInferenceCond(unittest.TestCase): method test_sliding_window_default (line 399) | def test_sliding_window_default(self, image_shape, roi_shape, sw_batch... method test_default_device (line 432) | def test_default_device(self, data_type): method test_sw_device (line 453) | def test_sw_device(self, data_type, device, sw_device): method test_sigma (line 474) | def test_sigma(self): method test_cval (line 559) | def test_cval(self): method test_args_kwargs (line 589) | def test_args_kwargs(self): method test_multioutput (line 636) | def test_multioutput(self): method test_conditioned_branches_and_buffered_parity (line 709) | def test_conditioned_branches_and_buffered_parity(self, sw_batch_size): class TestSlidingWindowUtils (line 766) | class TestSlidingWindowUtils(unittest.TestCase): method test_compute_coords_accepts_list_indices (line 779) | def test_compute_coords_accepts_list_indices(self): FILE: tests/inferers/test_sliding_window_splitter.py function gen_filter (line 154) | def gen_filter(filter_type, value=None): function extra_parameter_filter (line 206) | def extra_parameter_filter(patch, location, extra): function missing_parameter_filter (line 210) | def missing_parameter_filter(patch): class SlidingWindowSplitterTests (line 238) | class SlidingWindowSplitterTests(unittest.TestCase): method test_split_patches_tensor (line 255) | def test_split_patches_tensor(self, image, arguments, expected): method test_split_patches_errors (line 277) | def test_split_patches_errors(self, image, arguments, expected_error): FILE: tests/inferers/test_wsi_sliding_window_splitter.py function gen_location_filter (line 106) | def gen_location_filter(locations): function extra_parameter_filter (line 125) | def extra_parameter_filter(patch, location, extra): function missing_parameter_filter (line 129) | def missing_parameter_filter(patch): function setUpModule (line 193) | def setUpModule(): class WSISlidingWindowSplitterTests (line 202) | class WSISlidingWindowSplitterTests(unittest.TestCase): method test_split_patches_wsi (line 217) | def test_split_patches_wsi(self, filepath, arguments, expected): method test_split_patches_errors (line 242) | def test_split_patches_errors(self, image, arguments, expected_error): FILE: tests/inferers/test_zarr_avg_merger.py class ZarrAvgMergerTests (line 346) | class ZarrAvgMergerTests(unittest.TestCase): method setUp (line 348) | def setUp(self): method tearDown (line 353) | def tearDown(self): method _get_directory_store (line 357) | def _get_directory_store(self, base_dir): method test_zarr_avg_merger_patches (line 368) | def test_zarr_avg_merger_patches(self, arguments, patch_locations, exp... method test_zarr_avg_merger_finalized_error (line 442) | def test_zarr_avg_merger_finalized_error(self): method test_zarr_avg_merge_none_merged_shape_error (line 448) | def test_zarr_avg_merge_none_merged_shape_error(self): FILE: tests/integration/test_auto3dseg_ensemble.py function create_sim_data (line 77) | def create_sim_data(dataroot, sim_datalist, sim_dim, **kwargs): class TestEnsembleBuilder (line 107) | class TestEnsembleBuilder(unittest.TestCase): method setUp (line 108) | def setUp(self) -> None: method test_ensemble (line 147) | def test_ensemble(self) -> None: method test_ensemble_runner (line 180) | def test_ensemble_runner(self) -> None: method tearDown (line 198) | def tearDown(self) -> None: FILE: tests/integration/test_auto3dseg_hpo.py function skip_if_no_optuna (line 48) | def skip_if_no_optuna(obj): class TestHPO (line 75) | class TestHPO(unittest.TestCase): method setUp (line 76) | def setUp(self) -> None: method test_run_algo (line 136) | def test_run_algo(self) -> None: method test_run_optuna (line 146) | def test_run_optuna(self) -> None: method test_get_history (line 168) | def test_get_history(self) -> None: method tearDown (line 178) | def tearDown(self) -> None: FILE: tests/integration/test_deepedit_interaction.py function add_one (line 35) | def add_one(engine): class TestInteractions (line 42) | class TestInteractions(unittest.TestCase): method run_interaction (line 44) | def run_interaction(self, train): method test_train_interaction (line 114) | def test_train_interaction(self): method test_val_interaction (line 117) | def test_val_interaction(self): FILE: tests/integration/test_hovernet_nuclear_type_post_processingd.py class TestHoVerNetNuclearTypePostProcessingd (line 44) | class TestHoVerNetNuclearTypePostProcessingd(unittest.TestCase): method test_value (line 46) | def test_value(self, in_type, test_data, kwargs, expected): FILE: tests/integration/test_integration_autorunner.py class TestAutoRunner (line 66) | class TestAutoRunner(unittest.TestCase): method setUp (line 67) | def setUp(self) -> None: method test_autorunner (line 106) | def test_autorunner(self) -> None: method test_autorunner_ensemble (line 120) | def test_autorunner_ensemble(self) -> None: method test_autorunner_gpu_customization (line 135) | def test_autorunner_gpu_customization(self) -> None: method test_autorunner_hpo (line 154) | def test_autorunner_hpo(self) -> None: method tearDown (line 189) | def tearDown(self) -> None: FILE: tests/integration/test_integration_bundle_run.py class _Runnable42 (line 41) | class _Runnable42: method __init__ (line 42) | def __init__(self, val=1): method run (line 45) | def run(self): class _Runnable43 (line 50) | class _Runnable43: method __init__ (line 51) | def __init__(self, func): method run (line 54) | def run(self): class TestBundleRun (line 58) | class TestBundleRun(unittest.TestCase): method setUp (line 59) | def setUp(self): method tearDown (line 62) | def tearDown(self): method test_tiny (line 65) | def test_tiny(self): method test_scripts_fold (line 93) | def test_scripts_fold(self): method test_shape (line 154) | def test_shape(self, config_file, expected_shape): method test_customized_workflow (line 224) | def test_customized_workflow(self): FILE: tests/integration/test_integration_classification_2d.py class MedNISTDataset (line 47) | class MedNISTDataset(torch.utils.data.Dataset): method __init__ (line 48) | def __init__(self, image_files, labels, transforms): method __len__ (line 53) | def __len__(self): method __getitem__ (line 56) | def __getitem__(self, index): function run_training_test (line 60) | def run_training_test(root_dir, train_x, train_y, val_x, val_y, device="... function run_inference_test (line 158) | def run_inference_test(root_dir, test_x, test_y, device="cuda:0", num_wo... class IntegrationClassification2D (line 184) | class IntegrationClassification2D(DistTestCase): method setUp (line 185) | def setUp(self): method tearDown (line 233) | def tearDown(self): method train_and_infer (line 240) | def train_and_infer(self, idx=0): method test_training (line 268) | def test_training(self): method test_timing (line 276) | def test_timing(self): FILE: tests/integration/test_integration_determinism.py function run_test (line 28) | def run_test(batch_size=64, train_steps=200, device="cuda:0"): class TestDeterminism (line 78) | class TestDeterminism(DistTestCase): method setUp (line 79) | def setUp(self): method tearDown (line 82) | def tearDown(self): method test_training (line 86) | def test_training(self): FILE: tests/integration/test_integration_fast_train.py class IntegrationFastTrain (line 60) | class IntegrationFastTrain(DistTestCase): method setUp (line 61) | def setUp(self): method tearDown (line 73) | def tearDown(self): method test_train_timing (line 79) | def test_train_timing(self): FILE: tests/integration/test_integration_gpu_customization.py class TestEnsembleGpuCustomization (line 65) | class TestEnsembleGpuCustomization(unittest.TestCase): method setUp (line 66) | def setUp(self) -> None: method test_ensemble_gpu_customization (line 70) | def test_ensemble_gpu_customization(self) -> None: method tearDown (line 147) | def tearDown(self) -> None: FILE: tests/integration/test_integration_lazy_samples.py function _no_op (line 32) | def _no_op(x): function run_training_test (line 36) | def run_training_test(root_dir, device="cuda:0", cachedataset=0, readers... class IntegrationLazyResampling (line 158) | class IntegrationLazyResampling(DistTestCase): method setUp (line 159) | def setUp(self): method tearDown (line 173) | def tearDown(self): method train_and_infer (line 177) | def train_and_infer(self, idx=0): method test_training (line 209) | def test_training(self): FILE: tests/integration/test_integration_nnunet_bundle.py class TestnnUNetBundle (line 56) | class TestnnUNetBundle(unittest.TestCase): method setUp (line 58) | def setUp(self) -> None: method test_nnunet_bundle (line 93) | def test_nnunet_bundle(self) -> None: method tearDown (line 144) | def tearDown(self) -> None: FILE: tests/integration/test_integration_nnunetv2_runner.py class TestnnUNetV2Runner (line 50) | class TestnnUNetV2Runner(unittest.TestCase): method setUp (line 51) | def setUp(self) -> None: method test_nnunetv2runner (line 82) | def test_nnunetv2runner(self) -> None: method tearDown (line 90) | def tearDown(self) -> None: FILE: tests/integration/test_integration_segmentation_3d.py function run_training_test (line 52) | def run_training_test(root_dir, device="cuda:0", cachedataset=0, readers... function run_inference_test (line 180) | def run_inference_test(root_dir, device="cuda:0"): class IntegrationSegmentation3D (line 237) | class IntegrationSegmentation3D(DistTestCase): method setUp (line 238) | def setUp(self): method tearDown (line 251) | def tearDown(self): method train_and_infer (line 255) | def train_and_infer(self, idx=0): method test_training (line 289) | def test_training(self): method test_timing (line 299) | def test_timing(self): FILE: tests/integration/test_integration_sliding_window.py function run_test (line 33) | def run_test(batch_size, img_name, seg_name, output_dir, device="cuda:0"): class TestIntegrationSlidingWindow (line 71) | class TestIntegrationSlidingWindow(DistTestCase): method setUp (line 72) | def setUp(self): method tearDown (line 80) | def tearDown(self): method test_training (line 88) | def test_training(self): FILE: tests/integration/test_integration_stn.py class STNBenchmark (line 28) | class STNBenchmark(nn.Module): method __init__ (line 33) | def __init__(self, is_ref=True, reverse_indexing=False): method stn_ref (line 53) | def stn_ref(self, x): method stn (line 63) | def stn(self, x): method forward (line 71) | def forward(self, x): function compare_2d (line 77) | def compare_2d(is_ref=True, device=None, reverse_indexing=False): class TestSpatialTransformerCore (line 100) | class TestSpatialTransformerCore(DistTestCase): method setUp (line 101) | def setUp(self): method tearDown (line 104) | def tearDown(self): method test_training (line 108) | def test_training(self): FILE: tests/integration/test_integration_unet_2d.py function run_test (line 27) | def run_test(net_name="basicunet", batch_size=64, train_steps=100, devic... class TestIntegrationUnet2D (line 57) | class TestIntegrationUnet2D(DistTestCase): method test_unet_training (line 59) | def test_unet_training(self): FILE: tests/integration/test_integration_workers.py function run_loading_test (line 24) | def run_loading_test(num_workers=50, device=None, pw=False): class IntegrationLoading (line 45) | class IntegrationLoading(DistTestCase): method tearDown (line 46) | def tearDown(self): method test_timing (line 50) | def test_timing(self): FILE: tests/integration/test_integration_workflows.py function run_training_test (line 64) | def run_training_test(root_dir, device="cuda:0", amp=False, num_workers=4): function run_inference_test (line 218) | def run_inference_test(root_dir, model_file, device="cuda:0", amp=False,... class IntegrationWorkflows (line 286) | class IntegrationWorkflows(DistTestCase): method setUp (line 287) | def setUp(self): method tearDown (line 301) | def tearDown(self): method train_and_infer (line 305) | def train_and_infer(self, idx=0): method test_training (line 351) | def test_training(self): method test_timing (line 360) | def test_timing(self): FILE: tests/integration/test_integration_workflows_adversarial.py function run_training_test (line 36) | def run_training_test(root_dir, device="cuda:0"): class IntegrationWorkflowsAdversarialTrainer (line 144) | class IntegrationWorkflowsAdversarialTrainer(DistTestCase): method setUp (line 145) | def setUp(self): method tearDown (line 157) | def tearDown(self): method test_training (line 162) | def test_training(self): FILE: tests/integration/test_integration_workflows_gan.py function run_training_test (line 36) | def run_training_test(root_dir, device="cuda:0"): class IntegrationWorkflowsGAN (line 129) | class IntegrationWorkflowsGAN(DistTestCase): method setUp (line 130) | def setUp(self): method tearDown (line 142) | def tearDown(self): method test_training (line 147) | def test_training(self): FILE: tests/integration/test_loader_semaphore.py function w (line 19) | def w(): function _main (line 23) | def _main(): function _run_test (line 29) | def _run_test(): class TestImportLock (line 39) | class TestImportLock(unittest.TestCase): method test_start (line 41) | def test_start(self): FILE: tests/integration/test_mapping_filed.py function create_input_file (line 33) | def create_input_file(temp_dir, name): class TestWriteFileMappingd (line 48) | class TestWriteFileMappingd(unittest.TestCase): method setUp (line 49) | def setUp(self): method tearDown (line 55) | def tearDown(self): method run_test (line 60) | def run_test(self, save_keys, write_keys): method test_successful_mapping_filed (line 98) | def test_successful_mapping_filed(self, save_keys, write_keys): method test_failure_mapping_filed (line 109) | def test_failure_mapping_filed(self, save_keys, write_keys): FILE: tests/integration/test_meta_affine.py function _create_itk_obj (line 108) | def _create_itk_obj(array, affine): function _resample_to_affine (line 115) | def _resample_to_affine(itk_obj, ref_obj): class TestAffineConsistencyITK (line 127) | class TestAffineConsistencyITK(unittest.TestCase): method setUpClass (line 129) | def setUpClass(cls): method run_transform (line 135) | def run_transform(self, img, xform_cls, args_dict): method test_linear_consistent (line 151) | def test_linear_consistent(self, xform_cls, input_dict, atol): method test_linear_consistent_dict (line 167) | def test_linear_consistent_dict(self, xform_cls, input_dict, atol): FILE: tests/integration/test_metatensor_integration.py class TestMetaTensorIntegration (line 43) | class TestMetaTensorIntegration(unittest.TestCase): method setUpClass (line 45) | def setUpClass(cls): method tearDownClass (line 53) | def tearDownClass(cls): method test_transforms (line 58) | def test_transforms(self, case_id): FILE: tests/integration/test_module_list.py class TestAllImport (line 23) | class TestAllImport(unittest.TestCase): method test_public_api (line 25) | def test_public_api(self): method test_transform_api (line 41) | def test_transform_api(self): FILE: tests/integration/test_one_of.py class X (line 41) | class X(Transform): method __call__ (line 43) | def __call__(self, x): class Y (line 47) | class Y(Transform): method __call__ (line 49) | def __call__(self, x): class A (line 53) | class A(Transform): method __call__ (line 55) | def __call__(self, x): class B (line 59) | class B(Transform): method __call__ (line 61) | def __call__(self, x): class C (line 65) | class C(Transform): method __call__ (line 67) | def __call__(self, x): class MapBase (line 71) | class MapBase(MapTransform): method __init__ (line 73) | def __init__(self, keys): method __call__ (line 77) | def __call__(self, data): class NonInv (line 84) | class NonInv(MapBase): method __init__ (line 86) | def __init__(self, keys): class Inv (line 91) | class Inv(MapBase, InvertibleTransform): method __call__ (line 93) | def __call__(self, data): method inverse (line 100) | def inverse(self, data): class InvA (line 108) | class InvA(Inv): method __init__ (line 110) | def __init__(self, keys): class InvB (line 116) | class InvB(Inv): method __init__ (line 118) | def __init__(self, keys): class TestOneOf (line 135) | class TestOneOf(unittest.TestCase): method test_normalize_weights (line 138) | def test_normalize_weights(self, transforms, input_weights, expected_w... method test_no_weights_arg (line 142) | def test_no_weights_arg(self): method test_len_and_flatten (line 147) | def test_len_and_flatten(self): method test_compose_flatten_does_not_affect_one_of (line 156) | def test_compose_flatten_does_not_affect_one_of(self): method test_inverse (line 172) | def test_inverse(self, transform, invertible, use_metatensor): method test_inverse_compose (line 196) | def test_inverse_compose(self): method test_inverse_metatensor (line 220) | def test_inverse_metatensor(self): method test_one_of (line 234) | def test_one_of(self): class TestOneOfAPITests (line 253) | class TestOneOfAPITests(unittest.TestCase): method data_from_keys (line 256) | def data_from_keys(keys): method test_execute_change_start_end (line 266) | def test_execute_change_start_end(self, keys, pipeline): FILE: tests/integration/test_pad_collation.py function _testing_collate (line 44) | def _testing_collate(x): class _Dataset (line 64) | class _Dataset(torch.utils.data.Dataset): method __init__ (line 66) | def __init__(self, images, labels, transforms): method __len__ (line 71) | def __len__(self): method __getitem__ (line 74) | def __getitem__(self, index): class TestPadCollation (line 78) | class TestPadCollation(unittest.TestCase): method setUp (line 80) | def setUp(self) -> None: method tearDown (line 89) | def tearDown(self) -> None: method test_pad_collation (line 93) | def test_pad_collation(self, t_type, collate_method, transform): FILE: tests/integration/test_reg_loss_integration.py class TestRegLossIntegration (line 34) | class TestRegLossIntegration(unittest.TestCase): method setUp (line 35) | def setUp(self): method tearDown (line 39) | def tearDown(self): method test_convergence (line 43) | def test_convergence(self, loss_type, loss_args, forward_args, pred_ch... FILE: tests/integration/test_retinanet_predict_utils.py class NaiveNetwork (line 87) | class NaiveNetwork(torch.nn.Module): method __init__ (line 89) | def __init__(self, spatial_dims, num_classes, **kwargs): method forward (line 98) | def forward(self, images): class NaiveNetwork2 (line 106) | class NaiveNetwork2(torch.nn.Module): method __init__ (line 108) | def __init__(self, spatial_dims, num_classes, **kwargs): method forward (line 117) | def forward(self, images): class TestPredictor (line 125) | class TestPredictor(unittest.TestCase): method test_naive_predictor (line 128) | def test_naive_predictor(self, input_param, input_shape): FILE: tests/integration/test_seg_loss_integration.py class TestSegLossIntegration (line 50) | class TestSegLossIntegration(unittest.TestCase): method setUp (line 52) | def setUp(self): method tearDown (line 56) | def tearDown(self): method test_convergence (line 60) | def test_convergence(self, loss_type, loss_args, forward_args): FILE: tests/integration/test_spatial_combine_transforms.py class CombineLazyTest (line 134) | class CombineLazyTest(unittest.TestCase): method test_combine_transforms (line 136) | def test_combine_transforms(self, input_shape, funcs): FILE: tests/integration/test_testtimeaugmentation.py class TestTestTimeAugmentation (line 54) | class TestTestTimeAugmentation(unittest.TestCase): method get_data (line 56) | def get_data(num_examples, input_size, data_type=np.asarray, include_l... method setUp (line 70) | def setUp(self) -> None: method tearDown (line 73) | def tearDown(self) -> None: method test_test_time_augmentation (line 76) | def test_test_time_augmentation(self): method test_warn_non_random (line 147) | def test_warn_non_random(self): method test_warn_random_but_has_no_invertible (line 152) | def test_warn_random_but_has_no_invertible(self): method test_warn_random_but_all_not_invertible (line 164) | def test_warn_random_but_all_not_invertible(self): method test_single_transform (line 173) | def test_single_transform(self): method test_image_no_label (line 179) | def test_image_no_label(self): method test_non_spatial_output (line 184) | def test_non_spatial_output(self): FILE: tests/integration/test_vis_gradbased.py class DenseNetAdjoint (line 23) | class DenseNetAdjoint(DenseNet121): method __call__ (line 25) | def __call__(self, x, adjoint_info): class TestGradientClassActivationMap (line 51) | class TestGradientClassActivationMap(unittest.TestCase): method test_shape (line 54) | def test_shape(self, vis_type, model, shape): FILE: tests/integration/test_vista3d_utils.py class TestSamplePointsFromLabel (line 116) | class TestSamplePointsFromLabel(unittest.TestCase): method test_shape (line 118) | def test_shape(self, input_data, expected_point_shape, expected_point_... class TestConvertPointsToDisc (line 124) | class TestConvertPointsToDisc(unittest.TestCase): method test_shape (line 126) | def test_shape(self, input_data, expected_shape): method test_value (line 131) | def test_value(self, input_data, points): class TestKeepMergeComponentsWithPoints (line 140) | class TestKeepMergeComponentsWithPoints(unittest.TestCase): method test_cp_shape (line 145) | def test_cp_shape(self, input_data, shape): method test_np_shape (line 153) | def test_np_shape(self, input_data, shape): FILE: tests/lazy_transforms_utils.py function get_apply_param (line 24) | def get_apply_param(init_param=None, call_param=None, params=apply_trans... function test_resampler_lazy (line 34) | def test_resampler_lazy( FILE: tests/losses/deform/test_bending_energy.py class TestBendingEnergy (line 52) | class TestBendingEnergy(unittest.TestCase): method test_shape (line 55) | def test_shape(self, input_param, input_data, expected_val): method test_ill_shape (line 59) | def test_ill_shape(self): method test_ill_opts (line 79) | def test_ill_opts(self): FILE: tests/losses/deform/test_diffusion_loss.py class TestDiffusionLoss (line 81) | class TestDiffusionLoss(unittest.TestCase): method test_shape (line 84) | def test_shape(self, input_param, input_data, expected_val): method test_ill_shape (line 88) | def test_ill_shape(self): method test_ill_opts (line 108) | def test_ill_opts(self): FILE: tests/losses/image_dissimilarity/test_global_mutual_information_loss.py class TestGlobalMutualInformationLoss (line 59) | class TestGlobalMutualInformationLoss(unittest.TestCase): method setUp (line 60) | def setUp(self): method test_bspline (line 69) | def test_bspline(self): class TestGlobalMutualInformationLossIll (line 118) | class TestGlobalMutualInformationLossIll(unittest.TestCase): method test_ill_shape (line 128) | def test_ill_shape(self, input1, input2): method test_ill_opts (line 141) | def test_ill_opts(self, num_bins, reduction, expected_exception, expec... FILE: tests/losses/image_dissimilarity/test_local_normalized_cross_correlation_loss.py class TestLocalNormalizedCrossCorrelationLoss (line 119) | class TestLocalNormalizedCrossCorrelationLoss(unittest.TestCase): method test_shape (line 122) | def test_shape(self, input_param, input_data, expected_val): method test_ill_shape (line 126) | def test_ill_shape(self): method test_ill_opts (line 141) | def test_ill_opts(self): FILE: tests/losses/test_adversarial_loss.py class TestPatchAdversarialLoss (line 41) | class TestPatchAdversarialLoss(unittest.TestCase): method get_input (line 43) | def get_input(self, shape, is_positive): method test_criterion (line 54) | def test_criterion(self): method test_loss_logic (line 62) | def test_loss_logic(self, input_param: dict, shape_input: list): method test_multiple_discs (line 86) | def test_multiple_discs(self, input_param: dict, shape_input): FILE: tests/losses/test_barlow_twins_loss.py class TestBarlowTwinsLoss (line 75) | class TestBarlowTwinsLoss(unittest.TestCase): method test_result (line 78) | def test_result(self, input_param, input_data, expected_val): method test_ill_shape (line 83) | def test_ill_shape(self): method test_ill_batch_size (line 88) | def test_ill_batch_size(self): method test_with_cuda (line 93) | def test_with_cuda(self): method check_warning_raised (line 103) | def check_warning_raised(self): FILE: tests/losses/test_cldice_loss.py class TestclDiceLoss (line 25) | class TestclDiceLoss(unittest.TestCase): method test_result (line 28) | def test_result(self, y_pred_data, expected_val): method test_with_cuda (line 36) | def test_with_cuda(self): FILE: tests/losses/test_contrastive_loss.py class TestContrastiveLoss (line 57) | class TestContrastiveLoss(unittest.TestCase): method test_result (line 60) | def test_result(self, input_param, input_data, expected_val): method test_ill_shape (line 65) | def test_ill_shape(self): method test_with_cuda (line 70) | def test_with_cuda(self): method check_warning_rasied (line 80) | def check_warning_rasied(self): FILE: tests/losses/test_dice_ce_loss.py class TestDiceCELoss (line 88) | class TestDiceCELoss(unittest.TestCase): method test_result (line 91) | def test_result(self, input_param, input_data, expected_val): method test_ill_shape (line 96) | def test_ill_shape(self): method test_ill_shape2 (line 101) | def test_ill_shape2(self): method test_ill_shape3 (line 106) | def test_ill_shape3(self): FILE: tests/losses/test_dice_focal_loss.py class TestDiceFocalLoss (line 24) | class TestDiceFocalLoss(unittest.TestCase): method test_result_onehot_target_include_bg (line 25) | def test_result_onehot_target_include_bg(self): method test_result_no_onehot_no_bg (line 46) | def test_result_no_onehot_no_bg(self, size, onehot): method test_ill_shape (line 69) | def test_ill_shape(self): method test_ill_shape2 (line 74) | def test_ill_shape2(self): method test_ill_shape3 (line 79) | def test_ill_shape3(self): method test_ill_lambda (line 84) | def test_ill_lambda(self): method test_script (line 88) | def test_script(self): method test_with_alpha (line 106) | def test_with_alpha(self, name, reduction, weight, lambda_focal, alpha): FILE: tests/losses/test_dice_loss.py class TestDiceLoss (line 186) | class TestDiceLoss(unittest.TestCase): method test_shape (line 188) | def test_shape(self, input_param, input_data, expected_val): method test_ill_shape (line 192) | def test_ill_shape(self): method test_ill_opts (line 197) | def test_ill_opts(self): method test_input_warnings (line 207) | def test_input_warnings(self): method test_script (line 220) | def test_script(self): FILE: tests/losses/test_ds_loss.py class TestDSLossDiceCE (line 137) | class TestDSLossDiceCE(unittest.TestCase): method test_result (line 139) | def test_result(self, input_param, input_param2, input_data, expected_... method test_ill_shape (line 144) | def test_ill_shape(self): method test_ill_reduction (line 149) | def test_ill_reduction(self): method test_script (line 154) | def test_script(self): class TestDSLossDiceCE2 (line 160) | class TestDSLossDiceCE2(unittest.TestCase): method test_result (line 162) | def test_result(self, input_param, input_param2, input_data, expected_... class TestDSLossDice (line 168) | class TestDSLossDice(unittest.TestCase): method test_result (line 170) | def test_result(self, input_param, input_data, expected_val): class TestDSLossDiceFocal (line 176) | class TestDSLossDiceFocal(unittest.TestCase): method test_result (line 178) | def test_result(self, input_param, input_data, expected_val): FILE: tests/losses/test_focal_loss.py class TestFocalLoss (line 89) | class TestFocalLoss(unittest.TestCase): method test_result (line 91) | def test_result(self, input_param, input_data, expected_val): method test_consistency_with_cross_entropy_2d (line 96) | def test_consistency_with_cross_entropy_2d(self): method test_consistency_with_cross_entropy_2d_no_reduction (line 119) | def test_consistency_with_cross_entropy_2d_no_reduction(self): method test_consistency_with_cross_entropy_2d_onehot_label (line 144) | def test_consistency_with_cross_entropy_2d_onehot_label(self): method test_consistency_with_cross_entropy_classification (line 167) | def test_consistency_with_cross_entropy_classification(self): method test_consistency_with_cross_entropy_classification_01 (line 191) | def test_consistency_with_cross_entropy_classification_01(self): method test_bin_seg_2d (line 215) | def test_bin_seg_2d(self): method test_empty_class_2d (line 236) | def test_empty_class_2d(self): method test_multi_class_seg_2d (line 258) | def test_multi_class_seg_2d(self): method test_bin_seg_3d (line 288) | def test_bin_seg_3d(self): method test_foreground (line 327) | def test_foreground(self): method test_ill_opts (line 340) | def test_ill_opts(self): method test_ill_shape (line 346) | def test_ill_shape(self): method test_ill_class_weight (line 352) | def test_ill_class_weight(self): method test_warnings (line 362) | def test_warnings(self): method test_script (line 379) | def test_script(self): method test_alpha_sequence_broadcasting (line 386) | def test_alpha_sequence_broadcasting(self, device, include_background,... FILE: tests/losses/test_generalized_dice_focal_loss.py class TestGeneralizedDiceFocalLoss (line 23) | class TestGeneralizedDiceFocalLoss(unittest.TestCase): method test_result_onehot_target_include_bg (line 24) | def test_result_onehot_target_include_bg(self): method test_result_no_onehot_no_bg (line 41) | def test_result_no_onehot_no_bg(self): method test_ill_shape (line 59) | def test_ill_shape(self): method test_ill_shape2 (line 64) | def test_ill_shape2(self): method test_ill_shape3 (line 69) | def test_ill_shape3(self): method test_ill_lambda (line 74) | def test_ill_lambda(self): method test_script (line 78) | def test_script(self): FILE: tests/losses/test_generalized_dice_loss.py class TestGeneralizedDiceLoss (line 160) | class TestGeneralizedDiceLoss(unittest.TestCase): method test_shape (line 162) | def test_shape(self, input_param, input_data, expected_val): method test_ill_shape (line 166) | def test_ill_shape(self): method test_ill_opts (line 171) | def test_ill_opts(self): method test_input_warnings (line 181) | def test_input_warnings(self): method test_differentiability (line 194) | def test_differentiability(self): method test_batch (line 204) | def test_batch(self): method test_script (line 214) | def test_script(self): FILE: tests/losses/test_generalized_wasserstein_dice_loss.py class TestGeneralizedWassersteinDiceLoss (line 26) | class TestGeneralizedWassersteinDiceLoss(unittest.TestCase): method test_bin_seg_2d (line 27) | def test_bin_seg_2d(self): method test_different_target_data_type (line 54) | def test_different_target_data_type(self): method test_empty_class_2d (line 83) | def test_empty_class_2d(self): method test_bin_seg_3d (line 104) | def test_bin_seg_3d(self): method test_convergence (line 134) | def test_convergence(self): method test_batch_size_greater_than_one (line 221) | def test_batch_size_greater_than_one(self): method test_batch_size_different_samples (line 274) | def test_batch_size_different_samples(self): method test_script (line 306) | def test_script(self): FILE: tests/losses/test_giou_loss.py class TestGIoULoss (line 37) | class TestGIoULoss(unittest.TestCase): method test_result (line 40) | def test_result(self, input_data, expected_val): method test_ill_shape (line 45) | def test_ill_shape(self): method test_with_cuda (line 50) | def test_with_cuda(self): FILE: tests/losses/test_hausdorff_loss.py function _describe_test_case (line 194) | def _describe_test_case(test_func, test_number, params): class TestHausdorffDTLoss (line 200) | class TestHausdorffDTLoss(unittest.TestCase): method test_shape (line 203) | def test_shape(self, input_param, input_data, expected_val): method test_ill_shape (line 207) | def test_ill_shape(self): method test_ill_opts (line 212) | def test_ill_opts(self): method test_input_warnings (line 223) | def test_input_warnings(self, include_background, softmax, to_onehot_y): class TesLogtHausdorffDTLoss (line 232) | class TesLogtHausdorffDTLoss(unittest.TestCase): method test_shape (line 235) | def test_shape(self, input_param, input_data, expected_val): method test_ill_shape (line 239) | def test_ill_shape(self): method test_ill_opts (line 244) | def test_ill_opts(self): method test_input_warnings (line 255) | def test_input_warnings(self, include_background, softmax, to_onehot_y): FILE: tests/losses/test_masked_dice_loss.py class TestDiceLoss (line 115) | class TestDiceLoss(unittest.TestCase): method test_shape (line 118) | def test_shape(self, input_param, input_data, expected_val): method test_ill_shape (line 122) | def test_ill_shape(self): method test_ill_opts (line 127) | def test_ill_opts(self): method test_input_warnings (line 137) | def test_input_warnings(self): FILE: tests/losses/test_masked_loss.py class TestMaskedLoss (line 42) | class TestMaskedLoss(unittest.TestCase): method setUp (line 43) | def setUp(self): method tearDown (line 46) | def tearDown(self): method test_shape (line 50) | def test_shape(self, input_param, expected_val): method test_ill_opts (line 64) | def test_ill_opts(self): method test_script (line 76) | def test_script(self): FILE: tests/losses/test_multi_scale.py class TestMultiScale (line 54) | class TestMultiScale(unittest.TestCase): method test_shape (line 56) | def test_shape(self, input_param, input_data, expected_val): method test_ill_opts (line 71) | def test_ill_opts(self, kwargs, input, target): method test_script (line 79) | def test_script(self): FILE: tests/losses/test_nacl_loss.py class TestNACLLoss (line 158) | class TestNACLLoss(unittest.TestCase): method test_result (line 160) | def test_result(self, input_param, input_data, expected_val): FILE: tests/losses/test_perceptual_loss.py class TestPerceptualLoss (line 78) | class TestPerceptualLoss(unittest.TestCase): method test_shape (line 80) | def test_shape(self, input_param, input_shape, target_shape): method test_identical_input (line 91) | def test_identical_input(self, input_param, input_shape, target_shape): method test_different_shape (line 102) | def test_different_shape(self): method test_1d (line 110) | def test_1d(self): method test_medicalnet_on_2d_data (line 115) | def test_medicalnet_on_2d_data(self, network_type): FILE: tests/losses/test_spectral_loss.py class TestJukeboxLoss (line 65) | class TestJukeboxLoss(unittest.TestCase): method test_results (line 67) | def test_results(self, input_param, input_data, expected_val): method test_2d_shape (line 71) | def test_2d_shape(self): method test_3d_shape (line 75) | def test_3d_shape(self): method test_script (line 79) | def test_script(self): FILE: tests/losses/test_ssim_loss.py class TestSSIMLoss (line 25) | class TestSSIMLoss(unittest.TestCase): method test_shape (line 27) | def test_shape(self): FILE: tests/losses/test_sure_loss.py class TestSURELoss (line 21) | class TestSURELoss(unittest.TestCase): method test_real_value (line 23) | def test_real_value(self): method test_complex_value (line 35) | def test_complex_value(self): method test_complex_general_input (line 47) | def test_complex_general_input(self): FILE: tests/losses/test_tversky_loss.py class TestTverskyLoss (line 166) | class TestTverskyLoss(unittest.TestCase): method test_shape (line 168) | def test_shape(self, input_param, input_data, expected_val): method test_ill_shape (line 172) | def test_ill_shape(self): method test_input_warnings (line 184) | def test_input_warnings(self, include_background, softmax, to_onehot_y): method test_script (line 191) | def test_script(self): FILE: tests/losses/test_unified_focal_loss.py class TestAsymmetricUnifiedFocalLoss (line 40) | class TestAsymmetricUnifiedFocalLoss(unittest.TestCase): method test_result (line 43) | def test_result(self, input_data, expected_val): method test_ill_shape (line 48) | def test_ill_shape(self): method test_with_cuda (line 53) | def test_with_cuda(self): FILE: tests/metrics/test_calibration_metric.py class TestCalibrationBinning (line 120) | class TestCalibrationBinning(unittest.TestCase): method test_binning (line 123) | def test_binning(self, _name, y_pred, y, num_bins, right, expected_mea... method test_shape_mismatch_raises (line 152) | def test_shape_mismatch_raises(self): method test_insufficient_ndim_raises (line 160) | def test_insufficient_ndim_raises(self): method test_invalid_num_bins_raises (line 168) | def test_invalid_num_bins_raises(self): class TestCalibrationErrorMetricValue (line 177) | class TestCalibrationErrorMetricValue(unittest.TestCase): method test_expected_reduction (line 180) | def test_expected_reduction(self, _name, y_pred, y, num_bins, expected... method test_average_reduction (line 198) | def test_average_reduction(self, _name, y_pred, y, num_bins, _expected... method test_maximum_reduction (line 216) | def test_maximum_reduction(self, _name, y_pred, y, num_bins, _expected... class TestCalibrationErrorEmptyBins (line 234) | class TestCalibrationErrorEmptyBins(unittest.TestCase): method test_expected_reduction_all_empty_bins_returns_nan (line 237) | def test_expected_reduction_all_empty_bins_returns_nan(self): method test_average_reduction_all_empty_bins_returns_nan (line 267) | def test_average_reduction_all_empty_bins_returns_nan(self): method test_maximum_reduction_all_empty_bins_returns_nan (line 295) | def test_maximum_reduction_all_empty_bins_returns_nan(self): method test_expected_reduction_with_zeros_only_returns_nan (line 323) | def test_expected_reduction_with_zeros_only_returns_nan(self): class TestCalibrationErrorMetricOptions (line 374) | class TestCalibrationErrorMetricOptions(unittest.TestCase): method test_include_background_false (line 376) | def test_include_background_false(self): method test_metric_reduction_mean (line 394) | def test_metric_reduction_mean(self): method test_get_not_nans (line 413) | def test_get_not_nans(self): method test_cumulative_iterations (line 431) | def test_cumulative_iterations(self): FILE: tests/metrics/test_compute_average_precision.py class TestComputeAveragePrecision (line 135) | class TestComputeAveragePrecision(unittest.TestCase): method test_value (line 138) | def test_value(self, y_pred, y, softmax, to_onehot, average, expected_... method test_class_value (line 147) | def test_class_value(self, y_pred, y, softmax, to_onehot, average, exp... FILE: tests/metrics/test_compute_confusion_matrix.py class TestConfusionMatrix (line 222) | class TestConfusionMatrix(unittest.TestCase): method test_value (line 224) | def test_value(self, input_data, expected_value): method test_compute_sample (line 235) | def test_compute_sample(self, input_data, expected_value): method test_compute_sample_multiple_metrics (line 246) | def test_compute_sample_multiple_metrics(self, input_data, expected_va... method test_compute_sample_with_nan (line 260) | def test_compute_sample_with_nan(self, input_data, expected_value, exp... method test_clf_with_nan (line 272) | def test_clf_with_nan(self, input_data, expected_value): method test_precision (line 286) | def test_precision(self, input_data, expected_value): FILE: tests/metrics/test_compute_f_beta.py class TestFBetaScore (line 26) | class TestFBetaScore(unittest.TestCase): method test_expecting_success_and_device (line 27) | def test_expecting_success_and_device(self): method test_success_and_zero (line 47) | def test_success_and_zero(self, beta, y, expected_score): method test_number_of_dimensions_less_than_2_should_raise_error (line 52) | def test_number_of_dimensions_less_than_2_should_raise_error(self): method test_with_nan_values (line 57) | def test_with_nan_values(self): method test_do_not_include_background (line 65) | def test_do_not_include_background(self): method test_prediction_and_result_have_different_shape (line 73) | def test_prediction_and_result_have_different_shape(self): FILE: tests/metrics/test_compute_fid_metric.py class TestFIDMetric (line 26) | class TestFIDMetric(unittest.TestCase): method test_results (line 28) | def test_results(self): method test_input_dimensions (line 34) | def test_input_dimensions(self): FILE: tests/metrics/test_compute_froc.py class TestComputeFpTp (line 113) | class TestComputeFpTp(unittest.TestCase): method test_value (line 116) | def test_value(self, input_data, expected_fp, expected_tp, expected_num): class TestComputeFpTpNd (line 123) | class TestComputeFpTpNd(unittest.TestCase): method test_value (line 126) | def test_value(self, input_data, expected_fp, expected_tp, expected_num): class TestComputeFrocScore (line 133) | class TestComputeFrocScore(unittest.TestCase): method test_value (line 136) | def test_value(self, input_data, thresholds, expected_score): FILE: tests/metrics/test_compute_generalized_dice.py class TestComputeGeneralizedDiceScore (line 178) | class TestComputeGeneralizedDiceScore(unittest.TestCase): method test_device (line 180) | def test_device(self, input_data, _expected_value): method test_value (line 188) | def test_value(self, input_data, expected_value): method test_value_class (line 196) | def test_value_class(self, input_data, expected_value): method test_values_compare (line 208) | def test_values_compare(self, input_data, expected_value): method test_values_compare_sum_over_classes (line 223) | def test_values_compare_sum_over_classes(self, input_data, expected_va... FILE: tests/metrics/test_compute_meandice.py class TestComputeMeanDice (line 254) | class TestComputeMeanDice(unittest.TestCase): method test_value (line 257) | def test_value(self, input_data, expected_value): method test_nans (line 263) | def test_nans(self, input_data, expected_value): method test_helper (line 268) | def test_helper(self, input_data, _unused): method test_value_class (line 283) | def test_value_class(self, input_data, expected_value): method test_nans_class (line 295) | def test_nans_class(self, params, input_data, expected_value): FILE: tests/metrics/test_compute_meaniou.py class TestComputeMeanIoU (line 189) | class TestComputeMeanIoU(unittest.TestCase): method test_value (line 192) | def test_value(self, input_data, expected_value): method test_nans (line 198) | def test_nans(self, input_data, expected_value): method test_value_class (line 204) | def test_value_class(self, input_data, expected_value): method test_nans_class (line 215) | def test_nans_class(self, params, input_data, expected_value): FILE: tests/metrics/test_compute_mmd_metric.py class TestMMDMetric (line 38) | class TestMMDMetric(unittest.TestCase): method test_results (line 41) | def test_results(self, input_param, input_data, expected_val): method test_if_inputs_different_shapes (line 46) | def test_if_inputs_different_shapes(self): method test_if_inputs_have_one_sample (line 50) | def test_if_inputs_have_one_sample(self): FILE: tests/metrics/test_compute_multiscalessim_metric.py class TestMultiScaleSSIMMetric (line 22) | class TestMultiScaleSSIMMetric(unittest.TestCase): method test2d_gaussian (line 24) | def test2d_gaussian(self): method test2d_uniform (line 37) | def test2d_uniform(self): method test3d_gaussian (line 50) | def test3d_gaussian(self): method input_ill_input_shape2d (line 63) | def input_ill_input_shape2d(self): method input_ill_input_shape3d (line 69) | def input_ill_input_shape3d(self): method small_inputs (line 75) | def small_inputs(self): FILE: tests/metrics/test_compute_panoptic_quality.py class TestPanopticQualityMetric (line 115) | class TestPanopticQualityMetric(unittest.TestCase): method test_value (line 117) | def test_value(self, input_params, expected_value): method test_value_class (line 123) | def test_value_class(self, input_params, y_pred, y_gt, expected_value): method test_3d_support (line 133) | def test_3d_support(self): method test_confusion_matrix_return (line 145) | def test_confusion_matrix_return(self): method test_compute_mean_iou (line 163) | def test_compute_mean_iou(self): method test_metric_name_filtering (line 184) | def test_metric_name_filtering(self): method test_invalid_3d_shape (line 203) | def test_invalid_3d_shape(self): method test_compute_mean_iou_invalid_shape (line 218) | def test_compute_mean_iou_invalid_shape(self): FILE: tests/metrics/test_compute_regression_metrics.py function flatten (line 25) | def flatten(data): function msemetric_np (line 30) | def msemetric_np(y_pred, y): function maemetric_np (line 34) | def maemetric_np(y_pred, y): function rmsemetric_np (line 38) | def rmsemetric_np(y_pred, y): function psnrmetric_np (line 42) | def psnrmetric_np(max_val, y_pred, y): function mapemetric_np (line 47) | def mapemetric_np(y_pred, y, epsilon=1e-7): class TestRegressionMetrics (line 52) | class TestRegressionMetrics(unittest.TestCase): method test_shape_reduction (line 54) | def test_shape_reduction(self): method test_compare_numpy (line 97) | def test_compare_numpy(self): method test_ill_shape (line 127) | def test_ill_shape(self): method test_same_input (line 148) | def test_same_input(self): method test_diff_input (line 173) | def test_diff_input(self): FILE: tests/metrics/test_compute_roc_auc.py class TestComputeROCAUC (line 102) | class TestComputeROCAUC(unittest.TestCase): method test_value (line 118) | def test_value(self, y_pred, y, softmax, to_onehot, average, expected_... method test_class_value (line 140) | def test_class_value(self, y_pred, y, softmax, to_onehot, average, exp... FILE: tests/metrics/test_compute_variance.py class TestComputeVariance (line 111) | class TestComputeVariance(unittest.TestCase): method test_value (line 114) | def test_value(self, input_data, expected_value): method test_spatial_case (line 120) | def test_spatial_case(self, input_data, expected_value): method test_threshold_case (line 125) | def test_threshold_case(self, input_data, expected_value): method test_value_class (line 130) | def test_value_class(self, input_data, expected_value): method test_spatial_case_class (line 138) | def test_spatial_case_class(self, input_data, expected_value): FILE: tests/metrics/test_cumulative.py class TestCumulative (line 22) | class TestCumulative(unittest.TestCase): method test_single (line 23) | def test_single(self): method test_multi (line 29) | def test_multi(self): method test_ill (line 45) | def test_ill(self): FILE: tests/metrics/test_cumulative_average.py class TestAverageMeter (line 34) | class TestAverageMeter(unittest.TestCase): method test_value_all (line 37) | def test_value_all(self, data): method run_test (line 55) | def run_test(self, data): FILE: tests/metrics/test_cumulative_average_dist.py class DistributedCumulativeAverage (line 24) | class DistributedCumulativeAverage(DistTestCase): method test_value (line 26) | def test_value(self): FILE: tests/metrics/test_hausdorff_distance.py function create_spherical_seg_3d (line 28) | def create_spherical_seg_3d( function _describe_test_case (line 165) | def _describe_test_case(test_func, test_number, params): class TestHausdorffDistance (line 170) | class TestHausdorffDistance(unittest.TestCase): method test_value (line 173) | def test_value(self, device, metric, directed, input_data, expected_va... method test_nans (line 195) | def test_nans(self, input_data): FILE: tests/metrics/test_label_quality_score.py class TestLabelQualityScore (line 101) | class TestLabelQualityScore(unittest.TestCase): method test_value (line 104) | def test_value(self, input_data, expected_value): method test_spatial_case (line 110) | def test_spatial_case(self, input_data, expected_value): method test_value_class (line 115) | def test_value_class(self, input_data, expected_value): method test_spatial_case_class (line 124) | def test_spatial_case_class(self, input_data, expected_value): FILE: tests/metrics/test_loss_metric.py class TestComputeLossMetric (line 38) | class TestComputeLossMetric(unittest.TestCase): method test_value_class (line 41) | def test_value_class(self, input_data, expected_value): FILE: tests/metrics/test_metrics_reloaded.py class TestMetricsReloaded (line 78) | class TestMetricsReloaded(unittest.TestCase): method test_binary (line 81) | def test_binary(self, input_param, input_data, expected_val): method test_categorical (line 89) | def test_categorical(self, input_param, input_data, expected_val): FILE: tests/metrics/test_ssim_metric.py class TestSSIMMetric (line 22) | class TestSSIMMetric(unittest.TestCase): method test2d_gaussian (line 24) | def test2d_gaussian(self): method test2d_uniform (line 37) | def test2d_uniform(self): method test3d_gaussian (line 50) | def test3d_gaussian(self): method input_ill_input_shape (line 63) | def input_ill_input_shape(self): method mismatch_y_pred_and_y (line 72) | def mismatch_y_pred_and_y(self): FILE: tests/metrics/test_surface_dice.py class TestAllSurfaceDiceMetrics (line 26) | class TestAllSurfaceDiceMetrics(unittest.TestCase): method test_tolerance_euclidean_distance_with_spacing (line 27) | def test_tolerance_euclidean_distance_with_spacing(self): method test_tolerance_euclidean_distance (line 88) | def test_tolerance_euclidean_distance(self): method test_tolerance_euclidean_distance_3d (line 132) | def test_tolerance_euclidean_distance_3d(self): method test_tolerance_all_distances (line 179) | def test_tolerance_all_distances(self): method test_asserts (line 289) | def test_asserts(self): method test_not_predicted_not_present (line 349) | def test_not_predicted_not_present(self): method test_compute_surface_dice_subvoxel (line 385) | def test_compute_surface_dice_subvoxel(self): FILE: tests/metrics/test_surface_distance.py function create_spherical_seg_3d (line 25) | def create_spherical_seg_3d( class TestAllSurfaceMetrics (line 144) | class TestAllSurfaceMetrics(unittest.TestCase): method test_value (line 147) | def test_value(self, input_data, expected_value): method test_nans (line 171) | def test_nans(self, input_data): FILE: tests/min_tests.py function run_testsuit (line 20) | def run_testsuit(): FILE: tests/networks/blocks/dints_block/test_acn_block.py class TestACNBlock (line 31) | class TestACNBlock(unittest.TestCase): method test_acn_block (line 34) | def test_acn_block(self, input_param, input_shape, expected_shape): FILE: tests/networks/blocks/dints_block/test_factorized_increase.py class TestFactInc (line 27) | class TestFactInc(unittest.TestCase): method test_factorized_increase_3d (line 30) | def test_factorized_increase_3d(self, input_param, input_shape, expect... FILE: tests/networks/blocks/dints_block/test_factorized_reduce.py class TestFactRed (line 27) | class TestFactRed(unittest.TestCase): method test_factorized_reduce_3d (line 30) | def test_factorized_reduce_3d(self, input_param, input_shape, expected... FILE: tests/networks/blocks/dints_block/test_p3d_block.py class TestP3D (line 64) | class TestP3D(unittest.TestCase): method test_3d (line 67) | def test_3d(self, input_param, input_shape, expected_shape): method test_ill (line 72) | def test_ill(self): FILE: tests/networks/blocks/test_CABlock.py class TestFeedForward (line 45) | class TestFeedForward(unittest.TestCase): method test_shape (line 47) | def test_shape(self, input_param, input_shape): method test_gating_mechanism (line 53) | def test_gating_mechanism(self): class TestCABlock (line 60) | class TestCABlock(unittest.TestCase): method test_shape (line 63) | def test_shape(self, input_param, input_shape, expected_shape): method test_invalid_spatial_dims (line 70) | def test_invalid_spatial_dims(self): method test_flash_attention (line 75) | def test_flash_attention(self): method test_temperature_parameter (line 83) | def test_temperature_parameter(self): method test_qkv_transformation_2d (line 89) | def test_qkv_transformation_2d(self): method test_qkv_transformation_3d (line 96) | def test_qkv_transformation_3d(self): method test_flash_vs_normal_attention (line 103) | def test_flash_vs_normal_attention(self): method test_deterministic_small_input (line 118) | def test_deterministic_small_input(self): FILE: tests/networks/blocks/test_adn.py class TestADN2D (line 61) | class TestADN2D(TorchImageTestCase2D): method test_adn_2d (line 63) | def test_adn_2d(self, args): method test_no_input (line 70) | def test_no_input(self): class TestADN3D (line 75) | class TestADN3D(TorchImageTestCase3D): method test_adn_3d (line 77) | def test_adn_3d(self, args): FILE: tests/networks/blocks/test_convolutions.py class TestConvolution2D (line 20) | class TestConvolution2D(TorchImageTestCase2D): method test_conv1 (line 21) | def test_conv1(self): method test_conv1_no_acti (line 27) | def test_conv1_no_acti(self): method test_conv_only1 (line 33) | def test_conv_only1(self): method test_stride1 (line 39) | def test_stride1(self): method test_dilation1 (line 46) | def test_dilation1(self): method test_dropout1 (line 52) | def test_dropout1(self): method test_transpose1 (line 58) | def test_transpose1(self): method test_transpose2 (line 64) | def test_transpose2(self): class TestConvolution3D (line 71) | class TestConvolution3D(TorchImageTestCase3D): method test_conv1 (line 72) | def test_conv1(self): method test_conv1_no_acti (line 78) | def test_conv1_no_acti(self): method test_conv_only1 (line 84) | def test_conv_only1(self): method test_stride1 (line 90) | def test_stride1(self): method test_dilation1 (line 103) | def test_dilation1(self): method test_dropout1 (line 109) | def test_dropout1(self): method test_transpose1 (line 115) | def test_transpose1(self): method test_transpose2 (line 121) | def test_transpose2(self): class TestResidualUnit2D (line 128) | class TestResidualUnit2D(TorchImageTestCase2D): method test_conv_only1 (line 129) | def test_conv_only1(self): method test_stride1 (line 135) | def test_stride1(self): method test_dilation1 (line 142) | def test_dilation1(self): method test_dropout1 (line 148) | def test_dropout1(self): FILE: tests/networks/blocks/test_crf_cpu.py class CRFTestCaseCpu (line 497) | class CRFTestCaseCpu(unittest.TestCase): method test (line 499) | def test(self, test_case_description, params, input, features, expected): FILE: tests/networks/blocks/test_crf_cuda.py class CRFTestCaseCuda (line 498) | class CRFTestCaseCuda(unittest.TestCase): method test (line 500) | def test(self, test_case_description, params, input, features, expected): FILE: tests/networks/blocks/test_crossattention.py class TestResBlock (line 49) | class TestResBlock(unittest.TestCase): method test_shape (line 52) | def test_shape(self, input_param, input_shape, expected_shape): method test_ill_arg (line 59) | def test_ill_arg(self): method test_save_attn_with_flash_attention (line 66) | def test_save_attn_with_flash_attention(self): method test_rel_pos_embedding_with_flash_attention (line 72) | def test_rel_pos_embedding_with_flash_attention(self): method test_attention_dim_not_multiple_of_heads (line 84) | def test_attention_dim_not_multiple_of_heads(self): method test_inner_dim_different (line 89) | def test_inner_dim_different(self): method test_causal_no_sequence_length (line 92) | def test_causal_no_sequence_length(self): method test_causal_flash_attention (line 97) | def test_causal_flash_attention(self): method test_causal (line 112) | def test_causal(self): method test_context_input (line 122) | def test_context_input(self): method test_context_wrong_input_size (line 130) | def test_context_wrong_input_size(self): method test_access_attn_matrix (line 139) | def test_access_attn_matrix(self): method test_flash_attention (line 164) | def test_flash_attention(self, causal): FILE: tests/networks/blocks/test_denseblock.py class TestDenseBlock2D (line 22) | class TestDenseBlock2D(TorchImageTestCase2D): method test_block_empty (line 23) | def test_block_empty(self): method test_block_conv (line 29) | def test_block_conv(self): class TestDenseBlock3D (line 38) | class TestDenseBlock3D(TorchImageTestCase3D): method test_block_conv (line 39) | def test_block_conv(self): class TestConvDenseBlock2D (line 54) | class TestConvDenseBlock2D(TorchImageTestCase2D): method test_block_empty (line 55) | def test_block_empty(self): method test_except (line 61) | def test_except(self): method test_block1 (line 65) | def test_block1(self): method test_block2 (line 72) | def test_block2(self): class TestConvDenseBlock3D (line 81) | class TestConvDenseBlock3D(TorchImageTestCase3D): method test_block_empty (line 82) | def test_block_empty(self): method test_block1 (line 88) | def test_block1(self): method test_block2 (line 95) | def test_block2(self): FILE: tests/networks/blocks/test_downsample_block.py class TestMaxAvgPool (line 56) | class TestMaxAvgPool(unittest.TestCase): method test_shape (line 59) | def test_shape(self, input_param, input_shape, expected_shape): class TestSubpixelDownsample (line 66) | class TestSubpixelDownsample(unittest.TestCase): method test_shape (line 69) | def test_shape(self, input_param, input_shape, expected_shape): method test_predefined_tensor (line 75) | def test_predefined_tensor(self): method test_reconstruction_2d (line 88) | def test_reconstruction_2d(self): method test_reconstruction_3d (line 97) | def test_reconstruction_3d(self): method test_invalid_spatial_size (line 106) | def test_invalid_spatial_size(self): method test_custom_conv_block (line 111) | def test_custom_conv_block(self): class TestDownSample (line 119) | class TestDownSample(unittest.TestCase): method test_shape (line 121) | def test_shape(self, input_param, input_shape, expected_shape): method test_pre_post_conv (line 127) | def test_pre_post_conv(self): method test_pixelunshuffle_equivalence (line 140) | def test_pixelunshuffle_equivalence(self): method test_invalid_mode (line 174) | def test_invalid_mode(self): method test_missing_channels (line 178) | def test_missing_channels(self): FILE: tests/networks/blocks/test_dynunet_block.py class TestResBasicBlock (line 72) | class TestResBasicBlock(unittest.TestCase): method test_shape (line 74) | def test_shape(self, input_param, input_shape, expected_shape): method test_ill_arg (line 80) | def test_ill_arg(self): method test_script (line 86) | def test_script(self): class TestUpBlock (line 95) | class TestUpBlock(unittest.TestCase): method test_shape (line 97) | def test_shape(self, input_param, input_shape, expected_shape, skip_sh... method test_script (line 103) | def test_script(self): FILE: tests/networks/blocks/test_fpn_block.py class TestFPNBlock (line 46) | class TestFPNBlock(unittest.TestCase): method test_fpn_block (line 48) | def test_fpn_block(self, input_param, input_shape, expected_shape): method test_script (line 58) | def test_script(self, input_param, input_shape, expected_shape): class TestFPN (line 68) | class TestFPN(unittest.TestCase): method test_fpn (line 70) | def test_fpn(self, input_param, input_shape, expected_shape): method test_script (line 78) | def test_script(self, input_param, input_shape, expected_shape): FILE: tests/networks/blocks/test_localnet_block.py class TestLocalNetDownSampleBlock (line 50) | class TestLocalNetDownSampleBlock(unittest.TestCase): method test_shape (line 53) | def test_shape(self, input_param): method test_ill_arg (line 63) | def test_ill_arg(self): method test_ill_shape (line 69) | def test_ill_shape(self, input_param): class TestLocalNetUpSampleBlock (line 77) | class TestLocalNetUpSampleBlock(unittest.TestCase): method test_shape (line 80) | def test_shape(self, input_param): method test_ill_arg (line 89) | def test_ill_arg(self): method test_ill_shape (line 95) | def test_ill_shape(self, input_param): class TestExtractBlock (line 104) | class TestExtractBlock(unittest.TestCase): method test_shape (line 107) | def test_shape(self, input_param): method test_ill_arg (line 115) | def test_ill_arg(self): FILE: tests/networks/blocks/test_mlp.py class TestMLPBlock (line 45) | class TestMLPBlock(unittest.TestCase): method test_shape (line 48) | def test_shape(self, input_param, input_shape, expected_shape): method test_ill_arg (line 54) | def test_ill_arg(self): method test_act (line 59) | def test_act(self, input_param, input_shape, expected_shape): method test_dropout_mode (line 71) | def test_dropout_mode(self, dropout_mode, dropout_layer): FILE: tests/networks/blocks/test_patchembedding.py class TestPatchEmbeddingBlock (line 61) | class TestPatchEmbeddingBlock(unittest.TestCase): method setUp (line 62) | def setUp(self): method tearDown (line 66) | def tearDown(self): method test_shape (line 71) | def test_shape(self, input_param, input_shape, expected_shape): method test_sincos_pos_embed (line 77) | def test_sincos_pos_embed(self): method test_fourier_pos_embed (line 90) | def test_fourier_pos_embed(self): method test_learnable_pos_embed (line 103) | def test_learnable_pos_embed(self): method test_ill_arg (line 116) | def test_ill_arg(self): class TestPatchEmbed (line 211) | class TestPatchEmbed(unittest.TestCase): method setUp (line 212) | def setUp(self): method tearDown (line 216) | def tearDown(self): method test_shape (line 221) | def test_shape(self, input_param, input_shape, expected_shape): method test_ill_arg (line 227) | def test_ill_arg(self): FILE: tests/networks/blocks/test_regunet_block.py class TestRegistrationResidualConvBlock (line 67) | class TestRegistrationResidualConvBlock(unittest.TestCase): method test_shape (line 70) | def test_shape(self, input_param, input_shape, expected_shape): class TestRegistrationDownSampleBlock (line 77) | class TestRegistrationDownSampleBlock(unittest.TestCase): method test_shape (line 80) | def test_shape(self, input_param, input_shape, expected_shape): method test_ill_shape (line 86) | def test_ill_shape(self): class TestRegistrationExtractionBlock (line 92) | class TestRegistrationExtractionBlock(unittest.TestCase): method test_shape (line 95) | def test_shape(self, input_param, input_shapes, image_size, expected_s... FILE: tests/networks/blocks/test_se_block.py class TestSEBlockLayer (line 65) | class TestSEBlockLayer(unittest.TestCase): method test_shape (line 67) | def test_shape(self, input_param, input_shape, expected_shape): method test_script (line 73) | def test_script(self): method test_ill_arg (line 79) | def test_ill_arg(self): FILE: tests/networks/blocks/test_se_blocks.py class TestChannelSELayer (line 43) | class TestChannelSELayer(unittest.TestCase): method test_shape (line 45) | def test_shape(self, input_param, input_shape, expected_shape): method test_script (line 51) | def test_script(self): method test_ill_arg (line 57) | def test_ill_arg(self): class TestResidualSELayer (line 62) | class TestResidualSELayer(unittest.TestCase): method test_shape (line 64) | def test_shape(self, input_param, input_shape, expected_shape): method test_script (line 70) | def test_script(self): FILE: tests/networks/blocks/test_segresnet_block.py class TestResBlock (line 38) | class TestResBlock(unittest.TestCase): method test_shape (line 40) | def test_shape(self, input_param, input_shape, expected_shape): method test_ill_arg (line 46) | def test_ill_arg(self): FILE: tests/networks/blocks/test_selfattention.py class TestResBlock (line 54) | class TestResBlock(unittest.TestCase): method test_shape (line 57) | def test_shape(self, input_param, input_shape, expected_shape): method test_ill_arg (line 63) | def test_ill_arg(self): method test_rel_pos_embedding_with_flash_attention (line 70) | def test_rel_pos_embedding_with_flash_attention(self): method test_save_attn_with_flash_attention (line 81) | def test_save_attn_with_flash_attention(self): method test_attention_dim_not_multiple_of_heads (line 85) | def test_attention_dim_not_multiple_of_heads(self): method test_inner_dim_different (line 90) | def test_inner_dim_different(self): method test_causal_no_sequence_length (line 93) | def test_causal_no_sequence_length(self): method test_causal_flash_attention (line 98) | def test_causal_flash_attention(self): method test_causal (line 113) | def test_causal(self): method test_masked_selfattention (line 120) | def test_masked_selfattention(self): method test_causal_and_mask (line 131) | def test_causal_and_mask(self): method test_access_attn_matrix (line 139) | def test_access_attn_matrix(self): method test_number_of_parameters (line 160) | def test_number_of_parameters(self): method test_script (line 195) | def test_script(self, include_fc, use_combined_linear): method test_flash_attention (line 211) | def test_flash_attention(self): method test_no_extra_weights_if_no_fc (line 225) | def test_no_extra_weights_if_no_fc(self, include_fc): FILE: tests/networks/blocks/test_simple_aspp.py class TestChannelSELayer (line 71) | class TestChannelSELayer(unittest.TestCase): method test_shape (line 74) | def test_shape(self, input_param, input_shape, expected_shape): method test_ill_args (line 81) | def test_ill_args(self, input_param, input_shape, error_type): FILE: tests/networks/blocks/test_spatialattention.py class TestBlock (line 40) | class TestBlock(unittest.TestCase): method test_shape (line 43) | def test_shape(self, input_param, input_shape, expected_shape): method test_attention_dim_not_multiple_of_heads (line 49) | def test_attention_dim_not_multiple_of_heads(self): FILE: tests/networks/blocks/test_subpixel_upsample.py class TestSUBPIXEL (line 70) | class TestSUBPIXEL(unittest.TestCase): method test_subpixel_shape (line 72) | def test_subpixel_shape(self, input_param, input_shape, expected_shape): method test_script (line 78) | def test_script(self): FILE: tests/networks/blocks/test_text_encoding.py class TestTextEncoder (line 20) | class TestTextEncoder(unittest.TestCase): method test_test_encoding_shape (line 21) | def test_test_encoding_shape(self): FILE: tests/networks/blocks/test_transformerblock.py class TestTransformerBlock (line 39) | class TestTransformerBlock(unittest.TestCase): method test_shape (line 43) | def test_shape(self, input_param, input_shape, expected_shape): method test_ill_arg (line 49) | def test_ill_arg(self): method test_access_attn_matrix (line 57) | def test_access_attn_matrix(self): FILE: tests/networks/blocks/test_unetr_block.py function _get_out_size (line 25) | def _get_out_size(params): class TestResBasicBlock (line 100) | class TestResBasicBlock(unittest.TestCase): method test_shape (line 102) | def test_shape(self, input_param, input_shape, expected_shape): method test_ill_arg (line 108) | def test_ill_arg(self): method test_script (line 114) | def test_script(self): class TestUpBlock (line 122) | class TestUpBlock(unittest.TestCase): method test_shape (line 124) | def test_shape(self, input_param, input_shape, expected_shape, skip_sh... method test_script (line 130) | def test_script(self): class TestPrUpBlock (line 138) | class TestPrUpBlock(unittest.TestCase): method test_shape (line 140) | def test_shape(self, input_param, input_shape, expected_shape): method test_script (line 146) | def test_script(self): FILE: tests/networks/blocks/test_upsample_block.py class TestUpsample (line 123) | class TestUpsample(unittest.TestCase): method test_shape (line 126) | def test_shape(self, input_param, input_shape, expected_shape): FILE: tests/networks/blocks/warp/test_dvf2ddf.py class TestDVF2DDF (line 44) | class TestDVF2DDF(unittest.TestCase): method setUp (line 46) | def setUp(self): method tearDown (line 49) | def tearDown(self): method test_value (line 53) | def test_value(self, input_param, input_data, expected_val): method test_gradient (line 58) | def test_gradient(self): FILE: tests/networks/blocks/warp/test_warp.py class TestWarp (line 102) | class TestWarp(unittest.TestCase): method setUp (line 103) | def setUp(self): method test_itk_benchmark (line 113) | def test_itk_benchmark(self): method test_resample (line 123) | def test_resample(self, input_param, input_data, expected_val): method test_ill_shape (line 128) | def test_ill_shape(self): method test_grad (line 141) | def test_grad(self): function load_img_and_sample_ddf (line 156) | def load_img_and_sample_ddf(): function itk_warp (line 172) | def itk_warp(img, ddf): function monai_warp (line 220) | def monai_warp(img, ddf): FILE: tests/networks/layers/filtering/test_bilateral_approx_cpu.py class BilateralFilterTestCaseCpuApprox (line 367) | class BilateralFilterTestCaseCpuApprox(unittest.TestCase): method test_cpu_approx (line 369) | def test_cpu_approx(self, test_case_description, sigmas, input, expect... method test_cpu_approx_backwards (line 382) | def test_cpu_approx_backwards(self, test_case_description, sigmas, inp... FILE: tests/networks/layers/filtering/test_bilateral_approx_cuda.py class BilateralFilterTestCaseCudaApprox (line 368) | class BilateralFilterTestCaseCudaApprox(unittest.TestCase): method test_cuda_approx (line 370) | def test_cuda_approx(self, test_case_description, sigmas, input, expec... method test_cpu_approx_backwards (line 387) | def test_cpu_approx_backwards(self, test_case_description, sigmas, inp... FILE: tests/networks/layers/filtering/test_bilateral_precise.py class BilateralFilterTestCaseCpuPrecise (line 368) | class BilateralFilterTestCaseCpuPrecise(unittest.TestCase): method test_cpu_precise (line 370) | def test_cpu_precise(self, test_case_description, sigmas, input, expec... method test_cpu_precise_backwards (line 383) | def test_cpu_precise_backwards(self, test_case_description, sigmas, in... class BilateralFilterTestCaseCudaPrecise (line 401) | class BilateralFilterTestCaseCudaPrecise(unittest.TestCase): method test_cuda_precise (line 403) | def test_cuda_precise(self, test_case_description, sigmas, input, expe... method test_cuda_precise_backwards (line 420) | def test_cuda_precise_backwards(self, test_case_description, sigmas, i... FILE: tests/networks/layers/filtering/test_phl_cpu.py class PHLFilterTestCaseCpu (line 244) | class PHLFilterTestCaseCpu(unittest.TestCase): method test_cpu (line 246) | def test_cpu(self, test_case_description, sigmas, input, features, exp... FILE: tests/networks/layers/filtering/test_phl_cuda.py class PHLFilterTestCaseCuda (line 152) | class PHLFilterTestCaseCuda(unittest.TestCase): method test_cuda (line 154) | def test_cuda(self, test_case_description, sigmas, input, features, ex... FILE: tests/networks/layers/filtering/test_trainable_bilateral.py class BilateralFilterTestCaseCpuPrecise (line 275) | class BilateralFilterTestCaseCpuPrecise(unittest.TestCase): method test_cpu_precise (line 277) | def test_cpu_precise(self, test_case_description, sigmas, input, expec... method test_cpu_precise_backwards (line 303) | def test_cpu_precise_backwards(self, test_case_description, sigmas, in... class BilateralFilterTestCaseCudaPrecise (line 373) | class BilateralFilterTestCaseCudaPrecise(unittest.TestCase): method test_cuda_precise (line 375) | def test_cuda_precise(self, test_case_description, sigmas, input, expe... method test_cuda_precise_backwards (line 405) | def test_cuda_precise_backwards(self, test_case_description, sigmas, i... FILE: tests/networks/layers/filtering/test_trainable_joint_bilateral.py class JointBilateralFilterTestCaseCpuPrecise (line 360) | class JointBilateralFilterTestCaseCpuPrecise(unittest.TestCase): method test_cpu_precise (line 362) | def test_cpu_precise(self, test_case_description, sigmas, input, guide... method test_cpu_precise_backwards (line 391) | def test_cpu_precise_backwards(self, test_case_description, sigmas, in... class JointBilateralFilterTestCaseCudaPrecise (line 483) | class JointBilateralFilterTestCaseCudaPrecise(unittest.TestCase): method test_cuda_precise (line 485) | def test_cuda_precise(self, test_case_description, sigmas, input, guid... method test_cuda_precise_backwards (line 518) | def test_cuda_precise_backwards(self, test_case_description, sigmas, i... FILE: tests/networks/layers/test_affine_transform.py class TestNormTransform (line 85) | class TestNormTransform(unittest.TestCase): method test_norm_xform (line 87) | def test_norm_xform(self, input_shape, align_corners, expected, zero_c... class TestToNormAffine (line 109) | class TestToNormAffine(unittest.TestCase): method test_to_norm_affine (line 111) | def test_to_norm_affine(self, affine, src_size, dst_size, align_corner... method test_to_norm_affine_ill (line 124) | def test_to_norm_affine_ill(self, affine, src_size, dst_size, align_co... class TestAffineTransform (line 132) | class TestAffineTransform(unittest.TestCase): method test_affine_transforms (line 140) | def test_affine_transforms(self, affine, expected): method test_zoom (line 146) | def test_zoom(self): method test_zoom_1 (line 153) | def test_zoom_1(self): method test_zoom_2 (line 160) | def test_zoom_2(self): method test_zoom_zero_center (line 167) | def test_zoom_zero_center(self): method test_affine_transform_minimum (line 174) | def test_affine_transform_minimum(self): method test_affine_transform_2d (line 193) | def test_affine_transform_2d(self): method test_affine_transform_3d (line 229) | def test_affine_transform_3d(self): method test_ill_affine_transform (line 279) | def test_ill_affine_transform(self): method test_forward_2d (line 335) | def test_forward_2d(self): method test_forward_3d (line 359) | def test_forward_3d(self): FILE: tests/networks/layers/test_apply_filter.py class ApplyFilterTestCase (line 22) | class ApplyFilterTestCase(unittest.TestCase): method test_1d (line 24) | def test_1d(self): method test_2d (line 33) | def test_2d(self): method test_3d (line 49) | def test_3d(self): method test_wrong_args (line 79) | def test_wrong_args(self): FILE: tests/networks/layers/test_channel_pad.py class TestChannelPad (line 36) | class TestChannelPad(unittest.TestCase): method test_shape (line 39) | def test_shape(self, input_param, input_shape, expected_shape): method test_wrong_mode (line 45) | def test_wrong_mode(self): FILE: tests/networks/layers/test_conjugate_gradient.py class TestConjugateGradient (line 21) | class TestConjugateGradient(unittest.TestCase): method test_real_valued_inverse (line 23) | def test_real_valued_inverse(self): method test_complex_valued_inverse (line 41) | def test_complex_valued_inverse(self): FILE: tests/networks/layers/test_drop_path.py class TestDropPath (line 30) | class TestDropPath(unittest.TestCase): method test_shape (line 33) | def test_shape(self, input_param, input_shape): method test_ill_arg (line 40) | def test_ill_arg(self, input_param, input_shape): FILE: tests/networks/layers/test_gaussian.py class TestGaussian1d (line 226) | class TestGaussian1d(unittest.TestCase): method test_gaussian (line 228) | def test_gaussian(self): method test_scalespace_gaussian (line 250) | def test_scalespace_gaussian(self): method test_norm_false (line 298) | def test_norm_false(self, variance, expected): method test_wrong_sigma (line 309) | def test_wrong_sigma(self): FILE: tests/networks/layers/test_gaussian_filter.py class GaussianFilterTestCase (line 94) | class GaussianFilterTestCase(unittest.TestCase): method test_wrong_args (line 95) | def test_wrong_args(self): method test_1d (line 100) | def test_1d(self): method test_2d_3d (line 108) | def test_2d_3d(self, oargs, gargs, expected, device, rtol): class TestGaussianFilterBackprop (line 115) | class TestGaussianFilterBackprop(unittest.TestCase): method test_training (line 117) | def test_training(self, input_args): FILE: tests/networks/layers/test_get_layers.py class TestGetLayers (line 39) | class TestGetLayers(unittest.TestCase): method test_norm_layer (line 42) | def test_norm_layer(self, input_param, expected): method test_act_layer (line 47) | def test_act_layer(self, input_param, expected): method test_dropout_layer (line 52) | def test_dropout_layer(self, input_param, expected): class TestSuggestion (line 57) | class TestSuggestion(unittest.TestCase): method test_suggested (line 59) | def test_suggested(self): FILE: tests/networks/layers/test_gmm.py class GMMTestCase (line 263) | class GMMTestCase(unittest.TestCase): method setUp (line 264) | def setUp(self): method tearDown (line 269) | def tearDown(self) -> None: method test_cuda (line 278) | def test_cuda(self, test_case_description, mixture_count, class_count,... method test_load (line 310) | def test_load(self): FILE: tests/networks/layers/test_grid_pull.py function make_grid (line 30) | def make_grid(shape, dtype=None, device=None, requires_grad=True): class TestGridPull (line 65) | class TestGridPull(unittest.TestCase): method test_grid_pull (line 67) | def test_grid_pull(self, input_param, expected): FILE: tests/networks/layers/test_hilbert_transform.py function create_expected_numpy_output (line 23) | def create_expected_numpy_output(input_datum, **kwargs): class TestHilbertTransformCPU (line 113) | class TestHilbertTransformCPU(unittest.TestCase): method test_value (line 115) | def test_value(self, arguments, image, expected_data, atol): FILE: tests/networks/layers/test_lltm.py class TestLLTM (line 31) | class TestLLTM(unittest.TestCase): method test_value (line 34) | def test_value(self, input_param, expected_h, expected_c): method test_value_cuda (line 47) | def test_value_cuda(self, input_param, expected_h, expected_c): FILE: tests/networks/layers/test_median_filter.py class MedianFilterTestCase (line 23) | class MedianFilterTestCase(unittest.TestCase): method test_3d (line 26) | def test_3d(self, input_tensor, radius): method test_3d_radii (line 34) | def test_3d_radii(self): method test_wrong_args (line 45) | def test_wrong_args(self): FILE: tests/networks/layers/test_polyval.py class TestPolyval (line 33) | class TestPolyval(unittest.TestCase): method test_floats (line 36) | def test_floats(self, coef, x, expected): method test_gpu (line 41) | def test_gpu(self, coef, x, expected): FILE: tests/networks/layers/test_preset_filters.py class _TestFilter (line 65) | class _TestFilter: method test_init (line 67) | def test_init(self, spatial_dims, size, expected): method test_forward (line 72) | def test_forward(self): class TestApplyFilter (line 78) | class TestApplyFilter(unittest.TestCase): method test_init_and_forward_2d (line 80) | def test_init_and_forward_2d(self): method test_init_and_forward_3d (line 87) | def test_init_and_forward_3d(self): class MeanFilterTestCase (line 95) | class MeanFilterTestCase(_TestFilter, unittest.TestCase): method setUp (line 97) | def setUp(self) -> None: method test_init (line 101) | def test_init(self, spatial_dims, size, expected): class LaplaceFilterTestCase (line 105) | class LaplaceFilterTestCase(_TestFilter, unittest.TestCase): method setUp (line 107) | def setUp(self) -> None: method test_init (line 111) | def test_init(self, spatial_dims, size, expected): class EllipticalTestCase (line 115) | class EllipticalTestCase(_TestFilter, unittest.TestCase): method setUp (line 117) | def setUp(self) -> None: method test_init (line 121) | def test_init(self, spatial_dims, size, expected): class SharpenTestCase (line 125) | class SharpenTestCase(_TestFilter, unittest.TestCase): method setUp (line 127) | def setUp(self) -> None: method test_init (line 131) | def test_init(self, spatial_dims, size, expected): FILE: tests/networks/layers/test_savitzky_golay_filter.py class TestSavitzkyGolayCPU (line 102) | class TestSavitzkyGolayCPU(unittest.TestCase): method test_value (line 106) | def test_value(self, arguments, image, expected_data, atol, rtol=1e-5): class TestSavitzkyGolayCPUREP (line 111) | class TestSavitzkyGolayCPUREP(unittest.TestCase): method test_value (line 115) | def test_value(self, arguments, image, expected_data, atol, rtol=1e-5): class TestSavitzkyGolayGPU (line 121) | class TestSavitzkyGolayGPU(unittest.TestCase): method test_value (line 125) | def test_value(self, arguments, image, expected_data, atol, rtol=1e-5): class TestSavitzkyGolayGPUREP (line 131) | class TestSavitzkyGolayGPUREP(unittest.TestCase): method test_value (line 135) | def test_value(self, arguments, image, expected_data, atol, rtol=1e-5): FILE: tests/networks/layers/test_separable_filter.py class SeparableFilterTestCase (line 22) | class SeparableFilterTestCase(unittest.TestCase): method test_1d (line 24) | def test_1d(self): method test_2d (line 33) | def test_2d(self): method test_3d (line 49) | def test_3d(self): method test_wrong_args (line 81) | def test_wrong_args(self): FILE: tests/networks/layers/test_skip_connection.py class TestSkipConnection (line 33) | class TestSkipConnection(unittest.TestCase): method test_shape (line 36) | def test_shape(self, input_param, input_shape, expected_shape): method test_wrong_mode (line 42) | def test_wrong_mode(self): FILE: tests/networks/layers/test_vector_quantizer.py class TestEMA (line 28) | class TestEMA(unittest.TestCase): method test_ema_shape (line 30) | def test_ema_shape(self, input_param, input_shape, output_shape): method test_ema_quantize (line 44) | def test_ema_quantize(self, input_param, input_shape, output_shape): method test_ema (line 52) | def test_ema(self): class TestVectorQuantizer (line 72) | class TestVectorQuantizer(unittest.TestCase): method test_vector_quantizer_shape (line 74) | def test_vector_quantizer_shape(self, input_param, input_shape, output... method test_vector_quantizer_quantize (line 81) | def test_vector_quantizer_quantize(self, input_param, input_shape, out... FILE: tests/networks/layers/test_weight_init.py class TestWeightInit (line 34) | class TestWeightInit(unittest.TestCase): method test_shape (line 37) | def test_shape(self, input_param, input_shape): method test_ill_arg (line 43) | def test_ill_arg(self, input_param, input_shape): FILE: tests/networks/nets/dints/test_dints_cell.py class TestCell (line 100) | class TestCell(unittest.TestCase): method test_cell_3d (line 103) | def test_cell_3d(self, input_param, ops, weight, input_shape, expected... FILE: tests/networks/nets/dints/test_dints_mixop.py class TestMixOP (line 63) | class TestMixOP(unittest.TestCase): method test_mixop_3d (line 65) | def test_mixop_3d(self, input_param, ops, weight, input_shape, expecte... method test_mixop_2d (line 72) | def test_mixop_2d(self, input_param, ops, weight, input_shape, expecte... method test_script (line 78) | def test_script(self, input_param, ops, weight, input_shape, expected_... FILE: tests/networks/nets/regunet/test_localnet.py class TestLocalNet (line 64) | class TestLocalNet(unittest.TestCase): method test_shape (line 66) | def test_shape(self, input_param, input_shape, expected_shape): method test_extract_levels (line 73) | def test_extract_levels(self, input_param, input_shape, expected_shape): method test_script (line 78) | def test_script(self): FILE: tests/networks/nets/regunet/test_regunet.py class TestREGUNET (line 65) | class TestREGUNET(unittest.TestCase): method test_shape (line 67) | def test_shape(self, input_param, input_shape, expected_shape): method test_ill_shape (line 73) | def test_ill_shape(self): method test_script (line 80) | def test_script(self): FILE: tests/networks/nets/test_ahnet.py class TestFCN (line 128) | class TestFCN(unittest.TestCase): method test_fcn_shape (line 131) | def test_fcn_shape(self, input_param, input_shape, expected_shape): class TestFCNWithPretrain (line 138) | class TestFCNWithPretrain(unittest.TestCase): method test_fcn_shape (line 141) | def test_fcn_shape(self, input_param, input_shape, expected_shape): class TestMCFCN (line 148) | class TestMCFCN(unittest.TestCase): method test_mcfcn_shape (line 150) | def test_mcfcn_shape(self, input_param, input_shape, expected_shape): class TestMCFCNWithPretrain (line 157) | class TestMCFCNWithPretrain(unittest.TestCase): method test_mcfcn_shape (line 159) | def test_mcfcn_shape(self, input_param, input_shape, expected_shape): class TestAHNET (line 166) | class TestAHNET(unittest.TestCase): method test_ahnet_shape_2d (line 168) | def test_ahnet_shape_2d(self, input_param, input_shape, expected_shape): method test_ahnet_shape_3d (line 176) | def test_ahnet_shape_3d(self, input_param, input_shape, expected_shape): method test_script (line 183) | def test_script(self): class TestAHNETWithPretrain (line 194) | class TestAHNETWithPretrain(unittest.TestCase): method test_ahnet_shape (line 198) | def test_ahnet_shape(self, input_param, input_shape, expected_shape, f... method test_initialize_pretrained (line 207) | def test_initialize_pretrained(self): FILE: tests/networks/nets/test_attentionunet.py function get_net_parameters (line 23) | def get_net_parameters(net: nn.Module) -> int: class TestAttentionUnet (line 28) | class TestAttentionUnet(unittest.TestCase): method test_attention_block (line 29) | def test_attention_block(self): method test_attentionunet (line 46) | def test_attentionunet(self): method test_attentionunet_kernel_size (line 58) | def test_attentionunet_kernel_size(self): method test_attentionunet_gpu (line 73) | def test_attentionunet_gpu(self): FILE: tests/networks/nets/test_autoencoder.py class TestAutoEncoder (line 76) | class TestAutoEncoder(unittest.TestCase): method test_shape (line 78) | def test_shape(self, input_param, input_shape, expected_shape): method test_script (line 84) | def test_script(self): method test_channel_stride_difference (line 89) | def test_channel_stride_difference(self): FILE: tests/networks/nets/test_autoencoderkl.py class TestAutoEncoderKL (line 171) | class TestAutoEncoderKL(unittest.TestCase): method test_shape (line 173) | def test_shape(self, input_param, input_shape, expected_shape, expecte... method test_shape_with_convtranspose_and_checkpointing (line 182) | def test_shape_with_convtranspose_and_checkpointing( method test_model_channels_not_multiple_of_norm_num_group (line 194) | def test_model_channels_not_multiple_of_norm_num_group(self): method test_model_num_channels_not_same_size_of_attention_levels (line 207) | def test_model_num_channels_not_same_size_of_attention_levels(self): method test_model_num_channels_not_same_size_of_num_res_blocks (line 220) | def test_model_num_channels_not_same_size_of_num_res_blocks(self): method test_shape_reconstruction (line 233) | def test_shape_reconstruction(self): method test_shape_reconstruction_with_convtranspose_and_checkpointing (line 240) | def test_shape_reconstruction_with_convtranspose_and_checkpointing(self): method test_shape_encode (line 249) | def test_shape_encode(self): method test_shape_encode_with_convtranspose_and_checkpointing (line 257) | def test_shape_encode_with_convtranspose_and_checkpointing(self): method test_shape_sampling (line 267) | def test_shape_sampling(self): method test_shape_sampling_convtranspose_and_checkpointing (line 276) | def test_shape_sampling_convtranspose_and_checkpointing(self): method test_shape_decode (line 287) | def test_shape_decode(self): method test_shape_decode_convtranspose_and_checkpointing (line 294) | def test_shape_decode_convtranspose_and_checkpointing(self): method test_compatibility_with_monai_generative (line 304) | def test_compatibility_with_monai_generative(self): FILE: tests/networks/nets/test_basic_unet.py class TestBasicUNET (line 85) | class TestBasicUNET(unittest.TestCase): method test_shape (line 87) | def test_shape(self, input_param, input_shape, expected_shape): method test_script (line 95) | def test_script(self): FILE: tests/networks/nets/test_basic_unetplusplus.py class TestBasicUNETPlusPlus (line 85) | class TestBasicUNETPlusPlus(unittest.TestCase): method test_shape (line 87) | def test_shape(self, input_param, input_shape, expected_shape): method test_deep_supervision_shape (line 95) | def test_deep_supervision_shape(self): method test_script (line 102) | def test_script(self): FILE: tests/networks/nets/test_bundle_init_bundle.py class TestBundleInit (line 25) | class TestBundleInit(unittest.TestCase): method test_bundle (line 26) | def test_bundle(self): FILE: tests/networks/nets/test_cell_sam_wrapper.py class TestResNetDS (line 37) | class TestResNetDS(unittest.TestCase): method test_shape (line 40) | def test_shape(self, input_param, input_shape, expected_shape): method test_ill_arg0 (line 46) | def test_ill_arg0(self): method test_ill_arg1 (line 51) | def test_ill_arg1(self): FILE: tests/networks/nets/test_checkpointunet.py class TestCheckpointUNet (line 123) | class TestCheckpointUNet(unittest.TestCase): method test_shape (line 125) | def test_shape(self, input_param, input_shape, expected_shape): method test_checkpointing_equivalence_eval (line 138) | def test_checkpointing_equivalence_eval(self): method test_checkpointing_activates_training (line 166) | def test_checkpointing_activates_training(self): FILE: tests/networks/nets/test_controlnet.py class TestControlNet (line 155) | class TestControlNet(unittest.TestCase): method test_shape_unconditioned_models (line 158) | def test_shape_unconditioned_models(self, input_param, expected_output... method test_shape_conditioned_models (line 172) | def test_shape_conditioned_models(self, input_param, expected_output_s... method test_compatibility_with_monai_generative (line 185) | def test_compatibility_with_monai_generative(self): FILE: tests/networks/nets/test_daf3d.py class TestDAF3D (line 44) | class TestDAF3D(unittest.TestCase): method test_shape (line 46) | def test_shape(self, input_param, input_shape, expected_shape): method test_script (line 55) | def test_script(self): FILE: tests/networks/nets/test_densenet.py class TestPretrainedDENSENET (line 81) | class TestPretrainedDENSENET(unittest.TestCase): method test_121_2d_shape_pretrain (line 84) | def test_121_2d_shape_pretrain(self, model, input_param, input_shape, ... method test_pretrain_consistency (line 93) | def test_pretrain_consistency(self, model, input_param, input_shape): class TestDENSENET (line 105) | class TestDENSENET(unittest.TestCase): method test_densenet_shape (line 107) | def test_densenet_shape(self, model, input_param, input_shape, expecte... method test_script (line 114) | def test_script(self, model, input_param, input_shape, expected_shape): FILE: tests/networks/nets/test_diffusion_model_unet.py class TestDiffusionModelUNet2D (line 295) | class TestDiffusionModelUNet2D(unittest.TestCase): method test_shape_unconditioned_models (line 298) | def test_shape_unconditioned_models(self, input_param): method test_timestep_with_wrong_shape (line 305) | def test_timestep_with_wrong_shape(self): method test_shape_with_different_in_channel_out_channel (line 320) | def test_shape_with_different_in_channel_out_channel(self): method test_model_channels_not_multiple_of_norm_num_group (line 336) | def test_model_channels_not_multiple_of_norm_num_group(self): method test_attention_levels_with_different_length_num_head_channels (line 348) | def test_attention_levels_with_different_length_num_head_channels(self): method test_num_res_blocks_with_different_length_channels (line 361) | def test_num_res_blocks_with_different_length_channels(self): method test_shape_conditioned_models (line 374) | def test_shape_conditioned_models(self): method test_with_conditioning_cross_attention_dim_none (line 396) | def test_with_conditioning_cross_attention_dim_none(self): method test_context_with_conditioning_none (line 412) | def test_context_with_conditioning_none(self): method test_shape_conditioned_models_class_conditioning (line 434) | def test_shape_conditioned_models_class_conditioning(self): method test_conditioned_models_no_class_labels (line 455) | def test_conditioned_models_no_class_labels(self): method test_model_channels_not_same_size_of_attention_levels (line 472) | def test_model_channels_not_same_size_of_attention_levels(self): method test_conditioned_2d_models_shape (line 488) | def test_conditioned_2d_models_shape(self, input_param): class TestDiffusionModelUNet3D (line 495) | class TestDiffusionModelUNet3D(unittest.TestCase): method test_shape_unconditioned_models (line 498) | def test_shape_unconditioned_models(self, input_param): method test_shape_with_different_in_channel_out_channel (line 505) | def test_shape_with_different_in_channel_out_channel(self): method test_shape_conditioned_models (line 522) | def test_shape_conditioned_models(self): method test_wrong_dropout (line 545) | def test_wrong_dropout(self, input_param): method test_right_dropout (line 551) | def test_right_dropout(self, input_param): method test_compatibility_with_monai_generative (line 555) | def test_compatibility_with_monai_generative(self): FILE: tests/networks/nets/test_dints_network.py class TestDints (line 117) | class TestDints(unittest.TestCase): method test_dints_inference (line 119) | def test_dints_inference(self, dints_grid_params, dints_params, input_... method test_dints_search (line 134) | def test_dints_search(self, dints_grid_params, dints_params, input_sha... class TestDintsTS (line 156) | class TestDintsTS(unittest.TestCase): method test_script (line 158) | def test_script(self, dints_grid_params, dints_params, input_shape, _): FILE: tests/networks/nets/test_discriminator.py class TestDiscriminator (line 44) | class TestDiscriminator(unittest.TestCase): method test_shape (line 46) | def test_shape(self, input_param, input_data, expected_shape): method test_script (line 52) | def test_script(self): FILE: tests/networks/nets/test_dynunet.py class TestDynUNet (line 127) | class TestDynUNet(unittest.TestCase): method test_shape (line 129) | def test_shape(self, input_param, input_shape, expected_shape): method test_script (line 137) | def test_script(self): class TestDynUNetWithInstanceNorm3dNVFuser (line 146) | class TestDynUNetWithInstanceNorm3dNVFuser(unittest.TestCase): method setUp (line 147) | def setUp(self): method test_consistency (line 157) | def test_consistency(self, input_param, input_shape, _): class TestDynUNetDeepSupervision (line 179) | class TestDynUNetDeepSupervision(unittest.TestCase): method test_shape (line 181) | def test_shape(self, input_param, input_shape, expected_shape): FILE: tests/networks/nets/test_efficientnet.py function get_model_names (line 51) | def get_model_names(): function get_expected_model_shape (line 55) | def get_expected_model_shape(model_name): function get_block_args (line 69) | def get_block_args(): function make_shape_cases (line 89) | def make_shape_cases( class TestEFFICIENTNET (line 253) | class TestEFFICIENTNET(unittest.TestCase): method test_shape (line 255) | def test_shape(self, input_param, input_shape, expected_shape): method test_non_default_shapes (line 269) | def test_non_default_shapes(self, input_param, input_shape, expected_s... method test_kitty_pretrained (line 291) | def test_kitty_pretrained(self, input_param, image_path, expected_label): method test_drop_connect_layer (line 322) | def test_drop_connect_layer(self): method test_block_args_decode (line 349) | def test_block_args_decode(self): method test_ill_arg (line 360) | def test_ill_arg(self): method test_func_get_efficientnet_input_shape (line 367) | def test_func_get_efficientnet_input_shape(self): method test_script (line 373) | def test_script(self): class TestExtractFeatures (line 381) | class TestExtractFeatures(unittest.TestCase): method test_shape (line 383) | def test_shape(self, input_param, input_shape, expected_shapes): FILE: tests/networks/nets/test_flexible_unet.py class DummyEncoder (line 36) | class DummyEncoder(BaseEncoder): method get_encoder_parameters (line 38) | def get_encoder_parameters(cls): method num_channels_per_output (line 48) | def num_channels_per_output(cls): method num_outputs (line 52) | def num_outputs(cls): method get_encoder_names (line 56) | def get_encoder_names(cls): function get_model_names (line 63) | def get_model_names(): function get_resnet_names (line 67) | def get_resnet_names(): function make_shape_cases (line 71) | def make_shape_cases( function make_error_case (line 109) | def make_error_case(): class TestFLEXIBLEUNET (line 283) | class TestFLEXIBLEUNET(unittest.TestCase): method test_shape (line 285) | def test_shape(self, input_param, input_shape, expected_shape): method test_pretrain (line 299) | def test_pretrain(self, flexunet_input_param, feature_extractor_class,... method test_error_raise (line 318) | def test_error_raise(self, input_param): class TestFlexUNetEncoderRegister (line 323) | class TestFlexUNetEncoderRegister(unittest.TestCase): method test_regist (line 325) | def test_regist(self, encoder): FILE: tests/networks/nets/test_fullyconnectednet.py class TestFullyConnectedNet (line 44) | class TestFullyConnectedNet(unittest.TestCase): method setUp (line 46) | def setUp(self): method test_fc_shape (line 55) | def test_fc_shape(self, dropout): method test_vfc_shape (line 61) | def test_vfc_shape(self, input_param, input_shape, expected_shape): FILE: tests/networks/nets/test_generator.py class TestGenerator (line 44) | class TestGenerator(unittest.TestCase): method test_shape (line 46) | def test_shape(self, input_param, input_data, expected_shape): method test_script (line 52) | def test_script(self): FILE: tests/networks/nets/test_globalnet.py class TestAffineHead (line 67) | class TestAffineHead(unittest.TestCase): method test_shape (line 69) | def test_shape(self, input_param, theta, expected_val): class TestGlobalNet (line 80) | class TestGlobalNet(unittest.TestCase): method test_shape (line 82) | def test_shape(self, input_param, input_shape, expected_shape): method test_script (line 96) | def test_script(self, input_param, input_shape, _): FILE: tests/networks/nets/test_highresnet.py class TestHighResNet (line 50) | class TestHighResNet(DistTestCase): method test_shape (line 52) | def test_shape(self, input_param, input_shape, expected_shape): method test_script (line 59) | def test_script(self): FILE: tests/networks/nets/test_hovernet.py function check_branch (line 61) | def check_branch(branch, mode): function check_output (line 89) | def check_output(out_block, mode): function check_kernels (line 103) | def check_kernels(net, mode): class TestHoverNet (line 156) | class TestHoverNet(unittest.TestCase): method test_shape (line 158) | def test_shape(self, input_param, input_shape, expected_shapes): method test_decoder_padding_shape (line 167) | def test_decoder_padding_shape(self, input_param, input_shape, expecte... method test_script (line 181) | def test_script(self): method test_ill_input_shape (line 187) | def test_ill_input_shape(self): method test_kernels_strides (line 193) | def test_kernels_strides(self): method test_freeze_encoder (line 202) | def test_freeze_encoder(self): method test_ill_input_hyper_params (line 212) | def test_ill_input_hyper_params(self, input_param): FILE: tests/networks/nets/test_masked_autoencoder_vit.py class TestMaskedAutoencoderViT (line 81) | class TestMaskedAutoencoderViT(unittest.TestCase): method test_shape (line 83) | def test_shape(self, input_param, input_shape, expected_shape): method test_frozen_pos_embedding (line 89) | def test_frozen_pos_embedding(self): method test_ill_arg (line 95) | def test_ill_arg(self, input_param): method test_access_attn_matrix (line 99) | def test_access_attn_matrix(self): method test_masking_ratio (line 121) | def test_masking_ratio(self): FILE: tests/networks/nets/test_mednext.py class TestMedNeXt (line 55) | class TestMedNeXt(unittest.TestCase): method test_shape (line 57) | def test_shape(self, input_param, input_shape, expected_shape): method test_shape2 (line 68) | def test_shape2(self, input_param, input_shape, expected_shape): method test_ill_arg (line 85) | def test_ill_arg(self): method test_mednext_variants (line 90) | def test_mednext_variants(self, model, input_param, input_shape, expec... FILE: tests/networks/nets/test_milmodel.py class TestMilModel (line 65) | class TestMilModel(unittest.TestCase): method test_shape (line 67) | def test_shape(self, input_param, input_shape, expected_shape): method test_ill_args (line 74) | def test_ill_args(self): method test_script (line 84) | def test_script(self): FILE: tests/networks/nets/test_net_adapter.py class TestNetAdapter (line 44) | class TestNetAdapter(unittest.TestCase): method test_shape (line 46) | def test_shape(self, input_param, input_shape, expected_shape): method test_script (line 57) | def test_script(self, input_param, input_shape, expected_shape): FILE: tests/networks/nets/test_network_consistency.py class TestNetworkConsistency (line 40) | class TestNetworkConsistency(unittest.TestCase): method setUp (line 41) | def setUp(self): method tearDown (line 44) | def tearDown(self): method test_network_consistency (line 52) | def test_network_consistency(self, net_name, data_path, json_path): method check_output_consistency (line 77) | def check_output_consistency(self, actual, expected): FILE: tests/networks/nets/test_patch_gan_dicriminator.py class TestPatchGAN (line 118) | class TestPatchGAN(unittest.TestCase): method test_shape (line 120) | def test_shape(self, input_param, input_data, expected_shape_feature, ... method test_script (line 127) | def test_script(self): class TestMultiscalePatchGAN (line 144) | class TestMultiscalePatchGAN(unittest.TestCase): method test_shape (line 146) | def test_shape(self, input_param, input_data, expected_shape, features... method test_too_small_shape (line 155) | def test_too_small_shape(self): method test_script (line 159) | def test_script(self): FILE: tests/networks/nets/test_quicknat.py class TestQuicknat (line 40) | class TestQuicknat(unittest.TestCase): method test_shape (line 42) | def test_shape(self, input_param, input_shape, expected_shape): method test_script (line 50) | def test_script(self): FILE: tests/networks/nets/test_resnet.py class TestResNet (line 244) | class TestResNet(unittest.TestCase): method setUp (line 245) | def setUp(self): method tearDown (line 248) | def tearDown(self): method test_resnet_shape (line 256) | def test_resnet_shape(self, model, input_param, input_shape, expected_... method test_resnet_pretrained (line 268) | def test_resnet_pretrained(self, model, input_param, _input_shape, _ex... method test_script (line 314) | def test_script(self, model, input_param, input_shape, expected_shape): class TestExtractFeatures (line 321) | class TestExtractFeatures(unittest.TestCase): method test_shape (line 323) | def test_shape(self, input_param, input_shape, expected_shapes): FILE: tests/networks/nets/test_restormer.py class TestMDTATransformerBlock (line 89) | class TestMDTATransformerBlock(unittest.TestCase): method test_shape (line 93) | def test_shape(self, spatial_dims, dim, heads, ffn_factor, bias, layer... class TestOverlapPatchEmbed (line 111) | class TestOverlapPatchEmbed(unittest.TestCase): method test_shape (line 114) | def test_shape(self, spatial_dims, in_channels, embed_dim, input_shape... class TestRestormer (line 121) | class TestRestormer(unittest.TestCase): method test_shape (line 125) | def test_shape(self, input_param, input_shape, expected_shape): method test_small_input_error_2d (line 134) | def test_small_input_error_2d(self): method test_small_input_error_3d (line 140) | def test_small_input_error_3d(self): FILE: tests/networks/nets/test_segresnet.py class TestResNet (line 68) | class TestResNet(unittest.TestCase): method test_shape (line 70) | def test_shape(self, input_param, input_shape, expected_shape): method test_ill_arg (line 76) | def test_ill_arg(self): method test_script (line 80) | def test_script(self): class TestResNetVAE (line 87) | class TestResNetVAE(unittest.TestCase): method test_vae_shape (line 89) | def test_vae_shape(self, input_param, input_shape, expected_shape): method test_script (line 95) | def test_script(self): FILE: tests/networks/nets/test_segresnet_ds.py class TestSegResNetDS (line 65) | class TestSegResNetDS(unittest.TestCase): method test_shape (line 67) | def test_shape(self, input_param, input_shape, expected_shape): method test_shape_ds2 (line 74) | def test_shape_ds2(self, input_param, input_shape, expected_shape): method test_shape2 (line 86) | def test_shape2(self, input_param, input_shape, expected_shape): method test_shape3 (line 117) | def test_shape3(self, input_param, input_shape, expected_shapes): method test_ill_arg (line 131) | def test_ill_arg(self): method test_script (line 138) | def test_script(self): FILE: tests/networks/nets/test_senet.py class TestSENET (line 61) | class TestSENET(unittest.TestCase): method test_senet_shape (line 63) | def test_senet_shape(self, net, net_args): method test_script (line 72) | def test_script(self, net, net_args): class TestPretrainedSENET (line 78) | class TestPretrainedSENET(unittest.TestCase): method setUp (line 79) | def setUp(self): method tearDown (line 121) | def tearDown(self): method test_senet_shape (line 125) | def test_senet_shape(self, model, input_param): method test_pretrain_consistency (line 136) | def test_pretrain_consistency(self, model, input_param): FILE: tests/networks/nets/test_spade_autoencoderkl.py class TestSPADEAutoEncoderKL (line 199) | class TestSPADEAutoEncoderKL(unittest.TestCase): method test_shape (line 201) | def test_shape(self, input_param, input_shape, input_seg, expected_sha... method test_model_channels_not_multiple_of_norm_num_group (line 209) | def test_model_channels_not_multiple_of_norm_num_group(self): method test_model_channels_not_same_size_of_attention_levels (line 224) | def test_model_channels_not_same_size_of_attention_levels(self): method test_model_channels_not_same_size_of_num_res_blocks (line 239) | def test_model_channels_not_same_size_of_num_res_blocks(self): method test_shape_encode (line 253) | def test_shape_encode(self): method test_shape_sampling (line 261) | def test_shape_sampling(self): method test_shape_decode (line 270) | def test_shape_decode(self): method test_wrong_shape_decode (line 278) | def test_wrong_shape_decode(self): FILE: tests/networks/nets/test_spade_diffusion_model_unet.py class TestSPADEDiffusionModelUNet2D (line 266) | class TestSPADEDiffusionModelUNet2D(unittest.TestCase): method test_shape_unconditioned_models (line 269) | def test_shape_unconditioned_models(self, input_param): method test_timestep_with_wrong_shape (line 280) | def test_timestep_with_wrong_shape(self): method test_label_with_wrong_shape (line 298) | def test_label_with_wrong_shape(self): method test_shape_with_different_in_channel_out_channel (line 314) | def test_shape_with_different_in_channel_out_channel(self): method test_model_channels_not_multiple_of_norm_num_group (line 333) | def test_model_channels_not_multiple_of_norm_num_group(self): method test_attention_levels_with_different_length_num_head_channels (line 346) | def test_attention_levels_with_different_length_num_head_channels(self): method test_num_res_blocks_with_different_length_channels (line 360) | def test_num_res_blocks_with_different_length_channels(self): method test_shape_conditioned_models (line 374) | def test_shape_conditioned_models(self): method test_with_conditioning_cross_attention_dim_none (line 399) | def test_with_conditioning_cross_attention_dim_none(self): method test_context_with_conditioning_none (line 416) | def test_context_with_conditioning_none(self): method test_shape_conditioned_models_class_conditioning (line 440) | def test_shape_conditioned_models_class_conditioning(self): method test_conditioned_models_no_class_labels (line 463) | def test_conditioned_models_no_class_labels(self): method test_model_channels_not_same_size_of_attention_levels (line 484) | def test_model_channels_not_same_size_of_attention_levels(self): method test_conditioned_2d_models_shape (line 501) | def test_conditioned_2d_models_shape(self, input_param): class TestDiffusionModelUNet3D (line 513) | class TestDiffusionModelUNet3D(unittest.TestCase): method test_shape_unconditioned_models (line 516) | def test_shape_unconditioned_models(self, input_param): method test_shape_with_different_in_channel_out_channel (line 527) | def test_shape_with_different_in_channel_out_channel(self): method test_shape_conditioned_models (line 549) | def test_shape_conditioned_models(self): FILE: tests/networks/nets/test_spade_vaegan.py function create_semantic_data (line 33) | def create_semantic_data(shape: list, semantic_regions: int): class TestSpadeNet (line 77) | class TestSpadeNet(unittest.TestCase): method test_forward_2d (line 79) | def test_forward_2d(self, input_param): method test_encoder_decoder (line 98) | def test_encoder_decoder(self, input_param): method test_forward_3d (line 114) | def test_forward_3d(self, input_param): method test_shape_wrong (line 131) | def test_shape_wrong(self): FILE: tests/networks/nets/test_swin_unetr.py class TestSWINUNETR (line 74) | class TestSWINUNETR(unittest.TestCase): method test_shape (line 77) | def test_shape(self, input_param, input_shape, expected_shape): method test_ill_arg (line 83) | def test_ill_arg(self): method test_patch_merging (line 93) | def test_patch_merging(self): method test_filter_swinunetr (line 101) | def test_filter_swinunetr(self, input_param, key, value): FILE: tests/networks/nets/test_torchvision_fc_model.py class TestTorchVisionFCModel (line 155) | class TestTorchVisionFCModel(unittest.TestCase): method test_without_pretrained (line 161) | def test_without_pretrained(self, input_param, input_shape, expected_s... method test_with_pretrained (line 179) | def test_with_pretrained(self, input_param, input_shape, expected_shap... class TestLookup (line 189) | class TestLookup(unittest.TestCase): method test_get_module (line 190) | def test_get_module(self): FILE: tests/networks/nets/test_transchex.py class TestTranschex (line 46) | class TestTranschex(unittest.TestCase): method test_shape (line 48) | def test_shape(self, input_param, expected_shape): method test_ill_arg (line 55) | def test_ill_arg(self): FILE: tests/networks/nets/test_transformer.py class TestDecoderOnlyTransformer (line 48) | class TestDecoderOnlyTransformer(unittest.TestCase): method test_unconditioned_models (line 51) | def test_unconditioned_models(self, input_param): method test_conditioned_models (line 58) | def test_conditioned_models(self, input_param): method test_attention_dim_not_multiple_of_heads (line 63) | def test_attention_dim_not_multiple_of_heads(self): method test_dropout_rate_negative (line 70) | def test_dropout_rate_negative(self): method test_compatibility_with_monai_generative (line 82) | def test_compatibility_with_monai_generative(self): FILE: tests/networks/nets/test_unet.py class TestUNET (line 167) | class TestUNET(unittest.TestCase): method test_shape (line 169) | def test_shape(self, input_param, input_shape, expected_shape): method test_script (line 175) | def test_script(self): method test_script_without_running_stats (line 182) | def test_script_without_running_stats(self): method test_ill_input_shape (line 195) | def test_ill_input_shape(self): method test_ill_input_hyper_params (line 202) | def test_ill_input_hyper_params(self, input_param): FILE: tests/networks/nets/test_unetr.py class TestUNETR (line 52) | class TestUNETR(unittest.TestCase): method test_shape (line 54) | def test_shape(self, input_param, input_shape, expected_shape): method test_ill_arg (line 60) | def test_ill_arg(self): method test_script (line 118) | def test_script(self, input_param, input_shape, _): FILE: tests/networks/nets/test_varautoencoder.py class TestVarAutoEncoder (line 110) | class TestVarAutoEncoder(unittest.TestCase): method test_shape (line 112) | def test_shape(self, input_param, input_shape, expected_shape): method test_script (line 118) | def test_script(self): FILE: tests/networks/nets/test_vista3d.py class TestVista3d (line 58) | class TestVista3d(unittest.TestCase): method test_vista3d_shape (line 60) | def test_vista3d_shape(self, args, input_params, input_shape, expected... FILE: tests/networks/nets/test_vit.py class TestViT (line 57) | class TestViT(unittest.TestCase): method test_shape (line 59) | def test_shape(self, input_param, input_shape, expected_shape): method test_ill_arg (line 74) | def test_ill_arg( method test_script (line 102) | def test_script(self, input_param, input_shape, _): method test_access_attn_matrix (line 111) | def test_access_attn_matrix(self): FILE: tests/networks/nets/test_vitautoenc.py class TestVitAutoenc (line 65) | class TestVitAutoenc(unittest.TestCase): method setUp (line 66) | def setUp(self): method tearDown (line 70) | def tearDown(self): method test_shape (line 75) | def test_shape(self, input_param, input_shape, expected_shape): method test_ill_arg (line 91) | def test_ill_arg( FILE: tests/networks/nets/test_vnet.py class TestVNet (line 57) | class TestVNet(unittest.TestCase): method test_vnet_shape (line 68) | def test_vnet_shape(self, input_param, input_shape, expected_shape): method test_script (line 74) | def test_script(self): FILE: tests/networks/nets/test_voxelmorph.py class TestVOXELMORPH (line 247) | class TestVOXELMORPH(unittest.TestCase): method test_shape (line 249) | def test_shape(self, input_param, input_shape, expected_shape): method test_script (line 255) | def test_script(self): method test_ill_input_hyper_params (line 267) | def test_ill_input_hyper_params(self, input_param): method test_ill_input_shape (line 272) | def test_ill_input_shape(self, input_param, moving_shape, fixed_shape): FILE: tests/networks/nets/test_vqvae.py class TestVQVAE (line 103) | class TestVQVAE(unittest.TestCase): method test_shape (line 105) | def test_shape(self, input_param, input_shape, expected_shape): method test_shape_with_checkpoint (line 116) | def test_shape_with_checkpoint(self, input_param, input_shape, expecte... method test_channels_not_same_size_of_num_res_channels (line 146) | def test_channels_not_same_size_of_num_res_channels(self): method test_channels_not_same_size_of_downsample_parameters (line 158) | def test_channels_not_same_size_of_downsample_parameters(self): method test_channels_not_same_size_of_upsample_parameters (line 170) | def test_channels_not_same_size_of_upsample_parameters(self): method test_downsample_parameters_not_sequence_or_int (line 182) | def test_downsample_parameters_not_sequence_or_int(self): method test_upsample_parameters_not_sequence_or_int (line 194) | def test_upsample_parameters_not_sequence_or_int(self): method test_downsample_parameter_length_different_4 (line 206) | def test_downsample_parameter_length_different_4(self): method test_upsample_parameter_length_different_5 (line 218) | def test_upsample_parameter_length_different_5(self): method test_encode_shape (line 230) | def test_encode_shape(self): method test_index_quantize_shape (line 240) | def test_index_quantize_shape(self): method test_decode_shape (line 250) | def test_decode_shape(self): method test_decode_samples_shape (line 260) | def test_decode_samples_shape(self): FILE: tests/networks/nets/test_vqvaetransformer_inferer.py class TestVQVAETransformerInferer (line 82) | class TestVQVAETransformerInferer(unittest.TestCase): method test_prediction_shape (line 85) | def test_prediction_shape( method test_prediction_shape_shorter_sequence (line 106) | def test_prediction_shape_shorter_sequence( method test_sample (line 130) | def test_sample(self): method test_sample_shorter_sequence (line 174) | def test_sample_shorter_sequence(self): method test_get_likelihood (line 218) | def test_get_likelihood( method test_get_likelihood_shorter_sequence (line 241) | def test_get_likelihood_shorter_sequence( method test_get_likelihood_resampling (line 267) | def test_get_likelihood_resampling( FILE: tests/networks/schedulers/test_scheduler_ddim.py class TestDDPMScheduler (line 37) | class TestDDPMScheduler(unittest.TestCase): method test_add_noise (line 39) | def test_add_noise(self, input_param, input_shape, expected_shape): method test_step_shape (line 50) | def test_step_shape(self, input_param, input_shape, expected_shape): method test_full_timestep_loop (line 60) | def test_full_timestep_loop(self, input_param, input_shape, expected_o... method test_set_timesteps (line 70) | def test_set_timesteps(self): method test_set_timesteps_with_num_inference_steps_bigger_than_num_train_timesteps (line 76) | def test_set_timesteps_with_num_inference_steps_bigger_than_num_train_... FILE: tests/networks/schedulers/test_scheduler_ddpm.py class TestDDPMScheduler (line 43) | class TestDDPMScheduler(unittest.TestCase): method test_add_noise (line 45) | def test_add_noise(self, input_param, input_shape, expected_shape): method test_step_shape (line 55) | def test_step_shape(self, input_param, input_shape, expected_shape): method test_full_timestep_loop (line 64) | def test_full_timestep_loop(self, input_param, input_shape, expected_o... method test_get_velocity_shape (line 75) | def test_get_velocity_shape(self, input_param, input_shape, expected_s... method test_step_learned (line 82) | def test_step_learned(self): method test_set_timesteps (line 91) | def test_set_timesteps(self): method test_set_timesteps_with_num_inference_steps_bigger_than_num_train_timesteps (line 97) | def test_set_timesteps_with_num_inference_steps_bigger_than_num_train_... FILE: tests/networks/schedulers/test_scheduler_pndm.py class TestDDPMScheduler (line 41) | class TestDDPMScheduler(unittest.TestCase): method test_add_noise (line 43) | def test_add_noise(self, input_param, input_shape, expected_shape): method test_step_shape (line 52) | def test_step_shape(self, input_param, input_shape, expected_shape): method test_full_timestep_loop (line 62) | def test_full_timestep_loop(self, input_param, input_shape, expected_o... method test_timestep_two_loops (line 73) | def test_timestep_two_loops(self, input_param, input_shape, expected_o... method test_set_timesteps (line 89) | def test_set_timesteps(self): method test_set_timesteps_prk (line 95) | def test_set_timesteps_prk(self): method test_set_timesteps_with_num_inference_steps_bigger_than_num_train_timesteps (line 101) | def test_set_timesteps_with_num_inference_steps_bigger_than_num_train_... FILE: tests/networks/schedulers/test_scheduler_rflow.py class TestRFlowScheduler (line 60) | class TestRFlowScheduler(unittest.TestCase): method test_add_noise (line 62) | def test_add_noise(self, input_param, input_shape, expected_shape): method test_step_shape (line 72) | def test_step_shape(self, input_param, input_shape, expected_shape): method test_full_timestep_loop (line 82) | def test_full_timestep_loop(self, input_param, input_shape, expected_o... method test_set_timesteps (line 92) | def test_set_timesteps(self): method test_set_timesteps_with_num_inference_steps_bigger_than_num_train_timesteps (line 98) | def test_set_timesteps_with_num_inference_steps_bigger_than_num_train_... FILE: tests/networks/test_bundle_onnx_export.py class TestONNXExport (line 31) | class TestONNXExport(unittest.TestCase): method setUp (line 32) | def setUp(self): method tearDown (line 37) | def tearDown(self): method test_onnx_export (line 44) | def test_onnx_export(self, use_trace): FILE: tests/networks/test_convert_to_onnx.py class TestConvertToOnnx (line 45) | class TestConvertToOnnx(unittest.TestCase): method test_unet (line 47) | def test_unet(self, device, use_trace, use_ort): method test_seg_res_net (line 72) | def test_seg_res_net(self, device, use_ort): FILE: tests/networks/test_convert_to_torchscript.py class TestConvertToTorchScript (line 24) | class TestConvertToTorchScript(unittest.TestCase): method test_value (line 26) | def test_value(self): FILE: tests/networks/test_convert_to_trt.py class TestConvertToTRT (line 42) | class TestConvertToTRT(unittest.TestCase): method setUp (line 43) | def setUp(self): method tearDown (line 46) | def tearDown(self): method test_value (line 53) | def test_value(self, precision): FILE: tests/networks/test_save_state.py class TestSaveState (line 45) | class TestSaveState(unittest.TestCase): method test_file (line 61) | def test_file(self, src, expected_keys, create_dir=True, atomic=True, ... FILE: tests/networks/test_to_onehot.py class TestToOneHot (line 46) | class TestToOneHot(unittest.TestCase): method test_shape (line 49) | def test_shape(self, input_data, expected_shape, expected_result=None): FILE: tests/networks/test_varnet.py class TestVarNet (line 34) | class TestVarNet(unittest.TestCase): method test_shape (line 36) | def test_shape(self, coil_sens_model, refinement_model, num_cascades, ... method test_script (line 48) | def test_script(self, coil_sens_model, refinement_model, num_cascades,... FILE: tests/networks/utils/test_copy_model_state.py class _TestModelOne (line 24) | class _TestModelOne(torch.nn.Module): method __init__ (line 26) | def __init__(self, n_n, n_m, n_class): method forward (line 31) | def forward(self, x): class _TestModelTwo (line 37) | class _TestModelTwo(torch.nn.Module): method __init__ (line 39) | def __init__(self, n_n, n_m, n_d, n_class): method forward (line 45) | def forward(self, x): class TestModuleState (line 59) | class TestModuleState(unittest.TestCase): method tearDown (line 61) | def tearDown(self): method test_set_state (line 65) | def test_set_state(self, device_0, device_1): method test_set_full_state (line 88) | def test_set_full_state(self, device_0, device_1): method test_set_exclude_vars (line 108) | def test_set_exclude_vars(self, device_0, device_1): method test_set_map_across (line 132) | def test_set_map_across(self, device_0, device_1): method test_set_prefix (line 159) | def test_set_prefix(self, device_0, device_1): FILE: tests/networks/utils/test_eval_mode.py class TestEvalMode (line 21) | class TestEvalMode(unittest.TestCase): method test_eval_mode (line 23) | def test_eval_mode(self): FILE: tests/networks/utils/test_freeze_layers.py class TestModuleState (line 29) | class TestModuleState(unittest.TestCase): method tearDown (line 30) | def tearDown(self): method test_freeze_vars (line 34) | def test_freeze_vars(self, device): method test_exclude_vars (line 47) | def test_exclude_vars(self, device): FILE: tests/networks/utils/test_pixelunshuffle.py class TestPixelUnshuffle (line 21) | class TestPixelUnshuffle(unittest.TestCase): method test_2d_basic (line 23) | def test_2d_basic(self): method test_3d_basic (line 28) | def test_3d_basic(self): method test_non_square_input (line 33) | def test_non_square_input(self): method test_different_scale_factor (line 38) | def test_different_scale_factor(self): method test_inverse_operation (line 43) | def test_inverse_operation(self): FILE: tests/networks/utils/test_replace_module.py class TestReplaceModule (line 34) | class TestReplaceModule(unittest.TestCase): method setUp (line 35) | def setUp(self): method get_num_modules (line 41) | def get_num_modules(self, mod: type[torch.nn.Module] | None = None) ->... method check_replaced_modules (line 47) | def check_replaced_modules(self, name, match_device): method test_replace (line 64) | def test_replace(self, name, strict_match, match_device, device): method test_replace_context_manager (line 79) | def test_replace_context_manager(self, name, strict_match, match_devic... method test_raises (line 88) | def test_raises(self): FILE: tests/networks/utils/test_train_mode.py class TestEvalMode (line 21) | class TestEvalMode(unittest.TestCase): method test_eval_mode (line 23) | def test_eval_mode(self): FILE: tests/nonconfig_workflow.py class NonConfigWorkflow (line 34) | class NonConfigWorkflow(BundleWorkflow): method __init__ (line 40) | def __init__(self, filename, output_dir, meta_file=None, logging_file=... method initialize (line 59) | def initialize(self): method run (line 111) | def run(self): method finalize (line 114) | def finalize(self): method _get_property (line 117) | def _get_property(self, name, property): method _set_property (line 149) | def _set_property(self, name, property, value): class PythonicWorkflowImpl (line 182) | class PythonicWorkflowImpl(PythonicWorkflow): method __init__ (line 187) | def __init__( method initialize (line 199) | def initialize(self): method run (line 220) | def run(self): method finalize (line 228) | def finalize(self): method get_bundle_root (line 231) | def get_bundle_root(self): method get_device (line 234) | def get_device(self): method get_inferer (line 237) | def get_inferer(self): FILE: tests/optimizers/test_generate_param_groups.py class TestGenerateParamGroups (line 70) | class TestGenerateParamGroups(unittest.TestCase): method test_lr_values (line 72) | def test_lr_values(self, input_param, expected_values, expected_groups): method test_wrong (line 87) | def test_wrong(self): FILE: tests/optimizers/test_lr_finder.py class TestLRFinder (line 50) | class TestLRFinder(unittest.TestCase): method setUp (line 51) | def setUp(self): method test_lr_finder (line 65) | def test_lr_finder(self): FILE: tests/optimizers/test_lr_scheduler.py class SchedulerTestNet (line 22) | class SchedulerTestNet(torch.nn.Module): method __init__ (line 24) | def __init__(self): method forward (line 29) | def forward(self, x): class TestLRSCHEDULER (line 46) | class TestLRSCHEDULER(unittest.TestCase): method test_shape (line 49) | def test_shape(self, input_param, expected_lr): method test_error (line 62) | def test_error(self): FILE: tests/optimizers/test_optim_novograd.py function build_test_cases (line 23) | def build_test_cases(data): class TestNovograd (line 60) | class TestNovograd(unittest.TestCase): method test_step (line 68) | def test_step(self, specify_param, default_param, weight, bias, input): method test_ill_arg (line 85) | def test_ill_arg(self): FILE: tests/padders.py class PadTest (line 53) | class PadTest(unittest.TestCase): method get_arr (line 55) | def get_arr(shape): method pad_test (line 58) | def pad_test(self, input_param, input_shape, expected_shape, modes=None): method pad_test_kwargs (line 94) | def pad_test_kwargs(self, unchanged_slices, **input_param): method pad_test_pending_ops (line 117) | def pad_test_pending_ops(self, input_param, input_shape): method pad_test_combine_ops (line 150) | def pad_test_combine_ops(self, funcs, input_shape, expected_shape): FILE: tests/profile_subclass/min_classes.py class SubTensor (line 23) | class SubTensor(torch.Tensor): class SubWithTorchFunc (line 27) | class SubWithTorchFunc(torch.Tensor): method __torch_function__ (line 29) | def __torch_function__(self, func, types, args=(), kwargs=None): FILE: tests/profile_subclass/profiling.py function bench (line 29) | def bench(t1, t2): function main (line 44) | def main(): FILE: tests/runner.py class TimeLoggingTestResult (line 28) | class TimeLoggingTestResult(unittest.TextTestResult): method __init__ (line 31) | def __init__(self, *args, **kwargs): method startTest (line 35) | def startTest(self, test): # noqa: N802 method stopTest (line 42) | def stopTest(self, test): # noqa: N802 function print_results (line 53) | def print_results(results, discovery_time, thresh, status): function parse_args (line 69) | def parse_args(): function get_default_pattern (line 110) | def get_default_pattern(loader): FILE: tests/test_call_dist.py class DistributedCallTest (line 19) | class DistributedCallTest(DistTestCase): method test_constructor (line 20) | def test_constructor(self): FILE: tests/test_query_memory.py class TestQueryMemory (line 19) | class TestQueryMemory(unittest.TestCase): method test_output_str (line 20) | def test_output_str(self): FILE: tests/test_timedcall_dist.py function case_1_seconds (line 23) | def case_1_seconds(arg=None): function case_1_seconds_skip (line 29) | def case_1_seconds_skip(arg=None): function case_1_seconds_timeout (line 35) | def case_1_seconds_timeout(arg=None): function case_1_seconds_timeout_warning (line 41) | def case_1_seconds_timeout_warning(arg=None): function case_1_seconds_bad (line 47) | def case_1_seconds_bad(arg=None): class TestTimedCall (line 52) | class TestTimedCall(unittest.TestCase): method test_good_call (line 53) | def test_good_call(self): method test_skip_timing (line 57) | def test_skip_timing(self): method test_timeout (line 61) | def test_timeout(self): method test_timeout_not_force_quit (line 65) | def test_timeout_not_force_quit(self): method test_timeout_bad (line 70) | def test_timeout_bad(self): FILE: tests/test_utils.py function testing_data_config (line 90) | def testing_data_config(*keys): function get_testing_algo_template_path (line 100) | def get_testing_algo_template_path(): function clone (line 110) | def clone(data: NdarrayTensor) -> NdarrayTensor: function assert_allclose (line 123) | def assert_allclose( function skip_if_downloading_fails (line 167) | def skip_if_downloading_fails(): function test_pretrained_networks (line 187) | def test_pretrained_networks(network, input_param, device): function test_is_quick (line 192) | def test_is_quick(): function is_tf32_env (line 196) | def is_tf32_env(): function skip_if_quick (line 219) | def skip_if_quick(obj): class SkipIfNoModule (line 229) | class SkipIfNoModule: method __init__ (line 233) | def __init__(self, module_name): method __call__ (line 237) | def __call__(self, obj): class SkipIfModule (line 241) | class SkipIfModule: method __init__ (line 245) | def __init__(self, module_name): method __call__ (line 249) | def __call__(self, obj): function skip_if_no_cpp_extension (line 253) | def skip_if_no_cpp_extension(obj): function skip_if_no_cuda (line 260) | def skip_if_no_cuda(obj): function skip_if_windows (line 267) | def skip_if_windows(obj): function skip_if_darwin (line 274) | def skip_if_darwin(obj): class SkipIfBeforePyTorchVersion (line 281) | class SkipIfBeforePyTorchVersion: method __init__ (line 285) | def __init__(self, pytorch_version_tuple): method __call__ (line 289) | def __call__(self, obj): class SkipIfAtLeastPyTorchVersion (line 295) | class SkipIfAtLeastPyTorchVersion: method __init__ (line 299) | def __init__(self, pytorch_version_tuple): method __call__ (line 303) | def __call__(self, obj): class SkipIfBeforeComputeCapabilityVersion (line 309) | class SkipIfBeforeComputeCapabilityVersion: method __init__ (line 313) | def __init__(self, compute_capability_tuple): method __call__ (line 317) | def __call__(self, obj): function is_main_test_process (line 323) | def is_main_test_process(): function has_cupy (line 330) | def has_cupy(): function make_nifti_image (line 356) | def make_nifti_image( function make_rand_affine (line 390) | def make_rand_affine(ndim: int = 3, random_state: np.random.RandomState ... function get_arange_img (line 403) | def get_arange_img(size, dtype=np.float32, offset=0): class DistTestCase (line 413) | class DistTestCase(unittest.TestCase): method __getstate__ (line 418) | def __getstate__(self): method __setstate__ (line 423) | def __setstate__(self, data_dict): class DistCall (line 427) | class DistCall: method __init__ (line 447) | def __init__( method run_process (line 503) | def run_process(self, func, local_rank, args, kwargs, results): method __call__ (line 546) | def __call__(self, obj): class TimedCall (line 579) | class TimedCall: method __init__ (line 585) | def __init__( method run_process (line 613) | def run_process(func, args, kwargs, results): method __call__ (line 621) | def __call__(self, obj): function _cache_original_func (line 675) | def _cache_original_func(obj) -> None: function _del_original_func (line 680) | def _del_original_func(obj): function _call_original_func (line 688) | def _call_original_func(name, module, *args, **kwargs): class NumpyImageTestCase2D (line 698) | class NumpyImageTestCase2D(unittest.TestCase): method setUp (line 704) | def setUp(self): class TorchImageTestCase2D (line 714) | class TorchImageTestCase2D(NumpyImageTestCase2D): method setUp (line 716) | def setUp(self): class NumpyImageTestCase3D (line 723) | class NumpyImageTestCase3D(unittest.TestCase): method setUp (line 729) | def setUp(self): class TorchImageTestCase3D (line 745) | class TorchImageTestCase3D(NumpyImageTestCase3D): method setUp (line 747) | def setUp(self): function test_script_save (line 754) | def test_script_save(net, *inputs, device=None, rtol=1e-4, atol=0.0): function test_onnx_save (line 776) | def test_onnx_save(net, *inputs, device=None, rtol=1e-4, atol=0.0): function download_url_or_skip_test (line 800) | def download_url_or_skip_test(*args, **kwargs): function query_memory (line 806) | def query_memory(n=2): function test_local_inversion (line 825) | def test_local_inversion(invertible_xform, to_invert, im, dict_key=None): function command_line_tests (line 840) | def command_line_tests(cmd, copy_env=True): function equal_state_dict (line 853) | def equal_state_dict(st_1, st_2): function dict_product (line 883) | def dict_product(**items: Iterable[Any]) -> list[dict]: FILE: tests/testing_data/bundle_test_network.py class TestMultiInputUNet (line 19) | class TestMultiInputUNet(UNet): method forward (line 25) | def forward(self, x: torch.Tensor, extra_arg1: int, extra_arg2: int) -... FILE: tests/testing_data/cpp_resample_answers.py function _read_testing_data_answers (line 19) | def _read_testing_data_answers(fname: str | None = None, delimiter=",") ... FILE: tests/testing_data/integration_answers.py function test_integration_value (line 341) | def test_integration_value(test_name, key, data, rtol=1e-2): FILE: tests/transforms/compose/test_compose.py function data_from_keys (line 31) | def data_from_keys(keys, h, w): class _RandXform (line 41) | class _RandXform(Randomizable): method randomize (line 43) | def randomize(self): method __call__ (line 46) | def __call__(self, __unused): class TestCompose (line 51) | class TestCompose(unittest.TestCase): method test_empty_compose (line 53) | def test_empty_compose(self): method test_non_dict_compose (line 58) | def test_non_dict_compose(self): method test_dict_compose (line 69) | def test_dict_compose(self): method test_list_dict_compose (line 88) | def test_list_dict_compose(self): method test_non_dict_compose_with_unpack (line 116) | def test_non_dict_compose_with_unpack(self): method test_list_non_dict_compose_with_unpack (line 130) | def test_list_non_dict_compose_with_unpack(self): method test_list_non_dict_compose_with_unpack_map_2 (line 144) | def test_list_non_dict_compose_with_unpack_map_2(self): method test_list_dict_compose_no_map (line 158) | def test_list_dict_compose_no_map(self): method test_random_compose (line 187) | def test_random_compose(self): method test_randomize_warn (line 207) | def test_randomize_warn(self): method test_err_msg (line 221) | def test_err_msg(self): method test_data_loader (line 226) | def test_data_loader(self): method test_data_loader_2 (line 249) | def test_data_loader_2(self): method test_flatten_and_len (line 271) | def test_flatten_and_len(self): method test_backwards_compatible_imports (line 282) | def test_backwards_compatible_imports(self): method test_list_extend_multi_sample_trait (line 285) | def test_list_extend_multi_sample_trait(self): method test_multi_sample_trait_cardinality (line 307) | def test_multi_sample_trait_cardinality(self): class TestComposeExecute (line 328) | class TestComposeExecute(unittest.TestCase): method test_compose_execute_equivalence (line 331) | def test_compose_execute_equivalence(self, keys, pipeline): method test_compose_execute_bad_start_param (line 354) | def test_compose_execute_bad_start_param(self, keys, pipeline): method test_compose_execute_negative_range (line 376) | def test_compose_execute_negative_range(self, keys, pipeline): method test_compose_execute_bad_end_param (line 387) | def test_compose_execute_bad_end_param(self, keys, pipeline): method test_compose_execute_empty_range (line 398) | def test_compose_execute_empty_range(self, keys, pipeline): method test_compose_with_logger (line 407) | def test_compose_with_logger(self, keys, pipeline): class TestComposeExecuteWithLogging (line 679) | class TestComposeExecuteWithLogging(unittest.TestCase): method init_logger (line 682) | def init_logger(self, name=LOGGER_NAME): method test_compose_with_logging (line 695) | def test_compose_with_logging(self, keys, pipeline, lazy, expected): method test_compose_lazy_on_call_with_logging (line 707) | def test_compose_lazy_on_call_with_logging(self, compose_type, pipelin... class TestOps (line 719) | class TestOps: method concat (line 722) | def concat(value): method concatd (line 730) | def concatd(value): method concata (line 738) | def concata(value): class TestComposeExecuteWithFlags (line 754) | class TestComposeExecuteWithFlags(unittest.TestCase): method test_compose_execute_equivalence_with_flags (line 757) | def test_compose_execute_equivalence_with_flags(self, flags, data, pip... class TestComposeCallableInput (line 778) | class TestComposeCallableInput(unittest.TestCase): method test_value_error_when_not_sequence (line 780) | def test_value_error_when_not_sequence(self): FILE: tests/transforms/compose/test_some_of.py class A (line 33) | class A(Transform): method __call__ (line 35) | def __call__(self, x): class B (line 39) | class B(Transform): method __call__ (line 41) | def __call__(self, x): class C (line 45) | class C(Transform): method __call__ (line 47) | def __call__(self, x): class D (line 51) | class D(Transform): method __call__ (line 53) | def __call__(self, x): class TestSomeOf (line 77) | class TestSomeOf(unittest.TestCase): method setUp (line 79) | def setUp(self): method tearDown (line 82) | def tearDown(self): method update_transform_count (line 85) | def update_transform_count(self, counts, output): method test_fixed (line 100) | def test_fixed(self): method test_unfixed (line 121) | def test_unfixed(self): method test_non_dict_metatensor (line 140) | def test_non_dict_metatensor(self): method test_compound_pipeline (line 149) | def test_compound_pipeline(self, transform, expected_value): method test_inverse (line 155) | def test_inverse(self, transform, invertible, use_metatensor): method test_bad_inverse_data (line 193) | def test_bad_inverse_data(self): method test_normalize_weights (line 197) | def test_normalize_weights(self): method test_no_weights_arg (line 204) | def test_no_weights_arg(self): method test_bad_weights (line 208) | def test_bad_weights(self): method test_bad_num_transforms (line 213) | def test_bad_num_transforms(self): class TestSomeOfAPITests (line 228) | class TestSomeOfAPITests(unittest.TestCase): method data_from_keys (line 231) | def data_from_keys(keys): method test_execute_change_start_end (line 241) | def test_execute_change_start_end(self, keys, pipeline): FILE: tests/transforms/croppad/test_pad_nd_dtypes.py class TestPadNdDtypes (line 40) | class TestPadNdDtypes(unittest.TestCase): method test_pad_uses_pt_for_bool (line 41) | def test_pad_uses_pt_for_bool(self): method test_pad_falls_back_to_np_if_pt_raises (line 56) | def test_pad_falls_back_to_np_if_pt_raises(self): method test_pad_dtype_no_error_and_dtype_preserved (line 72) | def test_pad_dtype_no_error_and_dtype_preserved(self, dtype): method test_pad_multiple_modes_dtype_preserved (line 85) | def test_pad_multiple_modes_dtype_preserved(self, mode, dtype): method test_value_with_non_constant_mode_raises (line 100) | def test_value_with_non_constant_mode_raises(self): FILE: tests/transforms/croppad/test_rand_weighted_crop.py function get_data (line 26) | def get_data(ndim): class TestRandWeightedCrop (line 184) | class TestRandWeightedCrop(CropTest): method test_rand_weighted_crop (line 188) | def test_rand_weighted_crop(self, _, input_params, img, weight, expect... method test_pending_ops (line 203) | def test_pending_ops(self, _, input_param, img, weight, expected_shape... FILE: tests/transforms/croppad/test_rand_weighted_cropd.py function get_data (line 25) | def get_data(ndim): class TestRandWeightedCrop (line 150) | class TestRandWeightedCrop(unittest.TestCase): method test_rand_weighted_cropd (line 152) | def test_rand_weighted_cropd(self, _, init_params, input_data, expecte... method test_pending_ops (line 161) | def test_pending_ops(self, _, input_param, input_data, expected_shape,... FILE: tests/transforms/functional/test_apply.py function single_2d_transform_cases (line 25) | def single_2d_transform_cases(): class TestApply (line 41) | class TestApply(unittest.TestCase): method _test_apply_impl (line 42) | def _test_apply_impl(self, tensor, pending_transforms, expected_shape): method _test_apply_metatensor_impl (line 47) | def _test_apply_metatensor_impl(self, tensor, pending_transforms, expe... method test_apply_single_transform (line 61) | def test_apply_single_transform(self): method test_apply_single_transform_metatensor (line 65) | def test_apply_single_transform_metatensor(self): method test_apply_single_transform_metatensor_override (line 69) | def test_apply_single_transform_metatensor_override(self): FILE: tests/transforms/functional/test_resample.py function rotate_90_2d (line 24) | def rotate_90_2d(): class TestResampleFunction (line 37) | class TestResampleFunction(unittest.TestCase): method test_resample_function_impl (line 39) | def test_resample_function_impl(self, img, matrix, expected): FILE: tests/transforms/intensity/test_compute_ho_ver_maps.py class ComputeHoVerMapsTests (line 64) | class ComputeHoVerMapsTests(unittest.TestCase): method test_horizontal_certical_maps (line 66) | def test_horizontal_certical_maps(self, in_type, arguments, mask, hv_m... FILE: tests/transforms/intensity/test_compute_ho_ver_maps_d.py class ComputeHoVerMapsDictTests (line 65) | class ComputeHoVerMapsDictTests(unittest.TestCase): method test_horizontal_certical_maps (line 67) | def test_horizontal_certical_maps(self, in_type, arguments, mask, hv_m... FILE: tests/transforms/intensity/test_foreground_mask.py class TestForegroundMask (line 83) | class TestForegroundMask(unittest.TestCase): method test_foreground_mask (line 85) | def test_foreground_mask(self, in_type, arguments, image, mask): method test_foreground_mask_error (line 91) | def test_foreground_mask_error(self, in_type, arguments, image): FILE: tests/transforms/intensity/test_foreground_maskd.py class TestForegroundMaskd (line 91) | class TestForegroundMaskd(unittest.TestCase): method test_foreground_mask (line 93) | def test_foreground_mask(self, in_type, arguments, data_dict, mask): method test_foreground_mask_error (line 99) | def test_foreground_mask_error(self, in_type, arguments, data_dict): FILE: tests/transforms/intensity/test_rand_histogram_shiftd.py class TestRandHistogramShiftD (line 63) | class TestRandHistogramShiftD(unittest.TestCase): method test_rand_histogram_shiftd (line 65) | def test_rand_histogram_shiftd(self, input_param, input_data, expected... FILE: tests/transforms/intensity/test_scale_intensity_range_percentiles.py class TestScaleIntensityRangePercentiles (line 23) | class TestScaleIntensityRangePercentiles(NumpyImageTestCase2D): method test_scaling (line 24) | def test_scaling(self): method test_relative_scaling (line 40) | def test_relative_scaling(self): method test_invalid_instantiation (line 68) | def test_invalid_instantiation(self): method test_channel_wise (line 74) | def test_channel_wise(self): FILE: tests/transforms/intensity/test_scale_intensity_range_percentilesd.py class TestScaleIntensityRangePercentilesd (line 22) | class TestScaleIntensityRangePercentilesd(NumpyImageTestCase2D): method test_scaling (line 23) | def test_scaling(self): method test_relative_scaling (line 41) | def test_relative_scaling(self): method test_invalid_instantiation (line 61) | def test_invalid_instantiation(self): method test_channel_wise (line 78) | def test_channel_wise(self): FILE: tests/transforms/inverse/test_inverse.py function no_collation (line 324) | def no_collation(x): class TestInverse (line 328) | class TestInverse(unittest.TestCase): method setUp (line 367) | def setUp(self): method tearDown (line 397) | def tearDown(self): method check_inverse (line 400) | def check_inverse(self, name, keys, orig_d, fwd_bck_d, unmodified_d, a... method test_inverse (line 426) | def test_inverse(self, _, data_name, acceptable_diff, is_meta, *transf... method test_fail (line 457) | def test_fail(self): method test_inverse_inferred_seg (line 467) | def test_inverse_inferred_seg(self, extra_transform): FILE: tests/transforms/inverse/test_inverse_array.py class TestInverseArray (line 35) | class TestInverseArray(unittest.TestCase): method get_image (line 37) | def get_image(dtype, device) -> MetaTensor: method test_inverse_array (line 43) | def test_inverse_array(self, use_compose: bool, dtype: torch.dtype, de... FILE: tests/transforms/inverse/test_inverse_dict.py class TestInvertDict (line 27) | class TestInvertDict(unittest.TestCase): method setUp (line 29) | def setUp(self): method test_simple_processing (line 42) | def test_simple_processing(self, device): method test_workflow (line 72) | def test_workflow(self, device, use_threads): FILE: tests/transforms/inverse/test_invert.py class TestInvert (line 43) | class TestInvert(unittest.TestCase): method test_invert (line 44) | def test_invert(self): method test_invert_warn_pending (line 92) | def test_invert_warn_pending(self): FILE: tests/transforms/inverse/test_invertd.py class TestInvertd (line 45) | class TestInvertd(unittest.TestCase): method test_invert (line 46) | def test_invert(self): FILE: tests/transforms/inverse/test_traceable_transform.py class _TraceTest (line 19) | class _TraceTest(TraceableTransform): method __call__ (line 21) | def __call__(self, data): method pop (line 25) | def pop(self, data): class TestTraceable (line 30) | class TestTraceable(unittest.TestCase): method test_default (line 32) | def test_default(self): FILE: tests/transforms/post/test_label_filterd.py class TestLabelFilter (line 60) | class TestLabelFilter(unittest.TestCase): method test_correct_results (line 62) | def test_correct_results(self, _, args, input_image, expected): method test_raise_exception (line 68) | def test_raise_exception(self, _, args, input_image, expected_error): FILE: tests/transforms/post/test_probnms.py class TestProbNMS (line 63) | class TestProbNMS(unittest.TestCase): method test_output (line 65) | def test_output(self, class_args, probs_map, expected): FILE: tests/transforms/post/test_probnmsd.py class TestProbNMS (line 70) | class TestProbNMS(unittest.TestCase): method test_output (line 72) | def test_output(self, class_args, probs_map, expected): FILE: tests/transforms/post/test_remove_small_objects.py class TestRemoveSmallObjects (line 57) | class TestRemoveSmallObjects(unittest.TestCase): method test_remove_small_objects (line 59) | def test_remove_small_objects(self, dtype, im_type, lbl, expected, par... method test_remove_small_objects_physical (line 72) | def test_remove_small_objects_physical(self, dtype, im_type, lbl, expe... method test_remove_small_objects_dict (line 88) | def test_remove_small_objects_dict(self, dtype, im_type, lbl, expected... FILE: tests/transforms/spatial/test_convert_box_points.py class TestConvertBoxToPoints (line 101) | class TestConvertBoxToPoints(unittest.TestCase): method test_convert_box_to_points (line 103) | def test_convert_box_to_points(self, boxes, mode, expected_points): class TestConvertPointsToBoxes (line 109) | class TestConvertPointsToBoxes(unittest.TestCase): method test_convert_box_to_points (line 111) | def test_convert_box_to_points(self, boxes, mode, points): FILE: tests/transforms/spatial/test_grid_patch.py class TestGridPatch (line 99) | class TestGridPatch(unittest.TestCase): method test_grid_patch (line 101) | def test_grid_patch(self, in_type, input_parameters, image, expected): method test_grid_patch_meta (line 115) | def test_grid_patch_meta(self, input_parameters, image, expected, expe... FILE: tests/transforms/spatial/test_grid_patchd.py class TestGridPatchd (line 79) | class TestGridPatchd(unittest.TestCase): method test_grid_patchd (line 81) | def test_grid_patchd(self, in_type, input_parameters, image_dict, expe... FILE: tests/transforms/spatial/test_rand_grid_patch.py class TestRandGridPatch (line 107) | class TestRandGridPatch(unittest.TestCase): method setUp (line 108) | def setUp(self): method tearDown (line 111) | def tearDown(self): method test_rand_grid_patch (line 115) | def test_rand_grid_patch(self, in_type, input_parameters, image, expec... method test_rand_grid_patch_meta (line 130) | def test_rand_grid_patch_meta(self, input_parameters, image, expected,... FILE: tests/transforms/spatial/test_rand_grid_patchd.py class TestRandGridPatchd (line 87) | class TestRandGridPatchd(unittest.TestCase): method setUp (line 88) | def setUp(self): method tearDown (line 91) | def tearDown(self): method test_rand_grid_patchd (line 95) | def test_rand_grid_patchd(self, in_type, input_parameters, image_dict,... FILE: tests/transforms/spatial/test_spatial_resampled.py class TestSpatialResample (line 97) | class TestSpatialResample(unittest.TestCase): method test_flips_inverse (line 99) | def test_flips_inverse(self, img, device, dst_affine, kwargs, expected... FILE: tests/transforms/test_activations.py class TestActivations (line 96) | class TestActivations(unittest.TestCase): method test_value_shape (line 98) | def test_value_shape(self, input_param, img, out, expected_shape): method test_monai_activations_value_shape (line 112) | def test_monai_activations_value_shape(self, input_param, img, out, ex... FILE: tests/transforms/test_activationsd.py class TestActivationsd (line 52) | class TestActivationsd(unittest.TestCase): method test_value_shape (line 54) | def test_value_shape(self, input_param, test_input, output, expected_s... FILE: tests/transforms/test_adaptors.py class TestAdaptors (line 20) | class TestAdaptors(unittest.TestCase): method test_function_signature (line 22) | def test_function_signature(self): method test_single_in_single_out (line 29) | def test_single_in_single_out(self): method test_multi_in_single_out (line 60) | def test_multi_in_single_out(self): method test_default_arg_single_out (line 92) | def test_default_arg_single_out(self): method test_multi_out (line 105) | def test_multi_out(self): method test_dict_out (line 115) | def test_dict_out(self): class TestApplyAlias (line 129) | class TestApplyAlias(unittest.TestCase): method test_apply_alias (line 131) | def test_apply_alias(self): class TestToKwargs (line 142) | class TestToKwargs(unittest.TestCase): method test_to_kwargs (line 144) | def test_to_kwargs(self): FILE: tests/transforms/test_add_coordinate_channels.py class TestAddCoordinateChannels (line 31) | class TestAddCoordinateChannels(unittest.TestCase): method test_shape (line 33) | def test_shape(self, input_param, input, expected_shape): method test_max_channel (line 42) | def test_max_channel(self, input_param, input): method test_channel_dim (line 47) | def test_channel_dim(self, input_param, input): FILE: tests/transforms/test_add_coordinate_channelsd.py class TestAddCoordinateChannels (line 44) | class TestAddCoordinateChannels(unittest.TestCase): method test_shape (line 46) | def test_shape(self, input_param, input, expected_shape): method test_max_channel (line 56) | def test_max_channel(self, input_param, input): method test_channel_dim (line 61) | def test_channel_dim(self, input_param, input): FILE: tests/transforms/test_add_extreme_points_channel.py class TestAddExtremePointsChannel (line 71) | class TestAddExtremePointsChannel(unittest.TestCase): method test_correct_results (line 73) | def test_correct_results(self, input_data, expected): FILE: tests/transforms/test_add_extreme_points_channeld.py class TestAddExtremePointsChanneld (line 66) | class TestAddExtremePointsChanneld(unittest.TestCase): method test_correct_results (line 68) | def test_correct_results(self, input_data, expected): FILE: tests/transforms/test_adjust_contrast.py class TestAdjustContrast (line 32) | class TestAdjustContrast(NumpyImageTestCase2D): method test_correct_results (line 34) | def test_correct_results(self, gamma, invert_image, retain_stats): FILE: tests/transforms/test_adjust_contrastd.py class TestAdjustContrastd (line 32) | class TestAdjustContrastd(NumpyImageTestCase2D): method test_correct_results (line 34) | def test_correct_results(self, gamma, invert_image, retain_stats): FILE: tests/transforms/test_affine.py class TestAffine (line 169) | class TestAffine(unittest.TestCase): method test_affine (line 171) | def test_affine(self, input_param, input_data, expected_val): class TestAffineConsistency (line 203) | class TestAffineConsistency(unittest.TestCase): method test_affine_resize (line 205) | def test_affine_resize(self, s): FILE: tests/transforms/test_affine_grid.py class TestAffineGrid (line 137) | class TestAffineGrid(unittest.TestCase): method test_affine_grid (line 139) | def test_affine_grid(self, input_param, input_data, expected_val): FILE: tests/transforms/test_affined.py class TestAffined (line 170) | class TestAffined(unittest.TestCase): method test_affine (line 172) | def test_affine(self, input_param, input_data, expected_val): FILE: tests/transforms/test_as_channel_last.py class TestAsChannelLast (line 29) | class TestAsChannelLast(unittest.TestCase): method test_shape (line 31) | def test_shape(self, in_type, input_param, expected_shape): FILE: tests/transforms/test_as_channel_lastd.py class TestAsChannelLastd (line 29) | class TestAsChannelLastd(unittest.TestCase): method test_shape (line 31) | def test_shape(self, in_type, input_param, expected_shape): FILE: tests/transforms/test_as_discrete.py class TestAsDiscrete (line 67) | class TestAsDiscrete(unittest.TestCase): method test_value_shape (line 69) | def test_value_shape(self, input_param, img, out, expected_shape): method test_additional (line 74) | def test_additional(self): FILE: tests/transforms/test_as_discreted.py class TestAsDiscreted (line 70) | class TestAsDiscreted(unittest.TestCase): method test_value_shape (line 72) | def test_value_shape(self, input_param, test_input, output, expected_s... FILE: tests/transforms/test_border_pad.py class TestBorderPad (line 30) | class TestBorderPad(PadTest): method test_pad (line 34) | def test_pad(self, input_param, input_shape, expected_shape): method test_pad_kwargs (line 38) | def test_pad_kwargs(self): method test_pending_ops (line 44) | def test_pending_ops(self, input_param, input_shape, _): FILE: tests/transforms/test_border_padd.py class TestBorderPadd (line 31) | class TestBorderPadd(PadTest): method test_pad (line 35) | def test_pad(self, input_param, input_shape, expected_shape): method test_pending_ops (line 40) | def test_pending_ops(self, input_param, input_shape, _): FILE: tests/transforms/test_bounding_rect.py class TestBoundingRect (line 30) | class TestBoundingRect(unittest.TestCase): method setUp (line 31) | def setUp(self): method tearDown (line 34) | def tearDown(self): method test_shape (line 38) | def test_shape(self, input_shape, expected): method test_select_fn (line 45) | def test_select_fn(self): FILE: tests/transforms/test_bounding_rectd.py class TestBoundingRectD (line 30) | class TestBoundingRectD(unittest.TestCase): method setUp (line 31) | def setUp(self): method tearDown (line 34) | def tearDown(self): method test_shape (line 38) | def test_shape(self, input_shape, expected): FILE: tests/transforms/test_cast_to_type.py class TestCastToType (line 39) | class TestCastToType(unittest.TestCase): method test_type (line 41) | def test_type(self, out_dtype, input_data, expected_type): method test_type_cupy (line 50) | def test_type_cupy(self, out_dtype, input_data, expected_type): FILE: tests/transforms/test_cast_to_typed.py class TestCastToTyped (line 55) | class TestCastToTyped(unittest.TestCase): method test_type (line 57) | def test_type(self, input_param, input_data, expected_type): method test_type_cupy (line 64) | def test_type_cupy(self, input_param, input_data, expected_type): FILE: tests/transforms/test_center_scale_crop.py class TestCenterScaleCrop (line 38) | class TestCenterScaleCrop(CropTest): method test_shape (line 42) | def test_shape(self, input_param, input_shape, expected_shape, _): method test_value (line 46) | def test_value(self, input_param, input_arr, expected_arr): method test_pending_ops (line 50) | def test_pending_ops(self, input_param, input_shape, _, align_corners): FILE: tests/transforms/test_center_scale_cropd.py class TestCenterScaleCropd (line 39) | class TestCenterScaleCropd(CropTest): method test_shape (line 43) | def test_shape(self, input_param, input_shape, expected_shape, _): method test_value (line 47) | def test_value(self, input_param, input_arr, expected_arr): method test_pending_ops (line 51) | def test_pending_ops(self, input_param, input_shape, _, align_corners): FILE: tests/transforms/test_center_spatial_crop.py class TestCenterSpatialCrop (line 39) | class TestCenterSpatialCrop(CropTest): method test_shape (line 43) | def test_shape(self, input_param, input_shape, expected_shape, _): method test_value (line 47) | def test_value(self, input_param, input_arr, expected_arr): method test_pending_ops (line 51) | def test_pending_ops(self, input_param, input_shape, _, align_corners): FILE: tests/transforms/test_center_spatial_cropd.py class TestCenterSpatialCropd (line 46) | class TestCenterSpatialCropd(CropTest): method test_shape (line 50) | def test_shape(self, input_param, input_shape, expected_shape, same_ar... method test_value (line 54) | def test_value(self, input_param, input_data, expected_value): method test_pending_ops (line 58) | def test_pending_ops(self, input_param, input_shape, _expected_shape, ... FILE: tests/transforms/test_classes_to_indices.py class TestClassesToIndices (line 84) | class TestClassesToIndices(unittest.TestCase): method test_value (line 86) | def test_value(self, input_args, label, image, expected_indices): FILE: tests/transforms/test_classes_to_indicesd.py class TestClassesToIndicesd (line 99) | class TestClassesToIndicesd(unittest.TestCase): method test_value (line 101) | def test_value(self, input_args, input_data, expected_indices): FILE: tests/transforms/test_clip_intensity_percentiles.py function test_hard_clip_func (line 25) | def test_hard_clip_func(im, lower, upper): function test_soft_clip_func (line 36) | def test_soft_clip_func(im, lower, upper): class TestClipIntensityPercentiles2D (line 47) | class TestClipIntensityPercentiles2D(NumpyImageTestCase2D): method test_hard_clipping_two_sided (line 49) | def test_hard_clipping_two_sided(self, p): method test_hard_clipping_one_sided_high (line 57) | def test_hard_clipping_one_sided_high(self, p): method test_hard_clipping_one_sided_low (line 65) | def test_hard_clipping_one_sided_low(self, p): method test_soft_clipping_two_sided (line 73) | def test_soft_clipping_two_sided(self, p): method test_soft_clipping_one_sided_high (line 82) | def test_soft_clipping_one_sided_high(self, p): method test_soft_clipping_one_sided_low (line 91) | def test_soft_clipping_one_sided_low(self, p): method test_channel_wise (line 100) | def test_channel_wise(self, p): method test_ill_sharpness_factor (line 110) | def test_ill_sharpness_factor(self): method test_ill_lower_percentile (line 114) | def test_ill_lower_percentile(self): method test_ill_upper_percentile (line 118) | def test_ill_upper_percentile(self): method test_ill_percentiles (line 122) | def test_ill_percentiles(self): method test_ill_both_none (line 126) | def test_ill_both_none(self): class TestClipIntensityPercentiles3D (line 131) | class TestClipIntensityPercentiles3D(NumpyImageTestCase3D): method test_hard_clipping_two_sided (line 133) | def test_hard_clipping_two_sided(self, p): method test_hard_clipping_one_sided_high (line 141) | def test_hard_clipping_one_sided_high(self, p): method test_hard_clipping_one_sided_low (line 149) | def test_hard_clipping_one_sided_low(self, p): method test_soft_clipping_two_sided (line 157) | def test_soft_clipping_two_sided(self, p): method test_soft_clipping_one_sided_high (line 166) | def test_soft_clipping_one_sided_high(self, p): method test_soft_clipping_one_sided_low (line 175) | def test_soft_clipping_one_sided_low(self, p): method test_channel_wise (line 184) | def test_channel_wise(self, p): FILE: tests/transforms/test_clip_intensity_percentilesd.py class TestClipIntensityPercentilesd2D (line 25) | class TestClipIntensityPercentilesd2D(NumpyImageTestCase2D): method test_hard_clipping_two_sided (line 27) | def test_hard_clipping_two_sided(self, p): method test_hard_clipping_one_sided_high (line 36) | def test_hard_clipping_one_sided_high(self, p): method test_hard_clipping_one_sided_low (line 45) | def test_hard_clipping_one_sided_low(self, p): method test_soft_clipping_two_sided (line 54) | def test_soft_clipping_two_sided(self, p): method test_soft_clipping_one_sided_high (line 64) | def test_soft_clipping_one_sided_high(self, p): method test_soft_clipping_one_sided_low (line 74) | def test_soft_clipping_one_sided_low(self, p): method test_channel_wise (line 84) | def test_channel_wise(self, p): method test_ill_sharpness_factor (line 95) | def test_ill_sharpness_factor(self): method test_ill_lower_percentile (line 100) | def test_ill_lower_percentile(self): method test_ill_upper_percentile (line 105) | def test_ill_upper_percentile(self): method test_ill_percentiles (line 110) | def test_ill_percentiles(self): method test_ill_both_none (line 115) | def test_ill_both_none(self): class TestClipIntensityPercentilesd3D (line 121) | class TestClipIntensityPercentilesd3D(NumpyImageTestCase3D): method test_hard_clipping_two_sided (line 123) | def test_hard_clipping_two_sided(self, p): method test_hard_clipping_one_sided_high (line 132) | def test_hard_clipping_one_sided_high(self, p): method test_hard_clipping_one_sided_low (line 141) | def test_hard_clipping_one_sided_low(self, p): method test_soft_clipping_two_sided (line 150) | def test_soft_clipping_two_sided(self, p): method test_soft_clipping_one_sided_high (line 160) | def test_soft_clipping_one_sided_high(self, p): method test_soft_clipping_one_sided_low (line 170) | def test_soft_clipping_one_sided_low(self, p): method test_channel_wise (line 180) | def test_channel_wise(self, p): FILE: tests/transforms/test_compose_get_number_conversions.py function _apply (line 32) | def _apply(x, fn): class Load (line 40) | class Load(Transform): method __init__ (line 42) | def __init__(self, as_tensor): method __call__ (line 45) | def __call__(self, x): class N (line 49) | class N(Transform): method __call__ (line 51) | def __call__(self, x): class T (line 55) | class T(Transform): method __call__ (line 57) | def __call__(self, x): class NT (line 61) | class NT(Transform): method __call__ (line 63) | def __call__(self, x): class TCPU (line 67) | class TCPU(Transform): method __call__ (line 69) | def __call__(self, x): class TGPU (line 73) | class TGPU(Transform): method __call__ (line 75) | def __call__(self, x): class TestComposeNumConversions (line 111) | class TestComposeNumConversions(unittest.TestCase): method test_get_number_of_conversions (line 114) | def test_get_number_of_conversions(self, transforms, is_dict, input, e... method test_raises (line 120) | def test_raises(self): FILE: tests/transforms/test_concat_itemsd.py class TestConcatItemsd (line 24) | class TestConcatItemsd(unittest.TestCase): method test_tensor_values (line 25) | def test_tensor_values(self): method test_metatensor_values (line 37) | def test_metatensor_values(self): method test_numpy_values (line 51) | def test_numpy_values(self): method test_single_numpy (line 59) | def test_single_numpy(self): method test_single_tensor (line 66) | def test_single_tensor(self): method test_single_metatensor (line 73) | def test_single_metatensor(self): FILE: tests/transforms/test_convert_to_multi_channel.py class TestConvertToMultiChannel (line 50) | class TestConvertToMultiChannel(unittest.TestCase): method test_type_shape (line 52) | def test_type_shape(self, data, expected_result): FILE: tests/transforms/test_convert_to_multi_channeld.py class TestConvertToMultiChanneld (line 28) | class TestConvertToMultiChanneld(unittest.TestCase): method test_type_shape (line 31) | def test_type_shape(self, keys, data, expected_result): FILE: tests/transforms/test_copy_itemsd.py class TestCopyItemsd (line 34) | class TestCopyItemsd(unittest.TestCase): method test_numpy_values (line 36) | def test_numpy_values(self, keys, times, names): method test_default_names (line 45) | def test_default_names(self): method test_tensor_values (line 51) | def test_tensor_values(self): method test_array_values (line 64) | def test_array_values(self): method test_graph_tensor_values (line 72) | def test_graph_tensor_values(self): FILE: tests/transforms/test_create_grid_and_affine.py class TestCreateGrid (line 30) | class TestCreateGrid(unittest.TestCase): method test_create_grid (line 31) | def test_create_grid(self): method test_create_control_grid (line 81) | def test_create_control_grid(self): function test_assert (line 160) | def test_assert(func, params, expected): class TestCreateAffine (line 170) | class TestCreateAffine(unittest.TestCase): method test_create_rotate (line 171) | def test_create_rotate(self): method test_create_shear (line 225) | def test_create_shear(self): method test_create_scale (line 234) | def test_create_scale(self): method test_create_translate (line 253) | def test_create_translate(self): FILE: tests/transforms/test_crop_foreground.py class TestCropForeground (line 101) | class TestCropForeground(unittest.TestCase): method test_value (line 103) | def test_value(self, arguments, image, expected_data, _): method test_return_coords (line 115) | def test_return_coords(self, arguments, image, _expected_data, _align_... method test_pending_ops (line 123) | def test_pending_ops(self, input_param, image, _expected_data, align_c... method test_lazy_error (line 142) | def test_lazy_error(self, input_param, image, _expected_data, align_co... method test_inverse_pending_ops (line 152) | def test_inverse_pending_ops(self, input_param, image, _expected_data,... FILE: tests/transforms/test_crop_foregroundd.py class TestCropForegroundd (line 160) | class TestCropForegroundd(unittest.TestCase): method test_value (line 162) | def test_value(self, arguments, input_data, expected_data, _): method test_foreground_position (line 174) | def test_foreground_position(self, arguments, input_data, _expected_da... method test_pending_ops (line 186) | def test_pending_ops(self, input_param, image, _expected_data, align_c... FILE: tests/transforms/test_cucim_dict_transform.py class TestCuCIMDict (line 68) | class TestCuCIMDict(unittest.TestCase): method test_tramsforms_numpy_single (line 79) | def test_tramsforms_numpy_single(self, params, input, expected): method test_tramsforms_numpy_batch (line 96) | def test_tramsforms_numpy_batch(self, params, input, expected): method test_tramsforms_cupy_single (line 114) | def test_tramsforms_cupy_single(self, params, input, expected): method test_tramsforms_cupy_batch (line 132) | def test_tramsforms_cupy_batch(self, params, input, expected): FILE: tests/transforms/test_cucim_transform.py class TestCuCIM (line 68) | class TestCuCIM(unittest.TestCase): method test_tramsforms_numpy_single (line 79) | def test_tramsforms_numpy_single(self, params, input, expected): method test_tramsforms_numpy_batch (line 95) | def test_tramsforms_numpy_batch(self, params, input, expected): method test_tramsforms_cupy_single (line 113) | def test_tramsforms_cupy_single(self, params, input, expected): method test_tramsforms_cupy_batch (line 131) | def test_tramsforms_cupy_batch(self, params, input, expected): FILE: tests/transforms/test_data_stats.py class TestDataStats (line 173) | class TestDataStats(unittest.TestCase): method test_value (line 178) | def test_value(self, input_param, input_data, expected_print): method test_file (line 183) | def test_file(self, input_data, expected_print): method test_multiple_data_stats (line 211) | def test_multiple_data_stats(self): FILE: tests/transforms/test_data_statsd.py class TestDataStatsd (line 198) | class TestDataStatsd(unittest.TestCase): method test_value (line 213) | def test_value(self, input_param, input_data, expected_print): method test_file (line 218) | def test_file(self, input_data, expected_print): FILE: tests/transforms/test_delete_itemsd.py class TestDeleteItemsd (line 30) | class TestDeleteItemsd(unittest.TestCase): method test_memory (line 33) | def test_memory(self, input_param, expected_key_size): method test_re (line 50) | def test_re(self, input_param): FILE: tests/transforms/test_detect_envelope.py class TestDetectEnvelope (line 116) | class TestDetectEnvelope(unittest.TestCase): method test_value (line 127) | def test_value(self, arguments, image, expected_data, atol): method test_value_error (line 141) | def test_value_error(self, arguments, image, method): FILE: tests/transforms/test_distance_transform_edt.py class TestDistanceTransformEDT (line 148) | class TestDistanceTransformEDT(unittest.TestCase): method test_scipy_transform (line 150) | def test_scipy_transform(self, input, expected_output): method test_scipy_transformd (line 156) | def test_scipy_transformd(self, input, expected_output): method test_scipy_sampling (line 164) | def test_scipy_sampling(self, sampling, input, expected_output): method test_cucim_transform (line 173) | def test_cucim_transform(self, input, expected_output): method test_cucim_sampling (line 183) | def test_cucim_sampling(self, sampling, input, expected_output): method test_cucim_raises (line 193) | def test_cucim_raises(self, raises): FILE: tests/transforms/test_divisible_pad.py class TestDivisiblePad (line 30) | class TestDivisiblePad(PadTest): method test_pad (line 34) | def test_pad(self, input_param, input_shape, expected_shape): method test_pad_kwargs (line 38) | def test_pad_kwargs(self): method test_pending_ops (line 44) | def test_pending_ops(self, input_param, input_shape, _): FILE: tests/transforms/test_divisible_padd.py class TestDivisiblePadd (line 28) | class TestDivisiblePadd(PadTest): method test_pad (line 32) | def test_pad(self, input_param, input_shape, expected_shape): method test_pending_ops (line 37) | def test_pending_ops(self, input_param, input_shape, _): FILE: tests/transforms/test_ensure_channel_first.py class TestEnsureChannelFirst (line 48) | class TestEnsureChannelFirst(unittest.TestCase): method test_load_nifti (line 52) | def test_load_nifti(self, input_param, filenames, original_channel_dim): method test_itk_dicom_series_reader (line 69) | def test_itk_dicom_series_reader(self): method test_load_png (line 76) | def test_load_png(self): method test_check (line 88) | def test_check(self): method test_default_channel_first (line 105) | def test_default_channel_first(self): FILE: tests/transforms/test_ensure_channel_firstd.py class TestEnsureChannelFirstd (line 34) | class TestEnsureChannelFirstd(unittest.TestCase): method test_load_nifti (line 37) | def test_load_nifti(self, input_param, filenames, original_channel_dim): method test_load_png (line 52) | def test_load_png(self): method test_exceptions (line 62) | def test_exceptions(self): method test_default_channel_first (line 77) | def test_default_channel_first(self): FILE: tests/transforms/test_ensure_type.py class TestEnsureType (line 24) | class TestEnsureType(unittest.TestCase): method test_array_input (line 25) | def test_array_input(self): method test_single_input (line 38) | def test_single_input(self): method test_string (line 52) | def test_string(self): method test_list_tuple (line 63) | def test_list_tuple(self): method test_dict (line 75) | def test_dict(self): FILE: tests/transforms/test_ensure_typed.py class TestEnsureTyped (line 24) | class TestEnsureTyped(unittest.TestCase): method test_array_input (line 25) | def test_array_input(self): method test_single_input (line 40) | def test_single_input(self): method test_string (line 54) | def test_string(self): method test_list_tuple (line 65) | def test_list_tuple(self): method test_dict (line 81) | def test_dict(self): FILE: tests/transforms/test_fg_bg_to_indices.py class TestFgBgToIndices (line 74) | class TestFgBgToIndices(unittest.TestCase): method test_type_shape (line 76) | def test_type_shape(self, input_data, label, image, expected_fg, expec... FILE: tests/transforms/test_fg_bg_to_indicesd.py class TestFgBgToIndicesd (line 69) | class TestFgBgToIndicesd(unittest.TestCase): method test_type_shape (line 71) | def test_type_shape(self, input_data, data, expected_fg, expected_bg): FILE: tests/transforms/test_fill_holes.py class TestFillHoles (line 197) | class TestFillHoles(unittest.TestCase): method test_correct_results (line 199) | def test_correct_results(self, _, args, input_image, expected): FILE: tests/transforms/test_fill_holesd.py class TestFillHoles (line 198) | class TestFillHoles(unittest.TestCase): method test_correct_results (line 200) | def test_correct_results(self, _, args, input_image, expected): FILE: tests/transforms/test_flatten_sub_keysd.py class TestFlattenSubKeysd (line 48) | class TestFlattenSubKeysd(unittest.TestCase): method test_dict (line 51) | def test_dict(self, params, input_data, expected): method test_error (line 58) | def test_error(self, params, input_data): FILE: tests/transforms/test_flip.py class TestFlip (line 42) | class TestFlip(NumpyImageTestCase2D): method test_invalid_inputs (line 44) | def test_invalid_inputs(self, _, spatial_axis, raises): method test_correct_results (line 50) | def test_correct_results(self, _, spatial_axis): method test_torch (line 64) | def test_torch(self, spatial_axis, img: torch.Tensor, track_meta: bool... FILE: tests/transforms/test_flipd.py class TestFlipd (line 43) | class TestFlipd(NumpyImageTestCase2D): method test_invalid_cases (line 45) | def test_invalid_cases(self, _, spatial_axis, raises): method test_correct_results (line 51) | def test_correct_results(self, _, spatial_axis): method test_torch (line 65) | def test_torch(self, spatial_axis, img: torch.Tensor, track_meta: bool... method test_meta_dict (line 83) | def test_meta_dict(self): FILE: tests/transforms/test_fourier.py class TestFourier (line 27) | class TestFourier(unittest.TestCase): method setUp (line 28) | def setUp(self): method tearDown (line 32) | def tearDown(self): method get_data (line 36) | def get_data(img_shape): method test_forward (line 42) | def test_forward(self, img_shape): method test_backward (line 53) | def test_backward(self, img_shape): FILE: tests/transforms/test_gaussian_sharpen.py class TestGaussianSharpen (line 84) | class TestGaussianSharpen(unittest.TestCase): method test_value (line 86) | def test_value(self, arguments, image, expected_data): FILE: tests/transforms/test_gaussian_sharpend.py class TestGaussianSharpend (line 84) | class TestGaussianSharpend(unittest.TestCase): method test_value (line 86) | def test_value(self, arguments, image, expected_data): FILE: tests/transforms/test_gaussian_smooth.py class TestGaussianSmooth (line 88) | class TestGaussianSmooth(unittest.TestCase): method test_value (line 90) | def test_value(self, arguments, image, expected_data): FILE: tests/transforms/test_gaussian_smoothd.py class TestGaussianSmoothd (line 88) | class TestGaussianSmoothd(unittest.TestCase): method test_value (line 90) | def test_value(self, arguments, image, expected_data): FILE: tests/transforms/test_generate_heatmap.py function _argmax_nd (line 24) | def _argmax_nd(x) -> np.ndarray: class TestGenerateHeatmap (line 107) | class TestGenerateHeatmap(unittest.TestCase): method test_array_2d (line 109) | def test_array_2d(self, _, points, params, expected_shape): method test_array_3d_torch_output (line 135) | def test_array_3d_torch_output(self, _, points, params, expected_shape... method test_array_3d_numpy_output (line 146) | def test_array_3d_numpy_output(self, _, points, params, expected_shape... method test_array_torch_device_and_dtype_propagation (line 156) | def test_array_torch_device_and_dtype_propagation( method test_array_channel_order_identity (line 168) | def test_array_channel_order_identity(self): method test_array_points_out_of_bounds (line 180) | def test_array_points_out_of_bounds(self): method test_array_sigma_scaling_effect (line 196) | def test_array_sigma_scaling_effect(self, _, pt, params, expected_shape): method test_invalid_points_shape_raises (line 206) | def test_invalid_points_shape_raises(self): method test_truncated_parameter (line 216) | def test_truncated_parameter(self, _, pt, params, expected_shape): method test_torch_to_torch_type_preservation (line 226) | def test_torch_to_torch_type_preservation(self): method test_numpy_to_numpy_type_preservation (line 235) | def test_numpy_to_numpy_type_preservation(self): method test_dtype_override_torch (line 243) | def test_dtype_override_torch(self): method test_dtype_override_numpy (line 251) | def test_dtype_override_numpy(self): FILE: tests/transforms/test_generate_heatmapd.py class TestGenerateHeatmapd (line 81) | class TestGenerateHeatmapd(unittest.TestCase): method test_dict_with_reference_meta (line 83) | def test_dict_with_reference_meta(self, _, points, params, expected_sh... method test_dict_static_shape (line 104) | def test_dict_static_shape(self, _, points, params, expected_shape, ex... method test_dict_missing_shape_raises (line 119) | def test_dict_missing_shape_raises(self): method test_dict_dtype_control (line 126) | def test_dict_dtype_control(self, _, points, params, expected_shape, e... method test_dict_various_sigma (line 139) | def test_dict_various_sigma(self, _, points, params, expected_shape): method test_dict_multiple_keys (line 150) | def test_dict_multiple_keys(self): method test_dict_mismatched_heatmap_keys_length (line 170) | def test_dict_mismatched_heatmap_keys_length(self): method test_dict_mismatched_ref_image_keys_length (line 179) | def test_dict_mismatched_ref_image_keys_length(self): method test_dict_per_key_spatial_shape_mismatch (line 189) | def test_dict_per_key_spatial_shape_mismatch(self): method test_metatensor_points_with_ref (line 199) | def test_metatensor_points_with_ref(self): FILE: tests/transforms/test_generate_label_classes_crop_centers.py class TestGenerateLabelClassesCropCenters (line 50) | class TestGenerateLabelClassesCropCenters(unittest.TestCase): method test_type_shape (line 52) | def test_type_shape(self, input_data, expected_type, expected_count, e... FILE: tests/transforms/test_generate_pos_neg_label_crop_centers.py class TestGeneratePosNegLabelCropCenters (line 53) | class TestGeneratePosNegLabelCropCenters(unittest.TestCase): method test_type_shape (line 55) | def test_type_shape(self, input_data, expected_type, expected_count, e... FILE: tests/transforms/test_generate_spatial_bounding_box.py class TestGenerateSpatialBoundingBox (line 106) | class TestGenerateSpatialBoundingBox(unittest.TestCase): method test_value (line 108) | def test_value(self, input_data, expected_box): FILE: tests/transforms/test_get_extreme_points.py class TestGetExtremePoints (line 49) | class TestGetExtremePoints(unittest.TestCase): method test_type_shape (line 51) | def test_type_shape(self, input_data, expected): FILE: tests/transforms/test_gibbs_noise.py class TestGibbsNoise (line 33) | class TestGibbsNoise(unittest.TestCase): method setUp (line 34) | def setUp(self): method tearDown (line 38) | def tearDown(self): method get_data (line 42) | def get_data(im_shape, input_type): method test_same_result (line 48) | def test_same_result(self, im_shape, input_type): method test_identity (line 57) | def test_identity(self, im_shape, input_type): method test_alpha_1 (line 65) | def test_alpha_1(self, im_shape, input_type): FILE: tests/transforms/test_gibbs_noised.py class TestGibbsNoised (line 35) | class TestGibbsNoised(unittest.TestCase): method setUp (line 36) | def setUp(self): method tearDown (line 40) | def tearDown(self): method get_data (line 44) | def get_data(im_shape, input_type): method test_same_result (line 50) | def test_same_result(self, im_shape, input_type): method test_identity (line 60) | def test_identity(self, im_shape, input_type): method test_alpha_1 (line 69) | def test_alpha_1(self, im_shape, input_type): method test_dict_matches (line 78) | def test_dict_matches(self, im_shape, input_type): FILE: tests/transforms/test_grid_distortion.py class TestGridDistortion (line 101) | class TestGridDistortion(unittest.TestCase): method test_grid_distortion (line 103) | def test_grid_distortion(self, input_param, input_data, expected_val): FILE: tests/transforms/test_grid_distortiond.py class TestGridDistortiond (line 77) | class TestGridDistortiond(unittest.TestCase): method test_grid_distortiond (line 79) | def test_grid_distortiond(self, input_param, input_data, expected_val_... FILE: tests/transforms/test_grid_split.py class TestGridSplit (line 68) | class TestGridSplit(unittest.TestCase): method test_split_patch_single_call (line 70) | def test_split_patch_single_call(self, in_type, input_parameters, imag... method test_split_patch_multiple_call (line 78) | def test_split_patch_multiple_call(self, in_type, input_parameters, im... FILE: tests/transforms/test_grid_splitd.py class TestGridSplitd (line 72) | class TestGridSplitd(unittest.TestCase): method test_split_patch_single_call (line 74) | def test_split_patch_single_call(self, in_type, input_parameters, img_... method test_split_patch_multiple_call (line 84) | def test_split_patch_multiple_call(self, in_type, input_parameters, im... FILE: tests/transforms/test_histogram_normalize.py class TestHistogramNormalize (line 50) | class TestHistogramNormalize(unittest.TestCase): method test_value (line 52) | def test_value(self, arguments, image, expected_data): FILE: tests/transforms/test_histogram_normalized.py class TestHistogramNormalized (line 50) | class TestHistogramNormalized(unittest.TestCase): method test_value (line 52) | def test_value(self, arguments, image, expected_data): FILE: tests/transforms/test_image_filter.py class TestModule (line 40) | class TestModule(torch.nn.Module): method __init__ (line 43) | def __init__(self): method forward (line 46) | def forward(self, x): class TestNotAModuleOrTransform (line 50) | class TestNotAModuleOrTransform: class TestImageFilter (line 54) | class TestImageFilter(unittest.TestCase): method test_init_from_string (line 57) | def test_init_from_string(self, filter_name): method test_init_raises (line 61) | def test_init_raises(self): method test_init_from_array (line 77) | def test_init_from_array(self): method test_init_from_module (line 88) | def test_init_from_module(self): method test_init_from_transform (line 93) | def test_init_from_transform(self): method test_init_from_wrong_type_fails (line 96) | def test_init_from_wrong_type_fails(self): method test_2d_filter_correctness (line 102) | def test_2d_filter_correctness(self, filter_name): method test_call_2d (line 109) | def test_call_2d(self, filter_name): method test_call_3d (line 116) | def test_call_3d(self, filter_name): method test_pass_applied_operations (line 122) | def test_pass_applied_operations(self): method test_pass_empty_metadata_dict (line 130) | def test_pass_empty_metadata_dict(self): method test_gaussian_filter_without_filter_size (line 137) | def test_gaussian_filter_without_filter_size(self): class TestImageFilterDict (line 144) | class TestImageFilterDict(unittest.TestCase): method test_init_from_string_dict (line 147) | def test_init_from_string_dict(self, filter_name): method test_init_from_array_dict (line 153) | def test_init_from_array_dict(self): method test_call_2d (line 160) | def test_call_2d(self, filter_name): method test_call_3d (line 167) | def test_call_3d(self, filter_name): class TestRandImageFilter (line 174) | class TestRandImageFilter(unittest.TestCase): method test_init_from_string (line 177) | def test_init_from_string(self, filter_name): method test_init_from_array (line 183) | def test_init_from_array(self): method test_call_2d_prob_1 (line 190) | def test_call_2d_prob_1(self, filter_name): method test_call_3d_prob_1 (line 197) | def test_call_3d_prob_1(self, filter_name): method test_call_2d_prob_0 (line 204) | def test_call_2d_prob_0(self, filter_name): method test_call_3d_prob_0 (line 211) | def test_call_3d_prob_0(self, filter_name): class TestRandImageFilterDict (line 218) | class TestRandImageFilterDict(unittest.TestCase): method test_init_from_string_dict (line 221) | def test_init_from_string_dict(self, filter_name): method test_init_from_array_dict (line 227) | def test_init_from_array_dict(self): method test_call_2d_prob_1 (line 234) | def test_call_2d_prob_1(self, filter_name): method test_call_3d_prob_1 (line 240) | def test_call_3d_prob_1(self, filter_name): method test_call_2d_prob_0 (line 246) | def test_call_2d_prob_0(self, filter_name): method test_call_3d_prob_0 (line 252) | def test_call_3d_prob_0(self, filter_name): FILE: tests/transforms/test_intensity_stats.py class TestIntensityStats (line 55) | class TestIntensityStats(unittest.TestCase): method test_value (line 57) | def test_value(self, input_param, img, meta_dict, expected): method test_mask (line 63) | def test_mask(self): FILE: tests/transforms/test_intensity_statsd.py class TestIntensityStatsd (line 54) | class TestIntensityStatsd(unittest.TestCase): method test_value (line 57) | def test_value(self, input_param, data, meta_key, expected): method test_dataloader (line 63) | def test_dataloader(self): method test_mask (line 81) | def test_mask(self): FILE: tests/transforms/test_inverse_collation.py class TestInverseCollation (line 90) | class TestInverseCollation(unittest.TestCase): method setUp (line 93) | def setUp(self): method tearDown (line 111) | def tearDown(self): method test_collation (line 115) | def test_collation(self, _, transform, collate_fn, ndim): FILE: tests/transforms/test_k_space_spike_noise.py class TestKSpaceSpikeNoise (line 34) | class TestKSpaceSpikeNoise(unittest.TestCase): method setUp (line 35) | def setUp(self): method tearDown (line 39) | def tearDown(self): method get_data (line 43) | def get_data(im_shape, im_type): method test_same_result (line 49) | def test_same_result(self, im_shape, im_type, k_intensity): method test_highlighted_kspace_pixel (line 64) | def test_highlighted_kspace_pixel(self, im_shape, as_tensor_input, k_i... FILE: tests/transforms/test_k_space_spike_noised.py class TestKSpaceSpikeNoised (line 35) | class TestKSpaceSpikeNoised(unittest.TestCase): method setUp (line 36) | def setUp(self): method tearDown (line 40) | def tearDown(self): method get_data (line 44) | def get_data(im_shape, im_type): method test_same_result (line 51) | def test_same_result(self, im_shape, im_type): method test_highlighted_kspace_pixel (line 67) | def test_highlighted_kspace_pixel(self, im_shape, im_type): method test_dict_matches (line 85) | def test_dict_matches(self, im_shape, im_type): FILE: tests/transforms/test_keep_largest_connected_component.py function to_onehot (line 27) | def to_onehot(x): class TestKeepLargestConnectedComponent (line 383) | class TestKeepLargestConnectedComponent(unittest.TestCase): method test_correct_results (line 385) | def test_correct_results(self, _, args, input_image, expected): method test_correct_results_before_after_onehot (line 391) | def test_correct_results_before_after_onehot(self, _, args, input_imag... FILE: tests/transforms/test_keep_largest_connected_componentd.py class TestKeepLargestConnectedComponentd (line 339) | class TestKeepLargestConnectedComponentd(unittest.TestCase): method test_correct_results (line 341) | def test_correct_results(self, _, args, input_dict, expected): FILE: tests/transforms/test_label_filter.py class TestLabelFilter (line 60) | class TestLabelFilter(unittest.TestCase): method test_correct_results (line 62) | def test_correct_results(self, _, args, input_image, expected): method test_raise_exception (line 68) | def test_raise_exception(self, _, args, input_image, expected_error): FILE: tests/transforms/test_label_to_contour.py function gen_fixed_cube (line 106) | def gen_fixed_cube(array_type): function gen_fixed_img (line 119) | def gen_fixed_img(array_type): class TestContour (line 144) | class TestContour(unittest.TestCase): method test_contour (line 145) | def test_contour(self): FILE: tests/transforms/test_label_to_contourd.py function gen_fixed_cube (line 106) | def gen_fixed_cube(array_type): function gen_fixed_img (line 119) | def gen_fixed_img(array_type): class TestContourd (line 145) | class TestContourd(unittest.TestCase): method test_contour (line 146) | def test_contour(self): FILE: tests/transforms/test_label_to_mask.py class TestLabelToMask (line 61) | class TestLabelToMask(unittest.TestCase): method test_value (line 63) | def test_value(self, arguments, image, expected_data): FILE: tests/transforms/test_label_to_maskd.py class TestLabelToMaskd (line 61) | class TestLabelToMaskd(unittest.TestCase): method test_value (line 63) | def test_value(self, arguments, input_data, expected_data): FILE: tests/transforms/test_load_image.py class _MiniReader (line 39) | class _MiniReader: method __init__ (line 42) | def __init__(self, is_compatible=False): method verify_suffix (line 45) | def verify_suffix(self, _name): method read (line 48) | def read(self, name): method get_data (line 51) | def get_data(self, _obj): class TestLoadImage (line 188) | class TestLoadImage(unittest.TestCase): method setUpClass (line 190) | def setUpClass(cls): method tearDownClass (line 204) | def tearDownClass(cls): method test_nibabel_reader (line 211) | def test_nibabel_reader(self, input_param, filenames, expected_shape): method test_nibabel_reader_gpu (line 228) | def test_nibabel_reader_gpu(self, input_param, filenames, expected_sha... method test_itk_reader (line 253) | def test_itk_reader(self, input_param, filenames, expected_shape): method test_itk_dicom_series_reader (line 268) | def test_itk_dicom_series_reader(self, input_param, filenames, expecte... method test_pydicom_gpu_reader (line 288) | def test_pydicom_gpu_reader(self, input_param, filenames, expected_sha... method test_no_files (line 304) | def test_no_files(self): method test_itk_dicom_series_reader_single (line 309) | def test_itk_dicom_series_reader_single(self): method test_itk_reader_multichannel (line 325) | def test_itk_reader_multichannel(self): method test_dicom_reader_consistency (line 339) | def test_dicom_reader_consistency(self, filenames): method test_pydicom_reader_gpu_cpu_consistency (line 354) | def test_pydicom_reader_gpu_cpu_consistency(self, filenames): method test_dicom_reader_consistency_single (line 365) | def test_dicom_reader_consistency_single(self): method test_load_nifti_multichannel (line 376) | def test_load_nifti_multichannel(self): method test_load_png (line 391) | def test_load_png(self): method test_register (line 401) | def test_register(self): method test_kwargs (line 414) | def test_kwargs(self): method test_my_reader (line 433) | def test_my_reader(self): method test_itk_meta (line 445) | def test_itk_meta(self): method test_channel_dim (line 457) | def test_channel_dim(self, input_param, filename, expected_shape): class TestLoadImageMeta (line 471) | class TestLoadImageMeta(unittest.TestCase): method setUpClass (line 473) | def setUpClass(cls): method tearDownClass (line 481) | def tearDownClass(cls): method test_correct (line 486) | def test_correct(self, input_param, expected_shape, track_meta): FILE: tests/transforms/test_load_imaged.py class TestLoadImaged (line 48) | class TestLoadImaged(unittest.TestCase): method test_shape (line 50) | def test_shape(self, input_param, expected_shape): method test_register (line 62) | def test_register(self): method test_channel_dim (line 75) | def test_channel_dim(self): method test_no_file (line 88) | def test_no_file(self): class TestConsistency (line 96) | class TestConsistency(unittest.TestCase): method _cmp (line 97) | def _cmp(self, filename, ch_shape, reader_1, reader_2, outname, ext): method test_dicom (line 126) | def test_dicom(self): method test_multi_dicom (line 133) | def test_multi_dicom(self): method test_png (line 142) | def test_png(self): class TestLoadImagedMeta (line 157) | class TestLoadImagedMeta(unittest.TestCase): method setUpClass (line 159) | def setUpClass(cls): method tearDownClass (line 169) | def tearDownClass(cls): method test_correct (line 174) | def test_correct(self, input_p, expected_shape, track_meta): FILE: tests/transforms/test_load_spacing_orientation.py class TestLoadSpacingOrientation (line 33) | class TestLoadSpacingOrientation(unittest.TestCase): method load_image (line 35) | def load_image(filename): method test_load_spacingd (line 41) | def test_load_spacingd(self, filename): method test_load_spacingd_rotate (line 57) | def test_load_spacingd_rotate(self, filename): method test_load_spacingd_non_diag (line 81) | def test_load_spacingd_non_diag(self): method test_load_spacingd_rotate_non_diag (line 100) | def test_load_spacingd_rotate_non_diag(self): method test_load_spacingd_rotate_non_diag_ornt (line 108) | def test_load_spacingd_rotate_non_diag_ornt(self): method test_load_spacingd_non_diag_ornt (line 122) | def test_load_spacingd_non_diag_ornt(self): FILE: tests/transforms/test_map_and_generate_sampling_centers.py class TestMapAndGenerateSamplingCenters (line 65) | class TestMapAndGenerateSamplingCenters(unittest.TestCase): method test_map_and_generate_sampling_centers (line 67) | def test_map_and_generate_sampling_centers(self, input_data, expected_... FILE: tests/transforms/test_map_binary_to_indices.py class TestMapBinaryToIndices (line 66) | class TestMapBinaryToIndices(unittest.TestCase): method test_type_shape (line 68) | def test_type_shape(self, input_data, expected_fg, expected_bg): FILE: tests/transforms/test_map_classes_to_indices.py class TestMapClassesToIndices (line 126) | class TestMapClassesToIndices(unittest.TestCase): method test_value (line 128) | def test_value(self, input_data, expected_indices): FILE: tests/transforms/test_map_label_value.py class TestMapLabelValue (line 77) | class TestMapLabelValue(unittest.TestCase): method test_shape (line 79) | def test_shape(self, input_param, input_data, expected_value): FILE: tests/transforms/test_map_label_valued.py class TestMapLabelValued (line 71) | class TestMapLabelValued(unittest.TestCase): method test_shape (line 75) | def test_shape(self, input_param, input_data, expected_value): FILE: tests/transforms/test_map_transform.py class MapTest (line 25) | class MapTest(MapTransform): method __call__ (line 27) | def __call__(self, data): class TestRandomizable (line 31) | class TestRandomizable(unittest.TestCase): method test_keys (line 34) | def test_keys(self, keys, expected): method test_wrong_keys (line 39) | def test_wrong_keys(self, exception, keys): FILE: tests/transforms/test_mask_intensity.py class TestMaskIntensity (line 57) | class TestMaskIntensity(unittest.TestCase): method test_value (line 59) | def test_value(self, arguments, image, expected_data): method test_runtime_mask (line 64) | def test_runtime_mask(self): FILE: tests/transforms/test_mask_intensityd.py class TestMaskIntensityd (line 59) | class TestMaskIntensityd(unittest.TestCase): method test_value (line 62) | def test_value(self, arguments, image, expected_data): FILE: tests/transforms/test_mean_ensemble.py class TestMeanEnsemble (line 60) | class TestMeanEnsemble(unittest.TestCase): method test_value (line 62) | def test_value(self, input_param, img, expected_value): method test_cuda_value (line 66) | def test_cuda_value(self): FILE: tests/transforms/test_mean_ensembled.py class TestMeanEnsembled (line 74) | class TestMeanEnsembled(unittest.TestCase): method test_value (line 76) | def test_value(self, input_param, data, expected_value): method test_cuda_value (line 80) | def test_cuda_value(self): FILE: tests/transforms/test_median_smooth.py class TestMedianSmooth (line 33) | class TestMedianSmooth(unittest.TestCase): method test_value (line 35) | def test_value(self, arguments, image, expected_data): FILE: tests/transforms/test_median_smoothd.py class TestMedianSmoothd (line 57) | class TestMedianSmoothd(unittest.TestCase): method test_value (line 59) | def test_value(self, arguments, image, expected_data): FILE: tests/transforms/test_morphological_ops.py class TestMorph (line 79) | class TestMorph(unittest.TestCase): method test_shape (line 81) | def test_shape(self, input_data, expected_result): method test_value_t (line 86) | def test_value_t(self, input_data, expected_result): method test_value (line 93) | def test_value(self, input_data, expected_erode_result, expected_dilat... FILE: tests/transforms/test_nifti_endianness.py class TestNiftiEndianness (line 48) | class TestNiftiEndianness(unittest.TestCase): method setUp (line 50) | def setUp(self): method test_endianness (line 56) | def test_endianness(self, endianness, use_array, image_only): method test_switch (line 69) | def test_switch(self): # verify data types method test_pil (line 96) | def test_pil(self): FILE: tests/transforms/test_normalize_intensity.py class TestNormalizeIntensity (line 85) | class TestNormalizeIntensity(NumpyImageTestCase2D): method test_default (line 87) | def test_default(self, im_type): method test_nonzero (line 96) | def test_nonzero(self, in_type, input_param, input_data, expected_data): method test_channel_wise (line 103) | def test_channel_wise(self, im_type): method test_channel_wise_int (line 111) | def test_channel_wise_int(self, im_type): method test_value_errors (line 132) | def test_value_errors(self, im_type): FILE: tests/transforms/test_normalize_intensityd.py class TestNormalizeIntensityd (line 53) | class TestNormalizeIntensityd(NumpyImageTestCase2D): method test_image_normalize_intensityd (line 55) | def test_image_normalize_intensityd(self, im_type): method test_nonzero (line 64) | def test_nonzero(self, input_param, input_data, expected_data): method test_channel_wise (line 71) | def test_channel_wise(self, im_type): FILE: tests/transforms/test_nvtx_decorator.py class TestNVTXRangeDecorator (line 74) | class TestNVTXRangeDecorator(unittest.TestCase): method test_transform_array (line 76) | def test_transform_array(self, input): method test_tranform_dict (line 101) | def test_tranform_dict(self, input): method test_wrapper_tranforms (line 129) | def test_wrapper_tranforms(self, input): method test_recursive_tranforms (line 151) | def test_recursive_tranforms(self, input, transforms): method test_recursive_list_tranforms (line 166) | def test_recursive_list_tranforms(self, input, transform_list): method test_tranform_randomized (line 179) | def test_tranform_randomized(self, input): method test_network (line 219) | def test_network(self, input): method test_loss (line 246) | def test_loss(self, input): method test_context_manager (line 275) | def test_context_manager(self): FILE: tests/transforms/test_nvtx_transform.py class TestNVTXTransforms (line 45) | class TestNVTXTransforms(unittest.TestCase): method test_nvtx_transforms_alone (line 49) | def test_nvtx_transforms_alone(self, input): method test_nvtx_transfroms_array (line 71) | def test_nvtx_transfroms_array(self, input): method test_nvtx_transfroms_dict (line 107) | def test_nvtx_transfroms_dict(self, input): FILE: tests/transforms/test_orientation.py class TestOrientationCase (line 254) | class TestOrientationCase(unittest.TestCase): method test_ornt_meta (line 256) | def test_ornt_meta( method test_ornt_torch (line 280) | def test_ornt_torch(self, init_param, img: torch.Tensor, track_meta: b... method test_bad_params (line 300) | def test_bad_params(self, init_param, img: torch.Tensor, affine: torch... method test_inverse (line 306) | def test_inverse(self, lps_convention: bool, device): FILE: tests/transforms/test_orientationd.py class TestOrientationdCase (line 108) | class TestOrientationdCase(unittest.TestCase): method test_orntd (line 110) | def test_orntd( method test_orntd_torch (line 138) | def test_orntd_torch(self, init_param, img: torch.Tensor, track_meta: ... FILE: tests/transforms/test_rand_adjust_contrast.py class TestRandAdjustContrast (line 27) | class TestRandAdjustContrast(NumpyImageTestCase2D): method test_correct_results (line 29) | def test_correct_results(self, gamma): FILE: tests/transforms/test_rand_adjust_contrastd.py class TestRandAdjustContrastd (line 27) | class TestRandAdjustContrastd(NumpyImageTestCase2D): method test_correct_results (line 29) | def test_correct_results(self, gamma): FILE: tests/transforms/test_rand_affine.py class TestRandAffine (line 142) | class TestRandAffine(unittest.TestCase): method test_rand_affine (line 144) | def test_rand_affine(self, input_param, input_data, expected_val): method test_ill_cache (line 155) | def test_ill_cache(self, spatial_size): method test_skipped_transform_consistency (line 160) | def test_skipped_transform_consistency(self, im, in_dtype): method test_no_randomize (line 175) | def test_no_randomize(self, initial_randomize, cache_grid): FILE: tests/transforms/test_rand_affine_grid.py class TestRandAffineGrid (line 200) | class TestRandAffineGrid(unittest.TestCase): method test_rand_affine_grid (line 202) | def test_rand_affine_grid(self, input_param, input_data, expected_val): FILE: tests/transforms/test_rand_affined.py class TestRandAffined (line 218) | class TestRandAffined(unittest.TestCase): method test_rand_affined (line 220) | def test_rand_affined(self, input_param, input_data, expected_val, tra... method test_ill_cache (line 275) | def test_ill_cache(self, spatial_size): FILE: tests/transforms/test_rand_axis_flip.py class TestRandAxisFlip (line 25) | class TestRandAxisFlip(NumpyImageTestCase2D): method test_correct_results (line 26) | def test_correct_results(self): FILE: tests/transforms/test_rand_axis_flipd.py class TestRandAxisFlip (line 25) | class TestRandAxisFlip(NumpyImageTestCase3D): method test_correct_results (line 26) | def test_correct_results(self): FILE: tests/transforms/test_rand_bias_field.py class TestRandBiasField (line 32) | class TestRandBiasField(unittest.TestCase): method test_output_shape (line 34) | def test_output_shape(self, class_args, img_shape): method test_zero_range (line 48) | def test_zero_range(self, class_args, img_shape): method test_one_range_input (line 55) | def test_one_range_input(self, class_args, expected): method test_zero_prob (line 61) | def test_zero_prob(self): FILE: tests/transforms/test_rand_bias_fieldd.py class TestRandBiasFieldd (line 30) | class TestRandBiasFieldd(unittest.TestCase): method test_output_shape (line 33) | def test_output_shape(self, class_args, img_shape): method test_zero_range (line 41) | def test_zero_range(self, class_args, img_shape): method test_one_range_input (line 49) | def test_one_range_input(self, class_args, expected): method test_zero_prob (line 56) | def test_zero_prob(self): FILE: tests/transforms/test_rand_coarse_dropout.py class TestRandCoarseDropout (line 65) | class TestRandCoarseDropout(unittest.TestCase): method test_value (line 69) | def test_value(self, input_param, input_data): FILE: tests/transforms/test_rand_coarse_dropoutd.py class TestRandCoarseDropoutd (line 65) | class TestRandCoarseDropoutd(unittest.TestCase): method test_value (line 68) | def test_value(self, input_param, input_data): FILE: tests/transforms/test_rand_coarse_shuffle.py class TestRandCoarseShuffle (line 54) | class TestRandCoarseShuffle(unittest.TestCase): method test_shuffle (line 57) | def test_shuffle(self, input_param, input_data, expected_val): FILE: tests/transforms/test_rand_coarse_shuffled.py class TestRandCoarseShuffled (line 48) | class TestRandCoarseShuffled(unittest.TestCase): method test_shuffle (line 51) | def test_shuffle(self, input_param, input_data, expected_val): FILE: tests/transforms/test_rand_crop_by_label_classes.py class TestRandCropByLabelClasses (line 129) | class TestRandCropByLabelClasses(unittest.TestCase): method test_type_shape (line 131) | def test_type_shape(self, input_param, input_data, expected_type, expe... method test_indices (line 137) | def test_indices(self, input_param, input_data, expected_type, expecte... method test_pending_ops (line 149) | def test_pending_ops(self, input_param, input_data, _expected_type, _e... FILE: tests/transforms/test_rand_crop_by_label_classesd.py class TestRandCropByLabelClassesd (line 122) | class TestRandCropByLabelClassesd(unittest.TestCase): method test_type_shape (line 124) | def test_type_shape(self, input_param, input_data, expected_type, expe... method test_pending_ops (line 138) | def test_pending_ops(self, input_param, input_data, _expected_type, _e... FILE: tests/transforms/test_rand_crop_by_pos_neg_label.py class TestRandCropByPosNegLabel (line 98) | class TestRandCropByPosNegLabel(unittest.TestCase): method convert_data_type (line 100) | def convert_data_type(im_type, d, keys=("img", "image", "label")): method test_type_shape (line 108) | def test_type_shape(self, input_param, input_data, expected_shape): method test_pending_ops (line 128) | def test_pending_ops(self, input_param, input_data, _expected_shape): FILE: tests/transforms/test_rand_crop_by_pos_neg_labeld.py class TestRandCropByPosNegLabeld (line 109) | class TestRandCropByPosNegLabeld(unittest.TestCase): method convert_data_type (line 111) | def convert_data_type(im_type, d, keys=("img", "image", "label")): method test_type_shape (line 119) | def test_type_shape(self, input_param, input_data, expected_shape): method test_correct_center (line 137) | def test_correct_center(self): method test_pending_ops (line 145) | def test_pending_ops(self, input_param, input_data, _expected_shape): FILE: tests/transforms/test_rand_cucim_dict_transform.py class TestRandCuCIMDict (line 80) | class TestRandCuCIMDict(unittest.TestCase): method test_tramsforms_numpy_single (line 93) | def test_tramsforms_numpy_single(self, params, input, expected): method test_tramsforms_numpy_batch (line 112) | def test_tramsforms_numpy_batch(self, params, input, expected): method test_tramsforms_cupy_single (line 132) | def test_tramsforms_cupy_single(self, params, input, expected): method test_tramsforms_cupy_batch (line 152) | def test_tramsforms_cupy_batch(self, params, input, expected): FILE: tests/transforms/test_rand_cucim_transform.py class TestRandCuCIM (line 80) | class TestRandCuCIM(unittest.TestCase): method test_tramsforms_numpy_single (line 93) | def test_tramsforms_numpy_single(self, params, input, expected): method test_tramsforms_numpy_batch (line 112) | def test_tramsforms_numpy_batch(self, params, input, expected): method test_tramsforms_cupy_single (line 132) | def test_tramsforms_cupy_single(self, params, input, expected): method test_tramsforms_cupy_batch (line 152) | def test_tramsforms_cupy_batch(self, params, input, expected): FILE: tests/transforms/test_rand_deform_grid.py class TestRandDeformGrid (line 128) | class TestRandDeformGrid(unittest.TestCase): method test_rand_deform_grid (line 130) | def test_rand_deform_grid(self, input_param, input_data, expected_val): FILE: tests/transforms/test_rand_elastic_2d.py class TestRand2DElastic (line 112) | class TestRand2DElastic(unittest.TestCase): method test_rand_2d_elastic (line 114) | def test_rand_2d_elastic(self, input_param, input_data, expected_val): FILE: tests/transforms/test_rand_elastic_3d.py class TestRand3DElastic (line 88) | class TestRand3DElastic(unittest.TestCase): method test_rand_3d_elastic (line 90) | def test_rand_3d_elastic(self, input_param, input_data, expected_val): FILE: tests/transforms/test_rand_elasticd_2d.py class TestRand2DElasticd (line 162) | class TestRand2DElasticd(unittest.TestCase): method test_rand_2d_elasticd (line 164) | def test_rand_2d_elasticd(self, input_param, input_data, expected_val): FILE: tests/transforms/test_rand_elasticd_3d.py class TestRand3DElasticd (line 141) | class TestRand3DElasticd(unittest.TestCase): method test_rand_3d_elasticd (line 143) | def test_rand_3d_elasticd(self, input_param, input_data, expected_val): FILE: tests/transforms/test_rand_flip.py class TestRandFlip (line 30) | class TestRandFlip(NumpyImageTestCase2D): method test_invalid_inputs (line 32) | def test_invalid_inputs(self, _, spatial_axis, raises): method test_correct_results (line 38) | def test_correct_results(self, _, spatial_axis): FILE: tests/transforms/test_rand_flipd.py class TestRandFlipd (line 28) | class TestRandFlipd(NumpyImageTestCase2D): method test_correct_results (line 30) | def test_correct_results(self, _, spatial_axis): FILE: tests/transforms/test_rand_gaussian_noise.py class TestRandGaussianNoise (line 30) | class TestRandGaussianNoise(NumpyImageTestCase2D): method test_correct_results (line 32) | def test_correct_results(self, _, im_type, mean, std, sample_std): FILE: tests/transforms/test_rand_gaussian_noised.py class TestRandGaussianNoised (line 32) | class TestRandGaussianNoised(NumpyImageTestCase2D): method test_correct_results (line 34) | def test_correct_results(self, _, im_type, keys, mean, std, sample_std): FILE: tests/transforms/test_rand_gaussian_sharpen.py class TestRandGaussianSharpen (line 130) | class TestRandGaussianSharpen(unittest.TestCase): method test_value (line 132) | def test_value(self, arguments, image, expected_data): FILE: tests/transforms/test_rand_gaussian_sharpend.py class TestRandGaussianSharpend (line 133) | class TestRandGaussianSharpend(unittest.TestCase): method test_value (line 135) | def test_value(self, arguments, image, expected_data): FILE: tests/transforms/test_rand_gaussian_smooth.py class TestRandGaussianSmooth (line 88) | class TestRandGaussianSmooth(unittest.TestCase): method test_value (line 90) | def test_value(self, arguments, image, expected_data): FILE: tests/transforms/test_rand_gaussian_smoothd.py class TestRandGaussianSmoothd (line 88) | class TestRandGaussianSmoothd(unittest.TestCase): method test_value (line 90) | def test_value(self, arguments, image, expected_data): FILE: tests/transforms/test_rand_gibbs_noise.py class TestRandGibbsNoise (line 34) | class TestRandGibbsNoise(unittest.TestCase): method setUp (line 35) | def setUp(self): method tearDown (line 39) | def tearDown(self): method get_data (line 43) | def get_data(im_shape, input_type): method test_0_prob (line 49) | def test_0_prob(self, im_shape, input_type): method test_same_result (line 57) | def test_same_result(self, im_shape, input_type): method test_identity (line 68) | def test_identity(self, im_shape, input_type): method test_alpha_1 (line 76) | def test_alpha_1(self, im_shape, input_type): method test_alpha (line 84) | def test_alpha(self, im_shape, input_type): method test_alpha_single_value (line 93) | def test_alpha_single_value(self, im_shape, input_type): FILE: tests/transforms/test_rand_gibbs_noised.py class TestRandGibbsNoised (line 36) | class TestRandGibbsNoised(unittest.TestCase): method setUp (line 37) | def setUp(self): method tearDown (line 41) | def tearDown(self): method get_data (line 45) | def get_data(im_shape, input_type): method test_0_prob (line 51) | def test_0_prob(self, im_shape, input_type): method test_same_result (line 60) | def test_same_result(self, im_shape, input_type): method test_identity (line 72) | def test_identity(self, im_shape, input_type): method test_alpha_1 (line 81) | def test_alpha_1(self, im_shape, input_type): method test_dict_matches (line 90) | def test_dict_matches(self, im_shape, input_type): method test_alpha (line 100) | def test_alpha(self, im_shape, input_type): method test_alpha_single_value (line 108) | def test_alpha_single_value(self, im_shape, input_type): FILE: tests/transforms/test_rand_grid_distortion.py class TestRandGridDistortion (line 86) | class TestRandGridDistortion(unittest.TestCase): method test_rand_grid_distortion (line 88) | def test_rand_grid_distortion(self, input_param, seed, input_data, exp... FILE: tests/transforms/test_rand_grid_distortiond.py class TestRandGridDistortiond (line 79) | class TestRandGridDistortiond(unittest.TestCase): method test_rand_grid_distortiond (line 81) | def test_rand_grid_distortiond(self, input_param, seed, input_data, ex... FILE: tests/transforms/test_rand_histogram_shift.py class TestRandHistogramShift (line 58) | class TestRandHistogramShift(unittest.TestCase): method test_rand_histogram_shift (line 60) | def test_rand_histogram_shift(self, input_param, input_data, expected_... method test_interp (line 66) | def test_interp(self): method test_warn (line 85) | def test_warn(self, input_param, input_data, expected_val): FILE: tests/transforms/test_rand_k_space_spike_noise.py class TestRandKSpaceSpikeNoise (line 31) | class TestRandKSpaceSpikeNoise(unittest.TestCase): method setUp (line 32) | def setUp(self): method tearDown (line 36) | def tearDown(self): method get_data (line 40) | def get_data(im_shape, im_type): method test_0_prob (line 46) | def test_0_prob(self, im_shape, im_type, channel_wise): method test_1_prob (line 54) | def test_1_prob(self, im_shape, im_type, channel_wise): method test_same_result (line 64) | def test_same_result(self, im_shape, im_type, channel_wise): method test_intensity (line 75) | def test_intensity(self, im_shape, im_type, channel_wise): method test_default_intensity (line 84) | def test_default_intensity(self, im_shape, im_type, channel_wise): FILE: tests/transforms/test_rand_k_space_spike_noised.py class TestKSpaceSpikeNoised (line 32) | class TestKSpaceSpikeNoised(unittest.TestCase): method setUp (line 33) | def setUp(self): method tearDown (line 37) | def tearDown(self): method get_data (line 41) | def get_data(im_shape, im_type): method test_same_result (line 48) | def test_same_result(self, im_shape, im_type): method test_0_prob (line 62) | def test_0_prob(self, im_shape, im_type): FILE: tests/transforms/test_rand_rician_noise.py class TestRandRicianNoise (line 29) | class TestRandRicianNoise(NumpyImageTestCase2D): method test_correct_results (line 31) | def test_correct_results(self, _, in_type, mean, std): FILE: tests/transforms/test_rand_rician_noised.py class TestRandRicianNoisedNumpy (line 31) | class TestRandRicianNoisedNumpy(NumpyImageTestCase2D): method test_correct_results (line 33) | def test_correct_results(self, _, in_type, keys, mean, std): FILE: tests/transforms/test_rand_rotate.py class TestRandRotate2D (line 75) | class TestRandRotate2D(NumpyImageTestCase2D): method test_correct_results (line 77) | def test_correct_results(self, im_type, degrees, keep_size, mode, padd... class TestRandRotate3D (line 114) | class TestRandRotate3D(NumpyImageTestCase3D): method test_correct_results (line 116) | def test_correct_results(self, im_type, x, y, z, keep_size, mode, padd... class TestRandRotateDtype (line 148) | class TestRandRotateDtype(NumpyImageTestCase2D): method test_correct_results (line 150) | def test_correct_results(self, im_type, degrees, keep_size, mode, padd... FILE: tests/transforms/test_rand_rotate90.py class TestRandRotate90 (line 25) | class TestRandRotate90(NumpyImageTestCase2D): method test_default (line 26) | def test_default(self): method test_k (line 42) | def test_k(self): method test_spatial_axes (line 65) | def test_spatial_axes(self): method test_prob_k_spatial_axes (line 82) | def test_prob_k_spatial_axes(self): FILE: tests/transforms/test_rand_rotate90d.py class TestRandRotate90d (line 25) | class TestRandRotate90d(NumpyImageTestCase2D): method test_default (line 26) | def test_default(self): method test_k (line 50) | def test_k(self): method test_spatial_axes (line 68) | def test_spatial_axes(self): method test_prob_k_spatial_axes (line 86) | def test_prob_k_spatial_axes(self): method test_no_key (line 104) | def test_no_key(self): FILE: tests/transforms/test_rand_rotated.py class TestRandRotated2D (line 111) | class TestRandRotated2D(NumpyImageTestCase2D): method test_correct_results (line 113) | def test_correct_results(self, im_type, degrees, keep_size, mode, padd... class TestRandRotated3D (line 155) | class TestRandRotated3D(NumpyImageTestCase3D): method test_correct_shapes (line 157) | def test_correct_shapes(self, im_type, x, y, z, keep_size, mode, paddi... FILE: tests/transforms/test_rand_scale_crop.py class TestRandScaleCrop (line 46) | class TestRandScaleCrop(CropTest): method test_shape (line 50) | def test_shape(self, input_param, input_shape, expected_shape): method test_value (line 54) | def test_value(self, input_param, input_data): method test_random_shape (line 63) | def test_random_shape(self, input_param, input_shape, expected_shape): method test_pending_ops (line 73) | def test_pending_ops(self, input_param, input_shape, _): FILE: tests/transforms/test_rand_scale_cropd.py class TestRandScaleCropd (line 65) | class TestRandScaleCropd(CropTest): method test_shape (line 69) | def test_shape(self, input_param, input_shape, expected_shape): method test_value (line 73) | def test_value(self, input_param, input_im): method test_random_shape (line 83) | def test_random_shape(self, input_param, input_shape, expected_shape): method test_pending_ops (line 93) | def test_pending_ops(self, input_param, input_shape, _): FILE: tests/transforms/test_rand_scale_intensity.py class TestRandScaleIntensity (line 23) | class TestRandScaleIntensity(NumpyImageTestCase2D): method test_value (line 25) | def test_value(self, p): method test_channel_wise (line 37) | def test_channel_wise(self, p): FILE: tests/transforms/test_rand_scale_intensity_fixed_mean.py class TestRandScaleIntensity (line 23) | class TestRandScaleIntensity(NumpyImageTestCase2D): method test_value (line 25) | def test_value(self, p): FILE: tests/transforms/test_rand_scale_intensity_fixed_meand.py class TestRandScaleIntensityFixedMeand (line 22) | class TestRandScaleIntensityFixedMeand(NumpyImageTestCase2D): method test_value (line 23) | def test_value(self): FILE: tests/transforms/test_rand_scale_intensityd.py class TestRandScaleIntensityd (line 22) | class TestRandScaleIntensityd(NumpyImageTestCase2D): method test_value (line 23) | def test_value(self): method test_channel_wise (line 35) | def test_channel_wise(self): FILE: tests/transforms/test_rand_shift_intensity.py class TestRandShiftIntensity (line 23) | class TestRandShiftIntensity(NumpyImageTestCase2D): method test_value (line 25) | def test_value(self, p): method test_channel_wise (line 37) | def test_channel_wise(self, p): FILE: tests/transforms/test_rand_shift_intensityd.py class TestRandShiftIntensityd (line 23) | class TestRandShiftIntensityd(NumpyImageTestCase2D): method test_value (line 24) | def test_value(self): method test_factor (line 36) | def test_factor(self): method test_channel_wise (line 49) | def test_channel_wise(self): FILE: tests/transforms/test_rand_simulate_low_resolution.py class TestRandGaussianSmooth (line 73) | class TestRandGaussianSmooth(unittest.TestCase): method test_value (line 75) | def test_value(self, arguments, image, expected_data): FILE: tests/transforms/test_rand_simulate_low_resolutiond.py class TestRandGaussianSmoothd (line 62) | class TestRandGaussianSmoothd(unittest.TestCase): method test_value (line 64) | def test_value(self, arguments, image, expected_data): FILE: tests/transforms/test_rand_spatial_crop.py class TestRandSpatialCrop (line 58) | class TestRandSpatialCrop(CropTest): method test_shape (line 62) | def test_shape(self, input_param, input_shape, expected_shape): method test_value (line 66) | def test_value(self, input_param, input_data): method test_random_shape (line 75) | def test_random_shape(self, input_param, input_shape, expected_shape): method test_pending_ops (line 98) | def test_pending_ops(self, input_param, input_shape, _): method test_combine_ops (line 102) | def test_combine_ops(self, funcs, input_shape): FILE: tests/transforms/test_rand_spatial_crop_samples.py class TestRandSpatialCropSamples (line 84) | class TestRandSpatialCropSamples(CropTest): method test_shape (line 88) | def test_shape(self, input_param, input_shape, expected_shape, expecte... method test_pending_ops (line 103) | def test_pending_ops(self, input_param, input_shape, _expected_shape, ... FILE: tests/transforms/test_rand_spatial_crop_samplesd.py class TestRandSpatialCropSamplesd (line 92) | class TestRandSpatialCropSamplesd(unittest.TestCase): method test_shape (line 94) | def test_shape(self, input_param, input_data, expected_shape, expected... method test_deep_copy (line 109) | def test_deep_copy(self): method test_pending_ops (line 122) | def test_pending_ops(self, input_param, input_data, _expected_shape, _... FILE: tests/transforms/test_rand_spatial_cropd.py class TestRandSpatialCropd (line 62) | class TestRandSpatialCropd(CropTest): method test_shape (line 66) | def test_shape(self, input_param, input_shape, expected_shape): method test_value (line 70) | def test_value(self, input_param, input_im): method test_random_shape (line 80) | def test_random_shape(self, input_param, input_shape, expected_shape): method test_pending_ops (line 103) | def test_pending_ops(self, input_param, input_shape, _): method test_combine_ops (line 107) | def test_combine_ops(self, funcs, input_shape): FILE: tests/transforms/test_rand_std_shift_intensity.py class TestRandStdShiftIntensity (line 24) | class TestRandStdShiftIntensity(NumpyImageTestCase2D): method test_value (line 26) | def test_value(self, p): FILE: tests/transforms/test_rand_std_shift_intensityd.py class TestRandStdShiftIntensityd (line 22) | class TestRandStdShiftIntensityd(NumpyImageTestCase2D): method test_value (line 23) | def test_value(self): FILE: tests/transforms/test_rand_torchio.py class TestRandTorchIO (line 43) | class TestRandTorchIO(unittest.TestCase): method test_value (line 46) | def test_value(self, input_param, input_data): FILE: tests/transforms/test_rand_torchiod.py class TestRandTorchIOd (line 33) | class TestRandTorchIOd(unittest.TestCase): method test_random_transform (line 35) | def test_random_transform(self, input_param, input_data): FILE: tests/transforms/test_rand_zoom.py class TestRandZoom (line 35) | class TestRandZoom(NumpyImageTestCase2D): method test_correct_results (line 37) | def test_correct_results(self, min_zoom, max_zoom, mode, keep_size, al... method test_keep_size (line 70) | def test_keep_size(self): method test_invalid_inputs (line 88) | def test_invalid_inputs(self, _, min_zoom, max_zoom, mode, raises): method test_auto_expand_3d (line 94) | def test_auto_expand_3d(self): FILE: tests/transforms/test_rand_zoomd.py class TestRandZoomd (line 33) | class TestRandZoomd(NumpyImageTestCase2D): method test_correct_results (line 35) | def test_correct_results(self, min_zoom, max_zoom, mode, align_corners... method test_keep_size (line 72) | def test_keep_size(self): method test_invalid_inputs (line 88) | def test_invalid_inputs(self, _, min_zoom, max_zoom, mode, raises): method test_auto_expand_3d (line 95) | def test_auto_expand_3d(self): FILE: tests/transforms/test_randidentity.py class T (line 21) | class T(mt.Transform): method __call__ (line 22) | def __call__(self, x): class TestIdentity (line 26) | class TestIdentity(NumpyImageTestCase2D): method test_identity (line 27) | def test_identity(self): method test_caching (line 33) | def test_caching(self, init=1, expect=4, expect_pre_cache=2): FILE: tests/transforms/test_random_order.py class InvC (line 32) | class InvC(Inv): method __init__ (line 33) | def __init__(self, keys): class InvD (line 39) | class InvD(Inv): method __init__ (line 40) | def __init__(self, keys): class TestRandomOrder (line 57) | class TestRandomOrder(unittest.TestCase): method test_empty_compose (line 58) | def test_empty_compose(self): method test_compose_flatten_does_not_affect_random_order (line 63) | def test_compose_flatten_does_not_affect_random_order(self): method test_inverse (line 78) | def test_inverse(self, transform, invertible, use_metatensor): class TestRandomOrderAPITests (line 115) | class TestRandomOrderAPITests(unittest.TestCase): method data_from_keys (line 117) | def data_from_keys(keys): method test_execute_change_start_end (line 127) | def test_execute_change_start_end(self, keys, pipeline): FILE: tests/transforms/test_randtorchvisiond.py class TestRandTorchVisiond (line 54) | class TestRandTorchVisiond(unittest.TestCase): method test_value (line 56) | def test_value(self, input_param, input_data, expected_value): FILE: tests/transforms/test_regularization.py class TestMixup (line 23) | class TestMixup(unittest.TestCase): method test_mixup (line 24) | def test_mixup(self): method test_mixupd (line 51) | def test_mixupd(self): class TestCutMix (line 75) | class TestCutMix(unittest.TestCase): method test_cutmix (line 76) | def test_cutmix(self): method test_cutmixd (line 86) | def test_cutmixd(self): class TestCutOut (line 99) | class TestCutOut(unittest.TestCase): method test_cutout (line 100) | def test_cutout(self): method test_cutoutd (line 118) | def test_cutoutd(self): FILE: tests/transforms/test_remove_repeated_channel.py class TestRemoveRepeatedChannel (line 26) | class TestRemoveRepeatedChannel(unittest.TestCase): method test_shape (line 28) | def test_shape(self, input_param, input_data, expected_shape): FILE: tests/transforms/test_remove_repeated_channeld.py class TestRemoveRepeatedChanneld (line 36) | class TestRemoveRepeatedChanneld(unittest.TestCase): method test_shape (line 38) | def test_shape(self, input_param, input_data, expected_shape): FILE: tests/transforms/test_repeat_channel.py class TestRepeatChannel (line 26) | class TestRepeatChannel(unittest.TestCase): method test_shape (line 28) | def test_shape(self, input_param, input_data, expected_shape): FILE: tests/transforms/test_repeat_channeld.py class TestRepeatChanneld (line 33) | class TestRepeatChanneld(unittest.TestCase): method test_shape (line 35) | def test_shape(self, input_param, input_data, expected_shape): FILE: tests/transforms/test_resample_backends.py class TestResampleBackends (line 45) | class TestResampleBackends(unittest.TestCase): method test_resample_identity (line 47) | def test_resample_identity(self, input_param, im_type, interp, padding... FILE: tests/transforms/test_resample_to_match.py function get_rand_fname (line 40) | def get_rand_fname(len=10, suffix=".nii.gz"): class TestResampleToMatch (line 48) | class TestResampleToMatch(unittest.TestCase): method setUpClass (line 50) | def setUpClass(cls): method tearDownClass (line 63) | def tearDownClass(cls): method test_correct (line 68) | def test_correct(self, reader, writer): method test_inverse (line 88) | def test_inverse(self): method test_no_name (line 101) | def test_no_name(self): FILE: tests/transforms/test_resample_to_matchd.py function update_fname (line 33) | def update_fname(d): class TestResampleToMatchd (line 38) | class TestResampleToMatchd(unittest.TestCase): method setUpClass (line 40) | def setUpClass(cls): method tearDownClass (line 53) | def tearDownClass(cls): method test_correct (line 57) | def test_correct(self): method test_lazy (line 80) | def test_lazy(self): FILE: tests/transforms/test_resampler.py class TestResample (line 154) | class TestResample(unittest.TestCase): method test_resample (line 156) | def test_resample(self, input_param, input_data, expected_val): FILE: tests/transforms/test_resize.py class TestResize (line 41) | class TestResize(NumpyImageTestCase2D): method test_invalid_inputs (line 42) | def test_invalid_inputs(self): method test_unchange (line 51) | def test_unchange(self): method test_correct_results (line 71) | def test_correct_results(self, spatial_size, mode, anti_aliasing): method test_longest_shape (line 114) | def test_longest_shape(self, input_param, expected_shape): method test_longest_infinite_decimals (line 126) | def test_longest_infinite_decimals(self): FILE: tests/transforms/test_resize_with_pad_or_crop.py class TestResizeWithPadOrCrop (line 40) | class TestResizeWithPadOrCrop(unittest.TestCase): method test_pad_shape (line 42) | def test_pad_shape(self, input_param, input_shape, expected_shape, _): method test_pending_ops (line 61) | def test_pending_ops(self, input_param, input_shape, _expected_data, a... FILE: tests/transforms/test_resize_with_pad_or_cropd.py class TestResizeWithPadOrCropd (line 40) | class TestResizeWithPadOrCropd(unittest.TestCase): method test_pad_shape (line 42) | def test_pad_shape(self, input_param, input_data, expected_val): method test_pending_ops (line 58) | def test_pending_ops(self, input_param, input_data, _expected_data): FILE: tests/transforms/test_resized.py class TestResized (line 61) | class TestResized(NumpyImageTestCase2D): method test_invalid_inputs (line 62) | def test_invalid_inputs(self): method test_unchange (line 71) | def test_unchange(self): method test_correct_results (line 81) | def test_correct_results(self, spatial_size, mode, anti_aliasing): method test_longest_shape (line 114) | def test_longest_shape(self, input_param, expected_shape): method test_identical_spatial (line 130) | def test_identical_spatial(self): method test_consistent_resize (line 138) | def test_consistent_resize(self): FILE: tests/transforms/test_rotate.py class TestRotate2D (line 60) | class TestRotate2D(NumpyImageTestCase2D): method test_correct_results (line 62) | def test_correct_results(self, im_type, angle, keep_size, mode, paddin... class TestRotate3D (line 98) | class TestRotate3D(NumpyImageTestCase3D): method test_correct_results (line 100) | def test_correct_results(self, im_type, angle, keep_size, mode, paddin... method test_correct_shape (line 136) | def test_correct_shape(self, im_type, angle, mode, padding_mode, align... method test_ill_case (line 148) | def test_ill_case(self): FILE: tests/transforms/test_rotate90.py class TestRotate90 (line 33) | class TestRotate90(NumpyImageTestCase2D): method test_rotate90_default (line 34) | def test_rotate90_default(self): method test_k (line 55) | def test_k(self): method test_spatial_axes (line 71) | def test_spatial_axes(self): method test_prob_k_spatial_axes (line 87) | def test_prob_k_spatial_axes(self): class TestRotate903d (line 104) | class TestRotate903d(NumpyImageTestCase3D): method test_rotate90_default (line 105) | def test_rotate90_default(self): method test_k (line 121) | def test_k(self): method test_spatial_axes (line 137) | def test_spatial_axes(self): method test_prob_k_spatial_axes (line 153) | def test_prob_k_spatial_axes(self): class TestRot90Consistency (line 171) | class TestRot90Consistency(unittest.TestCase): method test_affine_rot90 (line 173) | def test_affine_rot90(self, s): FILE: tests/transforms/test_rotate90d.py class TestRotate90d (line 24) | class TestRotate90d(NumpyImageTestCase2D): method test_rotate90_default (line 25) | def test_rotate90_default(self): method test_k (line 47) | def test_k(self): method test_spatial_axes (line 64) | def test_spatial_axes(self): method test_prob_k_spatial_axes (line 81) | def test_prob_k_spatial_axes(self): method test_no_key (line 98) | def test_no_key(self): FILE: tests/transforms/test_rotated.py class TestRotated2D (line 45) | class TestRotated2D(NumpyImageTestCase2D): method test_correct_results (line 47) | def test_correct_results(self, im_type, angle, keep_size, mode, paddin... class TestRotated3D (line 96) | class TestRotated3D(NumpyImageTestCase3D): method test_correct_results (line 98) | def test_correct_results(self, im_type, angle, keep_size, mode, paddin... class TestRotated3DXY (line 145) | class TestRotated3DXY(NumpyImageTestCase3D): method test_correct_results (line 147) | def test_correct_results(self, im_type, angle, keep_size, mode, paddin... FILE: tests/transforms/test_save_classificationd.py class TestSaveClassificationd (line 28) | class TestSaveClassificationd(unittest.TestCase): method test_saved_content (line 30) | def test_saved_content(self): FILE: tests/transforms/test_save_image.py class TestSaveImage (line 44) | class TestSaveImage(unittest.TestCase): method test_saved_content (line 47) | def test_saved_content(self, test_data, meta_data, output_ext, resample): method test_saved_content_with_filename (line 65) | def test_saved_content_with_filename(self, test_data, output_ext, resa... FILE: tests/transforms/test_save_imaged.py class TestSaveImaged (line 56) | class TestSaveImaged(unittest.TestCase): method test_saved_content (line 59) | def test_saved_content(self, test_data, output_ext, resample): method test_custom_folderlayout (line 76) | def test_custom_folderlayout(self, test_data, output_ext, resample): method test_includes_metadata (line 113) | def test_includes_metadata(self, test_data, output_ext, resample): FILE: tests/transforms/test_savitzky_golay_smooth.py class TestSavitzkyGolaySmooth (line 62) | class TestSavitzkyGolaySmooth(unittest.TestCase): method test_value (line 66) | def test_value(self, arguments, image, expected_data, atol): FILE: tests/transforms/test_savitzky_golay_smoothd.py class TestSavitzkyGolaySmoothd (line 62) | class TestSavitzkyGolaySmoothd(unittest.TestCase): method test_value (line 66) | def test_value(self, arguments, image, expected_data, atol): FILE: tests/transforms/test_scale_intensity.py class TestScaleIntensity (line 24) | class TestScaleIntensity(NumpyImageTestCase2D): method test_range_scale (line 26) | def test_range_scale(self, p): method test_factor_scale (line 36) | def test_factor_scale(self): method test_max_none (line 43) | def test_max_none(self): method test_int (line 50) | def test_int(self): method test_channel_wise (line 62) | def test_channel_wise(self): FILE: tests/transforms/test_scale_intensity_fixed_mean.py class TestScaleIntensityFixedMean (line 23) | class TestScaleIntensityFixedMean(NumpyImageTestCase2D): method test_factor_scale (line 24) | def test_factor_scale(self): method test_preserve_range (line 32) | def test_preserve_range(self, p): method test_fixed_mean (line 61) | def test_fixed_mean(self, p): method test_fixed_mean_preserve_range (line 74) | def test_fixed_mean_preserve_range(self, p): FILE: tests/transforms/test_scale_intensity_range.py class IntensityScaleIntensityRange (line 22) | class IntensityScaleIntensityRange(NumpyImageTestCase2D): method test_image_scale_intensity_range (line 23) | def test_image_scale_intensity_range(self): method test_image_scale_intensity_range_none_clip (line 31) | def test_image_scale_intensity_range_none_clip(self): FILE: tests/transforms/test_scale_intensity_ranged.py class IntensityScaleIntensityRanged (line 20) | class IntensityScaleIntensityRanged(NumpyImageTestCase2D): method test_image_scale_intensity_ranged (line 21) | def test_image_scale_intensity_ranged(self): method test_image_scale_intensity_ranged_none (line 30) | def test_image_scale_intensity_ranged_none(self): FILE: tests/transforms/test_scale_intensityd.py class TestScaleIntensityd (line 22) | class TestScaleIntensityd(NumpyImageTestCase2D): method test_range_scale (line 23) | def test_range_scale(self): method test_factor_scale (line 34) | def test_factor_scale(self): method test_channel_wise (line 42) | def test_channel_wise(self): FILE: tests/transforms/test_select_itemsd.py class TestSelectItemsd (line 25) | class TestSelectItemsd(unittest.TestCase): method test_memory (line 28) | def test_memory(self, input_param, expected_key_size): FILE: tests/transforms/test_shift_intensity.py class TestShiftIntensity (line 22) | class TestShiftIntensity(NumpyImageTestCase2D): method test_value (line 23) | def test_value(self): FILE: tests/transforms/test_shift_intensityd.py class TestShiftIntensityd (line 23) | class TestShiftIntensityd(NumpyImageTestCase2D): method test_value (line 24) | def test_value(self): method test_factor (line 32) | def test_factor(self): FILE: tests/transforms/test_signal_continuouswavelet.py class TestSignalContinousWavelet (line 33) | class TestSignalContinousWavelet(unittest.TestCase): method test_correct_parameters_multi_channels (line 35) | def test_correct_parameters_multi_channels(self, type, length, frequen... FILE: tests/transforms/test_signal_fillempty.py class TestSignalFillEmptyNumpy (line 28) | class TestSignalFillEmptyNumpy(unittest.TestCase): method test_correct_parameters_multi_channels (line 29) | def test_correct_parameters_multi_channels(self): class TestSignalFillEmptyTorch (line 38) | class TestSignalFillEmptyTorch(unittest.TestCase): method test_correct_parameters_multi_channels (line 39) | def test_correct_parameters_multi_channels(self): FILE: tests/transforms/test_signal_fillemptyd.py class TestSignalFillEmptyNumpy (line 28) | class TestSignalFillEmptyNumpy(unittest.TestCase): method test_correct_parameters_multi_channels (line 29) | def test_correct_parameters_multi_channels(self): class TestSignalFillEmptyTorch (line 42) | class TestSignalFillEmptyTorch(unittest.TestCase): method test_correct_parameters_multi_channels (line 43) | def test_correct_parameters_multi_channels(self): FILE: tests/transforms/test_signal_rand_add_gaussiannoise.py class TestSignalRandAddGaussianNoiseNumpy (line 29) | class TestSignalRandAddGaussianNoiseNumpy(unittest.TestCase): method test_correct_parameters_multi_channels (line 31) | def test_correct_parameters_multi_channels(self, boundaries): class TestSignalRandAddGaussianNoiseTorch (line 39) | class TestSignalRandAddGaussianNoiseTorch(unittest.TestCase): method test_correct_parameters_multi_channels (line 41) | def test_correct_parameters_multi_channels(self, boundaries): FILE: tests/transforms/test_signal_rand_add_sine.py class TestSignalRandAddSineNumpy (line 29) | class TestSignalRandAddSineNumpy(unittest.TestCase): method test_correct_parameters_multi_channels (line 32) | def test_correct_parameters_multi_channels(self, boundaries, freqs): class TestSignalRandAddSineTorch (line 40) | class TestSignalRandAddSineTorch(unittest.TestCase): method test_correct_parameters_multi_channels (line 43) | def test_correct_parameters_multi_channels(self, boundaries, freqs): FILE: tests/transforms/test_signal_rand_add_sine_partial.py class TestSignalRandAddSinePartialNumpy (line 29) | class TestSignalRandAddSinePartialNumpy(unittest.TestCase): method test_correct_parameters_multi_channels (line 31) | def test_correct_parameters_multi_channels(self, boundaries, frequenci... class TestSignalRandAddSinePartialTorch (line 39) | class TestSignalRandAddSinePartialTorch(unittest.TestCase): method test_correct_parameters_multi_channels (line 41) | def test_correct_parameters_multi_channels(self, boundaries, frequenci... FILE: tests/transforms/test_signal_rand_add_squarepulse.py class TestSignalRandAddSquarePulseNumpy (line 33) | class TestSignalRandAddSquarePulseNumpy(unittest.TestCase): method test_correct_parameters_multi_channels (line 35) | def test_correct_parameters_multi_channels(self, boundaries, frequenci... class TestSignalRandAddSquarePulseTorch (line 44) | class TestSignalRandAddSquarePulseTorch(unittest.TestCase): method test_correct_parameters_multi_channels (line 46) | def test_correct_parameters_multi_channels(self, boundaries, frequenci... FILE: tests/transforms/test_signal_rand_add_squarepulse_partial.py class TestSignalRandAddSquarePulsePartialNumpy (line 33) | class TestSignalRandAddSquarePulsePartialNumpy(unittest.TestCase): method test_correct_parameters_multi_channels (line 35) | def test_correct_parameters_multi_channels(self, boundaries, frequenci... class TestSignalRandAddSquarePulsePartialTorch (line 46) | class TestSignalRandAddSquarePulsePartialTorch(unittest.TestCase): method test_correct_parameters_multi_channels (line 48) | def test_correct_parameters_multi_channels(self, boundaries, frequenci... FILE: tests/transforms/test_signal_rand_drop.py class TestSignalRandDropNumpy (line 29) | class TestSignalRandDropNumpy(unittest.TestCase): method test_correct_parameters_multi_channels (line 31) | def test_correct_parameters_multi_channels(self, boundaries): class TestSignalRandDropTorch (line 39) | class TestSignalRandDropTorch(unittest.TestCase): method test_correct_parameters_multi_channels (line 41) | def test_correct_parameters_multi_channels(self, boundaries): FILE: tests/transforms/test_signal_rand_scale.py class TestSignalRandScaleNumpy (line 29) | class TestSignalRandScaleNumpy(unittest.TestCase): method test_correct_parameters_multi_channels (line 32) | def test_correct_parameters_multi_channels(self, boundaries): class TestSignalRandScaleTorch (line 40) | class TestSignalRandScaleTorch(unittest.TestCase): method test_correct_parameters_multi_channels (line 43) | def test_correct_parameters_multi_channels(self, boundaries): FILE: tests/transforms/test_signal_rand_shift.py class TestSignalRandShiftNumpy (line 33) | class TestSignalRandShiftNumpy(unittest.TestCase): method test_correct_parameters_multi_channels (line 35) | def test_correct_parameters_multi_channels(self, mode, filling, bounda... class TestSignalRandShiftTorch (line 44) | class TestSignalRandShiftTorch(unittest.TestCase): method test_correct_parameters_multi_channels (line 46) | def test_correct_parameters_multi_channels(self, mode, filling, bounda... FILE: tests/transforms/test_signal_remove_frequency.py class TestSignalRemoveFrequencyNumpy (line 35) | class TestSignalRemoveFrequencyNumpy(unittest.TestCase): method test_correct_parameters_multi_channels (line 37) | def test_correct_parameters_multi_channels(self, frequency, quality_fa... class TestSignalRemoveFrequencyTorch (line 53) | class TestSignalRemoveFrequencyTorch(unittest.TestCase): method test_correct_parameters_multi_channels (line 55) | def test_correct_parameters_multi_channels(self, frequency, quality_fa... FILE: tests/transforms/test_smooth_field.py class TestSmoothField (line 90) | class TestSmoothField(unittest.TestCase): method test_rand_smooth_field_adjust_contrastd (line 92) | def test_rand_smooth_field_adjust_contrastd(self, input_param, input_d... method test_rand_smooth_field_adjust_contrastd_pad (line 101) | def test_rand_smooth_field_adjust_contrastd_pad(self): method test_rand_smooth_field_adjust_intensityd (line 113) | def test_rand_smooth_field_adjust_intensityd(self, input_param, input_... method test_rand_smooth_field_adjust_intensityd_pad (line 122) | def test_rand_smooth_field_adjust_intensityd_pad(self): method test_rand_smooth_deformd (line 134) | def test_rand_smooth_deformd(self, input_param, input_data, expected_v... method test_rand_smooth_nodeformd (line 143) | def test_rand_smooth_nodeformd(self): method test_rand_smooth_deformd_pad (line 164) | def test_rand_smooth_deformd_pad(self): FILE: tests/transforms/test_sobel_gradient.py class SobelGradientTests (line 132) | class SobelGradientTests(unittest.TestCase): method test_sobel_gradients (line 150) | def test_sobel_gradients(self, image, arguments, expected_grad): method test_sobel_kernels (line 165) | def test_sobel_kernels(self, arguments, expected_kernels): method test_sobel_gradients_error (line 182) | def test_sobel_gradients_error(self, image, arguments): FILE: tests/transforms/test_sobel_gradientd.py class SobelGradientTests (line 153) | class SobelGradientTests(unittest.TestCase): method test_sobel_gradients (line 172) | def test_sobel_gradients(self, image_dict, arguments, expected_grad): method test_sobel_kernels (line 188) | def test_sobel_kernels(self, arguments, expected_kernels): method test_sobel_gradients_error (line 205) | def test_sobel_gradients_error(self, image_dict, arguments): FILE: tests/transforms/test_spacing.py class TestSpacingCase (line 224) | class TestSpacingCase(unittest.TestCase): method test_spacing (line 226) | def test_spacing( method test_spacing_torch (line 253) | def test_spacing_torch(self, pixdim, img, track_meta: bool): method test_inverse (line 273) | def test_inverse(self, device, recompute, align, scale_extent): method test_inverse_mn_mx (line 294) | def test_inverse_mn_mx(self, device, recompute, align, scale_extent): method test_property_no_change (line 320) | def test_property_no_change(self): FILE: tests/transforms/test_spacingd.py class TestSpacingDCase (line 107) | class TestSpacingDCase(unittest.TestCase): method test_spacingd (line 109) | def test_spacingd(self, _, data, kw_args, expected_shape, expected_aff... method test_orntd_torch (line 132) | def test_orntd_torch(self, init_param, img: torch.Tensor, track_meta: ... method test_space_same_shape (line 152) | def test_space_same_shape(self): FILE: tests/transforms/test_spatial_crop.py class TestSpatialCrop (line 55) | class TestSpatialCrop(CropTest): method test_shape (line 59) | def test_shape(self, input_param, input_shape, expected_shape): method test_error (line 63) | def test_error(self, input_param): method test_pending_ops (line 68) | def test_pending_ops(self, input_param, input_shape, _): method test_lazy_error (line 72) | def test_lazy_error(self, input_param, input_shape, _): method test_combine_ops (line 77) | def test_combine_ops(self, funcs, input_shape): FILE: tests/transforms/test_spatial_cropd.py class TestSpatialCropd (line 61) | class TestSpatialCropd(CropTest): method test_shape (line 65) | def test_shape(self, input_param, input_shape, expected_shape, same_ar... method test_pending_ops (line 69) | def test_pending_ops(self, input_param, input_shape, _expected_shape, ... FILE: tests/transforms/test_spatial_pad.py class TestSpatialPad (line 35) | class TestSpatialPad(PadTest): method test_pad (line 39) | def test_pad(self, input_param, input_shape, expected_shape): method test_pad_kwargs (line 42) | def test_pad_kwargs(self): method test_pending_ops (line 48) | def test_pending_ops(self, input_param, input_shape, _): method test_combine_ops (line 52) | def test_combine_ops(self, funcs, input_shape, expected_shape): FILE: tests/transforms/test_spatial_padd.py class TestSpatialPadd (line 29) | class TestSpatialPadd(PadTest): method test_pad (line 33) | def test_pad(self, input_param, input_shape, expected_shape): method test_pending_ops (line 38) | def test_pending_ops(self, input_param, input_shape, _): FILE: tests/transforms/test_spatial_resample.py class TestSpatialResample (line 135) | class TestSpatialResample(unittest.TestCase): method test_flips (line 137) | def test_flips(self, img, device, data_param, expected_output): method test_4d_5d (line 154) | def test_4d_5d(self, new_shape, tile, device, dtype, expected_data): method test_ill_affine (line 171) | def test_ill_affine(self, device): method test_input_torch (line 190) | def test_input_torch(self, new_shape, tile, device, dtype, expected_da... method test_inverse (line 212) | def test_inverse(self, img, device, data_param, expected_output): method test_unchange (line 225) | def test_unchange(self): FILE: tests/transforms/test_squeezedim.py class TestSqueezeDim (line 34) | class TestSqueezeDim(unittest.TestCase): method test_shape (line 36) | def test_shape(self, input_param, test_data, expected_shape): method test_invalid_inputs (line 43) | def test_invalid_inputs(self, exception, input_param, test_data): method test_affine_ill_inputs (line 47) | def test_affine_ill_inputs(self): FILE: tests/transforms/test_squeezedimd.py class TestSqueezeDim (line 82) | class TestSqueezeDim(unittest.TestCase): method test_shape (line 84) | def test_shape(self, input_param, test_data, expected_shape): method test_invalid_inputs (line 92) | def test_invalid_inputs(self, exception, input_param, test_data): FILE: tests/transforms/test_std_shift_intensity.py class TestStdShiftIntensity (line 23) | class TestStdShiftIntensity(NumpyImageTestCase2D): method test_value (line 24) | def test_value(self): method test_zerostd (line 35) | def test_zerostd(self): method test_nonzero (line 45) | def test_nonzero(self): method test_channel_wise (line 54) | def test_channel_wise(self): method test_dtype (line 65) | def test_dtype(self): FILE: tests/transforms/test_std_shift_intensityd.py class TestStdShiftIntensityd (line 23) | class TestStdShiftIntensityd(NumpyImageTestCase2D): method test_value (line 24) | def test_value(self): method test_zerostd (line 34) | def test_zerostd(self): method test_nonzero (line 44) | def test_nonzero(self): method test_channel_wise (line 53) | def test_channel_wise(self): method test_dtype (line 62) | def test_dtype(self): FILE: tests/transforms/test_threshold_intensity.py class TestThresholdIntensity (line 29) | class TestThresholdIntensity(unittest.TestCase): method test_value (line 31) | def test_value(self, in_type, input_param, expected_value): FILE: tests/transforms/test_threshold_intensityd.py class TestThresholdIntensityd (line 47) | class TestThresholdIntensityd(unittest.TestCase): method test_value (line 49) | def test_value(self, in_type, input_param, expected_value): FILE: tests/transforms/test_to_contiguous.py class TestToContiguous (line 23) | class TestToContiguous(unittest.TestCase): method test_contiguous_dict (line 24) | def test_contiguous_dict(self): method test_contiguous_seq (line 33) | def test_contiguous_seq(self): FILE: tests/transforms/test_to_cupy.py class TestToCupy (line 28) | class TestToCupy(unittest.TestCase): method test_cupy_input (line 29) | def test_cupy_input(self): method test_cupy_input_dtype (line 39) | def test_cupy_input_dtype(self): method test_numpy_input (line 49) | def test_numpy_input(self): method test_numpy_input_dtype (line 59) | def test_numpy_input_dtype(self): method test_tensor_input (line 69) | def test_tensor_input(self): method test_tensor_cuda_input (line 80) | def test_tensor_cuda_input(self): method test_tensor_cuda_input_dtype (line 91) | def test_tensor_cuda_input_dtype(self): method test_list_tuple (line 102) | def test_list_tuple(self): FILE: tests/transforms/test_to_cupyd.py class TestToCupyd (line 28) | class TestToCupyd(unittest.TestCase): method test_cupy_input (line 29) | def test_cupy_input(self): method test_numpy_input (line 38) | def test_numpy_input(self): method test_tensor_input (line 47) | def test_tensor_input(self): method test_tensor_cuda_input (line 57) | def test_tensor_cuda_input(self): method test_list_tuple (line 66) | def test_list_tuple(self): FILE: tests/transforms/test_to_device.py class TestToDevice (line 32) | class TestToDevice(unittest.TestCase): method test_value (line 34) | def test_value(self, device): FILE: tests/transforms/test_to_deviced.py class TestToDeviced (line 24) | class TestToDeviced(unittest.TestCase): method test_value (line 25) | def test_value(self): FILE: tests/transforms/test_to_numpy.py class TestToNumpy (line 27) | class TestToNumpy(unittest.TestCase): method test_cupy_input (line 29) | def test_cupy_input(self): method test_numpy_input (line 38) | def test_numpy_input(self): method test_tensor_input (line 48) | def test_tensor_input(self): method test_tensor_cuda_input (line 58) | def test_tensor_cuda_input(self): method test_list_tuple (line 67) | def test_list_tuple(self): method test_single_value (line 76) | def test_single_value(self): FILE: tests/transforms/test_to_numpyd.py class TestToNumpyd (line 27) | class TestToNumpyd(unittest.TestCase): method test_cupy_input (line 29) | def test_cupy_input(self): method test_numpy_input (line 38) | def test_numpy_input(self): method test_tensor_input (line 47) | def test_tensor_input(self): method test_tensor_cuda_input (line 57) | def test_tensor_cuda_input(self): FILE: tests/transforms/test_to_pil.py class TestToPIL (line 42) | class TestToPIL(unittest.TestCase): method test_value (line 45) | def test_value(self, test_data): FILE: tests/transforms/test_to_pild.py class TestToPIL (line 40) | class TestToPIL(unittest.TestCase): method test_values (line 43) | def test_values(self, input_param, test_data): FILE: tests/transforms/test_to_tensor.py class TestToTensor (line 35) | class TestToTensor(unittest.TestCase): method test_array_input (line 37) | def test_array_input(self, test_data, expected_shape): method test_single_input (line 44) | def test_single_input(self, test_data): method test_cupy (line 51) | def test_cupy(self): FILE: tests/transforms/test_to_tensord.py class TestToTensord (line 36) | class TestToTensord(unittest.TestCase): method test_array_input (line 38) | def test_array_input(self, test_data, expected_shape): method test_single_input (line 53) | def test_single_input(self, test_data): method test_cupy (line 62) | def test_cupy(self): FILE: tests/transforms/test_torchio.py class TestTorchIO (line 31) | class TestTorchIO(unittest.TestCase): method test_value (line 34) | def test_value(self, input_param, input_data): FILE: tests/transforms/test_torchiod.py class TestTorchIOd (line 38) | class TestTorchIOd(unittest.TestCase): method test_value (line 40) | def test_value(self, input_param, input_data, expected_value): FILE: tests/transforms/test_torchvision.py class TestTorchVision (line 57) | class TestTorchVision(unittest.TestCase): method test_value (line 59) | def test_value(self, input_param, input_data, expected_value): FILE: tests/transforms/test_torchvisiond.py class TestTorchVisiond (line 54) | class TestTorchVisiond(unittest.TestCase): method test_value (line 56) | def test_value(self, input_param, input_data, expected_value): FILE: tests/transforms/test_transform.py class FaultyTransform (line 22) | class FaultyTransform(mt.Transform): method __call__ (line 24) | def __call__(self, _): function faulty_lambda (line 28) | def faulty_lambda(_): class TestTransform (line 32) | class TestTransform(unittest.TestCase): method setUpClass (line 35) | def setUpClass(cls): method tearDownClass (line 40) | def tearDownClass(cls): method test_raise (line 47) | def test_raise(self): FILE: tests/transforms/test_transpose.py class TestTranspose (line 29) | class TestTranspose(unittest.TestCase): method test_transpose (line 31) | def test_transpose(self, im, indices): FILE: tests/transforms/test_transposed.py class TestTranspose (line 32) | class TestTranspose(unittest.TestCase): method test_transpose (line 34) | def test_transpose(self, im, indices): FILE: tests/transforms/test_ultrasound_confidence_map_transform.py class TestUltrasoundConfidenceMapTransform (line 492) | class TestUltrasoundConfidenceMapTransform(unittest.TestCase): method setUp (line 493) | def setUp(self): method test_parameters (line 515) | def test_parameters(self): method test_ultrasound_confidence_map_transform (line 527) | def test_ultrasound_confidence_map_transform(self, sink_mode, expected... method test_multi_channel_2d (line 554) | def test_multi_channel_2d(self, sink_mode, expected_output, use_mask=F... method test_non_one_first_dim (line 573) | def test_non_one_first_dim(self, sink_mode): method test_no_first_dim (line 590) | def test_no_first_dim(self, sink_mode): method test_sink_mode (line 608) | def test_sink_mode(self, mode): method test_sink_mask (line 619) | def test_sink_mask(self): method test_func (line 638) | def test_func(self): method test_against_official_code (line 671) | def test_against_official_code(self): method test_against_official_code_using_cg (line 689) | def test_against_official_code_using_cg(self): FILE: tests/transforms/test_utils_pytorch_numpy_unification.py class TestPytorchNumpyUnification (line 38) | class TestPytorchNumpyUnification(unittest.TestCase): method setUp (line 39) | def setUp(self) -> None: method test_percentile (line 42) | def test_percentile(self): method test_many_elements_quantile (line 53) | def test_many_elements_quantile(self): # pytorch#64947 method test_fails (line 63) | def test_fails(self): method test_dim (line 70) | def test_dim(self): method test_mode (line 79) | def test_mode(self, array, expected, to_long): method test_min_max (line 84) | def test_min_max(self, array, input_params, func, expected): FILE: tests/transforms/test_vote_ensemble.py class TestVoteEnsemble (line 73) | class TestVoteEnsemble(unittest.TestCase): method test_value (line 75) | def test_value(self, input_param, img, expected_value): FILE: tests/transforms/test_vote_ensembled.py class TestVoteEnsembled (line 88) | class TestVoteEnsembled(unittest.TestCase): method test_value (line 90) | def test_value(self, input_param, img, expected_value): method test_cuda_value (line 94) | def test_cuda_value(self): FILE: tests/transforms/test_with_allow_missing_keys.py class TestWithAllowMissingKeysMode (line 21) | class TestWithAllowMissingKeysMode(unittest.TestCase): method setUp (line 23) | def setUp(self): method test_map_transform (line 26) | def test_map_transform(self): method test_compose (line 41) | def test_compose(self): method test_array_transform (line 57) | def test_array_transform(self): method test_multiple (line 63) | def test_multiple(self): FILE: tests/transforms/test_zoom.py class TestZoom (line 45) | class TestZoom(NumpyImageTestCase2D): method test_pending_ops (line 47) | def test_pending_ops(self, zoom, mode, align_corners=False, keep_size=... method test_correct_results (line 68) | def test_correct_results(self, zoom, mode, *_): method test_keep_size (line 83) | def test_keep_size(self): method test_invalid_inputs (line 104) | def test_invalid_inputs(self, zoom, mode, raises): method test_padding_mode (line 110) | def test_padding_mode(self): FILE: tests/transforms/test_zoomd.py class TestZoomd (line 36) | class TestZoomd(NumpyImageTestCase2D): method test_correct_results (line 38) | def test_correct_results(self, zoom, mode, keep_size, align_corners=No... method test_keep_size (line 73) | def test_keep_size(self): method test_invalid_inputs (line 85) | def test_invalid_inputs(self, _, zoom, mode, raises): FILE: tests/transforms/transform/test_randomizable.py class RandTest (line 21) | class RandTest(Randomizable): method randomize (line 23) | def randomize(self, data=None): class TestRandomizable (line 27) | class TestRandomizable(unittest.TestCase): method test_default (line 29) | def test_default(self): method test_seed (line 37) | def test_seed(self): method test_state (line 44) | def test_state(self): FILE: tests/transforms/transform/test_randomizable_transform_type.py class InheritsInterface (line 19) | class InheritsInterface(RandomizableTrait): class InheritsImplementation (line 23) | class InheritsImplementation(RandomizableTransform): method __call__ (line 25) | def __call__(self, data): class TestRandomizableTransformType (line 29) | class TestRandomizableTransformType(unittest.TestCase): method test_is_randomizable_transform_type (line 31) | def test_is_randomizable_transform_type(self): method test_set_random_state_randomizable_transform (line 35) | def test_set_random_state_randomizable_transform(self): FILE: tests/transforms/utility/test_apply_transform_to_points.py class TestCoordinateTransform (line 61) | class TestCoordinateTransform(unittest.TestCase): method test_transform_coordinates (line 63) | def test_transform_coordinates(self, image, points, affine, invert_aff... method test_wrong_input (line 74) | def test_wrong_input(self, input, invert_affine, affine): FILE: tests/transforms/utility/test_apply_transform_to_pointsd.py class TestCoordinateTransform (line 120) | class TestCoordinateTransform(unittest.TestCase): method test_transform_coordinates (line 122) | def test_transform_coordinates(self, image, points, affine, invert_aff... method test_transform_coordinates_sequences (line 144) | def test_transform_coordinates_sequences( method test_wrong_input (line 165) | def test_wrong_input(self, input, invert_affine, affine, refer_keys): FILE: tests/transforms/utility/test_identity.py class TestIdentity (line 20) | class TestIdentity(NumpyImageTestCase2D): method test_identity (line 21) | def test_identity(self): FILE: tests/transforms/utility/test_identityd.py class TestIdentityd (line 20) | class TestIdentityd(NumpyImageTestCase2D): method test_identityd (line 21) | def test_identityd(self): FILE: tests/transforms/utility/test_lambda.py class TestLambda (line 25) | class TestLambda(NumpyImageTestCase2D): method test_lambda_identity (line 26) | def test_lambda_identity(self): method test_lambda_slicing (line 36) | def test_lambda_slicing(self): method test_lambda_track_meta_false (line 51) | def test_lambda_track_meta_false(self): FILE: tests/transforms/utility/test_lambdad.py class TestLambdad (line 25) | class TestLambdad(NumpyImageTestCase2D): method test_lambdad_identity (line 26) | def test_lambdad_identity(self): method test_lambdad_slicing (line 40) | def test_lambdad_slicing(self): method test_lambdad_track_meta_false (line 60) | def test_lambdad_track_meta_false(self): FILE: tests/transforms/utility/test_rand_lambda.py class RandTest (line 26) | class RandTest(Randomizable): method randomize (line 31) | def randomize(self, data=None): method __call__ (line 34) | def __call__(self, data): class TestRandLambda (line 39) | class TestRandLambda(unittest.TestCase): method check (line 40) | def check(self, tr: RandLambda, img, img_orig_type, out, expected=None): method test_rand_lambdad_identity (line 62) | def test_rand_lambdad_identity(self, t): FILE: tests/transforms/utility/test_rand_lambdad.py class RandTest (line 26) | class RandTest(Randomizable): method randomize (line 31) | def randomize(self, data=None): method __call__ (line 34) | def __call__(self, data): class TestRandLambdad (line 39) | class TestRandLambdad(unittest.TestCase): method check (line 40) | def check(self, tr: RandLambdad, input: dict, out: dict, expected: dict): method test_rand_lambdad_identity (line 52) | def test_rand_lambdad_identity(self, t): FILE: tests/transforms/utility/test_simulatedelay.py class TestSimulateDelay (line 24) | class TestSimulateDelay(NumpyImageTestCase2D): method test_value (line 26) | def test_value(self, delay_test_time: float): FILE: tests/transforms/utility/test_simulatedelayd.py class TestSimulateDelay (line 24) | class TestSimulateDelay(NumpyImageTestCase2D): method test_value (line 26) | def test_value(self, delay_test_time: float): FILE: tests/transforms/utility/test_splitdim.py class TestSplitDim (line 28) | class TestSplitDim(unittest.TestCase): method test_correct_shape (line 30) | def test_correct_shape(self, shape, keepdim, im_type): method test_singleton (line 43) | def test_singleton(self): FILE: tests/transforms/utility/test_splitdimd.py class TestSplitDimd (line 29) | class TestSplitDimd(unittest.TestCase): method setUpClass (line 33) | def setUpClass(cls) -> None: method test_correct (line 42) | def test_correct(self, keepdim, _, update_meta, list_output): method test_singleton (line 81) | def test_singleton(self): FILE: tests/transforms/utils/test_correct_crop_centers.py class TestCorrectCropCenters (line 25) | class TestCorrectCropCenters(unittest.TestCase): method test_torch (line 27) | def test_torch(self, spatial_size, centers, label_spatial_shape): FILE: tests/transforms/utils/test_get_unique_labels.py class TestGetUniqueLabels (line 37) | class TestGetUniqueLabels(unittest.TestCase): method test_correct_results (line 39) | def test_correct_results(self, args, expected): FILE: tests/transforms/utils/test_print_transform_backends.py class TestPrintTransformBackends (line 19) | class TestPrintTransformBackends(unittest.TestCase): method test_get_number_of_conversions (line 21) | def test_get_number_of_conversions(self): FILE: tests/transforms/utils/test_soft_clip.py class TestSoftClip (line 110) | class TestSoftClip(unittest.TestCase): method test_result (line 113) | def test_result(self, input_param, input_data): FILE: tests/utils/enums/test_hovernet_loss.py class PrepareTestInputs (line 37) | class PrepareTestInputs: method __init__ (line 39) | def __init__(self, inputs): function test_shape_generator (line 48) | def test_shape_generator(num_classes=1, num_objects=3, batch_size=1, hei... class TestHoverNetLoss (line 174) | class TestHoverNetLoss(unittest.TestCase): method test_shape (line 177) | def test_shape(self, input_param, expected_loss): method test_ill_input_hyper_params (line 183) | def test_ill_input_hyper_params(self, input_param): FILE: tests/utils/enums/test_ordering.py class TestOrdering (line 260) | class TestOrdering(unittest.TestCase): method test_ordering (line 262) | def test_ordering(self, input_param, expected_sequence_ordering): method test_ordering_type_failure (line 267) | def test_ordering_type_failure(self, input_param): method test_ordering_transformation_failure (line 272) | def test_ordering_transformation_failure(self, input_param): method test_revert (line 277) | def test_revert(self, input_param): FILE: tests/utils/enums/test_wsireader.py function save_rgba_tiff (line 358) | def save_rgba_tiff(array: np.ndarray, filename: str, mode: str): function save_gray_tiff (line 376) | def save_gray_tiff(array: np.ndarray, filename: str): function setUpModule (line 391) | def setUpModule(): class WSIReaderTests (line 406) | class WSIReaderTests: class Tests (line 407) | class Tests(unittest.TestCase): method test_read_whole_image (line 411) | def test_read_whole_image(self, file_path, level, expected_shape): method test_read_region (line 448) | def test_read_region(self, file_path, reader_kwargs, patch_info, exp... method test_read_region_multi_wsi (line 472) | def test_read_region_multi_wsi(self, file_path_list, patch_info, exp... method test_read_rgba (line 493) | def test_read_rgba(self, img_expected): method test_read_malformats (line 511) | def test_read_malformats(self, img_expected): method test_with_dataloader (line 523) | def test_with_dataloader( method test_with_dataloader_batch (line 540) | def test_with_dataloader_batch( method test_read_whole_image_multi_thread (line 558) | def test_read_whole_image_multi_thread(self, file_path, level, expec... method test_read_region_multi_thread (line 571) | def test_read_region_multi_thread(self, file_path, kwargs, patch_inf... method test_resolution_mpp (line 589) | def test_resolution_mpp(self, file_path, level, expected_mpp): method test_read_region_device (line 607) | def test_read_region_device(self, file_path, kwargs, patch_info, exp... method test_errors (line 634) | def test_errors(self, file_path, reader_kwargs, patch_info, exception): class TestCuCIM (line 642) | class TestCuCIM(WSIReaderTests.Tests): method setUpClass (line 644) | def setUpClass(cls): class TestOpenSlide (line 649) | class TestOpenSlide(WSIReaderTests.Tests): method setUpClass (line 651) | def setUpClass(cls): class TestTiffFile (line 656) | class TestTiffFile(WSIReaderTests.Tests): method setUpClass (line 658) | def setUpClass(cls): FILE: tests/utils/misc/test_ensure_tuple.py class TestEnsureTuple (line 39) | class TestEnsureTuple(unittest.TestCase): method test_value (line 41) | def test_value(self, input, expected_value, wrap_array=False): FILE: tests/utils/misc/test_monai_env_vars.py class TestMONAIEnvVars (line 20) | class TestMONAIEnvVars(unittest.TestCase): method setUpClass (line 23) | def setUpClass(cls): method tearDownClass (line 28) | def tearDownClass(cls): method test_monai_env_vars (line 36) | def test_monai_env_vars(self): FILE: tests/utils/misc/test_monai_utils_misc.py class MiscClass (line 42) | class MiscClass: method __init__ (line 44) | def __init__(self, arg1, arg2, kwargs1=None, kwargs2=None): class TestToTupleOfDictionaries (line 48) | class TestToTupleOfDictionaries(unittest.TestCase): method test_to_tuple_of_dictionaries (line 51) | def test_to_tuple_of_dictionaries(self, dictionary, keys, expected): method _test_to_tuple_of_dictionaries (line 54) | def _test_to_tuple_of_dictionaries(self, dictionary, keys, expected): class TestMiscKwargs (line 65) | class TestMiscKwargs(unittest.TestCase): method test_kwargs (line 67) | def test_kwargs(self): method _custom_user_function (line 75) | def _custom_user_function(self, cls, *args, **kwargs): class TestCommandRunner (line 79) | class TestCommandRunner(unittest.TestCase): method setUp (line 81) | def setUp(self): method tearDown (line 84) | def tearDown(self): method test_run_cmd (line 90) | def test_run_cmd(self): FILE: tests/utils/misc/test_str2bool.py class TestStr2Bool (line 19) | class TestStr2Bool(unittest.TestCase): method test_str_2_bool (line 21) | def test_str_2_bool(self): FILE: tests/utils/misc/test_str2list.py class TestStr2List (line 19) | class TestStr2List(unittest.TestCase): method test_str_2_list (line 21) | def test_str_2_list(self): FILE: tests/utils/test_alias.py class TestModuleAlias (line 25) | class TestModuleAlias(unittest.TestCase): method test_files (line 28) | def test_files(self): FILE: tests/utils/test_component_store.py class TestComponentStore (line 19) | class TestComponentStore(unittest.TestCase): method setUp (line 21) | def setUp(self): method test_empty (line 24) | def test_empty(self): method test_add (line 28) | def test_add(self): method test_add2 (line 43) | def test_add2(self): method test_add_def (line 54) | def test_add_def(self): FILE: tests/utils/test_deprecated.py class TestDeprecatedRC (line 20) | class TestDeprecatedRC(unittest.TestCase): method setUp (line 22) | def setUp(self): method test_warning (line 27) | def test_warning(self): method test_warning_milestone (line 36) | def test_warning_milestone(self): method test_warning_last (line 45) | def test_warning_last(self): method test_warning_beyond (line 54) | def test_warning_beyond(self): class TestDeprecated (line 64) | class TestDeprecated(unittest.TestCase): method setUp (line 66) | def setUp(self): method test_warning1 (line 71) | def test_warning1(self): method test_warning2 (line 80) | def test_warning2(self): method test_except1 (line 89) | def test_except1(self): method test_except2 (line 98) | def test_except2(self): method test_class_warning1 (line 107) | def test_class_warning1(self): method test_class_warning2 (line 116) | def test_class_warning2(self): method test_class_except1 (line 125) | def test_class_except1(self): method test_class_except2 (line 134) | def test_class_except2(self): method test_meth_warning1 (line 143) | def test_meth_warning1(self): method test_meth_except1 (line 154) | def test_meth_except1(self): method test_arg_warn1 (line 165) | def test_arg_warn1(self): method test_arg_warn2 (line 176) | def test_arg_warn2(self): method test_arg_except1 (line 187) | def test_arg_except1(self): method test_arg_except2 (line 196) | def test_arg_except2(self): method test_2arg_warn1 (line 205) | def test_2arg_warn1(self): method test_future (line 218) | def test_future(self): method test_arg_except2_unknown (line 231) | def test_arg_except2_unknown(self): method test_arg_except3_unknown (line 243) | def test_arg_except3_unknown(self): method test_replacement_arg (line 256) | def test_replacement_arg(self): method test_replacement_arg1 (line 269) | def test_replacement_arg1(self): method test_replacement_arg2 (line 282) | def test_replacement_arg2(self): method test_deprecated_arg_default_explicit_default (line 296) | def test_deprecated_arg_default_explicit_default(self): method test_deprecated_arg_default_version_less_than_since (line 315) | def test_deprecated_arg_default_version_less_than_since(self): method test_deprecated_arg_default_warning_deprecated (line 333) | def test_deprecated_arg_default_warning_deprecated(self): method test_deprecated_arg_default_warning_replaced (line 346) | def test_deprecated_arg_default_warning_replaced(self): method test_deprecated_arg_default_warning_with_none_as_placeholder (line 364) | def test_deprecated_arg_default_warning_with_none_as_placeholder(self): method test_deprecated_arg_default_errors (line 389) | def test_deprecated_arg_default_errors(self): FILE: tests/utils/test_enum_bound_interp.py class TestEnumBoundInterp (line 24) | class TestEnumBoundInterp(unittest.TestCase): method test_bound (line 25) | def test_bound(self): method test_interp (line 54) | def test_interp(self): FILE: tests/utils/test_evenly_divisible_all_gather_dist.py class DistributedEvenlyDivisibleAllGather (line 24) | class DistributedEvenlyDivisibleAllGather(DistTestCase): method test_data (line 26) | def test_data(self): method _run (line 29) | def _run(self): FILE: tests/utils/test_get_package_version.py class TestGetVersion (line 19) | class TestGetVersion(unittest.TestCase): method test_default (line 21) | def test_default(self): method test_msg (line 28) | def test_msg(self): FILE: tests/utils/test_handler_logfile.py class TestHandlerLogfile (line 32) | class TestHandlerLogfile(unittest.TestCase): method setUp (line 33) | def setUp(self): method test_logfile (line 49) | def test_logfile(self): method test_filename (line 59) | def test_filename(self): method test_createdir (line 71) | def test_createdir(self): FILE: tests/utils/test_handler_metric_logger.py class TestHandlerMetricLogger (line 30) | class TestHandlerMetricLogger(unittest.TestCase): method test_metric_logging (line 32) | def test_metric_logging(self): FILE: tests/utils/test_list_to_dict.py class TestListToDict (line 34) | class TestListToDict(unittest.TestCase): method test_value_shape (line 37) | def test_value_shape(self, input, output): FILE: tests/utils/test_look_up_option.py class _CaseEnum (line 22) | class _CaseEnum(Enum): class _CaseEnum1 (line 27) | class _CaseEnum1(Enum): class _CaseStrEnum (line 32) | class _CaseStrEnum(StrEnum): class TestLookUpOption (line 46) | class TestLookUpOption(unittest.TestCase): method test_look_up (line 49) | def test_look_up(self, input_str, supported, expected): method test_default (line 53) | def test_default(self): method test_str_enum (line 57) | def test_str_enum(self): method test_no_found (line 65) | def test_no_found(self): FILE: tests/utils/test_optional_import.py class TestOptionalImport (line 21) | class TestOptionalImport(unittest.TestCase): method test_default (line 24) | def test_default(self, import_module): method test_import_valid (line 30) | def test_import_valid(self): method test_import_wrong_number (line 35) | def test_import_wrong_number(self): method test_import_good_number (line 49) | def test_import_good_number(self, version_number): method test_import_exact (line 55) | def test_import_exact(self): method test_import_method (line 63) | def test_import_method(self): method test_additional (line 68) | def test_additional(self): FILE: tests/utils/test_pad_mode.py class TestPadMode (line 24) | class TestPadMode(unittest.TestCase): method test_pad (line 25) | def test_pad(self): FILE: tests/utils/test_profiling.py class TestWorkflowProfiler (line 31) | class TestWorkflowProfiler(unittest.TestCase): method setUp (line 32) | def setUp(self): method test_empty (line 42) | def test_empty(self): method test_profile_transforms (line 51) | def test_profile_transforms(self): method test_profile_multithread (line 74) | def test_profile_multithread(self): method test_profile_context (line 91) | def test_profile_context(self): method test_profile_callable (line 108) | def test_profile_callable(self): method test_profile_iteration (line 132) | def test_profile_iteration(self): method test_times_summary (line 147) | def test_times_summary(self): method test_times_summary_pd (line 162) | def test_times_summary_pd(self): method test_csv_dump (line 171) | def test_csv_dump(self): method test_handler (line 181) | def test_handler(self): FILE: tests/utils/test_rankfilter_dist.py class DistributedRankFilterTest (line 25) | class DistributedRankFilterTest(DistTestCase): method setUp (line 26) | def setUp(self): method test_rankfilter (line 30) | def test_rankfilter(self): method tearDown (line 48) | def tearDown(self) -> None: class SingleRankFilterTest (line 52) | class SingleRankFilterTest(unittest.TestCase): method tearDown (line 53) | def tearDown(self) -> None: method setUp (line 56) | def setUp(self): method test_rankfilter_single_proc (line 59) | def test_rankfilter_single_proc(self): FILE: tests/utils/test_require_pkg.py class TestRequirePkg (line 19) | class TestRequirePkg(unittest.TestCase): method test_class (line 21) | def test_class(self): method test_function (line 29) | def test_function(self): method test_warning (line 37) | def test_warning(self): method test_class_exception (line 45) | def test_class_exception(self): method test_class_version_exception (line 54) | def test_class_version_exception(self): method test_func_exception (line 63) | def test_func_exception(self): method test_func_versions_exception (line 72) | def test_func_versions_exception(self): FILE: tests/utils/test_sample_slices.py class TestSampleSlices (line 34) | class TestSampleSlices(unittest.TestCase): method test_shape (line 36) | def test_shape(self, input_data, dim, as_indices, vals, expected_result): FILE: tests/utils/test_set_determinism.py class TestSetDeterminism (line 23) | class TestSetDeterminism(unittest.TestCase): method test_values (line 24) | def test_values(self): class TestSetFlag (line 58) | class TestSetFlag(unittest.TestCase): method setUp (line 59) | def setUp(self): method test_algo_not_deterministic (line 63) | def test_algo_not_deterministic(self): method test_algo_cublas_env (line 73) | def test_algo_cublas_env(self): method tearDown (line 80) | def tearDown(self): FILE: tests/utils/test_squeeze_unsqueeze.py class TestUnsqueeze (line 63) | class TestUnsqueeze(unittest.TestCase): method test_unsqueeze_right (line 66) | def test_unsqueeze_right(self, arr, ndim, shape): method test_unsqueeze_left (line 70) | def test_unsqueeze_left(self, arr, ndim, shape): FILE: tests/utils/test_state_cacher.py class TestStateCacher (line 44) | class TestStateCacher(unittest.TestCase): method test_state_cacher (line 47) | def test_state_cacher(self, data_obj, params): FILE: tests/utils/test_torchscript_utils.py class TestModule (line 25) | class TestModule(torch.nn.Module): method forward (line 28) | def forward(self, x): class TestTorchscript (line 32) | class TestTorchscript(unittest.TestCase): method test_save_net_with_metadata (line 34) | def test_save_net_with_metadata(self): method test_save_net_with_metadata_ext (line 43) | def test_save_net_with_metadata_ext(self): method test_save_net_with_metadata_with_extra (line 52) | def test_save_net_with_metadata_with_extra(self): method test_load_net_with_metadata (line 63) | def test_load_net_with_metadata(self): method test_load_net_with_metadata_with_extra (line 76) | def test_load_net_with_metadata_with_extra(self): method test_save_load_more_extra_files (line 94) | def test_save_load_more_extra_files(self): FILE: tests/utils/test_version.py function _pairwise (line 23) | def _pairwise(iterable): class TestVersionCompare (line 77) | class TestVersionCompare(unittest.TestCase): method test_compare_leq (line 80) | def test_compare_leq(self, a, b, expected=True): method test_compare_geq (line 85) | def test_compare_geq(self, a, b, expected=True): FILE: tests/utils/test_version_after.py class TestPytorchVersionCompare (line 49) | class TestPytorchVersionCompare(unittest.TestCase): method test_compare (line 52) | def test_compare(self, a, b, p, current, expected=True): class TestComputeCapabilitiesAfter (line 57) | class TestComputeCapabilitiesAfter(unittest.TestCase): method test_compute_capabilities_after (line 60) | def test_compute_capabilities_after(self, major, minor, sm, expected): FILE: tests/utils/type_conversion/test_convert_data_type.py class TestTensor (line 75) | class TestTensor(torch.Tensor): class TestConvertDataType (line 79) | class TestConvertDataType(unittest.TestCase): method test_convert_data_type (line 81) | def test_convert_data_type(self, in_image, im_out, out_dtype, safe): method test_neg_stride (line 96) | def test_neg_stride(self): method test_unsupported_np_types (line 100) | def test_unsupported_np_types(self, np_type, pt_type): method test_convert_list (line 107) | def test_convert_list(self, in_image, im_out, wrap, out_dtype, safe): class TestConvertDataSame (line 125) | class TestConvertDataSame(unittest.TestCase): method test_convert_data_type (line 128) | def test_convert_data_type(self, in_image, im_out, out_dtype, safe): FILE: tests/utils/type_conversion/test_get_equivalent_dtype.py class TestGetEquivalentDtype (line 31) | class TestGetEquivalentDtype(unittest.TestCase): method test_get_equivalent_dtype (line 33) | def test_get_equivalent_dtype(self, im, input_dtype): method test_native_type (line 37) | def test_native_type(self): method test_from_string (line 54) | def test_from_string(self, dtype_str, expected_np): FILE: tests/utils/type_conversion/test_safe_dtype_range.py class TesSafeDtypeRange (line 56) | class TesSafeDtypeRange(unittest.TestCase): method test_safe_dtype_range (line 58) | def test_safe_dtype_range(self, in_image, im_out, out_dtype): method test_safe_dtype_range_list (line 69) | def test_safe_dtype_range_list(self, in_image, im_out, out_dtype): method test_type_cupy (line 87) | def test_type_cupy(self, in_image, im_out, out_dtype): FILE: tests/visualize/test_img2tensorboard.py class TestImg2Tensorboard (line 23) | class TestImg2Tensorboard(unittest.TestCase): method test_write_gray (line 25) | def test_write_gray(self): FILE: tests/visualize/test_occlusion_sensitivity.py class DenseNetAdjoint (line 24) | class DenseNetAdjoint(DenseNet121): method __call__ (line 26) | def __call__(self, x, adjoint_info): class TestComputeOcclusionSensitivity (line 107) | class TestComputeOcclusionSensitivity(unittest.TestCase): method test_shape (line 110) | def test_shape(self, init_data, call_data, map_expected_shape, most_pr... method test_fail (line 121) | def test_fail(self, init_data, call_data, error_type): FILE: tests/visualize/test_plot_2d_or_3d_image.py class TestPlot2dOr3dImage (line 41) | class TestPlot2dOr3dImage(unittest.TestCase): method test_tb_image (line 43) | def test_tb_image(self, shape): method test_tbx_image (line 53) | def test_tbx_image(self, shape): method test_tbx_video (line 63) | def test_tbx_video(self, shape): FILE: tests/visualize/test_vis_cam.py class TestClassActivationMap (line 69) | class TestClassActivationMap(unittest.TestCase): method test_shape (line 72) | def test_shape(self, input_data, expected_shape): FILE: tests/visualize/test_vis_gradcam.py class DenseNetAdjoint (line 26) | class DenseNetAdjoint(DenseNet121): method __call__ (line 27) | def __call__(self, x, adjoint_info): class TestGradientClassActivationMap (line 151) | class TestGradientClassActivationMap(unittest.TestCase): method test_shape (line 153) | def test_shape(self, cam_class, input_data, expected_shape): method test_ill (line 199) | def test_ill(self, cam_class): FILE: tests/visualize/utils/test_blend_images.py function get_alpha (line 30) | def get_alpha(img): class TestBlendImages (line 46) | class TestBlendImages(unittest.TestCase): method test_blend (line 48) | def test_blend(self, image, label, alpha): FILE: tests/visualize/utils/test_matshow3d.py class TestMatshow3d (line 38) | class TestMatshow3d(unittest.TestCase): method test_3d (line 39) | def test_3d(self): method test_samples (line 66) | def test_samples(self): method test_3d_rgb (line 96) | def test_3d_rgb(self): FILE: versioneer.py class VersioneerConfig (line 293) | class VersioneerConfig: function get_root (line 297) | def get_root(): function get_config_from_root (line 337) | def get_config_from_root(root): class NotThisMethod (line 365) | class NotThisMethod(Exception): function register_vcs_handler (line 374) | def register_vcs_handler(vcs, method): # decorator function run_command (line 385) | def run_command(commands, args, cwd=None, verbose=False, hide_stderr=Fal... function git_get_keywords (line 1094) | def git_get_keywords(versionfile_abs): function git_versions_from_keywords (line 1122) | def git_versions_from_keywords(keywords, tag_prefix, verbose): function git_pieces_from_vcs (line 1193) | def git_pieces_from_vcs(tag_prefix, root, verbose, runner=run_command): function do_vcs_install (line 1320) | def do_vcs_install(versionfile_source, ipy): function versions_from_parentdir (line 1357) | def versions_from_parentdir(parentdir_prefix, root, verbose): function versions_from_file (line 1402) | def versions_from_file(filename): function write_to_version_file (line 1417) | def write_to_version_file(filename, versions): function plus_or_dot (line 1427) | def plus_or_dot(pieces): function render_pep440 (line 1434) | def render_pep440(pieces): function render_pep440_branch (line 1458) | def render_pep440_branch(pieces): function pep440_split_post (line 1487) | def pep440_split_post(ver): function render_pep440_pre (line 1497) | def render_pep440_pre(pieces): function render_pep440_post (line 1521) | def render_pep440_post(pieces): function render_pep440_post_branch (line 1548) | def render_pep440_post_branch(pieces): function render_pep440_old (line 1577) | def render_pep440_old(pieces): function render_git_describe (line 1599) | def render_git_describe(pieces): function render_git_describe_long (line 1619) | def render_git_describe_long(pieces): function render (line 1639) | def render(pieces, style): class VersioneerBadRootError (line 1681) | class VersioneerBadRootError(Exception): function get_versions (line 1685) | def get_versions(verbose=False): function get_version (line 1764) | def get_version(): function get_cmdclass (line 1769) | def get_cmdclass(cmdclass=None): function do_setup (line 2075) | def do_setup(): function scan_setup_py (line 2132) | def scan_setup_py():