MCPcopy Create free account

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

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

↓ 1 callersFunctionclean_name
(name)
scripts/eval_lvis.py:179
↓ 1 callersFunctionclean_name
Convert the LVIS class name into a query text for MDETR
scripts/fine-tuning/lvis_coco_format.py:50
↓ 1 callersFunctioncombine_dataset_datapoints
This functions accepts a dict from the 'dataset_name' to the list of datapoints we have for this dataset. It splits the data points based on wheth
scripts/pre-training/combine_datasets_train.py:103
↓ 1 callersMethodcompute_iou
(self, img_id, cat_id)
datasets/lvis_eval.py:268
↓ 1 callersFunctionconvert
Do the heavy lifting on the given subset (eg 'train')
scripts/clevr/clevr_to_coco.py:709
↓ 1 callersFunctionconvert
(split, data_path, sg_path, output_path, imid2data)
scripts/pre-training/gqa_combined_val.py:62
↓ 1 callersFunctionconvert
(dataset_path: Path, split, output_path, coco_path)
scripts/pre-training/refexp_combined_train.py:47
↓ 1 callersFunctionconvert
Do the heavy lifting on the given split (eg 'train')
scripts/pre-training/refexp_combined_val.py:46
↓ 1 callersFunctionconvert
(split, data_path, img_path, sg_path, output_path, imid2data)
scripts/pre-training/gqa_combined_train.py:64
↓ 1 callersFunctionconvert
(split, data_path, output_path, imid2data)
scripts/fine-tuning/phrasecut_coco_format.py:38
↓ 1 callersFunctionconvert
(split, data_path, output_path, coco_path)
scripts/fine-tuning/vqa_coco_format.py:68
↓ 1 callersFunctionconvert
(split, data_path, output_path, fract)
scripts/fine-tuning/lvis_coco_format.py:129
↓ 1 callersFunctionconvert
(split, data_path, output_path, fract)
scripts/fine-tuning/subsample_lvis.py:46
↓ 1 callersFunctionconvert
(split, data_path, sg_path, output_path, imid2data, type, coco_path)
scripts/fine-tuning/gqa_coco_format.py:70
↓ 1 callersFunctionconvert
Do the heavy lifting on the given split (eg 'train')
scripts/fine-tuning/refexp_coco_format.py:47
↓ 1 callersFunctionconvert2dataset_combined
( datapoint_list_coco: List[Datapoint], datapoint_list_vg: List[Datapoint], imgid2imginfo_coco,
scripts/utils/dump.py:24
↓ 1 callersFunctionconvert_bounding_boxes
Accepts a list of bounding boxes in format (xmin,ymin,xmax,ymax) Returns the list of boxes in coco format (xmin,ymin, width, height)
scripts/clevr/clevr_to_coco.py:692
↓ 1 callersFunctionconvert_bounding_boxes
Accepts a list of bounding boxes in format (xmin,ymin,xmax,ymax) Returns the list of boxes in coco format (xmin,ymin, width, height)
scripts/clevr/refclevr_to_coco.py:768
↓ 1 callersFunctionconvert_coco_poly_to_mask
(segmentations, height, width)
datasets/coco.py:63
↓ 1 callersFunctioncost
(bbox, obj)
scripts/clevr/clevr_to_coco.py:668
↓ 1 callersFunctioncost
(bbox, obj)
scripts/clevr/refclevr_to_coco.py:744
↓ 1 callersFunctioncreate_common_coco_eval
(coco_eval, img_ids, eval_imgs)
datasets/coco_eval.py:196
↓ 1 callersFunctioncreate_common_lvis_eval
(lvis_eval, img_ids, eval_imgs)
datasets/lvis_eval.py:961
↓ 1 callersFunctioncreate_positive_map
construct a map such that positive_map[i,j] = True iff box i is associated to token j
datasets/yourefit.py:85
↓ 1 callersFunctiondeal_arm_json
(jsonfile)
yourefit/deal_arm.py:7
↓ 1 callersFunctiondeduplicate_regions
This functions accepts pre-processed region descriptions for a given image, and removes regions that are redundant. Two regions are deemed redunda
scripts/pre-training/vg_preprocessing.py:129
↓ 1 callersFunctiondel_text_param
(checkpoint)
pretrained_weight.py:32
↓ 1 callersFunctiondemo
( model: torch.nn.Module, postprocessors: Dict[str, torch.nn.Module], data_loader, device: tor
demo.py:297
↓ 1 callersFunctiondice_loss
Compute the DICE loss, similar to generalized IOU for masks Args: inputs: A float tensor of arbitrary shape. The pred
models/segmentation.py:195
↓ 1 callersMethoddownload
Download images from mscoco.org server. Args: save_dir (str): dir to save downloaded images img_ids (int array): img i
datasets/lvis.py:157
↓ 1 callersFunctiondraw_box
(img,box,img_name)
yourefit/draw.py:6
↓ 1 callersFunctiondraw_box
(img,box,img_name,arm=None,gt_box=None,box1=None)
yourefit/cal_avg.py:17
↓ 1 callersMethoddump_result
(self, path)
scripts/eval_gqa.py:171
↓ 1 callersMethoddump_result
(self, path)
scripts/eval_clevr.py:134
↓ 1 callersMethodeval_single_img
( self, img_id, im_pred_dict, pred_mask_tag="pred_mask", pred_boxes_ta
datasets/phrasecut_utils/evaluator.py:39
↓ 1 callersFunctionevaluate
Run per image evaluation on given images and store results (a list of dict) in self.evalImgs :return: None
datasets/coco_eval.py:212
↓ 1 callersMethodevaluate
(self, predictions: List[Dict])
datasets/flickr_eval.py:324
↓ 1 callersMethodevaluate_img
Perform evaluation for single category and image.
datasets/lvis_eval.py:294
↓ 1 callersMethodexists_dataset
(self)
datasets/yourefit.py:214
↓ 1 callersMethodfilter_direction
(self, obj, dir)
scripts/clevr/clevr_to_coco.py:266
↓ 1 callersMethodfilter_direction
(self, obj, dir)
scripts/clevr/refclevr_to_coco.py:294
↓ 1 callersFunctionfind_matching_template
Return the template that corresponds to the given question
scripts/clevr/clevr_to_coco.py:282
↓ 1 callersFunctionfind_matching_template
Return the template that corresponds to the given refexp
scripts/clevr/refclevr_to_coco.py:310
↓ 1 callersMethodforward_post
(self,src,pos = None)
models/transformer_ori.py:140
↓ 1 callersMethodforward_post
( self, src, src_mask: Optional[Tensor] = None, src_key_paddin
models/transformer.py:336
↓ 1 callersMethodforward_post
( self, tgt, memory, text_memory: Optional[Tensor] = None,
models/transformer.py:414
↓ 1 callersMethodforward_pre
( self, src, src_mask: Optional[Tensor] = None, src_key_paddin
models/transformer.py:353
↓ 1 callersMethodforward_pre
( self, tgt, memory, text_memory: Optional[Tensor] = None,
models/transformer.py:480
↓ 1 callersFunctionget_all_datapoints
(dataset_path: Path, output_path: Path, nb_proc: int)
scripts/pre-training/vg_preprocessing.py:348
↓ 1 callersFunctionget_annotations
Parses the xml files in the Flickr30K Entities dataset input: filename - full file path to the annotations file to parse output:
datasets/flickr_eval.py:88
↓ 1 callersFunctionget_args_parser
()
main_ref.py:48
↓ 1 callersFunctionget_args_parser
()
main.py:32
↓ 1 callersFunctionget_args_parser
()
demo.py:28
↓ 1 callersFunctionget_args_parser
()
scripts/eval_gqa.py:30
↓ 1 callersFunctionget_args_parser
()
scripts/eval_lvis.py:32
↓ 1 callersMethodget_cat_ids
Get all category ids. Returns: ids (int array): integer array of category ids
datasets/lvis.py:107
↓ 1 callersFunctionget_equivalent_boxes
Find clusters of highly overlapping boxes Parameters: - all_boxes: a list of boxes in [center_x, center_y, w, h] format - iou_thre
scripts/pre-training/flickr_combined.py:216
↓ 1 callersMethodget_img_ids
Get all img ids. Returns: ids (int array): integer array of image ids
datasets/lvis.py:114
↓ 1 callersMethodget_img_ref_data
get a batch with one image and all refer data on that image
datasets/phrasecut_utils/refvg_loader.py:112
↓ 1 callersFunctionget_rank
Returns: The rank of the current process within the global process group.
util/dist.py:169
↓ 1 callersFunctionget_sentence_data
Parses a sentence file from the Flickr30K Entities dataset input: filename - full file path to the sentence file to parse output:
scripts/pre-training/flickr_combined.py:78
↓ 1 callersFunctionget_sentence_data
Parses a sentence file from the Flickr30K Entities dataset input: filename - full file path to the sentence file to parse output:
datasets/flickr_eval.py:20
↓ 1 callersFunctionget_size
(image_size, size, max_size=None)
datasets/transforms.py:129
↓ 1 callersFunctionget_size_with_aspect_ratio
(image_size, size, max_size=None)
datasets/transforms.py:109
↓ 1 callersMethodget_subset
(self, image_id, phrase_structure, gt_boxes, gt_relative_size)
datasets/phrasecut_utils/subset.py:124
↓ 1 callersMethodget_task_subset
(self, img_id, task_id)
datasets/phrasecut_utils/refvg_loader.py:90
↓ 1 callersMethodget_unique
(self)
scripts/clevr/clevr_to_coco.py:271
↓ 1 callersMethodget_unique
(self)
scripts/clevr/refclevr_to_coco.py:299
↓ 1 callersFunctionhandle_json
(jsonfile)
yourefit/deal_keypoint.py:71
↓ 1 callersFunctionhflip
(image, target)
datasets/transforms.py:76
↓ 1 callersFunctioniou_boxes
(boxes1, boxes2, w=0, h=0, xywh=True, ioubp=False, iandu=False)
datasets/phrasecut_utils/iou.py:32
↓ 1 callersFunctioniou_polygons_masks
(ps, masks, ioubp=False, iandu=False, gt_size=False)
datasets/phrasecut_utils/iou.py:151
↓ 1 callersMethodis_color
(self, color)
scripts/clevr/clevr_to_coco.py:189
↓ 1 callersMethodis_color
(self, color)
scripts/clevr/refclevr_to_coco.py:217
↓ 1 callersFunctionis_main_process
Return true if the current process is the main one
util/dist.py:205
↓ 1 callersMethodis_material
(self, material)
scripts/clevr/clevr_to_coco.py:192
↓ 1 callersMethodis_material
(self, material)
scripts/clevr/refclevr_to_coco.py:220
↓ 1 callersMethodis_same
(self, other)
scripts/clevr/clevr_to_coco.py:198
↓ 1 callersMethodis_shape
(self, shape)
scripts/clevr/clevr_to_coco.py:195
↓ 1 callersMethodis_shape
(self, shape)
scripts/clevr/refclevr_to_coco.py:223
↓ 1 callersMethodis_size
(self, size)
scripts/clevr/clevr_to_coco.py:186
↓ 1 callersMethodis_size
(self, size)
scripts/clevr/refclevr_to_coco.py:214
↓ 1 callersMethodlimit_dets_per_image
(self, anns, max_dets)
datasets/lvis_eval.py:112
↓ 1 callersMethodload_cats
Load categories with the specified ids. If ids=None load all categories. Args: ids (int array): integer array of category
datasets/lvis.py:138
↓ 1 callersFunctionload_templates
Loads the CLEVR templates from disk
scripts/clevr/refclevr_to_coco.py:178
↓ 1 callersFunctionlocal_get_args_parser
()
scripts/eval_clevr.py:31
↓ 1 callersFunctionmain
(args)
main_ref.py:319
↓ 1 callersFunctionmain
()
run_with_submitit_gqa_eval.py:126
↓ 1 callersFunctionmain
()
run_with_submitit_lvis_eval.py:126
↓ 1 callersFunctionmain
()
run_with_submitit.py:127
↓ 1 callersFunctionmain
(args)
main.py:279
↓ 1 callersFunctionmain
(args)
demo.py:352
↓ 1 callersFunctionmain
(args)
scripts/eval_gqa.py:39
↓ 1 callersFunctionmain
(args)
scripts/eval_clevr.py:41
↓ 1 callersFunctionmain
(args)
scripts/eval_lvis.py:39
↓ 1 callersFunctionmain
(args)
scripts/clevr/clevr_to_coco_test.py:860
↓ 1 callersFunctionmain
(args)
scripts/clevr/clevr_to_coco.py:856
↓ 1 callersFunctionmain
(args)
scripts/clevr/refclevr_to_coco.py:932
↓ 1 callersFunctionmain
(args)
scripts/pre-training/gqa_combined_val.py:203
↓ 1 callersFunctionmain
(args)
scripts/pre-training/refexp_combined_train.py:108
← previousnext →201–300 of 656, ranked by callers