MCPcopy Index your code

hub / github.com/IDEA-Research/GroundingDINO / functions

Functions376 in github.com/IDEA-Research/GroundingDINO

↓ 35 callersMethodto
(self, device)
groundingdino/util/misc.py:425
↓ 33 callersFunctionprint
(*args, **kwargs)
groundingdino/util/misc.py:540
↓ 21 callersMethodmax
(self)
groundingdino/util/misc.py:85
↓ 11 callersMethodupdate
(self, model)
groundingdino/util/utils.py:496
↓ 8 callersMethodcopy
(self)
groundingdino/util/slconfig.py:389
↓ 8 callersMethodget
(self, key)
groundingdino/models/registry.py:40
↓ 7 callersMethoddeepcopy
(self)
groundingdino/util/slconfig.py:392
↓ 6 callersMethod__init__
( self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.0 )
groundingdino/models/GroundingDINO/backbone/swin_transformer.py:27
↓ 5 callersFunction_get_clones
(module, N, layer_share=False)
groundingdino/models/GroundingDINO/utils.py:16
↓ 5 callersMethodfromfile
(filename)
groundingdino/util/slconfig.py:184
↓ 4 callersMethod__init__
( self, d_model=256, nhead=8, num_queries=300, num_encoder_layers=6,
groundingdino/models/GroundingDINO/transformer.py:41
↓ 4 callersMethod__setattr__
(self, name, value)
groundingdino/util/slconfig.py:332
↓ 4 callersMethod_shape
(self, tensor: torch.Tensor, seq_len: int, bsz: int)
groundingdino/models/GroundingDINO/fuse_modules.py:129
↓ 4 callersFunctionbuild_model
(args)
groundingdino/models/__init__.py:11
↓ 4 callersMethoddump
(self, file=None)
groundingdino/util/slconfig.py:345
↓ 4 callersFunctionis_str
Whether the input is an string instance. Note: This method is deprecated since python 2 is no longer supported.
groundingdino/util/slio.py:102
↓ 4 callersFunctionpredict
( model, image: torch.Tensor, caption: str, box_threshold: float, text
groundingdino/util/inference.py:53
↓ 4 callersMethodsummary
(self)
groundingdino/util/utils.py:531
↓ 4 callersMethodtext
(self)
groundingdino/util/slconfig.py:213
↓ 3 callersMethod__init__
(self, backbone, position_embedding)
groundingdino/models/GroundingDINO/backbone/backbone.py:147
↓ 3 callersFunction_get_activation_fn
Return an activation function given a string
groundingdino/models/GroundingDINO/utils.py:188
↓ 3 callersFunction_run
(command)
groundingdino/util/misc.py:365
↓ 3 callersFunctioncrop
(image, target, region)
groundingdino/datasets/transforms.py:17
↓ 3 callersFunctionget_phrases_from_posmap
( posmap: torch.BoolTensor, tokenized: Dict, tokenizer: AutoTokenizer, left_idx: int = 0, right_idx: int =
groundingdino/util/utils.py:599
↓ 3 callersFunctionget_world_size
()
groundingdino/util/misc.py:556
↓ 3 callersFunctionis_dist_avail_and_initialized
()
groundingdino/util/misc.py:548
↓ 3 callersFunctionload_model
(model_config_path, model_checkpoint_path, cpu_only=False)
demo/inference_on_a_image.py:73
↓ 3 callersFunctionnested_tensor_from_tensor_list
(tensor_list: List[Tensor])
groundingdino/util/misc.py:474
↓ 3 callersMethodwith_pos_embed
(tensor, pos)
groundingdino/models/GroundingDINO/transformer.py:858
↓ 2 callersMethod__init__
(self, input_feat_size, output_feat_size, dropout, do_ln=True)
groundingdino/models/GroundingDINO/fuse_modules.py:20
↓ 2 callersMethod__init__
(self, num_pos_feats=64, temperature=10000, normalize=False, scale=None)
groundingdino/models/GroundingDINO/backbone/position_encoding.py:36
↓ 2 callersMethod__nice__
str: a "nice" summary string describing this module
groundingdino/util/utils.py:374
↓ 2 callersMethod_freeze_stages
(self)
groundingdino/models/GroundingDINO/backbone/swin_transformer.py:636
↓ 2 callersMethod_merge_a_into_b
merge dict `a` into dict `b` (non-inplace). values in `a` will overwrite `b`. copy first to avoid inplace modification
groundingdino/util/slconfig.py:140
↓ 2 callersMethod_update
(self, model, update_fn)
groundingdino/util/utils.py:487
↓ 2 callersFunctionall_gather
Run all_gather on arbitrary picklable data (not necessarily tensors) Args: data: any picklable object Returns: list[data]
groundingdino/util/misc.py:173
↓ 2 callersFunctionbox_iou
(boxes1, boxes2)
groundingdino/util/box_ops.py:22
↓ 2 callersFunctionbuild_captions_and_token_span
Return: captions: str cat2tokenspan: dict { 'dog': [[0, 2]], ... }
groundingdino/util/vl_utils.py:49
↓ 2 callersFunctionbuild_swin_transformer
(modelname, pretrain_img_size, **kw)
groundingdino/models/GroundingDINO/backbone/swin_transformer.py:762
↓ 2 callersFunctionclean_state_dict
(state_dict)
groundingdino/util/misc.py:711
↓ 2 callersFunctionclean_state_dict
(state_dict)
groundingdino/util/utils.py:29
↓ 2 callersFunctionconvert_to_xywh
(boxes)
groundingdino/datasets/cocogrounding_eval.py:176
↓ 2 callersFunctioncreate_positive_map_from_span
construct a map such that positive_map[i,j] = True iff box i is associated to token j Input: - tokenized: - input_ids: Tensor[
groundingdino/util/vl_utils.py:8
↓ 2 callersMethodforward_raw
Forward function.
groundingdino/models/GroundingDINO/backbone/swin_transformer.py:678
↓ 2 callersFunctionget_gaussian_mean
Args: x (float): Input images(BxCxHxW) axis (int): The index for weighted mean other_axis (int): The other index Re
groundingdino/util/utils.py:174
↓ 2 callersFunctionget_sine_pos_embed
generate sine position embedding from a position tensor Args: pos_tensor (torch.Tensor): shape: [..., n]. num_pos_feats (int): pro
groundingdino/models/GroundingDINO/utils.py:24
↓ 2 callersMethodinit_weights
Default initialization for Parameters of Module.
groundingdino/models/GroundingDINO/ms_deform_attn.py:197
↓ 2 callersFunctioninverse_sigmoid
(x, eps=1e-3)
groundingdino/util/misc.py:704
↓ 2 callersFunctionis_main_process
()
groundingdino/util/misc.py:568
↓ 2 callersFunctionl2norm
L2-normalize columns of X
groundingdino/models/GroundingDINO/fuse_modules.py:43
↓ 2 callersFunctionload_image
(image_path)
demo/inference_on_a_image.py:58
↓ 2 callersFunctionparse_require_file
(fpath)
setup.py:170
↓ 2 callersMethodpost_process_result
( source_h: int, source_w: int, boxes: torch.Tensor, logits: t
groundingdino/util/inference.py:252
↓ 2 callersMethodpreprocess_image
(image_bgr: np.ndarray)
groundingdino/util/inference.py:239
↓ 2 callersFunctionresize
(image, target, size, max_size=None)
groundingdino/datasets/transforms.py:87
↓ 2 callersMethodto_img_list_single
(self, tensor, mask)
groundingdino/util/misc.py:436
↓ 2 callersMethodupdate
(self, value, n=1)
groundingdino/util/misc.py:46
↓ 2 callersFunctionwindow_partition
Args: x: (B, H, W, C) window_size (int): window size Returns: windows: (num_windows*B, window_size, window_size, C)
groundingdino/models/GroundingDINO/backbone/swin_transformer.py:47
↓ 1 callersMethod__getattr__
(self, name)
groundingdino/util/slconfig.py:316
↓ 1 callersMethod__init__
(self, input_dim, hidden_dim, output_dim, num_layers)
groundingdino/models/GroundingDINO/utils.py:174
↓ 1 callersMethod__init__
(self, bert_model)
groundingdino/models/GroundingDINO/bertwarper.py:18
↓ 1 callersMethod__init__
(self, num_layers, d_model=256, nheads=8, dim_feedforward=2048, dropout=0.1)
groundingdino/models/GroundingDINO/transformer_vanilla.py:34
↓ 1 callersMethod__init__
(self, *args, **kwargs)
groundingdino/models/GroundingDINO/ms_deform_attn.py:385
↓ 1 callersMethod__init__
(self, cfg_dict=None, cfg_text=None, filename=None)
groundingdino/util/slconfig.py:188
↓ 1 callersMethod__init__
(self, **kwargs)
groundingdino/util/utils.py:223
↓ 1 callersMethod__init__
(self, img_folder, ann_file, transforms)
demo/test_ap_on_coco.py:35
↓ 1 callersMethod__repr__
str: the string of the module
groundingdino/util/utils.py:384
↓ 1 callersMethod__repr__
(self)
groundingdino/util/utils.py:570
↓ 1 callersMethod__str__
(self)
groundingdino/util/utils.py:525
↓ 1 callersFunction_cached_log_stream
(filename)
groundingdino/util/logger.py:92
↓ 1 callersMethod_file2dict
(filename)
groundingdino/util/slconfig.py:77
↓ 1 callersFunction_get_global_gloo_group
Return a process group based on gloo backend, containing all the ranks The result is cached.
groundingdino/util/misc.py:103
↓ 1 callersFunction_is_power_of_2
(n)
groundingdino/models/GroundingDINO/ms_deform_attn.py:35
↓ 1 callersFunction_max_by_axis
(the_list)
groundingdino/util/misc.py:390
↓ 1 callersFunction_onnx_nested_tensor_from_tensor_list
(tensor_list: List[Tensor])
groundingdino/util/misc.py:502
↓ 1 callersMethod_parse_int_float_bool
(val)
groundingdino/util/slconfig.py:404
↓ 1 callersMethod_reset_parameters
(self)
groundingdino/models/GroundingDINO/fuse_modules.py:132
↓ 1 callersMethod_reset_parameters
(self)
groundingdino/models/GroundingDINO/transformer.py:189
↓ 1 callersMethod_reset_parameters
(self)
groundingdino/models/GroundingDINO/groundingdino.py:203
↓ 1 callersMethod_validate_py_syntax
(filename)
groundingdino/util/slconfig.py:68
↓ 1 callersMethodaccumulate
(self)
groundingdino/datasets/cocogrounding_eval.py:71
↓ 1 callersMethodaddtgt
groundingdino/util/visualizer.py:135
↓ 1 callersFunctionall_gather_cpu
Run all_gather on arbitrary picklable data (not necessarily tensors) Args: data: any picklable object Returns: list[data]
groundingdino/util/misc.py:115
↓ 1 callersFunctionannotate
This function annotates an image with bounding boxes and labels. Parameters: image_source (np.ndarray): The source image to be annot
groundingdino/util/inference.py:100
↓ 1 callersFunctionbox_iou_pairwise
(boxes1, boxes2)
groundingdino/util/box_ops.py:66
↓ 1 callersFunctionbox_xyxy_to_cxcywh
(x)
groundingdino/util/box_ops.py:15
↓ 1 callersFunctionbuild_backbone
Useful args: - backbone: backbone name - lr_backbone: - dilation - return_interm_indices: available: [0,1,2,3], [
groundingdino/models/GroundingDINO/backbone/backbone.py:162
↓ 1 callersFunctionbuild_position_encoding
(args)
groundingdino/models/GroundingDINO/backbone/position_encoding.py:171
↓ 1 callersFunctionbuild_transformer
(args)
groundingdino/models/GroundingDINO/transformer.py:930
↓ 1 callersFunctioncheck_file_exist
(filename, msg_tmpl='file "{}" does not exist')
groundingdino/util/slconfig.py:21
↓ 1 callersFunctioncreate_common_coco_eval
(coco_eval, img_ids, eval_imgs)
groundingdino/datasets/cocogrounding_eval.py:203
↓ 1 callersMethodcreate_embedding_fn
(self)
groundingdino/util/utils.py:227
↓ 1 callersMethoddecompose
(self)
groundingdino/util/misc.py:463
↓ 1 callersMethoddump_to_fileobj
(self, obj, file, **kwargs)
groundingdino/util/slio.py:29
↓ 1 callersMethoddump_to_fileobj
(self, obj, file, **kwargs)
groundingdino/util/slio.py:49
↓ 1 callersMethoddump_to_path
(self, obj, filepath, **kwargs)
groundingdino/util/slio.py:71
↓ 1 callersMethoddump_to_str
(self, obj, **kwargs)
groundingdino/util/slio.py:52
↓ 1 callersMethodembed
(self, inputs)
groundingdino/util/utils.py:251
↓ 1 callersFunctionensure_rng
Coerces input into a random number generator. If the input is None, then a global random state is returned. If the input is a numeric value,
groundingdino/util/utils.py:405
↓ 1 callersFunctionevaluate
Run per image evaluation on given images and store results (a list of dict) in self.evalImgs :return: None
groundingdino/datasets/cocogrounding_eval.py:219
next →1–100 of 376, ranked by callers