Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Yang-Li-2000/Touch-Line-Transformer
/ functions
Functions
656 in github.com/Yang-Li-2000/Touch-Line-Transformer
⨍
Functions
656
◇
Types & classes
111
Method
accumulate
(self)
datasets/coco_eval.py:65
Method
accumulate
(self)
datasets/lvis_eval.py:647
Function
accuracy
Computes the precision@k for the specified values of k
util/metrics.py:172
Function
add_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
Function
add_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
Function
aligned_score
(arm, box)
datasets/yourefit.py:486
Function
aligned_scores
(arm, boxes)
datasets/yourefit.py:494
Method
ann_to_mask
Convert annotation which can be polygons, uncompressed RLE, or RLE to binary mask. Args: ann (dict) : annotation object
datasets/lvis.py:198
Method
avg
(self)
util/metrics.py:53
Function
box_cxcywh_to_vertices
(x)
models/mdetr.py:585
Function
build
(image_set, args)
datasets/refexp.py:93
Function
build
(image_set, args)
datasets/gqa.py:101
Function
build
(image_set, args)
datasets/vg.py:18
Function
build
(image_set, args)
datasets/clevrref.py:94
Function
build
(image_set, args)
datasets/lvis.py:256
Function
build
(image_set, args)
datasets/phrasecut.py:17
Function
build
(image_set, args)
datasets/lvis_modulation.py:15
Function
build
(image_set, args)
datasets/coco.py:240
Function
build
(image_set, args)
datasets/mixed.py:100
Function
build
(image_set, args)
datasets/flickr.py:16
Function
build
(dataset_file, image_set, args)
datasets/clevr.py:165
Function
build_transformer
(d_model=288)
models/transformer_ori.py:222
Method
checkpoint
(self)
run_with_submitit_gqa_eval.py:99
Method
checkpoint
(self)
run_with_submitit_lvis_eval.py:99
Method
checkpoint
(self)
run_with_submitit.py:100
Function
collate_fn
(do_round, batch)
util/misc.py:38
Method
contrastive_obj_loss
(self, outputs, targets, matched_idx)
models/mdetr.py:960
Function
del_param
(checkpoint)
pretrained_weight.py:15
Function
draw_box
(img, box, img_name, arm=None, gt_box=None, box1=None)
datasets/yourefit.py:464
Function
evaluate
( model, criterion, data_loader, evaluator_list, device, output_dir, args, id2
scripts/eval_gqa.py:179
Function
evaluate
( model, data_loader, evaluator_list, device, output_dir, args, )
scripts/eval_clevr.py:144
Method
expand
(tensor, length)
models/segmentation.py:123
Method
forward
(self, x1, y1, x2, y2)
models/mdetr.py:55
Method
forward
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
Method
forward
(self, pooled_text, pooled_image)
models/mdetr.py:365
Method
forward
(self, output, answers)
models/mdetr.py:384
Method
forward
(self, output, answers)
models/mdetr.py:507
Method
forward
This performs the loss computation. Parameters: outputs: dict of tensors, see the output specification of the model for the forma
models/mdetr.py:983
Method
forward
(self, x)
models/mdetr.py:1120
Method
forward
Performs the matching Params: outputs: This is a dict that contains at least these entries: "pred_logits": Tenso
models/matcher.py:38
Method
forward
(self, src, src_embed, query, query_embed)
models/transformer_ori.py:48
Method
forward
(self, src, mask: Optional[Tensor] = None, src_key_padding_mask: Optional[Te
models/transformer_ori.py:67
Method
forward
(self, tgt, memory, tgt_mask: Optional[Tensor] = None, memory_mask: Optional
models/transformer_ori.py:92
Method
forward
(self, src, pos = None)
models/transformer_ori.py:160
Method
forward
(self, query, key, query_pos=None, key_pos=None, key_mask = None)
models/transformer_ori.py:188
Method
forward
( self, src=None, mask=None, query_embed=None, pos
models/transformer.py:98
Method
forward
( self, src, mask: Optional[Tensor] = None, src_key_padding_ma
models/transformer.py:239
Method
forward
( self, tgt, memory, text_memory, tgt_mask: Option
models/transformer.py:268
Method
forward
( self, src, src_mask: Optional[Tensor] = None, src_key_paddin
models/transformer.py:370
Method
forward
( self, tgt, memory, text_memory: Optional[Tensor] = None,
models/transformer.py:514
Method
forward
(self, encoder_features)
models/transformer.py:564
Method
forward
(self, samples: NestedTensor, captions)
models/segmentation.py:37
Method
forward
(self, x, bbox_mask, fpns)
models/segmentation.py:122
Method
forward
(self, q, k, mask=None)
models/segmentation.py:181
Method
forward
(self, x)
models/backbone.py:47
Method
forward
(self, tensor_list)
models/backbone.py:73
Method
forward
(self, x)
models/backbone.py:136
Method
forward
(self, tensor_list)
models/backbone.py:153
Method
forward
(self, tensor_list)
models/backbone.py:168
Method
forward
Perform the computation. Args: outputs: raw outputs of the model target_sizes: tensor of dimension [batch_size x 2] co
models/postprocessors.py:31
Method
forward
Perform the computation Args: results: Dictionnary that comes from PostProcess and optionally PostProcessSegm
models/postprocessors.py:113
Method
forward
Perform the computation Parameters: outputs: raw outputs of the model target_sizes: tensor of dimension [batch_size x
models/postprocessors.py:232
Method
forward
Perform the computation Parameters: results: already pre-processed boxes (output of PostProcess) outputs: raw outputs
models/postprocessors.py:296
Method
forward
(self, tensor_list)
models/position_encoding.py:29
Method
forward
(self, tensor_list)
models/position_encoding.py:66
Method
forward
Args: input: (B, #proposals, #classes) float tensor. Predicted logits for each class target: (B, #pro
models/utils/losses.py:56
Method
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:93
Method
forward
(self, x)
models/utils/PE.py:17
Method
forward
(self,x1,y1,x2,y2)
models/utils/PE.py:37
Function
get_local_rank
Returns: The rank of the current process within the local (per-machine) process group.
util/dist.py:179
Function
get_local_size
Returns: The size of the per-machine process group, i.e. the number of processes per machine.
util/dist.py:192
Method
get_nb_compo
(self)
scripts/utils/unionfind.py:14
Method
get_nb_compo
(self)
scripts/pre-training/flickr_combined.py:196
Method
get_results
(self)
datasets/lvis_eval.py:598
Function
get_sha
()
util/misc.py:17
Function
get_synonyms
Get the possible CLEVR synonyms for a given word
scripts/clevr/clevr_to_coco.py:130
Function
get_synonyms
Get the possible CLEVR synonyms for a given word
scripts/clevr/refclevr_to_coco.py:145
Function
get_text_attns
(name)
vis_attn.py:88
Method
get_top_results
(self, img_id, score_thrs)
datasets/lvis_eval.py:125
Method
global_avg
(self)
util/metrics.py:58
Function
grid_parameters
Yield all combinations of parameters in the grid (as a dict)
run_with_submitit_gqa_eval.py:52
Function
grid_parameters
Yield all combinations of parameters in the grid (as a dict)
run_with_submitit_lvis_eval.py:52
Function
grid_parameters
Yield all combinations of parameters in the grid (as a dict)
run_with_submitit.py:53
Function
imgwithmask
(image_ori,mask_ori)
vis_attn.py:74
Function
init_distributed_mode
Initialize distributed training, if appropriate
util/dist.py:216
Function
iou_box
(box1, box2, xywh=True, ioubp=False)
datasets/phrasecut_utils/iou.py:9
Function
iou_boxes_mask
(boxes, mask, xywh=True, ioubp=False)
datasets/phrasecut_utils/iou.py:109
Function
iou_boxes_polygons
(boxes, polygons, w=0, h=0, xywh=True, ioubp=False)
datasets/phrasecut_utils/iou.py:61
Function
iou_mask
(m1, m2, ioubp=False)
datasets/phrasecut_utils/iou.py:91
Function
iou_polygons
(ps1, ps2, w=0, h=0, ioubp=False)
datasets/phrasecut_utils/iou.py:128
Method
is_same
(self, other)
scripts/clevr/refclevr_to_coco.py:226
Function
l1_loss
(error)
models/utils/losses.py:16
Method
loss_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
Method
loss_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
Method
loss_contrastive_align
(self, outputs, targets, positive_map, indices, num_boxes)
models/mdetr.py:677
Method
loss_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
Method
loss_labels
Classification loss (NLL) targets dicts must contain the key "labels" containing a tensor of dim [nb_target_boxes]
models/mdetr.py:643
Method
loss_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
Function
mask_color
(mask,green=False)
vis_attn.py:53
Function
masks_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
← previous
next →
501–600 of 656, ranked by callers