MCPcopy Create free account

hub / github.com/UX-Decoder/Semantic-SAM / functions

Functions759 in github.com/UX-Decoder/Semantic-SAM

Method__init__
NOTE: this interface is experimental. Args: is_train: for training or inference augmentations: a list of augm
datasets/dataset_mappers/o365_instance_new_baseline_dataset_mapper.py:92
Method__init__
NOTE: this interface is experimental. Args: is_train: for training or inference augmentations: a list of augm
datasets/dataset_mappers/coco_panoptic_new_baseline_dataset_mapper.py:70
Method__init__
NOTE: this interface is experimental. Args: is_train: whether it's used in training or inference augmentatio
datasets/dataset_mappers/inference_mapper_with_gt.py:39
Method__init__
NOTE: this interface is experimental. Args: is_train: for training or inference augmentations: a list of augm
datasets/dataset_mappers/coco_interactive_panoptic_new_baseline_dataset_mapper.py:91
Method__init__
NOTE: this interface is experimental. Args: is_train: for training or inference augmentations: a list of augm
datasets/dataset_mappers/coco_instance_new_baseline_dataset_mapper.py:88
Method__init__
NOTE: this interface is experimental. Args: is_train: for training or inference augmentations: a list of augm
datasets/dataset_mappers/mask_former_instance_dataset_mapper.py:55
Method__init__
( self, dataset_name, output_dir, max_clicks=20, i
datasets/evaluation/interactive_evaluation.py:15
Method__init__
( self, dataset_name, output_dir, max_clicks=20, i
datasets/evaluation/interactive_evaluation.py:75
Method__init__
Args: dataset_name (str): name of the dataset to be evaluated. distributed (bool): if True, will collect results from
datasets/evaluation/segmentation_evaluation.py:26
Method__init__
Args: dataset_name: name of the dataset output_dir: output directory to save results for evaluation.
datasets/evaluation/panoptic_evaluation.py:32
Method__iter__
(self)
datasets/build.py:72
Method__len__
(self)
datasets/build.py:76
Method__repr__
(self)
semantic_sam/modules/criterion_interactive_many_to_many.py:545
Method__repr__
(self)
semantic_sam/modules/criterion_interactive_many_to_one.py:503
Method__repr__
(self, _repr_indent=4)
semantic_sam/modules/many2many_matcher.py:222
Method__repr__
(self, _repr_indent=4)
semantic_sam/modules/matcher.py:221
Method__repr__
(self, _repr_indent=4)
semantic_sam/modules/position_encoding.py:54
Method__repr__
(self)
semantic_sam/utils/misc.py:61
Method__setitem__
(self, key: str, item: Any)
utils/sam_utils/amg.py:29
Method__setstate__
(self, state)
semantic_sam/modules/attention.py:419
Function_collate_and_pad_divisibility
(tensor_list: list, div=32)
semantic_sam/utils/misc.py:106
Method_eval_predictions
Evaluate predictions. Fill self._results with the metrics of the tasks.
datasets/evaluation/instance_evaluation.py:43
Method_get_noc
(iou_arr, iou_thr)
datasets/evaluation/interactive_evaluation.py:104
Method_init_weights
(m)
semantic_sam/backbone/focal_dw.py:557
Method_init_weights
(m)
semantic_sam/backbone/swin_new.py:642
Method_init_weights
(m)
semantic_sam/backbone/focal.py:460
Method_init_weights
(m)
semantic_sam/backbone/swin.py:653
Method_init_weights
(self, m)
semantic_sam/language/LangEncoder/transformer.py:130
Function_test_loader_from_config
Uses the given `dataset_name` argument (instead of the names in cfg), because the standard practice is to evaluate each test set individually
datasets/build.py:156
Function_train_loader_from_config
(cfg, dataset_name, mapper, *, dataset=None, sampler=None)
datasets/build.py:253
Method_transform_annotations
(self, dataset_dict, transforms, image_shape)
datasets/dataset_mappers/dataset_mapper_filterbybox.py:36
Methodapply_boxes
Expects a numpy array shape Bx4. Requires the original image size in (H, W) format.
utils/sam_utils/transforms.py:47
Methodapply_boxes_torch
Expects a torch tensor with shape Bx4. Requires the original image size in (H, W) format.
utils/sam_utils/transforms.py:83
Methodapply_image
Expects a numpy array with shape HxWxC in uint8 format.
utils/sam_utils/transforms.py:26
Methodapply_image_torch
Expects batched images with shape BxCxHxW and float format. This transformation may not exactly match apply_image. apply_image is
utils/sam_utils/transforms.py:55
Methodbackward
(ctx, grad_output)
semantic_sam/body/encoder/ops/functions/ms_deform_attn_func.py:43
Functionbatch_dice_loss
Compute the DICE loss, similar to generalized IOU for masks Args: inputs: A float tensor of arbitrary shape. The pred
semantic_sam/modules/many2many_matcher.py:20
Functionbatch_dice_loss
Compute the DICE loss, similar to generalized IOU for masks Args: inputs: A float tensor of arbitrary shape. The pred
semantic_sam/modules/matcher.py:22
Functionbatch_sigmoid_ce_loss
Args: inputs: A float tensor of arbitrary shape. The predictions for each example. targets: A float tensor with t
semantic_sam/modules/many2many_matcher.py:43
Functionbatch_sigmoid_ce_loss
Args: inputs: A float tensor of arbitrary shape. The predictions for each example. targets: A float tensor with t
semantic_sam/modules/matcher.py:45
Functionbbox_postprocess
result: [xc,yc,w,h] range [0,1] to [x1,y1,x2,y2] range [0,w], [0,h]
semantic_sam/modules/postprocessing.py:77
Functionbox_xywh_to_xyxy
(x)
semantic_sam/utils/box_ops.py:22
Functionbox_xyxy_to_cxcywh
(x)
semantic_sam/utils/box_ops.py:16
Methodbuild_evaluator
(cls, cfg, dataset_name, output_folder=None)
train_net.py:157
Functionbuild_optimizer
(cls, cfg, model)
datasets/build.py:588
Functionbuild_semantic_sam
build model
semantic_sam/build_semantic_sam.py:39
Functionchange_vocab
(choice)
demo_auto_generation.py:108
Functionchange_vocab
(choice)
demo.py:119
Methodclose
(self)
datasets/utils/tsv/tsv_io.py:54
Methodcompute_similarity
(self, v_emb, name='default', fake=False)
semantic_sam/language/vlpencoder.py:174
Functionconfigurable
Decorate a function or a class's __init__ method so that it can be called with a :class:`CfgNode` object using a :func:`from_config` function
semantic_sam/utils/config.py:7
Functionconvert_coco_poly_to_mask
(segmentations, height, width)
datasets/dataset_mappers/sam_baseline_dataset_mapper_json.py:25
Functionconvert_coco_poly_to_mask
(segmentations, height, width)
datasets/dataset_mappers/part_data_filter_whole_new_instance_dataset_mapper.py:57
Functionconvert_coco_poly_to_mask
(segmentations, height, width)
datasets/dataset_mappers/pascal_instance_new_baseline_dataset_mapper.py:42
Functionconvert_coco_poly_to_mask
(segmentations, height, width)
datasets/dataset_mappers/sam_baseline_dataset_mapper.py:42
Functiondetector_postprocess
Resize the output instances. The input images are often resized when entering an object detector. As a result, we often need the outputs
semantic_sam/modules/postprocessing.py:9
Functiondice_loss
Compute the DICE loss, similar to generalized IOU for masks Args: inputs: A float tensor of arbitrary shape. The pred
semantic_sam/modules/criterion_interactive_many_to_many.py:57
Functiondice_loss
Compute the DICE loss, similar to generalized IOU for masks Args: inputs: A float tensor of arbitrary shape. The pred
semantic_sam/modules/criterion_interactive_many_to_one.py:50
Methoddim_out
(self)
semantic_sam/language/LangEncoder/transformer.py:119
Methoddraw_dataset_dict
Draw annotations/segmentaions in Detectron2 Dataset format. Args: dic (dict): annotation/segmentation data of one image,
utils/visualizer.py:550
Methoddraw_instance_predictions
Draw instance-level prediction results on an image. Args: predictions (Instances): the output of an instance detection/s
utils/visualizer.py:384
Methoddraw_iou_curve
(iou_list, save_dir)
datasets/evaluation/interactive_evaluation.py:142
Methoddraw_soft_mask
Args: soft_mask (ndarray): float array of shape (H, W), each value in [0, 1]. color: color of the mask. Refer to `mat
utils/visualizer.py:1098
Methodevaluate
(self)
datasets/evaluation/interactive_evaluation.py:61
Methodevaluate
(self)
datasets/evaluation/panoptic_evaluation.py:114
Methodextract_mean_emb
(txts)
semantic_sam/language/vlpencoder.py:102
Methodextract_mean_emb
(txts)
semantic_sam/language/encoder.py:86
Functionfilter_no_part_instances
"whole" for part means there is no part category for it, filter these ground truth (for paco)
datasets/dataset_mappers/part_data_filter_whole_new_instance_dataset_mapper.py:51
Methodforward
( self, image_embeddings: torch.Tensor, point_coords: torch.Tensor, point_labe
utils/sam_utils/onnx.py:108
Methodforward
(self, *inputs, **kwargs)
semantic_sam/BaseModel.py:18
Methodforward
Forward function. Args: x: input features with shape of (B, H, W, C)
semantic_sam/backbone/focal_dw.py:89
Methodforward
Forward function. Args: x: Input feature, tensor size (B, H*W, C). H, W: Spatial resolution of the input feature.
semantic_sam/backbone/focal_dw.py:168
Methodforward
Forward function. Args: x: Input feature, tensor size (B, H*W, C). H, W: Spatial resolution of the input feature.
semantic_sam/backbone/focal_dw.py:275
Methodforward
Forward function.
semantic_sam/backbone/focal_dw.py:410
Methodforward
Forward function.
semantic_sam/backbone/focal_dw.py:663
Methodforward
Args: x: Tensor of shape (N,C,H,W). H, W must be a multiple of ``self.size_divisibility``. Returns: dict[str-
semantic_sam/backbone/focal_dw.py:749
Methodforward
Forward function. Args: x: input features with shape of (num_windows*B, N, C) mask: (0/-inf) mask with shape of (num_w
semantic_sam/backbone/swin_new.py:131
Methodforward
Forward function. Args: x: Input feature, tensor size (B, H*W, C). H, W: Spatial resolution of the input feature.
semantic_sam/backbone/swin_new.py:235
Methodforward
Forward function. Args: x: Input feature, tensor size (B, H*W, C). H, W: Spatial resolution of the input feature.
semantic_sam/backbone/swin_new.py:311
Methodforward
Forward function. Args: x: Input feature, tensor size (B, H*W, C). H, W: Spatial resolution of the input feature.
semantic_sam/backbone/swin_new.py:406
Methodforward
Forward function.
semantic_sam/backbone/swin_new.py:479
Methodforward
Forward function.
semantic_sam/backbone/swin_new.py:651
Methodforward
Args: x: Tensor of shape (N,C,H,W). H, W must be a multiple of ``self.size_divisibility``. Returns: dict[str-
semantic_sam/backbone/swin_new.py:743
Methodforward
Forward function. Args: x: input features with shape of (B, H, W, C)
semantic_sam/backbone/focal.py:89
Methodforward
Forward function. Args: x: Input feature, tensor size (B, H*W, C). H, W: Spatial resolution of the input feature.
semantic_sam/backbone/focal.py:166
Methodforward
Forward function. Args: x: Input feature, tensor size (B, H*W, C). H, W: Spatial resolution of the input feature.
semantic_sam/backbone/focal.py:264
Methodforward
Forward function.
semantic_sam/backbone/focal.py:322
Methodforward
Forward function.
semantic_sam/backbone/focal.py:566
Methodforward
Args: x: Tensor of shape (N,C,H,W). H, W must be a multiple of ``self.size_divisibility``. Returns: dict[str-
semantic_sam/backbone/focal.py:652
Methodforward
Forward function. Args: x: input features with shape of (num_windows*B, N, C) mask: (0/-inf) mask with shape of (num_w
semantic_sam/backbone/swin.py:136
Methodforward
Forward function. Args: x: Input feature, tensor size (B, H*W, C). H, W: Spatial resolution of the input feature.
semantic_sam/backbone/swin.py:241
Methodforward
Forward function. Args: x: Input feature, tensor size (B, H*W, C). H, W: Spatial resolution of the input feature.
semantic_sam/backbone/swin.py:322
Methodforward
Forward function. Args: x: Input feature, tensor size (B, H*W, C). H, W: Spatial resolution of the input feature.
semantic_sam/backbone/swin.py:417
Methodforward
Forward function.
semantic_sam/backbone/swin.py:490
Methodforward
Forward function.
semantic_sam/backbone/swin.py:730
Methodforward
Args: x: Tensor of shape (N,C,H,W). H, W must be a multiple of ``self.size_divisibility``. Returns: dict[str-
semantic_sam/backbone/swin.py:810
Methodforward
Subclasses must override this method, but adhere to the same return type. Returns: dict[str->Tensor]: mapping from featu
semantic_sam/backbone/backbone.py:22
Methodforward
This performs the loss computation. Parameters: outputs: dict of tensors, see the output specification of the model for the forma
semantic_sam/modules/criterion_interactive_many_to_many.py:421
Methodforward
This performs the loss computation. Parameters: outputs: dict of tensors, see the output specification of the model for the forma
semantic_sam/modules/criterion_interactive_many_to_one.py:426
Methodforward
Performs the matching Params: outputs: This is a dict that contains at least these entries: "pred_logits": Tenso
semantic_sam/modules/many2many_matcher.py:197
← previousnext →501–600 of 759, ranked by callers