MCPcopy Create free account

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

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

Methodaccumulate
(self)
datasets/coco_eval.py:65
Methodaccumulate
(self)
datasets/lvis_eval.py:647
Functionaccuracy
Computes the precision@k for the specified values of k
util/metrics.py:172
Functionadd_group
Given a match of an attribute token (eg a color <C3>), this function replaces it with a regex matching all the possible values of that attribu
scripts/clevr/clevr_to_coco.py:397
Functionadd_group
Given a match of an attribute token (eg a color <C3>), this function replaces it with a regex matching all the possible values of that attribu
scripts/clevr/refclevr_to_coco.py:440
Functionaligned_score
(arm, box)
datasets/yourefit.py:486
Functionaligned_scores
(arm, boxes)
datasets/yourefit.py:494
Methodann_to_mask
Convert annotation which can be polygons, uncompressed RLE, or RLE to binary mask. Args: ann (dict) : annotation object
datasets/lvis.py:198
Methodavg
(self)
util/metrics.py:53
Functionbox_cxcywh_to_vertices
(x)
models/mdetr.py:585
Functionbuild
(image_set, args)
datasets/refexp.py:93
Functionbuild
(image_set, args)
datasets/gqa.py:101
Functionbuild
(image_set, args)
datasets/vg.py:18
Functionbuild
(image_set, args)
datasets/clevrref.py:94
Functionbuild
(image_set, args)
datasets/lvis.py:256
Functionbuild
(image_set, args)
datasets/phrasecut.py:17
Functionbuild
(image_set, args)
datasets/lvis_modulation.py:15
Functionbuild
(image_set, args)
datasets/coco.py:240
Functionbuild
(image_set, args)
datasets/mixed.py:100
Functionbuild
(image_set, args)
datasets/flickr.py:16
Functionbuild
(dataset_file, image_set, args)
datasets/clevr.py:165
Functionbuild_transformer
(d_model=288)
models/transformer_ori.py:222
Methodcheckpoint
(self)
run_with_submitit_gqa_eval.py:99
Methodcheckpoint
(self)
run_with_submitit_lvis_eval.py:99
Methodcheckpoint
(self)
run_with_submitit.py:100
Functioncollate_fn
(do_round, batch)
util/misc.py:38
Methodcontrastive_obj_loss
(self, outputs, targets, matched_idx)
models/mdetr.py:960
Functiondel_param
(checkpoint)
pretrained_weight.py:15
Functiondraw_box
(img, box, img_name, arm=None, gt_box=None, box1=None)
datasets/yourefit.py:464
Functionevaluate
( model, criterion, data_loader, evaluator_list, device, output_dir, args, id2
scripts/eval_gqa.py:179
Functionevaluate
( model, data_loader, evaluator_list, device, output_dir, args, )
scripts/eval_clevr.py:144
Methodexpand
(tensor, length)
models/segmentation.py:123
Methodforward
(self, x1, y1, x2, y2)
models/mdetr.py:55
Methodforward
The forward expects a NestedTensor, which consists of: - samples.tensor: batched images, of shape [batch_size x 3 x H x W] - sam
models/mdetr.py:173
Methodforward
(self, pooled_text, pooled_image)
models/mdetr.py:365
Methodforward
(self, output, answers)
models/mdetr.py:384
Methodforward
(self, output, answers)
models/mdetr.py:507
Methodforward
This performs the loss computation. Parameters: outputs: dict of tensors, see the output specification of the model for the forma
models/mdetr.py:983
Methodforward
(self, x)
models/mdetr.py:1120
Methodforward
Performs the matching Params: outputs: This is a dict that contains at least these entries: "pred_logits": Tenso
models/matcher.py:38
Methodforward
(self, src, src_embed, query, query_embed)
models/transformer_ori.py:48
Methodforward
(self, src, mask: Optional[Tensor] = None, src_key_padding_mask: Optional[Te
models/transformer_ori.py:67
Methodforward
(self, tgt, memory, tgt_mask: Optional[Tensor] = None, memory_mask: Optional
models/transformer_ori.py:92
Methodforward
(self, src, pos = None)
models/transformer_ori.py:160
Methodforward
(self, query, key, query_pos=None, key_pos=None, key_mask = None)
models/transformer_ori.py:188
Methodforward
( self, src=None, mask=None, query_embed=None, pos
models/transformer.py:98
Methodforward
( self, src, mask: Optional[Tensor] = None, src_key_padding_ma
models/transformer.py:239
Methodforward
( self, tgt, memory, text_memory, tgt_mask: Option
models/transformer.py:268
Methodforward
( self, src, src_mask: Optional[Tensor] = None, src_key_paddin
models/transformer.py:370
Methodforward
( self, tgt, memory, text_memory: Optional[Tensor] = None,
models/transformer.py:514
Methodforward
(self, encoder_features)
models/transformer.py:564
Methodforward
(self, samples: NestedTensor, captions)
models/segmentation.py:37
Methodforward
(self, x, bbox_mask, fpns)
models/segmentation.py:122
Methodforward
(self, q, k, mask=None)
models/segmentation.py:181
Methodforward
(self, x)
models/backbone.py:47
Methodforward
(self, tensor_list)
models/backbone.py:73
Methodforward
(self, x)
models/backbone.py:136
Methodforward
(self, tensor_list)
models/backbone.py:153
Methodforward
(self, tensor_list)
models/backbone.py:168
Methodforward
Perform the computation. Args: outputs: raw outputs of the model target_sizes: tensor of dimension [batch_size x 2] co
models/postprocessors.py:31
Methodforward
Perform the computation Args: results: Dictionnary that comes from PostProcess and optionally PostProcessSegm
models/postprocessors.py:113
Methodforward
Perform the computation Parameters: outputs: raw outputs of the model target_sizes: tensor of dimension [batch_size x
models/postprocessors.py:232
Methodforward
Perform the computation Parameters: results: already pre-processed boxes (output of PostProcess) outputs: raw outputs
models/postprocessors.py:296
Methodforward
(self, tensor_list)
models/position_encoding.py:29
Methodforward
(self, tensor_list)
models/position_encoding.py:66
Methodforward
Args: input: (B, #proposals, #classes) float tensor. Predicted logits for each class target: (B, #pro
models/utils/losses.py:56
Methodforward
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:93
Methodforward
(self, x)
models/utils/PE.py:17
Methodforward
(self,x1,y1,x2,y2)
models/utils/PE.py:37
Functionget_local_rank
Returns: The rank of the current process within the local (per-machine) process group.
util/dist.py:179
Functionget_local_size
Returns: The size of the per-machine process group, i.e. the number of processes per machine.
util/dist.py:192
Methodget_nb_compo
(self)
scripts/utils/unionfind.py:14
Methodget_nb_compo
(self)
scripts/pre-training/flickr_combined.py:196
Methodget_results
(self)
datasets/lvis_eval.py:598
Functionget_sha
()
util/misc.py:17
Functionget_synonyms
Get the possible CLEVR synonyms for a given word
scripts/clevr/clevr_to_coco.py:130
Functionget_synonyms
Get the possible CLEVR synonyms for a given word
scripts/clevr/refclevr_to_coco.py:145
Functionget_text_attns
(name)
vis_attn.py:88
Methodget_top_results
(self, img_id, score_thrs)
datasets/lvis_eval.py:125
Methodglobal_avg
(self)
util/metrics.py:58
Functiongrid_parameters
Yield all combinations of parameters in the grid (as a dict)
run_with_submitit_gqa_eval.py:52
Functiongrid_parameters
Yield all combinations of parameters in the grid (as a dict)
run_with_submitit_lvis_eval.py:52
Functiongrid_parameters
Yield all combinations of parameters in the grid (as a dict)
run_with_submitit.py:53
Functionimgwithmask
(image_ori,mask_ori)
vis_attn.py:74
Functioninit_distributed_mode
Initialize distributed training, if appropriate
util/dist.py:216
Functioniou_box
(box1, box2, xywh=True, ioubp=False)
datasets/phrasecut_utils/iou.py:9
Functioniou_boxes_mask
(boxes, mask, xywh=True, ioubp=False)
datasets/phrasecut_utils/iou.py:109
Functioniou_boxes_polygons
(boxes, polygons, w=0, h=0, xywh=True, ioubp=False)
datasets/phrasecut_utils/iou.py:61
Functioniou_mask
(m1, m2, ioubp=False)
datasets/phrasecut_utils/iou.py:91
Functioniou_polygons
(ps1, ps2, w=0, h=0, ioubp=False)
datasets/phrasecut_utils/iou.py:128
Methodis_same
(self, other)
scripts/clevr/refclevr_to_coco.py:226
Functionl1_loss
(error)
models/utils/losses.py:16
Methodloss_boxes
Compute the losses related to the bounding boxes, the L1 regression loss and the GIoU loss targets dicts must contain the key "boxes" containi
models/mdetr.py:774
Methodloss_cardinality
Compute the cardinality error, ie the absolute error in the number of predicted non-empty boxes This is not really a loss, it is intended for
models/mdetr.py:752
Methodloss_contrastive_align
(self, outputs, targets, positive_map, indices, num_boxes)
models/mdetr.py:677
Methodloss_isfinal
This loss is used in some referring expression dataset (specifically Clevr-REF+) It trains the model to predict which boxes are being referred
models/mdetr.py:617
Methodloss_labels
Classification loss (NLL) targets dicts must contain the key "labels" containing a tensor of dim [nb_target_boxes]
models/mdetr.py:643
Methodloss_masks
Compute the losses related to the masks: the focal loss and the dice loss. targets dicts must contain the key "masks" containing a tensor of d
models/mdetr.py:798
Functionmask_color
(mask,green=False)
vis_attn.py:53
Functionmasks_to_boxes
Compute the bounding boxes around the provided masks The masks should be in format [N, H, W] where N is the number of masks, (H, W) are the spati
util/box_ops.py:63
← previousnext →501–600 of 656, ranked by callers