MCPcopy Create free account

hub / github.com/HealthX-Lab/MedCLIP-SAMv2 / functions

Functions1,090 in github.com/HealthX-Lab/MedCLIP-SAMv2

Method__init__
(self, use_mask_for_norm: bool = None, intensityproperties: dict = None, target_dtype: Type[n
weak_segmentation/nnunetv2/preprocessing/normalization/default_normalization_schemes.py:11
Method__init__
(self, tile_step_size: float = 0.5, use_gaussian: bool = True,
weak_segmentation/nnunetv2/inference/predict_from_raw_data.py:38
Method__init__
(self, list_of_images: List[np.ndarray], list_of_segs_from_prev_stage: Union[List[np.ndarray]
weak_segmentation/nnunetv2/inference/data_iterators.py:166
Method__init__
(self, neg_slope=1e-2)
weak_segmentation/nnunetv2/utilities/network_initialization.py:5
Method__init__
(self, label_dict: dict, regions_class_order: Union[List[int], None], force_use_labels: bool = False,
weak_segmentation/nnunetv2/utilities/label_handling/label_handling.py:22
Method__init__
(self, configuration_dict: dict)
weak_segmentation/nnunetv2/utilities/plans_handling/plans_handler.py:33
Method__init__
Why do we need this? 1) resolve inheritance in configurations 2) expose otherwise annoying stuff like getting the label manag
weak_segmentation/nnunetv2/utilities/plans_handling/plans_handler.py:181
Method__init__
(self, optimizer, initial_lr: float, max_steps: int, num_of_cycles:int = 1, gamma: float = 0.8, exponent: floa
weak_segmentation/nnunetv2/training/lr_scheduler/polylr.py:6
Method__init__
(self, data: nnUNetDataset, batch_size: int, patch_size: Un
weak_segmentation/nnunetv2/training/dataloading/base_data_loader.py:11
Method__init__
This does not actually load the dataset. It merely creates a dictionary where the keys are training case names and the values are dic
weak_segmentation/nnunetv2/training/dataloading/nnunet_dataset.py:12
Method__init__
(self, verbose: bool = False)
weak_segmentation/nnunetv2/training/logging/nnunet_logger.py:17
Method__init__
(self, my_imaginary_length, *args, **kwargs)
weak_segmentation/nnunetv2/training/data_augmentation/custom_transforms/limited_length_multithreaded_augmenter.py:5
Method__init__
Sets everything outside the mask to 0. CAREFUL! outside is defined as < 0, not =0 (in the Mask)!!!
weak_segmentation/nnunetv2/training/data_augmentation/custom_transforms/masking.py:7
Method__init__
Transforms a 5D array (b, c, x, y, z) to a 4D array (b, c * x, y, z) by overloading the color channel
weak_segmentation/nnunetv2/training/data_augmentation/custom_transforms/transforms_for_dummy_2d.py:7
Method__init__
Reverts Convert3DTo2DTransform by transforming a 4D array (b, c * x, y, z) back to 5D (b, c, x, y, z)
weak_segmentation/nnunetv2/training/data_augmentation/custom_transforms/transforms_for_dummy_2d.py:27
Method__init__
Downscales data_dict[input_key] according to ds_scales. Each entry in ds_scales specified one deep supervision output and its resolut
weak_segmentation/nnunetv2/training/data_augmentation/custom_transforms/deep_supervision_donwsampling.py:12
Method__init__
(self, key_to_remove: str)
weak_segmentation/nnunetv2/training/data_augmentation/custom_transforms/manipulating_data_dict.py:5
Method__init__
Takes data_dict[seg][:, index_in_origin], converts it to one hot encoding and appends it to data_dict[key_target]. Optionally removes
weak_segmentation/nnunetv2/training/data_augmentation/custom_transforms/cascade_transforms.py:11
Method__init__
Randomly removes connected components in the specified channel_idx of data_dict[key]. Only considers components smaller than dont_do_
weak_segmentation/nnunetv2/training/data_augmentation/custom_transforms/cascade_transforms.py:41
Method__init__
Applies random binary operations (specified by any_of_these) with random ball size (radius is uniformly sampled from interval strel_s
weak_segmentation/nnunetv2/training/data_augmentation/custom_transforms/cascade_transforms.py:89
Method__init__
regions are tuple of tuples where each inner tuple holds the class indices that are merged into one region, example: regions=
weak_segmentation/nnunetv2/training/data_augmentation/custom_transforms/region_based_training.py:8
Method__init__
saves 1.6 GB on Dataset017 3d_lowres
weak_segmentation/nnunetv2/training/loss/dice.py:60
Method__init__
DO NOT APPLY NONLINEARITY IN YOUR NETWORK! target mut be one hot encoded IMPORTANT: We assume use_ignore_label is located in
weak_segmentation/nnunetv2/training/loss/compound_losses.py:61
Method__init__
Weights for CE and Dice do not need to sum to one. You can set whatever you want. :param soft_dice_kwargs: :param ce_kwargs:
weak_segmentation/nnunetv2/training/loss/compound_losses.py:104
Method__init__
Wraps a loss function so that it can be applied to multiple outputs. Forward accepts an arbitrary number of inputs. Each input is exp
weak_segmentation/nnunetv2/training/loss/deep_supervision.py:5
Method__init__
(self, weight=None, ignore_index: int = -100, k: float = 10, label_smoothing: float = 0)
weak_segmentation/nnunetv2/training/loss/robust_ce_loss.py:23
Method__init__
(self, plans: dict, configuration: str, fold: int, dataset_json: dict, unpack_dataset: bool = True,
weak_segmentation/nnunetv2/training/nnUNetTrainer/nnUNetTrainer.py:68
Method__init__
(self, plans: dict, configuration: str, fold: int, dataset_json: dict, unpack_dataset: bool = True,
weak_segmentation/nnunetv2/training/nnUNetTrainer/variants/sampling/nnUNetTrainer_probabilisticOversampling.py:64
Method__init__
(self, plans: dict, configuration: str, fold: int, dataset_json: dict, unpack_dataset: bool = True,
weak_segmentation/nnunetv2/training/nnUNetTrainer/variants/sampling/nnUNetTrainer_probabilisticOversampling.py:71
Method__init__
(self, plans: dict, configuration: str, fold: int, dataset_json: dict, unpack_dataset: bool = True,
weak_segmentation/nnunetv2/training/nnUNetTrainer/variants/data_augmentation/nnUNetTrainerDA5.py:407
Method__init__
(self, plans: dict, configuration: str, fold: int, dataset_json: dict, unpack_dataset: bool = True,
weak_segmentation/nnunetv2/training/nnUNetTrainer/variants/benchmarking/nnUNetTrainerBenchmark_5epochs.py:9
Method__init__
(self, plans: dict, configuration: str, fold: int, dataset_json: dict, unpack_dataset: bool = True,
weak_segmentation/nnunetv2/training/nnUNetTrainer/variants/benchmarking/nnUNetTrainerBenchmark_5epochs_noDataLoading.py:9
Method__init__
(self, plans: dict, configuration: str, fold: int, dataset_json: dict, unpack_dataset: bool = True,
weak_segmentation/nnunetv2/training/nnUNetTrainer/variants/optimizer/nnUNetTrainerAdan.py:35
Method__init__
(self, plans: dict, configuration: str, fold: int, dataset_json: dict, unpack_dataset: bool = True,
weak_segmentation/nnunetv2/training/nnUNetTrainer/variants/optimizer/nnUNetTrainerAdan.py:43
Method__init__
(self, plans: dict, configuration: str, fold: int, dataset_json: dict, unpack_dataset: bool = True,
weak_segmentation/nnunetv2/training/nnUNetTrainer/variants/optimizer/nnUNetTrainerAdam.py:32
Method__init__
(self, plans: dict, configuration: str, fold: int, dataset_json: dict, unpack_dataset: bool = True,
weak_segmentation/nnunetv2/training/nnUNetTrainer/variants/optimizer/nnUNetTrainerAdam.py:40
Method__init__
(self, plans: dict, configuration: str, fold: int, dataset_json: dict, unpack_dataset: bool = True,
weak_segmentation/nnunetv2/training/nnUNetTrainer/variants/optimizer/nnUNetTrainerAdam.py:55
Method__init__
used for debugging plans etc
weak_segmentation/nnunetv2/training/nnUNetTrainer/variants/training_length/nnUNetTrainer_Xepochs.py:7
Method__init__
used for debugging plans etc
weak_segmentation/nnunetv2/training/nnUNetTrainer/variants/training_length/nnUNetTrainer_Xepochs.py:23
Method__init__
(self, plans: dict, configuration: str, fold: int, dataset_json: dict, unpack_dataset: bool = True,
weak_segmentation/nnunetv2/training/nnUNetTrainer/variants/training_length/nnUNetTrainer_Xepochs.py:31
Method__init__
(self, plans: dict, configuration: str, fold: int, dataset_json: dict, unpack_dataset: bool = True,
weak_segmentation/nnunetv2/training/nnUNetTrainer/variants/training_length/nnUNetTrainer_Xepochs.py:38
Method__init__
(self, plans: dict, configuration: str, fold: int, dataset_json: dict, unpack_dataset: bool = True,
weak_segmentation/nnunetv2/training/nnUNetTrainer/variants/training_length/nnUNetTrainer_Xepochs.py:45
Method__init__
(self, plans: dict, configuration: str, fold: int, dataset_json: dict, unpack_dataset: bool = True,
weak_segmentation/nnunetv2/training/nnUNetTrainer/variants/training_length/nnUNetTrainer_Xepochs.py:52
Method__init__
(self, plans: dict, configuration: str, fold: int, dataset_json: dict, unpack_dataset: bool = True,
weak_segmentation/nnunetv2/training/nnUNetTrainer/variants/training_length/nnUNetTrainer_Xepochs.py:59
Method__init__
(self, plans: dict, configuration: str, fold: int, dataset_json: dict, unpack_dataset: bool = True,
weak_segmentation/nnunetv2/training/nnUNetTrainer/variants/training_length/nnUNetTrainer_Xepochs.py:66
Method__init__
(self, plans: dict, configuration: str, fold: int, dataset_json: dict, unpack_dataset: bool = True,
weak_segmentation/nnunetv2/training/nnUNetTrainer/variants/training_length/nnUNetTrainer_Xepochs.py:73
Method__init__
(self, plans: dict, configuration: str, fold: int, dataset_json: dict, unpack_dataset: bool = True,
weak_segmentation/nnunetv2/training/nnUNetTrainer/variants/training_length/nnUNetTrainer_Xepochs_NoMirroring.py:21
Method__init__
(self, plans: dict, configuration: str, fold: int, dataset_json: dict, unpack_dataset: bool = True,
weak_segmentation/nnunetv2/training/nnUNetTrainer/variants/training_length/nnUNetTrainer_Xepochs_NoMirroring.py:35
Method__init__
(self, plans: dict, configuration: str, fold: int, dataset_json: dict, unpack_dataset: bool = True,
weak_segmentation/nnunetv2/training/nnUNetTrainer/variants/training_length/nnUNetTrainer_Xepochs_NoMirroring.py:49
Method__iter__
Return an iterator over the shards.
biomedclip_finetuning/open_clip/src/open_clip_train/data.py:304
Method__len__
(self)
biomedclip_finetuning/open_clip/src/open_clip_train/data.py:41
Method__len__
(self)
biomedclip_finetuning/open_clip/src/open_clip_train/data.py:494
Method__len__
(self)
weak_segmentation/nnunetv2/training/dataloading/nnunet_dataset.py:71
Method__len__
(self)
weak_segmentation/nnunetv2/training/data_augmentation/custom_transforms/limited_length_multithreaded_augmenter.py:9
Method__post_init__
(self)
biomedclip_finetuning/open_clip/src/open_clip/transform.py:26
Method__repr__
(self)
biomedclip_finetuning/open_clip/src/open_clip/transform.py:160
Method__repr__
(self)
biomedclip_finetuning/open_clip/src/open_clip/transform.py:234
Method__repr__
(self)
weak_segmentation/nnunetv2/utilities/plans_handling/plans_handler.py:36
Method__setitem__
(self, key: str, item: Any)
segment-anything/segment_anything/utils/amg.py:29
Method__setitem__
(self, key, value)
weak_segmentation/nnunetv2/training/dataloading/nnunet_dataset.py:65
Method_build_loss
(self)
weak_segmentation/nnunetv2/training/nnUNetTrainer/variants/loss/nnUNetTrainerDiceLoss.py:12
Method_build_loss
(self)
weak_segmentation/nnunetv2/training/nnUNetTrainer/variants/loss/nnUNetTrainerDiceLoss.py:31
Method_build_loss
(self)
weak_segmentation/nnunetv2/training/nnUNetTrainer/variants/loss/nnUNetTrainerTopkLoss.py:9
Method_build_loss
(self)
weak_segmentation/nnunetv2/training/nnUNetTrainer/variants/loss/nnUNetTrainerTopkLoss.py:28
Method_build_loss
(self)
weak_segmentation/nnunetv2/training/nnUNetTrainer/variants/loss/nnUNetTrainerTopkLoss.py:47
Method_build_loss
(self)
weak_segmentation/nnunetv2/training/nnUNetTrainer/variants/loss/nnUNetTrainerCELoss.py:8
Function_clean_canonicalize
(x)
biomedclip_finetuning/open_clip/src/open_clip/tokenizer.py:78
Function_clean_lower
(x)
biomedclip_finetuning/open_clip/src/open_clip/tokenizer.py:83
Function_clean_whitespace
(x)
biomedclip_finetuning/open_clip/src/open_clip/tokenizer.py:88
Function_convert_ln
(m)
biomedclip_finetuning/open_clip/src/open_clip/factory.py:348
Function_convert_to_npy
(npz_file: str, unpack_segmentation: bool = True, overwrite_existing: bool = False)
weak_segmentation/nnunetv2/training/dataloading/utils.py:11
Function_convert_to_rgb
(image)
biomedclip_finetuning/open_clip/src/open_clip/transform.py:238
Function_convert_weights
(l)
biomedclip_finetuning/open_clip/src/open_clip/model.py:401
Method_create_block
(bt: str)
biomedclip_finetuning/open_clip/src/open_clip/transformer.py:393
Function_lr_adjuster
(step)
biomedclip_finetuning/open_clip/src/open_clip_train/scheduler.py:14
Method_oversample_last_XX_percent
determines whether sample sample_idx in a minibatch needs to be guaranteed foreground
weak_segmentation/nnunetv2/training/dataloading/base_data_loader.py:45
Method_probabilistic_oversampling
(self, sample_idx: int)
weak_segmentation/nnunetv2/training/dataloading/base_data_loader.py:51
Method_unlock
(x)
biomedclip_finetuning/open_clip/src/open_clip/transformer.py:561
Functionaccumulate_crossval_results_entry_point
()
weak_segmentation/nnunetv2/evaluation/find_best_configuration.py:300
Functionadd_model_config
add model config path or file and update registry
biomedclip_finetuning/open_clip/src/open_clip/factory.py:61
Functionall_gather_object
(args, obj, dst=0)
biomedclip_finetuning/open_clip/src/open_clip_train/distributed.py:211
Methodall_labels
(self)
weak_segmentation/nnunetv2/utilities/label_handling/label_handling.py:121
Methodall_regions
(self)
weak_segmentation/nnunetv2/utilities/label_handling/label_handling.py:117
Methodanalyze_case
(image_files: List[str], segmentation_file: str, reader_writer_class: Type[BaseReaderWriter],
weak_segmentation/nnunetv2/experiment_planning/dataset_fingerprint/fingerprint_extractor.py:83
Methodapply_image_torch
Expects batched images with shape BxCxHxW and float format. This transformation may not exactly match apply_image. apply_image is
segment-anything/segment_anything/utils/transforms.py:55
Methodavailable_configurations
(self)
weak_segmentation/nnunetv2/utilities/plans_handling/plans_handler.py:260
Methodbackward
(ctx, *grad_outputs)
biomedclip_finetuning/open_clip/src/open_clip/loss.py:349
Methodbatch_dice
(self)
weak_segmentation/nnunetv2/utilities/plans_handling/plans_handler.py:164
Methodbatch_size
(self)
weak_segmentation/nnunetv2/utilities/plans_handling/plans_handler.py:56
Methodbuild_network_architecture
(plans_manager: PlansManager, dataset_json,
weak_segmentation/nnunetv2/training/nnUNetTrainer/variants/network_architecture/nnUNetTrainerBN copy.py:11
Functionbuild_prob_arrays_for_a_given_image
(fold_path: str, save_p_val_maps: bool = False, threshold: float = 0.05 ,save_all_arrays: bool = False)
weak_segmentation/nnunetv2/nnunet/uncertainty_utils.py:255
Functionbuild_sam_vit_b
(checkpoint=None)
segment-anything/segment_anything/build_sam.py:37
Functionbuild_sam_vit_h
(checkpoint=None)
segment-anything/segment_anything/build_sam.py:14
Functionbuild_sam_vit_l
(checkpoint=None)
segment-anything/segment_anything/build_sam.py:27
Functionbuild_zero_shot_classifier_legacy
Build zero-shot classifier weights by iterating over class names 1 by 1 Args: model: CLIP model instance tokenizer: CLIP tokenize
biomedclip_finetuning/open_clip/src/open_clip/zero_shot_classifier.py:71
Functioncheck_cases
(base_folder: str, case_identifier: str, expected_num_channels: int, readerclass: Type[BaseRea
weak_segmentation/nnunetv2/experiment_planning/verify_dataset_integrity.py:46
Functioncheck_exists
(file_path)
biomedclip_finetuning/open_clip/src/open_clip_train/file_utils.py:77
Functioncompute_average_surface_distance
(surface_distances)
evaluation/SurfaceDice.py:430
Functioncompute_average_surface_distance
(surface_distances)
weak_segmentation/nnunetv2/evaluation/SurfaceDice.py:430
Functioncompute_metrics
(reference_file: str, prediction_file: str, image_reader_writer: BaseReaderWriter, labels_
weak_segmentation/nnunetv2/evaluation/evaluate_predictions.py:89
← previousnext →701–800 of 1,090, ranked by callers