MCPcopy Index your code

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

Functions376 in github.com/IDEA-Research/GroundingDINO

↓ 1 callersMethodfinal_res
(self)
groundingdino/util/time_counter.py:29
↓ 1 callersMethodforward_ffn
(self, src)
groundingdino/models/GroundingDINO/transformer.py:774
↓ 1 callersMethodforward_ffn
(self, tgt)
groundingdino/models/GroundingDINO/transformer.py:861
↓ 1 callersFunctiongen_encoder_output_proposals
Input: - memory: bs, \sum{hw}, d_model - memory_padding_mask: bs, \sum{hw} - spatial_shapes: nlevel, 2 - learnedw
groundingdino/models/GroundingDINO/utils.py:56
↓ 1 callersFunctiongen_packages_items
()
setup.py:178
↓ 1 callersFunctiongen_sineembed_for_position
(pos_tensor)
groundingdino/models/GroundingDINO/utils.py:204
↓ 1 callersFunctiongenerate_masks_with_special_tokens_and_transfer_map
Generate attention mask between each pair of special tokens Args: input_ids (torch.Tensor): input ids. Shape: [bs, num_token] spec
groundingdino/models/GroundingDINO/bertwarper.py:224
↓ 1 callersFunctionget_extensions
()
setup.py:68
↓ 1 callersFunctionget_grounding_output
(model, image, caption, box_threshold, text_threshold=None, with_logits=True, cpu_only=False, token_spans=None
demo/inference_on_a_image.py:84
↓ 1 callersFunctionget_rank
()
groundingdino/util/misc.py:562
↓ 1 callersMethodget_reference_points
(spatial_shapes, valid_ratios, device)
groundingdino/models/GroundingDINO/transformer.py:466
↓ 1 callersFunctionget_size
(image_size, size, max_size=None)
groundingdino/datasets/transforms.py:110
↓ 1 callersFunctionget_size_with_aspect_ratio
(image_size, size, max_size=None)
groundingdino/datasets/transforms.py:90
↓ 1 callersMethodget_valid_ratio
(self, mask)
groundingdino/models/GroundingDINO/transformer.py:199
↓ 1 callersFunctionhflip
(image, target)
groundingdino/datasets/transforms.py:68
↓ 1 callersFunctionimage_transform_grounding
(init_image)
demo/gradio_app.py:54
↓ 1 callersFunctionimage_transform_grounding_for_vis
(init_image)
demo/gradio_app.py:63
↓ 1 callersMethodinit_ref_points
(self, use_num_queries)
groundingdino/models/GroundingDINO/transformer.py:208
↓ 1 callersFunctioninstall_torch
()
setup.py:30
↓ 1 callersFunctioninterpolate
Equivalent to nn.functional.interpolate, but with support for empty batch sizes. This will eventually be supported natively by PyTorch, and t
groundingdino/util/misc.py:669
↓ 1 callersMethodisbetter
(self, new_res, old_res)
groundingdino/util/utils.py:512
↓ 1 callersMethodload_from_fileobj
(self, file, **kwargs)
groundingdino/util/slio.py:25
↓ 1 callersMethodload_from_fileobj
(self, file)
groundingdino/util/slio.py:46
↓ 1 callersMethodload_from_path
(self, filepath, **kwargs)
groundingdino/util/slio.py:60
↓ 1 callersFunctionload_model
(model_config_path: str, model_checkpoint_path: str, device: str = "cuda")
groundingdino/util/inference.py:29
↓ 1 callersFunctionload_model
(model_config_path: str, model_checkpoint_path: str, device: str = "cuda")
demo/test_ap_on_coco.py:24
↓ 1 callersFunctionload_model_hf
(model_config_path, repo_id, filename, device='cpu')
demo/gradio_app.py:42
↓ 1 callersFunctionmain
(args)
demo/test_ap_on_coco.py:140
↓ 1 callersFunctionmerge
(img_ids, eval_imgs)
groundingdino/datasets/cocogrounding_eval.py:181
↓ 1 callersFunctionmulti_scale_deformable_attn_pytorch
( value: torch.Tensor, value_spatial_shapes: torch.Tensor, sampling_locations: torch.Tensor, a
groundingdino/models/GroundingDINO/ms_deform_attn.py:93
↓ 1 callersFunctionpad
(image, target, padding)
groundingdino/datasets/transforms.py:149
↓ 1 callersFunctionparse_line
Parse information from a line in a requirements text file.
setup.py:138
↓ 1 callersFunctionparse_requirements
Parse the package dependencies listed in a requirements file but strips specific versioning information. Args: fname (str): path to r
setup.py:118
↓ 1 callersMethodphrases2classes
(phrases: List[str], classes: List[str])
groundingdino/util/inference.py:264
↓ 1 callersFunctionplot_boxes_to_image
(image_pil, tgt)
demo/inference_on_a_image.py:17
↓ 1 callersMethodprepare
(self, predictions, iou_type)
groundingdino/datasets/cocogrounding_eval.py:80
↓ 1 callersMethodprepare_for_coco_detection
(self, predictions)
groundingdino/datasets/cocogrounding_eval.py:90
↓ 1 callersMethodprepare_for_coco_keypoint
(self, predictions)
groundingdino/datasets/cocogrounding_eval.py:149
↓ 1 callersMethodprepare_for_coco_segmentation
(self, predictions)
groundingdino/datasets/cocogrounding_eval.py:114
↓ 1 callersFunctionpreprocess_caption
(caption: str)
groundingdino/util/inference.py:22
↓ 1 callersFunctionrenorm
( img: torch.FloatTensor, mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225] )
groundingdino/util/visualizer.py:22
↓ 1 callersMethodreset
(self)
groundingdino/util/time_counter.py:45
↓ 1 callersMethodreset_parameters
(self)
groundingdino/models/GroundingDINO/backbone/position_encoding.py:145
↓ 1 callersMethodset_image_tensor
(self, samples: NestedTensor)
groundingdino/models/GroundingDINO/groundingdino.py:209
↓ 1 callersFunctionsetup_for_distributed
This function disables printing when not in master process
groundingdino/util/misc.py:532
↓ 1 callersFunctionsine_func
(x: torch.Tensor)
groundingdino/models/GroundingDINO/utils.py:44
↓ 1 callersFunctionslload
Load data from json/yaml/pickle files. This method provides a unified api for loading data from serialized files. Args: file (str or
groundingdino/util/slio.py:110
↓ 1 callersMethodsummarize
(self)
groundingdino/datasets/cocogrounding_eval.py:75
↓ 1 callersMethodsummary
(self)
groundingdino/util/utils.py:560
↓ 1 callersMethodsynchronize_between_processes
(self)
groundingdino/datasets/cocogrounding_eval.py:66
↓ 1 callersMethodunset_image_tensor
(self)
groundingdino/models/GroundingDINO/groundingdino.py:214
↓ 1 callersMethodupdate
(self, predictions)
groundingdino/datasets/cocogrounding_eval.py:45
↓ 1 callersFunctionwindow_reverse
Args: windows: (num_windows*B, window_size, window_size, C) window_size (int): Window size H (int): Height of image
groundingdino/models/GroundingDINO/backbone/swin_transformer.py:61
↓ 1 callersMethodwith_pos_embed
(tensor, pos)
groundingdino/models/GroundingDINO/transformer.py:771
↓ 1 callersMethodwith_pos_embed
(self, tensor, pos: Optional[Tensor])
groundingdino/models/GroundingDINO/transformer_vanilla.py:98
↓ 1 callersFunctionwrite_version_file
()
setup.py:56
Method__call__
(self, img, target)
groundingdino/datasets/transforms.py:166
Method__call__
(self, img, target)
groundingdino/datasets/transforms.py:174
Method__call__
(self, img: PIL.Image.Image, target: dict)
groundingdino/datasets/transforms.py:187
Method__call__
(self, img, target)
groundingdino/datasets/transforms.py:208
Method__call__
(self, img, target)
groundingdino/datasets/transforms.py:220
Method__call__
(self, img, target=None)
groundingdino/datasets/transforms.py:232
Method__call__
(self, img, target)
groundingdino/datasets/transforms.py:241
Method__call__
(self, img, target)
groundingdino/datasets/transforms.py:258
Method__call__
(self, img, target)
groundingdino/datasets/transforms.py:265
Method__call__
(self, img, target)
groundingdino/datasets/transforms.py:273
Method__call__
(self, image, target=None)
groundingdino/datasets/transforms.py:282
Method__call__
(self, image, target)
groundingdino/datasets/transforms.py:300
Method__call__
(self, refanchors: Tensor)
groundingdino/models/GroundingDINO/utils.py:127
Method__call__
(self, parser, namespace, values, option_string=None)
groundingdino/util/slconfig.py:419
Method__call__
(self, idx)
groundingdino/util/misc.py:700
Method__call__
(self, attnmap)
groundingdino/util/visualizer.py:54
Method__getattr__
(_, __)
groundingdino/models/GroundingDINO/ms_deform_attn.py:380
Method__getattr__
(self, name)
groundingdino/util/slconfig.py:30
Method__getattr__
(self, attr)
groundingdino/util/misc.py:259
Method__getitem__
(self, name)
groundingdino/util/slconfig.py:329
Method__getitem__
(self, idx)
demo/test_ap_on_coco.py:39
Method__init__
(self, size)
groundingdino/datasets/transforms.py:163
Method__init__
(self, size)
groundingdino/datasets/transforms.py:171
Method__init__
(self, min_size: int, max_size: int, respect_boxes: bool = False)
groundingdino/datasets/transforms.py:180
Method__init__
(self, size)
groundingdino/datasets/transforms.py:205
Method__init__
(self, p=0.5)
groundingdino/datasets/transforms.py:217
Method__init__
(self, sizes, max_size=None)
groundingdino/datasets/transforms.py:227
Method__init__
(self, max_pad)
groundingdino/datasets/transforms.py:238
Method__init__
(self, transforms1, transforms2, p=0.5)
groundingdino/datasets/transforms.py:253
Method__init__
(self, *args, **kwargs)
groundingdino/datasets/transforms.py:270
Method__init__
(self, mean, std)
groundingdino/datasets/transforms.py:278
Method__init__
(self, transforms)
groundingdino/datasets/transforms.py:297
Method__init__
(self, coco_gt, iou_types, useCats=True)
groundingdino/datasets/cocogrounding_eval.py:30
Method__init__
(self, name)
groundingdino/models/registry.py:19
Method__init__
( self, x_noise_scale=0.2, y_noise_scale=0.2, w_noise_scale=0.2, h_noise_scale=0.2 )
groundingdino/models/GroundingDINO/utils.py:120
Method__init__
Args: max_text_len: max length of text.
groundingdino/models/GroundingDINO/utils.py:234
Method__init__
(self, v_dim, l_dim, embed_dim, num_heads, dropout=0.1, cfg=None)
groundingdino/models/GroundingDINO/fuse_modules.py:100
Method__init__
Inputs: embed_dim - Dimensionality of input and attention feature vectors hidden_dim - Dimensionality of hidden layer
groundingdino/models/GroundingDINO/fuse_modules.py:253
Method__init__
(self, text_encoder)
groundingdino/models/GroundingDINO/bertwarper.py:170
Method__init__
_summary_ Args: encoder_layer (_type_): _description_ num_layers (_type_): _description_ norm (_type_, op
groundingdino/models/GroundingDINO/transformer.py:407
Method__init__
( self, decoder_layer, num_layers, norm=None, return_intermediate=Fals
groundingdino/models/GroundingDINO/transformer.py:599
Method__init__
( self, d_model=256, d_ffn=1024, dropout=0.1, activation="relu",
groundingdino/models/GroundingDINO/transformer.py:739
Method__init__
( self, d_model=256, d_ffn=1024, dropout=0.1, activation="relu",
groundingdino/models/GroundingDINO/transformer.py:803
Method__init__
( self, d_model, nhead, dim_feedforward=2048, dropout=0.1, act
groundingdino/models/GroundingDINO/transformer_vanilla.py:73
← previousnext →101–200 of 376, ranked by callers