MCPcopy Create free account

hub / github.com/Yang-Li-2000/Touch-Line-Transformer / functions

Functions656 in github.com/Yang-Li-2000/Touch-Line-Transformer

↓ 2 callersFunctionbacktrack_previous_nodes
Find previous filtering nodes that might have text associated. The full filter may contain UNION nodes, which means that there might be severa
scripts/clevr/refclevr_to_coco.py:369
↓ 2 callersFunctionbox_iou
(boxes1, boxes2)
util/box_ops.py:23
↓ 2 callersFunctionbox_iou_helper
returns the iou matrix between two sets of boxes The boxes are expected in the format [top_left_x, top_left_y, w, h]
scripts/utils/boxes.py:75
↓ 2 callersFunctionbox_xywh_to_xyxy
Accepts a list of bounding boxes in coco format (xmin,ymin, width, height) Returns the list of boxes in pascal format (xmin,ymin,xmax,ymax) T
scripts/pre-training/flickr_combined.py:50
↓ 2 callersFunctionbuild_evaluator_list
Helper function to build the list of evaluators for a given dataset
main_ref.py:584
↓ 2 callersFunctionbuild_evaluator_list
Helper function to build the list of evaluators for a given dataset
main.py:469
↓ 2 callersFunctionconvert_to_xywh
(boxes)
datasets/coco_eval.py:169
↓ 2 callersMethodevaluate
Run per image evaluation on given images and store results (a list of dict) in self.eval_imgs.
datasets/lvis_eval.py:228
↓ 2 callersMethodfilter_color
(self, color, id=-1)
scripts/clevr/clevr_to_coco.py:250
↓ 2 callersMethodfilter_color
(self, color, id=-1)
scripts/clevr/refclevr_to_coco.py:278
↓ 2 callersMethodfilter_ids
(self, ids)
scripts/clevr/clevr_to_coco.py:262
↓ 2 callersMethodfilter_material
(self, material, id=-1)
scripts/clevr/clevr_to_coco.py:238
↓ 2 callersMethodfilter_material
(self, material, id=-1)
scripts/clevr/refclevr_to_coco.py:266
↓ 2 callersMethodfilter_shape
(self, shape, id=-1)
scripts/clevr/clevr_to_coco.py:244
↓ 2 callersMethodfilter_shape
(self, shape, id=-1)
scripts/clevr/refclevr_to_coco.py:272
↓ 2 callersMethodfilter_size
(self, size, id=-1)
scripts/clevr/clevr_to_coco.py:256
↓ 2 callersMethodfilter_size
(self, size, id=-1)
scripts/clevr/refclevr_to_coco.py:284
↓ 2 callersFunctionget_boxes_equiv
Given a set of boxes, returns a dict containing clusters of boxes that are highly overlapping. For optimization, return None if none of the boxes
scripts/utils/boxes.py:22
↓ 2 callersFunctionget_canonical_spans
This functions computes the spans after reduction of the caption to it's normalized version For example, if the caption is "There is a man wearing
scripts/utils/spans.py:84
↓ 2 callersMethodget_cat
(self)
scripts/clevr/clevr_to_coco.py:206
↓ 2 callersMethodget_cat
(self)
scripts/clevr/refclevr_to_coco.py:234
↓ 2 callersFunctionget_coco_api_from_dataset
(dataset)
datasets/__init__.py:21
↓ 2 callersFunctionget_color
(admissible_color_set, new_length)
scripts/pre-training/combine_datasets_train.py:237
↓ 2 callersMethodget_loss
(self, loss, outputs, targets, positive_map, indices, num_boxes, args=None, **kwargs)
models/mdetr.py:843
↓ 2 callersFunctionget_noun_phrase
(root)
scripts/utils/text.py:17
↓ 2 callersFunctionget_refexp_groups
This functions accepts a dictionary that contains all the datapoints from a given id. These datapoints are assumed to come from the same image sub
scripts/pre-training/combine_datasets_train.py:188
↓ 2 callersFunctionget_subset
Get a balanced subset containing the target fraction of the full dataset
scripts/fine-tuning/lvis_coco_format.py:58
↓ 2 callersFunctionget_world_size
Returns: The number of processes in the process group
util/dist.py:159
↓ 2 callersFunctionhelper_merge
(regions)
scripts/pre-training/vg_preprocessing.py:135
↓ 2 callersFunctioninterpolate
Equivalent to nn.functional.interpolate, but with support for empty channel sizes.
util/misc.py:130
↓ 2 callersFunctionload_templates
Loads the CLEVR templates from disk
scripts/clevr/clevr_to_coco.py:157
↓ 2 callersMethodloss_contrastive_align
(self, outputs, targets, temperature=0.07)
models/postprocessors.py:138
↓ 2 callersFunctionmatch_pos
(sentence,word)
datasets/yourefit_token.py:28
↓ 2 callersFunctionmerge
(img_ids, eval_imgs)
datasets/coco_eval.py:174
↓ 2 callersFunctionmulti_head_attention_forward
r""" Args: query, key, value: map a query and a set of key-value pairs to an output. See "Attention Is All You Need" for more
models/utils/multi_head_attention.py:149
↓ 2 callersFunctionnormalize_whitespace
This function normalizes whitespaces, removing duplicates and converting all to standard spaces
scripts/utils/text.py:124
↓ 2 callersFunctionobj_to_box
Extract the bounding box of a given object as a list
scripts/utils/boxes.py:12
↓ 2 callersFunctionparse_args
()
scripts/clevr/clevr_to_coco.py:26
↓ 2 callersFunctionparse_prog
Parse the program of the given question and return the objects, along with the list of tokens they correspond to from the scene necessary to compute t
scripts/clevr/clevr_to_coco.py:442
↓ 2 callersMethodpull_item_box
(self, idx, return_img=False)
datasets/yourefit.py:225
↓ 2 callersFunctionretrieve_boxes
Retrieve bounding boxes associated to given objs in given scene. This assumes non-REFCLEVR annotations (and thus can't provide a mask)
scripts/clevr/clevr_to_coco.py:658
↓ 2 callersFunctionretrieve_boxes
Retrieve bounding boxes associated to given objs in given scene. This assumes non-REFCLEVR annotations (and thus can't provide a mask)
scripts/clevr/refclevr_to_coco.py:734
↓ 2 callersFunctionretrieve_boxes_and_masks
Retrieve bounding boxes and segmentation masks associated to given objs in given scene This assumes REFCLEVR annotations
scripts/clevr/clevr_to_coco.py:622
↓ 2 callersFunctionretrieve_boxes_and_masks
Retrieve bounding boxes and segmentation masks associated to given objs in given scene This assumes REFCLEVR annotations
scripts/clevr/refclevr_to_coco.py:697
↓ 2 callersMethodrun
Wrapper function which calculates the results.
datasets/lvis_eval.py:562
↓ 2 callersFunctionshift_spans
(spans: List[Tuple[int, int]], offset: int)
scripts/utils/spans.py:231
↓ 2 callersMethodsin_or_cos
(self, x, i)
models/mdetr.py:48
↓ 2 callersMethodsin_or_cos
(self,x,i)
models/utils/PE.py:30
↓ 2 callersFunctionspan_intersect_spanlist
Returns True if the given spans intersect with any in the given list
scripts/utils/spans.py:18
↓ 2 callersFunctionspanlist_intersect_spanlist
Returns True if the given spans intersect with any in the given list
scripts/utils/spans.py:26
↓ 2 callersFunctiontrain_one_epoch
( model: torch.nn.Module, criterion: Optional[torch.nn.Module], contrastive_criterion:
engine.py:34
↓ 2 callersMethodunite
(self, a, b)
scripts/pre-training/flickr_combined.py:205
↓ 2 callersMethodupdate
(self, res: List[Dict])
scripts/eval_clevr.py:125
↓ 2 callersMethodupdate
(self, value, num=1)
util/metrics.py:28
↓ 2 callersMethodwith_pos_embed
(self, tensor, pos: Optional[Tensor])
models/transformer.py:333
↓ 2 callersFunctionxyxy_to_xywh
Converts a set of boxes in [top_left_x, top_left_y, bottom_right_x, bottom_right_y] format to [top_left_x, top_left_y, width, height] format
scripts/utils/boxes.py:52
↓ 1 callersMethod__getitem__
(self, idx)
datasets/coco.py:53
↓ 1 callersMethod__getitem__
(self, idx)
datasets/clevr.py:106
↓ 1 callersMethod__init__
Params for LVIS evaluation API.
datasets/lvis_eval.py:28
↓ 1 callersMethod__init__
(self, img_folder, ann_file, transforms, return_masks)
datasets/coco.py:48
↓ 1 callersMethod__init__
(self, img_folder_coco, img_folder_vg, ann_file, transforms, return_masks, return_tokens, tokenizer)
datasets/mixed.py:84
↓ 1 callersMethod__init__
(self, img_folder, ann_file, transforms)
datasets/clevr.py:96
↓ 1 callersMethod__init__
(self, threshold=0.5)
models/postprocessors.py:291
↓ 1 callersMethod__init__
(self, num_pos_feats=64, temperature=10000, normalize=False, scale=None)
models/position_encoding.py:18
↓ 1 callersMethod__init__
(self, input_dim, hidden_dim, output_dim, num_layers)
models/utils/PE.py:11
↓ 1 callersMethod__str__
(self)
scripts/clevr/clevr_to_coco.py:209
↓ 1 callersMethod__str__
(self)
scripts/clevr/refclevr_to_coco.py:237
↓ 1 callersFunction_box_inter_union
(boxes1: np.array, boxes2: np.array)
scripts/pre-training/flickr_combined.py:150
↓ 1 callersFunction_box_inter_union
(boxes1: np.array, boxes2: np.array)
datasets/flickr_eval.py:170
↓ 1 callersFunction_get_global_gloo_group
Return a process group based on gloo backend, containing all the ranks The result is cached.
util/dist.py:22
↓ 1 callersMethod_get_tgt_permutation_idx
(self, indices)
models/mdetr.py:836
↓ 1 callersFunction_make_backbone
(backbone_name: str, mask: bool = False)
hubconf.py:14
↓ 1 callersFunction_merge_boxes
Return the boxes corresponding to the smallest enclosing box containing all the provided boxes The boxes are expected in [x1, y1, x2, y2] for
datasets/flickr_eval.py:207
↓ 1 callersMethod_prepare_freq_group
(self)
datasets/lvis_eval.py:220
↓ 1 callersMethod_reset_parameters
(self)
models/transformer_ori.py:43
↓ 1 callersMethod_reset_parameters
(self)
models/transformer.py:93
↓ 1 callersMethod_reset_parameters
(self)
models/utils/multi_head_attention.py:77
↓ 1 callersMethod_setup_gpu_args
(self)
run_with_submitit_gqa_eval.py:113
↓ 1 callersMethod_setup_gpu_args
(self)
run_with_submitit_lvis_eval.py:113
↓ 1 callersMethod_setup_gpu_args
(self)
run_with_submitit.py:114
↓ 1 callersMethod_summarize_fixed
(self)
datasets/lvis_eval.py:818
↓ 1 callersMethod_summarize_fixed
(self)
datasets/lvis_eval.py:930
↓ 1 callersMethod_summarize_standard
(self)
datasets/lvis_eval.py:812
↓ 1 callersMethod_summarize_standard
(self)
datasets/lvis_eval.py:922
↓ 1 callersFunctionadjust_learning_rate
Adjust the lr according to the schedule. Args: Optimizer: torch optimizer to update. epoch(int): number of the current epoch.
util/optim.py:28
↓ 1 callersMethodanalyze_stats
(self, mask_box=("mask", "box"), exp_name_in_summary=None, save_result_to_path=None)
datasets/phrasecut_utils/evaluator.py:130
↓ 1 callersMethodarm_box_aligned_loss
(self, outputs, targets, indices)
models/mdetr.py:857
↓ 1 callersFunctionbox_iou
Return intersection-over-union (Jaccard index) of boxes. Both sets of boxes are expected to be in ``(x1, y1, x2, y2)`` format with ``0 <
datasets/flickr_eval.py:185
↓ 1 callersFunctionbox_xyxy_to_cxcywh
(x)
util/box_ops.py:16
↓ 1 callersFunctionbuild
(args)
models/mdetr.py:1126
↓ 1 callersFunctionbuild_backbone
(args)
models/backbone.py:180
↓ 1 callersFunctionbuild_custom_regex
This build a regex that will match questions from the given text template. Additionally, tokens that are input of the node_id will be put in a
scripts/clevr/clevr_to_coco.py:403
↓ 1 callersFunctionbuild_custom_regex
This build a regex that will match refexps from the given text template. Additionally, tokens that are input of the node_id will be put in a r
scripts/clevr/refclevr_to_coco.py:446
↓ 1 callersFunctionbuild_matcher
(args)
models/matcher.py:106
↓ 1 callersFunctionbuild_position_encoding
(args)
models/position_encoding.py:88
↓ 1 callersFunctionbuild_regex
Transform a CLEVR text template into a regex that matches it
scripts/clevr/clevr_to_coco.py:138
↓ 1 callersFunctionbuild_regex
Transform a CLEVR text template into a regex that matches it
scripts/clevr/refclevr_to_coco.py:153
↓ 1 callersFunctionbuild_transformer
(args)
models/transformer.py:576
↓ 1 callersFunctionchange_chars
(old_beg, old_end, delta)
scripts/utils/spans.py:106
↓ 1 callersFunctionchunk_list
Yield successive n-sized chunks from lst.
scripts/pre-training/vg_preprocessing.py:342
← previousnext →101–200 of 656, ranked by callers