MCPcopy Create free account

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

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

↓ 120 callersMethodkeys
(self)
weak_segmentation/nnunetv2/training/dataloading/nnunet_dataset.py:68
↓ 111 callersFunction_pcfg
(url='', hf_hub='', **kwargs)
biomedclip_finetuning/open_clip/src/open_clip/pretrained.py:40
↓ 64 callersMethoddevice
(self)
segment-anything/segment_anything/modeling/sam.py:50
↓ 58 callersMethodmean
(self)
saliency_maps/scripts/iba.py:53
↓ 47 callersFunction_n2p
(w, t=True, idx=None)
biomedclip_finetuning/open_clip/src/open_clip/convert.py:21
↓ 46 callersMethodload
(self, what)
saliency_maps/scripts/iba.py:75
↓ 45 callersMethoditems
(self)
segment-anything/segment_anything/utils/amg.py:41
↓ 41 callersMethodcat
(self, new_stats: "MaskData")
segment-anything/segment_anything/utils/amg.py:59
↓ 33 callersMethodprint_to_log_file
(self, *args, also_print_to_console=True, add_timestamp=True)
weak_segmentation/nnunetv2/training/nnUNetTrainer/nnUNetTrainer.py:429
↓ 31 callersFunctionmaybe_convert_to_dataset_name
(dataset_name_or_id: Union[int, str])
weak_segmentation/nnunetv2/utilities/dataset_name_id_conversion.py:64
↓ 29 callersMethodlog
sometimes shit gets messed up. We try to catch that here
weak_segmentation/nnunetv2/training/logging/nnunet_logger.py:31
↓ 23 callersMethodupdate
(self, val, n=1)
biomedclip_finetuning/open_clip/src/open_clip_train/train.py:35
↓ 21 callersMethodget_label_manager
(self, dataset_json: dict, **kwargs)
weak_segmentation/nnunetv2/utilities/plans_handling/plans_handler.py:281
↓ 19 callersMethodfrom_pretrained
(cls, pretrained_model_name_or_path: Union[str, os.PathLike], **kwargs)
saliency_maps/model/configuration_biomed_clip.py:23
↓ 19 callersMethodvalues
(self)
weak_segmentation/nnunetv2/training/dataloading/nnunet_dataset.py:77
↓ 16 callersFunctionget_output_folder
(dataset_name_or_id: Union[str, int], trainer_name: str = 'nnUNetTrainer', plans_identif
weak_segmentation/nnunetv2/utilities/file_path_utilities.py:19
↓ 16 callersMethodread_images
(self, image_fnames: Union[List[str], Tuple[str, ...]])
weak_segmentation/nnunetv2/imageio/tif_reader_writer.py:38
↓ 15 callersFunction_slpcfg
(url='', hf_hub='', **kwargs)
biomedclip_finetuning/open_clip/src/open_clip/pretrained.py:53
↓ 14 callersMethoditems
(self)
weak_segmentation/nnunetv2/training/dataloading/nnunet_dataset.py:74
↓ 13 callersMethodnormalize
(self, z)
saliency_maps/scripts/iba.py:72
↓ 12 callersFunctionis_master
(args, local=False)
biomedclip_finetuning/open_clip/src/open_clip_train/distributed.py:22
↓ 11 callersMethod_check_all_same
(input_list)
weak_segmentation/nnunetv2/imageio/base_reader_writer.py:23
↓ 11 callersMethod_get_deep_supervision_scales
(self)
weak_segmentation/nnunetv2/training/nnUNetTrainer/variants/network_architecture/nnUNetTrainerNoDeepSupervision.py:27
↓ 11 callersFunctionrecursive_find_python_class
(folder: str, class_name: str, current_module: str)
weak_segmentation/nnunetv2/utilities/find_class_by_name.py:7
↓ 10 callersMethod__init__
(self, config: BiomedCLIPConfig)
saliency_maps/model/modeling_biomed_clip.py:627
↓ 10 callersMethod__init__
( self, dim: int, num_heads: int = 8, qkv_bias: bool = True,
biomedclip_finetuning/open_clip/src/open_clip/transformer.py:90
↓ 10 callersFunctioncompute_metrics_on_folder
output_file must end with .json; can be None
weak_segmentation/nnunetv2/evaluation/evaluate_predictions.py:123
↓ 10 callersMethodimage_reader_writer_class
(self)
weak_segmentation/nnunetv2/utilities/plans_handling/plans_handler.py:248
↓ 10 callersFunctionload_summary_json
(filename: str)
weak_segmentation/nnunetv2/evaluation/evaluate_predictions.py:51
↓ 9 callersMethod__init__
used for debugging plans etc
weak_segmentation/nnunetv2/training/nnUNetTrainer/variants/training_length/nnUNetTrainer_Xepochs.py:15
↓ 9 callersFunctionconvert_labelmap_to_one_hot
if output_dtype is None then we use np.uint8/torch.uint8 if input is torch.Tensor then output will be on the same device np.ndarray is f
weak_segmentation/nnunetv2/utilities/label_handling/label_handling.py:245
↓ 9 callersMethodget_configuration
(self, configuration_name: str)
weak_segmentation/nnunetv2/utilities/plans_handling/plans_handler.py:222
↓ 8 callersMethoddecode
(self, tokens)
biomedclip_finetuning/open_clip/src/open_clip/tokenizer.py:221
↓ 8 callersFunctiondownload_pretrained_from_url
( url: str, cache_dir: Optional[str] = None, )
biomedclip_finetuning/open_clip/src/open_clip/pretrained.py:654
↓ 8 callersFunctiongenerate_dataset_json
Generates a dataset.json file in the output folder channel_names: Channel names must map the index to the name of the channel, examp
weak_segmentation/nnunetv2/dataset_conversion/generate_dataset_json.py:6
↓ 8 callersMethodpredict_from_files
This is nnU-Net's default function for making predictions. It works best for batch predictions (predicting many images at once).
weak_segmentation/nnunetv2/inference/predict_from_raw_data.py:190
↓ 8 callersMethodread_seg
(self, seg_fname: str)
weak_segmentation/nnunetv2/imageio/tif_reader_writer.py:79
↓ 8 callersMethodstep
(self, current_step=None)
weak_segmentation/nnunetv2/training/lr_scheduler/polylr.py:16
↓ 7 callersFunction_apcfg
(url='', hf_hub='', **kwargs)
biomedclip_finetuning/open_clip/src/open_clip/pretrained.py:66
↓ 7 callersFunction_print_and_maybe_write_to_file
(string)
weak_segmentation/nnunetv2/evaluation/find_best_configuration.py:215
↓ 7 callersFunctionempty_cache
(device: torch.device)
weak_segmentation/nnunetv2/utilities/helpers.py:13
↓ 7 callersMethodencode_text
(self, text, normalize: bool = False)
biomedclip_finetuning/open_clip/src/open_clip/model.py:271
↓ 7 callersFunctionget_allowed_n_proc_DA
This function is used to set the number of processes used on different Systems. It is specific to our cluster infrastructure at DKFZ. You can
weak_segmentation/nnunetv2/utilities/default_n_proc_DA.py:5
↓ 7 callersFunctionrecursive_fix_for_json_export
(my_dict: dict)
weak_segmentation/nnunetv2/utilities/json_export.py:7
↓ 7 callersMethodsave_checkpoint
(self, filename: str)
weak_segmentation/nnunetv2/training/nnUNetTrainer/nnUNetTrainer.py:1064
↓ 6 callersMethodcreate_response
(self, data, status_code=200, content_type='application/octet-stream')
biomedclip_finetuning/open_clip/tests/test_download_pretrained.py:20
↓ 6 callersFunctiondetermine_reader_writer_from_dataset_json
(dataset_json_content: dict, example_file: str = None, allow_non
weak_segmentation/nnunetv2/imageio/reader_writer_registry.py:23
↓ 6 callersMethodfilter
(self, keep: torch.Tensor)
segment-anything/segment_anything/utils/amg.py:44
↓ 6 callersFunctionfolds_tuple_to_string
(folds: Union[List[int], Tuple[int, ...]])
weak_segmentation/nnunetv2/utilities/file_path_utilities.py:78
↓ 6 callersFunctionget_identifiers_from_splitted_dataset_folder
(folder: str, file_ending: str)
weak_segmentation/nnunetv2/utilities/utils.py:22
↓ 6 callersFunctionget_lowres_axis
(new_spacing: Union[Tuple[float, ...], List[float], np.ndarray])
weak_segmentation/nnunetv2/preprocessing/resampling/default_resampling.py:18
↓ 6 callersMethodget_validation_transforms
(deep_supervision_scales: Union[List, Tuple], is_cascaded: bool = False,
weak_segmentation/nnunetv2/training/nnUNetTrainer/nnUNetTrainer.py:754
↓ 6 callersMethodinitialize_from_trained_model_folder
This is used when making predictions with a trained model
weak_segmentation/nnunetv2/inference/predict_from_raw_data.py:67
↓ 6 callersFunctionmain
(args)
biomedclip_finetuning/open_clip/src/open_clip_train/main.py:70
↓ 6 callersMethodpredict_sliding_window_return_logits
(self, input_image: torch.Tensor)
weak_segmentation/nnunetv2/inference/predict_from_raw_data.py:569
↓ 6 callersMethodstd
(self, stabilize=True)
saliency_maps/scripts/iba.py:59
↓ 5 callersFunction_ntuple
(n)
biomedclip_finetuning/open_clip/src/open_clip/utils.py:49
↓ 5 callersMethodencode
(self, text)
biomedclip_finetuning/open_clip/src/open_clip/tokenizer.py:213
↓ 5 callersMethodencode_image
(self, image, normalize: bool = False)
biomedclip_finetuning/open_clip/src/open_clip/model.py:267
↓ 5 callersMethodload_case
(self, key)
weak_segmentation/nnunetv2/training/dataloading/nnunet_dataset.py:80
↓ 5 callersMethodpreprocessor_class
(self)
weak_segmentation/nnunetv2/utilities/plans_handling/plans_handler.py:49
↓ 4 callersMethod__init__
(self, model)
saliency_maps/scripts/biomedclip_wrapper.py:209
↓ 4 callersMethod__init__
(self, model)
saliency_maps/scripts/clip_wrapper.py:111
↓ 4 callersFunction_clean_tag
(tag: str)
biomedclip_finetuning/open_clip/src/open_clip/pretrained.py:606
↓ 4 callersMethod_encode_image
(self, images, normalize: bool = True)
biomedclip_finetuning/open_clip/src/open_clip/coca_model.py:149
↓ 4 callersMethod_loss
(self, image_features, text_features, logit_scale, logit_bias=None, negative_only=False)
biomedclip_finetuning/open_clip/src/open_clip/loss.py:400
↓ 4 callersMethod_make_layer
(self, planes, blocks, stride=1)
biomedclip_finetuning/open_clip/src/open_clip/modified_resnet.py:132
↓ 4 callersFunction_mccfg
(url='', hf_hub='', **kwargs)
biomedclip_finetuning/open_clip/src/open_clip/pretrained.py:79
↓ 4 callersMethodbackward
(ctx: Any, *grad_output: torch.Tensor)
weak_segmentation/nnunetv2/utilities/ddp_allgather.py:43
↓ 4 callersFunctionbasic_clean
(text)
biomedclip_finetuning/open_clip/src/open_clip/tokenizer.py:66
↓ 4 callersFunctionbuild_inputs
(test_name)
biomedclip_finetuning/open_clip/tests/test_wds.py:19
↓ 4 callersFunctioncheck_workers_alive_and_busy
returns True if the number of results that are not ready is greater than the number of available workers + allowed_num_queued
weak_segmentation/nnunetv2/utilities/file_path_utilities.py:96
↓ 4 callersMethodconfigure_rotation_dummyDA_mirroring_and_inital_patch_size
This function is stupid and certainly one of the weakest spots of this implementation. Not entirely sure how we can fix it.
weak_segmentation/nnunetv2/training/nnUNetTrainer/variants/data_augmentation/nnUNetTrainerDA5.py:36
↓ 4 callersFunctionconvert_identifier_to_trainer_plans_config
(identifier: str)
weak_segmentation/nnunetv2/utilities/file_path_utilities.py:15
↓ 4 callersFunctiondetermine_num_input_channels
(plans_manager: PlansManager, configuration_or_config_manager: Union[str, Con
weak_segmentation/nnunetv2/utilities/label_handling/label_handling.py:280
↓ 4 callersFunctiondownload_pretrained_from_hf
( model_id: str, filename: Optional[str] = None, revision: Optional[str] = None,
biomedclip_finetuning/open_clip/src/open_clip/pretrained.py:721
↓ 4 callersFunctionget_autocast
(precision, device_type='cuda')
biomedclip_finetuning/open_clip/src/open_clip_train/precision.py:6
↓ 4 callersFunctionget_do_separate_z
(spacing: Union[Tuple[float, ...], List[float], np.ndarray], anisotropy_threshold=ANISO_THRESHOLD)
weak_segmentation/nnunetv2/preprocessing/resampling/default_resampling.py:13
↓ 4 callersMethodget_image_features
(self, x, output_hidden_states=False, emb_input=False)
saliency_maps/scripts/clip_wrapper.py:117
↓ 4 callersMethodget_plain_dataloaders
(self, initial_patch_size: Tuple[int, ...], dim: int)
weak_segmentation/nnunetv2/training/nnUNetTrainer/variants/data_augmentation/nnUNetTrainerNoDA.py:27
↓ 4 callersMethodget_preprocess_shape
Compute the output size given input size and target long side length.
segment-anything/segment_anything/utils/transforms.py:94
↓ 4 callersMethodget_text_features
(self, x, output_hidden_states=False, emb_input=False)
saliency_maps/scripts/clip_wrapper.py:120
↓ 4 callersFunctionget_tokenizer
( model_name: str = '', context_length: Optional[int] = None, cache_dir: Optional[str]
biomedclip_finetuning/open_clip/src/open_clip/factory.py:94
↓ 4 callersMethodget_training_transforms
(patch_size: Union[np.ndarray, Tuple[int]], rotation_for_DA: dict,
weak_segmentation/nnunetv2/training/nnUNetTrainer/variants/data_augmentation/nnUNetTrainerDA5.py:94
↓ 4 callersFunctionlabel_or_region_to_key
(label_or_region: Union[int, Tuple[int]])
weak_segmentation/nnunetv2/evaluation/evaluate_predictions.py:20
↓ 4 callersFunctionmerge_preprocess_dict
Merge overlay key-value pairs on top of base preprocess cfg or dict. Input dicts are filtered based on PreprocessCfg fields.
biomedclip_finetuning/open_clip/src/open_clip/transform.py:40
↓ 4 callersFunctionparse_dataset_trainer_plans_configuration_from_path
(path: str)
weak_segmentation/nnunetv2/utilities/file_path_utilities.py:29
↓ 4 callersMethodpredict_from_data_iterator
each element returned by data_iterator must be a dict with 'data', 'ofile' and 'data_properites' keys! If 'ofile' is None, the result
weak_segmentation/nnunetv2/inference/predict_from_raw_data.py:331
↓ 4 callersMethodpredict_torch
Predict masks for the given input prompts, using the currently set image. Input prompts are batched torch tensors and are expected
segment-anything/segment_anything/predictor.py:169
↓ 4 callersFunctionpreprocess
(dataset_ids: List[int], plans_identifier: str = 'nnUNetPlans', configurations:
weak_segmentation/nnunetv2/experiment_planning/plan_and_preprocess_api.py:121
↓ 4 callersFunctionreplace_layer
Replace a given module within a parent module with some third module Useful for injecting new layers in an existing model.
saliency_maps/scripts/utils.py:24
↓ 4 callersMethodrun_case
seg file can be none (test cases) order of operations is: transpose -> crop -> resample so when we export we need to run the
weak_segmentation/nnunetv2/preprocessing/preprocessors/default_preprocessor.py:114
↓ 4 callersMethodrun_case_npy
(self, data: np.ndarray, seg: Union[np.ndarray, None], properties: dict, plans_manager: P
weak_segmentation/nnunetv2/preprocessing/preprocessors/default_preprocessor.py:40
↓ 4 callersFunctionsum_tensor
(inp: torch.Tensor, axes: Union[np.ndarray, Tuple, List], keepdim: bool = False)
weak_segmentation/nnunetv2/utilities/tensor_utilities.py:7
↓ 3 callersMethod__init__
Args: dim (int): Number of input channels. num_heads (int): Number of attention heads in each ViT block.
segment-anything/segment_anything/modeling/image_encoder.py:122
↓ 3 callersMethod__init__
( self, local_loss=False, gather_with_grad=False, cache_labels
biomedclip_finetuning/open_clip/src/open_clip/loss.py:68
↓ 3 callersMethod__init__
(self, plans: dict, configuration: str, fold: int, dataset_json: dict, unpack_dataset: bool = True,
weak_segmentation/nnunetv2/training/nnUNetTrainer/variants/optimizer/nnUNetTrainerAdam.py:47
↓ 3 callersMethod__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:7
↓ 3 callersFunction_build_sam
( encoder_embed_dim, encoder_depth, encoder_num_heads, encoder_global_attn_indexes, c
segment-anything/segment_anything/build_sam.py:55
↓ 3 callersFunction_build_text_tower
( embed_dim: int, text_cfg: CLIPTextCfg, quick_gelu: bool = False, cast_dtype:
biomedclip_finetuning/open_clip/src/open_clip/model.py:174
next →1–100 of 1,090, ranked by callers