MCPcopy Create free account

hub / github.com/bowang-lab/MedSAM2 / functions

Functions862 in github.com/bowang-lab/MedSAM2

↓ 1 callersMethod_setup_env_variables
(self, env_variables_conf)
training/trainer.py:257
↓ 1 callersMethod_setup_timers
Initializes counters for elapsed time and eta.
training/trainer.py:231
↓ 1 callersMethod_setup_torch_dist_and_backend
(self, cuda_conf, distributed_conf)
training/trainer.py:262
↓ 1 callersMethod_track_step
( self, frame_idx, is_init_cond_frame, current_vision_feats, current_v
sam2/modeling/efficienttam_base.py:730
↓ 1 callersMethod_track_step
( self, frame_idx, is_init_cond_frame, current_vision_feats, current_v
efficient_track_anything/modeling/efficienttam_base.py:730
↓ 1 callersFunction_unix_pattern_to_parameter_names
Returns param names which pass the filters specified in scheduler_cfg. Args: scheduler_cfg: The config for the scheduler paramete
training/optimizer.py:253
↓ 1 callersMethod_update_losses
( self, losses, src_masks, target_masks, ious, num_objects, object_score_logits )
training/loss_fns.py:218
↓ 1 callersMethod_update_memory
Update memory with new frame data.
sam2/sam2_video_trainer.py:382
↓ 1 callersMethod_use_mask_as_output
Directly turn binary `mask_inputs` into a output mask logits without using SAM. (same input and output shapes as in _forward_sam_head
sam2/modeling/sam2_base.py:415
↓ 1 callersMethod_use_mask_as_output
Directly turn binary `mask_inputs` into a output mask logits without using SAM. (same input and output shapes as in _forward_sam_head
sam2/modeling/efficienttam_base.py:417
↓ 1 callersMethod_use_mask_as_output
Directly turn binary `mask_inputs` into a output mask logits without using SAM. (same input and output shapes as in _forward_sam_head
efficient_track_anything/modeling/efficienttam_base.py:417
↓ 1 callersMethod_use_multimask
Whether to use multimask output in the SAM head.
sam2/modeling/efficienttam_base.py:883
↓ 1 callersMethod_use_multimask
Whether to use multimask output in the SAM head.
efficient_track_anything/modeling/efficienttam_base.py:883
↓ 1 callersMethod_validate_optimizer_schedulers
(self)
training/optimizer.py:41
↓ 1 callersMethodadd_new_points
Deprecated method. Please use `add_new_points_or_box` instead.
sam2/sam2_video_predictor.py:316
↓ 1 callersMethodadd_new_points_or_box
Add new points to a frame.
sam2/sam2_video_predictor_npz.py:177
↓ 1 callersMethodadd_new_points_or_box
Add new points to a frame.
efficient_track_anything/efficienttam_video_predictor_npz.py:173
↓ 1 callersFunctionall_gather_tensor
(tensor: torch.Tensor, world_size=None)
training/utils/distributed.py:451
↓ 1 callersFunctionall_reduce_max
Wrapper over torch.distributed.all_reduce for performing min reduction of tensor over all processes in both distributed / non-distributed
training/utils/distributed.py:258
↓ 1 callersFunctionapply_rotary_enc
( xq: torch.Tensor, xk: torch.Tensor, freqs_cis: torch.Tensor, repeat_freqs_k: bool = False, )
sam2/modeling/position_encoding.py:194
↓ 1 callersFunctionarea_from_rle
(rle: Dict[str, Any])
efficient_track_anything/utils/amg.py:154
↓ 1 callersFunctionassert_skipped_parameters_are_frozen
Verifies that all the parameters matching the provided patterns are frozen - this acts as a safeguard when ignoring parameter when saving
training/utils/checkpoint_utils.py:99
↓ 1 callersMethodbackward
(ctx, *grads)
training/utils/distributed.py:498
↓ 1 callersFunctionbuild_all_layer_point_grids
Generates point grids for all crop layers.
efficient_track_anything/utils/amg.py:191
↓ 1 callersFunctionbuild_efficienttam
( config_file, ckpt_path=None, device="cuda", mode="eval", hydra_overrides_extra=[], a
efficient_track_anything/build_efficienttam.py:64
↓ 1 callersFunctionbuild_efficienttam_video_predictor_npz
( config_file, ckpt_path=None, device="cuda", mode="eval", hydra_overrides_extra=[], a
efficient_track_anything/build_efficienttam.py:175
↓ 1 callersFunctionbuild_point_grid
Generates a 2D grid of points evenly spaced in [0,1]x[0,1].
sam2/utils/amg.py:181
↓ 1 callersFunctionbuild_point_grid
Generates a 2D grid of points evenly spaced in [0,1]x[0,1].
efficient_track_anything/utils/amg.py:181
↓ 1 callersFunctionbuild_sam2_hf
(model_id, **kwargs)
sam2/build_sam.py:185
↓ 1 callersFunctioncheck_load_state_dict_errors
( missing_keys, unexpected_keys, strict: bool, ignore_missing_keys: List[str] = None, igno
training/utils/checkpoint_utils.py:297
↓ 1 callersMethodclear_all_prompts_in_frame
Remove all input points or mask in a specific frame for a given object.
sam2/sam2_video_predictor_npz.py:781
↓ 1 callersMethodclear_all_prompts_in_frame
Remove all input points or mask in a specific frame for a given object.
sam2/sam2_video_predictor.py:777
↓ 1 callersMethodclear_all_prompts_in_frame
Remove all input points or mask in a specific frame for a given object.
efficient_track_anything/efficienttam_video_predictor.py:642
↓ 1 callersMethodclear_all_prompts_in_frame
Remove all input points or mask in a specific frame for a given object.
efficient_track_anything/efficienttam_video_predictor_npz.py:645
↓ 1 callersFunctioncoco_encode_rle
(uncompressed_rle: Dict[str, Any])
efficient_track_anything/utils/amg.py:296
↓ 1 callersFunctioncollect_dict_keys
This function recursively iterates through a dataset configuration, and collect all the dict_key that are defined
training/utils/train_utils.py:29
↓ 1 callersMethodconstruct
Constructs a VideoDatapoint sample to pass to transforms
training/dataset/vos_dataset.py:79
↓ 1 callersFunctionconstruct_optimizer
Constructs a stochastic gradient descent or ADAM (or ADAMw) optimizer with momentum. i.e, constructs a torch.optim.Optimizer with zero-weight
training/optimizer.py:299
↓ 1 callersFunctiondecode_video
(video_path: str)
training/scripts/sav_frame_extraction_submitit.py:85
↓ 1 callersFunctiondice_loss
Compute the DICE loss, similar to generalized IOU for masks Args: inputs: A float tensor of arbitrary shape. The pred
training/loss_fns.py:20
↓ 1 callersFunctiondraw_rect
(image, bbox, obj_id)
app.py:134
↓ 1 callersFunctiondrawing_board_get_input_first_frame
(input_first_frame)
app.py:339
↓ 1 callersFunctionexclude_params_matching_unix_pattern
Remove from the state dictionary the parameters matching the provided unix patterns Args: patterns: the list of unix patterns to exc
training/utils/checkpoint_utils.py:68
↓ 1 callersFunctionextract_frames
(video_path, sample_rate)
training/scripts/sav_frame_extraction_submitit.py:98
↓ 1 callersFunctionextract_video_info
(input_video)
app.py:47
↓ 1 callersFunctionformat_exception
(e: Exception, limit=20)
training/train.py:60
↓ 1 callersMethodforward_batch
(self, img_list)
sam2/utils/transforms.py:41
↓ 1 callersMethodforward_batch
(self, img_list)
efficient_track_anything/utils/transforms.py:41
↓ 1 callersMethodforward_image
Identical to the corresponding method in the parent (EfficientTAMVideoPredictor), but cloning the backbone features and pos encoding
efficient_track_anything/efficienttam_video_predictor.py:1022
↓ 1 callersMethodforward_image
Identical to the corresponding method in the parent (EfficientTAMVideoPredictor), but cloning the backbone features and pos encoding
efficient_track_anything/efficienttam_video_predictor_npz.py:1025
↓ 1 callersMethodforward_tracking
Forward video tracking on each frame (and sample correction clicks).
training/model/efficienttam.py:293
↓ 1 callersMethodforward_tracking
Forward video tracking on each frame (and sample correction clicks).
training/model/sam2.py:269
↓ 1 callersFunctiongather_tensors_from_all
Wrapper over torch.distributed.all_gather for performing 'gather' of 'tensor' over all processes in both distributed / non-distributed sc
training/utils/distributed.py:286
↓ 1 callersFunctiongenerate_crop_boxes
Generates a list of crop boxes of different sizes. Each layer has (2**i)**2 boxes for the ith layer.
efficient_track_anything/utils/amg.py:202
↓ 1 callersFunctiongetLargestCC
(segmentation)
medsam2_infer_3D_CT.py:76
↓ 1 callersFunctionget_1d_sine_pe
Get 1D sine positional embedding as in the original Transformer paper.
sam2/modeling/efficienttam_utils.py:64
↓ 1 callersFunctionget_1d_sine_pe
Get 1D sine positional embedding as in the original Transformer paper.
efficient_track_anything/modeling/efficienttam_utils.py:64
↓ 1 callersFunctionget_abs_pos
Calculate absolute positional embeddings. If needed, resize embeddings and remove cls_token dimension for the original embeddings. Ar
sam2/modeling/backbones/utils.py:97
↓ 1 callersFunctionget_abs_pos
Calculate absolute positional embeddings. If needed, resize embeddings and remove cls_token dimension for the original embeddings. Ar
efficient_track_anything/modeling/backbones/utils.py:97
↓ 1 callersFunctionget_activation_fn
Return an activation function given a string
sam2/modeling/sam2_utils.py:77
↓ 1 callersFunctionget_activation_fn
Return an activation function given a string
efficient_track_anything/modeling/efficienttam_utils.py:77
↓ 1 callersFunctionget_args_parser
()
training/scripts/sav_frame_extraction_submitit.py:14
↓ 1 callersFunctionget_center_and_endpoints_from_recist
(recist_per_lab)
medsam2_infer_CT_lesion_npz_recist.py:200
↓ 1 callersFunctionget_center_and_endpoints_from_recist
(recist_per_lab)
eff_medsam2_infer_CT_lesion_npz_recist.py:266
↓ 1 callersFunctionget_center_from_recist
(recist_per_lab, scale=1)
medsam2_infer_CT_lesion_npz_recist.py:175
↓ 1 callersFunctionget_center_from_recist
(recist_per_lab)
eff_medsam2_infer_CT_lesion_npz_recist.py:240
↓ 1 callersFunctionget_diameter
(recist_per_lab)
eff_medsam2_infer_CT_lesion_npz_recist.py:312
↓ 1 callersFunctionget_extensions
()
setup.py:89
↓ 1 callersFunctionget_full_parameter_name
(module_name, param_name)
training/optimizer.py:374
↓ 1 callersMethodget_layer_id
(self, layer_name)
sam2/modeling/backbones/vitdet.py:304
↓ 1 callersFunctionget_meta_from_video
(session_id, input_video, scale_slider, config_path, checkpoint_path)
app.py:56
↓ 1 callersFunctionget_module_cls_to_param_names
Produce a mapping from all the modules classes to the names of parames they own. Only counts a parameter as part of the immediate parent module,
training/optimizer.py:275
↓ 1 callersFunctionget_n_points_from_recist
(recist_per_lab, n=5)
medsam2_infer_CT_lesion_npz_recist.py:189
↓ 1 callersFunctionget_n_points_from_recist
(recist_per_lab, n=5)
eff_medsam2_infer_CT_lesion_npz_recist.py:255
↓ 1 callersMethodget_num_layers
(self)
sam2/modeling/backbones/hieradet.py:316
↓ 1 callersFunctionget_per_obj_mask
Split a mask into per-object masks.
medsam2_infer_video.py:37
↓ 1 callersFunctionget_resume_checkpoint
(checkpoint_save_dir)
training/utils/train_utils.py:281
↓ 1 callersFunctionget_sdpa_settings
()
sam2/utils/misc.py:17
↓ 1 callersFunctionget_size
(image_size, size, max_size=None)
training/dataset/transforms.py:61
↓ 1 callersFunctionget_size_with_aspect_ratio
(image_size, size, max_size=None)
training/dataset/transforms.py:37
↓ 1 callersFunctionget_state_dict
(checkpoint, ckpt_state_dict_keys)
training/utils/checkpoint_utils.py:227
↓ 1 callersMethodget_video
(self, idx)
training/dataset/vos_raw_dataset.py:54
↓ 1 callersFunctionincrement_ann_obj_id
(max_obj_id)
app.py:331
↓ 1 callersFunctioninfer_3d
(img_npz_file)
eff_medsam2_infer_CT_lesion_npz_recist.py:329
↓ 1 callersMethodinfer_missing
(self)
training/trainer.py:121
↓ 1 callersFunctioninit_t_xy
(end_x: int, end_y: int)
sam2/modeling/position_encoding.py:167
↓ 1 callersFunctioninit_t_xy
(end_x: int, end_y: int)
efficient_track_anything/modeling/position_encoding.py:185
↓ 1 callersFunctioniou_loss
Args: inputs: A float tensor of arbitrary shape. The predictions for each example. targets: A float tensor with t
training/loss_fns.py:93
↓ 1 callersFunctionis_box_near_crop_edge
Filter masks at the edge of a crop, but not at the edge of the original image.
efficient_track_anything/utils/amg.py:80
↓ 1 callersFunctionis_dist_avail_and_initialized
()
training/utils/distributed.py:571
↓ 1 callersFunctionis_dist_avail_and_initialized
()
training/utils/train_utils.py:130
↓ 1 callersMethodload_checkpoint
(self)
training/trainer.py:382
↓ 1 callersFunctionload_images
(frames)
training/dataset/vos_dataset.py:138
↓ 1 callersFunctionload_state_dict_into_model
Loads a state dict into the given model. Args: state_dict: A dictionary containing the model's state dict, or a subset i
training/utils/checkpoint_utils.py:330
↓ 1 callersFunctionload_video_frames
Load the video frames from video_path. The frames are resized to image_size as in the model and are loaded to GPU if offload_video_to_cpu=Fal
sam2/utils/misc.py:172
↓ 1 callersFunctionload_video_frames
Load the video frames from video_path. The frames are resized to image_size as in the model and are loaded to GPU if offload_video_to_cpu=Fal
efficient_track_anything/utils/misc.py:172
↓ 1 callersFunctionload_video_frames_from_jpg_images
Load the video frames from a directory of JPEG files ("<frame_index>.jpg" format). The frames are resized to image_size x image_size and are
sam2/utils/misc.py:213
↓ 1 callersFunctionload_video_frames_from_jpg_images
Load the video frames from a directory of JPEG files ("<frame_index>.jpg" format). The frames are resized to image_size x image_size and are
efficient_track_anything/utils/misc.py:213
↓ 1 callersFunctionload_video_frames_from_video_file
Load the video frames from a video file.
sam2/utils/misc.py:280
↓ 1 callersFunctionload_video_frames_from_video_file
Load the video frames from a video file.
efficient_track_anything/utils/misc.py:280
← previousnext →301–400 of 862, ranked by callers