MCPcopy Create free account

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

Functions862 in github.com/bowang-lab/MedSAM2

Methodforward
(self, *args, **kwargs)
sam2/modeling/sam2_base.py:201
Methodforward
( self, tgt, memory, pos: Optional[Tensor] = None, query_pos: Optional
sam2/modeling/memory_attention.py:83
Methodforward
( self, curr: torch.Tensor, # self-attention inputs memory: torch.Tensor, # cross-at
sam2/modeling/memory_attention.py:119
Methodforward
(self, x)
sam2/modeling/efficienttam_utils.py:99
Methodforward
(self, x)
sam2/modeling/efficienttam_utils.py:131
Methodforward
(self, x: torch.Tensor)
sam2/modeling/efficienttam_utils.py:148
Methodforward
(self, x: torch.Tensor)
sam2/modeling/efficienttam_utils.py:337
Methodforward
(self, x)
sam2/modeling/memory_encoder.py:57
Methodforward
(self, x)
sam2/modeling/memory_encoder.py:104
Methodforward
(self, x)
sam2/modeling/memory_encoder.py:130
Methodforward
( self, pix_feat: torch.Tensor, masks: torch.Tensor, skip_mask_sigmoid: bool =
sam2/modeling/memory_encoder.py:158
Methodforward
(self, *args, **kwargs)
sam2/modeling/efficienttam_base.py:204
Methodforward
(self, x: torch.Tensor)
sam2/modeling/position_encoding.py:79
Methodforward
Generate positional encoding for a grid of the specified size.
sam2/modeling/position_encoding.py:138
Methodforward
(self, x)
sam2/modeling/backbones/vitdet.py:57
Methodforward
(self, x)
sam2/modeling/backbones/vitdet.py:147
Methodforward
(self, x: torch.Tensor)
sam2/modeling/backbones/vitdet.py:282
Methodforward
(self, x: torch.Tensor)
sam2/modeling/backbones/utils.py:90
Methodforward
(self, sample: torch.Tensor)
sam2/modeling/backbones/image_encoder.py:31
Methodforward
(self, xs: List[torch.Tensor])
sam2/modeling/backbones/image_encoder.py:104
Methodforward
(self, xs: List[torch.Tensor])
sam2/modeling/backbones/image_encoder.py:190
Methodforward
(self, x: torch.Tensor)
sam2/modeling/backbones/hieradet.py:56
Methodforward
(self, x: torch.Tensor)
sam2/modeling/backbones/hieradet.py:134
Methodforward
(self, x: torch.Tensor)
sam2/modeling/backbones/hieradet.py:283
Methodforward
Predict masks given image and prompt embeddings. Arguments: image_embeddings (torch.Tensor): the embeddings from the image
sam2/modeling/sam/mask_decoder.py:110
Methodforward
Args: image_embedding (torch.Tensor): image to attend to. Should be shape B x embedding_dim x h x w for any h and w.
sam2/modeling/sam/transformer.py:90
Methodforward
( self, queries: Tensor, keys: Tensor, query_pe: Tensor, key_pe: Tensor )
sam2/modeling/sam/transformer.py:181
Methodforward
(self, q: Tensor, k: Tensor, v: Tensor)
sam2/modeling/sam/transformer.py:255
Methodforward
( self, q: Tensor, k: Tensor, v: Tensor, num_k_exclude_rope: int = 0 )
sam2/modeling/sam/transformer.py:311
Methodforward
Embeds different types of prompts, returning both sparse and dense embeddings. Arguments: points (tuple(torch.Tens
sam2/modeling/sam/prompt_encoder.py:140
Methodforward
( self, tgt, memory, pos: Optional[Tensor] = None, query_pos: Optional
efficient_track_anything/modeling/memory_attention.py:94
Methodforward
( self, curr: torch.Tensor, # self-attention inputs memory: torch.Tensor, # cross-at
efficient_track_anything/modeling/memory_attention.py:130
Methodforward
(self, x)
efficient_track_anything/modeling/efficienttam_utils.py:99
Methodforward
(self, x)
efficient_track_anything/modeling/efficienttam_utils.py:131
Methodforward
(self, x: torch.Tensor)
efficient_track_anything/modeling/efficienttam_utils.py:148
Methodforward
(self, x: torch.Tensor)
efficient_track_anything/modeling/efficienttam_utils.py:337
Methodforward
(self, x)
efficient_track_anything/modeling/memory_encoder.py:61
Methodforward
(self, x)
efficient_track_anything/modeling/memory_encoder.py:108
Methodforward
(self, x)
efficient_track_anything/modeling/memory_encoder.py:134
Methodforward
( self, pix_feat: torch.Tensor, masks: torch.Tensor, skip_mask_sigmoid: bool =
efficient_track_anything/modeling/memory_encoder.py:162
Methodforward
(self, *args, **kwargs)
efficient_track_anything/modeling/efficienttam_base.py:204
Methodforward
(self, x: torch.Tensor)
efficient_track_anything/modeling/position_encoding.py:127
Methodforward
Generate positional encoding for a grid of the specified size.
efficient_track_anything/modeling/position_encoding.py:156
Methodforward
(self, x)
efficient_track_anything/modeling/backbones/vitdet.py:57
Methodforward
(self, x)
efficient_track_anything/modeling/backbones/vitdet.py:147
Methodforward
(self, x: torch.Tensor)
efficient_track_anything/modeling/backbones/vitdet.py:282
Methodforward
(self, x: torch.Tensor)
efficient_track_anything/modeling/backbones/utils.py:90
Methodforward
(self, sample: torch.Tensor)
efficient_track_anything/modeling/backbones/image_encoder.py:31
Methodforward
(self, xs: List[torch.Tensor])
efficient_track_anything/modeling/backbones/image_encoder.py:98
Methodforward
Predict masks given image and prompt embeddings. Arguments: image_embeddings (torch.Tensor): the embeddings from the image
efficient_track_anything/modeling/sam/mask_decoder.py:110
Methodforward
Args: image_embedding (torch.Tensor): image to attend to. Should be shape B x embedding_dim x h x w for any h and w.
efficient_track_anything/modeling/sam/transformer.py:68
Methodforward
( self, queries: Tensor, keys: Tensor, query_pe: Tensor, key_pe: Tensor )
efficient_track_anything/modeling/sam/transformer.py:159
Methodforward
(self, q: Tensor, k: Tensor, v: Tensor)
efficient_track_anything/modeling/sam/transformer.py:233
Methodforward
( self, q: Tensor, k: Tensor, v: Tensor, num_k_exclude_rope: int = 0 )
efficient_track_anything/modeling/sam/transformer.py:278
Methodforward
( self, q: Tensor, k: Tensor, v: Tensor, num_k_exclude_rope: int = 0 )
efficient_track_anything/modeling/sam/transformer.py:339
Methodforward
( self, q: Tensor, k: Tensor, v: Tensor, num_k_exclude_rope: int = 0 )
efficient_track_anything/modeling/sam/transformer.py:452
Methodforward
Embeds different types of prompts, returning both sparse and dense embeddings. Arguments: points (tuple(torch.Tens
efficient_track_anything/modeling/sam/prompt_encoder.py:160
Methodforward
(self, outs_batch: List[Dict], targets_batch: torch.Tensor)
training/loss_fns.py:167
Methodforward
(ctx, x)
training/utils/distributed.py:492
Methodforward
(self, input: BatchedVideoDatapoint)
training/model/efficienttam.py:131
Methodforward
(self, input: BatchedVideoDatapoint)
training/model/sam2.py:107
Methodforward_image
Get the image feature on the input batch.
sam2/modeling/efficienttam_base.py:469
Methodfrom_pretrained
Load a pretrained model from the Hugging Face hub. Arguments: model_id (str): The Hugging Face repository ID. **
sam2/sam2_image_predictor.py:71
Methodfrom_pretrained
Load a pretrained model from the Hugging Face hub. Arguments: model_id (str): The Hugging Face repository ID. **
sam2/sam2_video_predictor_npz.py:118
Methodfrom_pretrained
Load a pretrained model from the Hugging Face hub. Arguments: model_id (str): The Hugging Face repository ID. **
sam2/sam2_video_predictor.py:114
Methodfrom_pretrained
Load a pretrained model from the Hugging Face hub. Arguments: model_id (str): The Hugging Face repository ID. **
efficient_track_anything/efficienttam_video_predictor.py:109
Methodfrom_pretrained
Load a pretrained model from the Hugging Face hub. Arguments: model_id (str): The Hugging Face repository ID. **
efficient_track_anything/efficienttam_image_predictor.py:75
Methodfrom_pretrained
Load a pretrained model from the Hugging Face hub. Arguments: model_id (str): The Hugging Face repository ID. **
efficient_track_anything/automatic_mask_generator.py:154
Methodfrom_pretrained
Load a pretrained model from the Hugging Face hub. Arguments: model_id (str): The Hugging Face repository ID. **
efficient_track_anything/efficienttam_video_predictor_npz.py:112
Functiongather_from_all
(tensor: torch.Tensor)
training/utils/distributed.py:312
Methodgenerate
Generates masks for the given image. Arguments: image (np.ndarray): The image to generate masks for, in HWC uint8 format.
efficient_track_anything/automatic_mask_generator.py:173
Functiongenerate_crop_boxes
Generates a list of crop boxes of different sizes. Each layer has (2**i)**2 boxes for the ith layer.
sam2/utils/amg.py:202
Functionget_activation_fn
Return an activation function given a string
sam2/modeling/efficienttam_utils.py:77
Functionget_clones
(module, N)
sam2/modeling/efficienttam_utils.py:88
Functionget_cuda_device_index
()
training/utils/distributed.py:379
Methodget_ext_filename
(self, ext_name)
setup.py:136
Methodget_image_embedding
Returns the image embeddings for the currently set image, with shape 1xCxHxW, where C is the embedding dimension and (H,W) are
sam2/sam2_image_predictor.py:442
Methodget_image_embedding
Returns the image embeddings for the currently set image, with shape 1xCxHxW, where C is the embedding dimension and (H,W) are
efficient_track_anything/efficienttam_image_predictor.py:446
Methodget_layer_id
(self, layer_name)
sam2/modeling/backbones/hieradet.py:301
Functionget_next_point
(gt_masks, pred_masks, method)
efficient_track_anything/modeling/efficienttam_utils.py:317
Functionget_primary_rank
()
training/utils/distributed.py:364
Functionget_sdpa_settings
()
efficient_track_anything/utils/misc.py:17
Methodget_valid_obj_frames_ids
(self, num_frames_min=None)
training/dataset/vos_segment_loader.py:82
Methodget_video
Given a VOSVideo object, return the mask tensors.
training/dataset/vos_raw_dataset.py:114
Methodget_video
Given a VOSVideo object, return the mask tensors.
training/dataset/vos_raw_dataset.py:189
Methodget_video
Given a VOSVideo object, return the mask tensors.
training/dataset/vos_raw_dataset.py:265
Methodget_video
Given a VOSVideo object, return the mask tensors.
training/dataset/vos_raw_dataset.py:344
Functionhandle_drawing_board_get_input_first_frame
(session_id, input_first_frame)
app.py:578
Functionhandle_extract_video_info
(session_id, input_video)
app.py:467
Functionhandle_get_meta_from_video
(session_id, input_video, scale_slider, selected_config, selected_checkpoint)
app.py:503
Functionhandle_increment_ann_obj_id
(session_id, max_obj_id)
app.py:558
Functionhandle_reset
(session_id)
app.py:587
Functionhandle_sam_click
(session_id, frame_num, point_mode, click_stack, ann_obj_id, evt: gr.SelectData)
app.py:546
Functionhandle_sam_stroke
(session_id, drawing_board, last_draw, frame_num, ann_obj_id)
app.py:535
Functionhandle_show_res_by_slider
(session_id, frame_per, slider_state, click_stack)
app.py:612
Functionhandle_tracking_objects
(session_id, frame_num, input_video)
app.py:624
Functionhandle_update_current_id
(session_id, ann_obj_id)
app.py:569
Functioninfer_3d
(img_npz_file)
medsam2_infer_CT_lesion_npz_recist.py:281
Functioninfer_3d
(mha_name)
examples/infer_CT_LUNA25.py:131
Functioninit_distributed_data_parallel_model
( model: torch.nn.Module, broadcast_buffers: bool = False, find_unused_parameters: bool = True,
training/utils/distributed.py:383
← previousnext →701–800 of 862, ranked by callers