MCPcopy Create free account

hub / github.com/Jingkang50/OpenPSG / functions

Functions484 in github.com/Jingkang50/OpenPSG

↓ 1 callersMethod_get_bboxes_single
(self, all_masks, all_cls_score,
openpsg/models/relation_heads/psgformer_head.py:879
↓ 1 callersMethod_init_cocoapi
(self)
openpsg/datasets/sg.py:118
↓ 1 callersMethod_init_cocoapi
(self)
openpsg/datasets/psg.py:129
↓ 1 callersMethod_init_layers
Initialize layers of the transformer head.
openpsg/models/relation_heads/detr4seg_head.py:149
↓ 1 callersMethod_init_layers
Initialize layers of the transformer head.
openpsg/models/relation_heads/psgtr_head.py:217
↓ 1 callersMethod_init_layers
Initialize layers of the transformer head.
openpsg/models/relation_heads/psgformer_head.py:190
↓ 1 callersMethod_load_rels
(self, results)
openpsg/datasets/pipelines/loading.py:52
↓ 1 callersMethod_load_rels
(self, results)
openpsg/datasets/pipelines/loading.py:99
↓ 1 callersFunction_topdown_hook
(root, output_vector, input_vector, vocab, reduce='avg')
openpsg/models/relation_heads/approaches/relation_util.py:573
↓ 1 callersMethodadd_child
(self, child)
openpsg/models/relation_heads/approaches/vctree_util.py:280
↓ 1 callersMethodadd_left_child
(self, child)
openpsg/models/relation_heads/approaches/vctree_util.py:159
↓ 1 callersFunctionadd_mim_extension
Add extra files that are required to support MIM into the package. These files will be added by creating a symlink to the originals if the pac
setup.py:131
↓ 1 callersMethodadd_right_child
(self, child)
openpsg/models/relation_heads/approaches/vctree_util.py:167
↓ 1 callersFunctionarNode_to_biNode
(arNode, biNode)
openpsg/models/relation_heads/approaches/vctree_util.py:125
↓ 1 callersFunctionarTree_to_biTree
(arTree)
openpsg/models/relation_heads/approaches/vctree_util.py:118
↓ 1 callersFunctionarbForest_to_biForest
forest: a set of arbitrary Tree output: a set of corresponding binary Tree
openpsg/models/relation_heads/approaches/vctree_util.py:105
↓ 1 callersFunctionbbox_area
(bbox)
openpsg/models/relation_heads/approaches/vctree_util.py:428
↓ 1 callersFunctionbbox_overlap
(box_a, box_b)
openpsg/models/relation_heads/approaches/vctree_util.py:416
↓ 1 callersMethodcalculate_mean_recall
(self, mode)
openpsg/evaluation/sgg_metrics.py:836
↓ 1 callersMethodcollect_mean_recall_items
(self, global_container, local_container, mode)
openpsg/evaluation/sgg_metrics.py:812
↓ 1 callersFunctioncompute_recall
(gt_list, pred_list)
ce7454/grade.py:7
↓ 1 callersFunctioncosine_annealing
(step, total_steps, lr_max, lr_min)
ce7454/trainer.py:9
↓ 1 callersMethoddepth
(self)
openpsg/models/relation_heads/approaches/vctree_util.py:358
↓ 1 callersMethoddetector_simple_test_det_bbox
Run the detector in test mode, given gt_bboxes, return the labels, dists Return: det_labels: 1 based.
openpsg/models/frameworks/sg_rcnn.py:263
↓ 1 callersMethoddetector_simple_test_det_bbox
Run the detector in test mode, given gt_bboxes, return the labels, dists Return: det_labels: 1 based.
openpsg/models/frameworks/sg_panoptic_fpn.py:459
↓ 1 callersMethoddetector_simple_test_det_bbox_mask
Run the detector in test mode, return the detected boxes, labels, dists, and masks.
openpsg/models/frameworks/sg_rcnn.py:292
↓ 1 callersMethoddraw_and_connect_keypoints
Draws keypoints of an instance and follows the rules for keypoint connections to draw lines between appropriate keypoints. This follo
openpsg/utils/vis_tools/detectron_viz.py:508
↓ 1 callersMethoddraw_box
Args: box_coord (tuple): a tuple containing x0, y0, x1, y1 coordinates, where x0 and y0 are the coordinates of th
openpsg/utils/vis_tools/detectron_viz.py:626
↓ 1 callersMethoddraw_circle
Args: circle_coord (list(int) or tuple(int)): contains the x and y coordinates of the center of the circle.
openpsg/utils/vis_tools/detectron_viz.py:719
↓ 1 callersMethoddraw_dataset_dict
Draw annotations/segmentaions in Detectron2 Dataset format. Args: dic (dict): annotation/segmentation data of one image, in Detec
openpsg/utils/vis_tools/detectron_viz.py:244
↓ 1 callersMethoddraw_panoptic_seg
Draw panoptic prediction annotations or results. Args: panoptic_seg (Tensor): of shape (height, width) where the values are ids f
openpsg/utils/vis_tools/detectron_viz.py:169
↓ 1 callersMethoddraw_rotated_box_with_label
Draw a rotated box with label on its top-left corner. Args: rotated_box (tuple): a tuple containing (cnt_x, cnt_y, w, h, angle),
openpsg/utils/vis_tools/detectron_viz.py:658
↓ 1 callersMethoddraw_sem_seg
Draw semantic segmentation predictions/labels. Args: sem_seg (Tensor or ndarray): the segmentation of shape (H, W).
openpsg/utils/vis_tools/detectron_viz.py:132
↓ 1 callersMethodedge_ctx
Object context and object classification. :param obj_feats: [num_obj, img_dim + object embedding0 dim] :return: edge_ctx: [num_obj, #
openpsg/models/relation_heads/approaches/vctree.py:268
↓ 1 callersMethodedge_ctx
Object context and object classification. :param obj_feats: [num_obj, img_dim + object embedding0 dim] :return: edge_ctx: [num_obj, #
openpsg/models/relation_heads/approaches/motif.py:402
↓ 1 callersFunctionenumerate_by_image
(im_inds)
openpsg/utils/utils.py:16
↓ 1 callersFunctionevaluate_relation_of_one_image
Returns: pred_to_gt: Matching from predicate to GT pred_5ples: the predicted (id0, id1, cls0, cls1, rel) pred_triplet_sco
openpsg/evaluation/sgg_eval.py:185
↓ 1 callersMethodfilter_AB_rels
(self, det_result)
openpsg/models/relation_heads/approaches/relation_util.py:199
↓ 1 callersMethodfilter_duplicate_triplets
(self, det_result, vocab_objects, vocab_predicates)
openpsg/models/relation_heads/approaches/relation_util.py:275
↓ 1 callersMethodfilter_nonoverlap_rels
(self, det_result, must_overlap_predicates=None)
openpsg/models/relation_heads/approaches/relation_util.py:245
↓ 1 callersMethodfilter_rels_by_duplicated_names
(self, det_result)
openpsg/models/relation_heads/approaches/relation_util.py:222
↓ 1 callersMethodfilter_rels_by_num
(self, det_result, num)
openpsg/models/relation_heads/approaches/relation_util.py:308
↓ 1 callersMethodfiltered_rels_by_mincover
(self, det_result)
openpsg/models/relation_heads/approaches/relation_util.py:320
↓ 1 callersFunctionformat_result_dict
Function: This is used for getting the results in both float data form and text form so that they can be logged into tensorboard
openpsg/evaluation/sgg_eval.py:151
↓ 1 callersMethodforward
Forward function. Args: feats (tuple[Tensor]): Features from the upstream network, each is a 4D-tensor.
openpsg/models/relation_heads/detr4seg_head.py:200
↓ 1 callersMethodforward
(self, feats, img_metas)
openpsg/models/relation_heads/psgtr_head.py:281
↓ 1 callersMethodforward
(self, feats, img_metas, train_mode=False)
openpsg/models/relation_heads/psgformer_head.py:256
↓ 1 callersFunctiongen_packages_items
()
setup.py:113
↓ 1 callersFunctiongen_tree
Step 1: Divide all nodes into left child container and right child container Step 2: From left child container and right child container, sele
openpsg/models/relation_heads/approaches/vctree_util.py:63
↓ 1 callersFunctiongenerate_forest
generate a list of trees that covers all the objects in a batch det_result: pair_scores: [obj_num, obj_num] output: list of trees, ea
openpsg/models/relation_heads/approaches/vctree_util.py:15
↓ 1 callersMethodgenerate_print_string
(self, mode)
openpsg/evaluation/sgg_metrics.py:116
↓ 1 callersMethodgenerate_print_string
(self, mode)
openpsg/evaluation/sgg_metrics.py:540
↓ 1 callersMethodgenerate_print_string
(self, mode, predicate_freq=None)
openpsg/evaluation/sgg_metrics.py:790
↓ 1 callersMethodget_ann_info
(self, idx)
openpsg/datasets/sg.py:162
↓ 1 callersMethodget_ann_info
(self, idx)
openpsg/datasets/psg.py:190
↓ 1 callersMethodget_attention
(self, obj_feat, union_feat, rel_pair_idx)
openpsg/models/relation_heads/approaches/dmp.py:89
↓ 1 callersMethodget_bboxes
NOTE:Transform network outputs for a batch into psg predictions, but still use the name of get_bboxes for now. Args: all_
openpsg/models/relation_heads/detr4seg_head.py:580
↓ 1 callersMethodget_bboxes
(self, cls_scores, bbox_preds, img_metas, rescale=False)
openpsg/models/relation_heads/psgformer_head.py:844
↓ 1 callersMethodget_freq_matrix
(self)
openpsg/datasets/psg.py:420
↓ 1 callersFunctionget_overlap_info
(infostruct)
openpsg/models/relation_heads/approaches/vctree_util.py:433
↓ 1 callersFunctionget_size_maps
(size, boxes_int, form='rect')
openpsg/models/relation_heads/approaches/relation_ranker.py:140
↓ 1 callersMethodget_statistics
(self)
openpsg/datasets/psg.py:406
↓ 1 callersMethodget_targets
(self, cls_scores_list, bbox_preds_list, mask_pred
openpsg/models/relation_heads/detr4seg_head.py:447
↓ 1 callersMethodget_targets
(self, s_cls_scores_list, o_cls_scores_list, r_cls
openpsg/models/relation_heads/psgtr_head.py:598
↓ 1 callersMethodget_targets
(self, subject_scores_list, object_scores_list, cl
openpsg/models/relation_heads/psgformer_head.py:594
↓ 1 callersMethodget_total_child
(self)
openpsg/models/relation_heads/approaches/vctree_util.py:175
↓ 1 callersFunctionget_transforms
(stage: str)
ce7454/dataset.py:23
↓ 1 callersFunctionget_version
()
setup.py:25
↓ 1 callersFunctionget_weak_key_rel_labels
(det_result, gt_result, comb_factor=0.5,
openpsg/models/relation_heads/approaches/relation_ranker.py:172
↓ 1 callersFunctioninit_gqa_dataset
()
openpsg/utils/vis_tools/datasets.py:102
↓ 1 callersFunctioninit_vg_dataset
()
openpsg/utils/vis_tools/datasets.py:53
↓ 1 callersFunctioninit_vrr_vg_dataset
()
openpsg/utils/vis_tools/datasets.py:79
↓ 1 callersMethodinit_weights
(self)
openpsg/models/relation_heads/gps_head.py:41
↓ 1 callersMethodinit_weights
(self)
openpsg/models/relation_heads/approaches/motif.py:100
↓ 1 callersFunctioninterpolate
Equivalent to nn.functional.interpolate, but with support for empty batch sizes. This will eventually be supported natively by PyTorch, and t
openpsg/models/relation_heads/detr4seg_head.py:910
↓ 1 callersFunctioninterpolate
Equivalent to nn.functional.interpolate, but with support for empty batch sizes. This will eventually be supported natively by PyTorch, and t
openpsg/models/relation_heads/psgformer_head.py:1270
↓ 1 callersFunctionload_results
(loadpath)
tools/grade.py:61
↓ 1 callersFunctionload_word_vectors
Load word vectors from a path, trying .pt, .txt, and .zip extensions.
openpsg/models/relation_heads/approaches/motif_util.py:187
↓ 1 callersMethodloss
Loss function. Only outputs from the last feature level are used for computing losses by default. Args: all_cls_
openpsg/models/relation_heads/detr4seg_head.py:255
↓ 1 callersMethodloss
(self, all_cls_scores_list, all_bbox_preds_list, gt_rels_list,
openpsg/models/relation_heads/psgformer_head.py:358
↓ 1 callersMethodlstm_equations
Does the hairy LSTM math. :param timestep_input: :param previous_state: :param previous_memory: :param dropout_mask:
openpsg/models/relation_heads/approaches/motif.py:117
↓ 1 callersFunctionmain
()
tools/train.py:94
↓ 1 callersFunctionmain
()
tools/test.py:113
↓ 1 callersFunctionmain
()
tools/grade.py:126
↓ 1 callersFunctionmain
()
tools/vis_results.py:55
↓ 1 callersFunctionmain
()
ce7454/grade.py:33
↓ 1 callersMethodmap_roi_levels
Map rois to corresponding feature levels by scales. - scale < finest_scale * 2: level 0 - finest_scale * 2 <= scale < finest_scale *
openpsg/models/roi_extractors/visual_spatial.py:208
↓ 1 callersFunctionmatmul
(tensor3d, mat)
openpsg/models/relation_heads/approaches/dmp.py:16
↓ 1 callersMethodmax_depth
(self)
openpsg/models/relation_heads/approaches/vctree_util.py:194
↓ 1 callersFunctionmulticlass_nms_alt
NMS for multi-class bboxes. Args: multi_bboxes (Tensor): shape (n, #class*4) or (n, 4) multi_scores (Tensor): shape (n, #class),
openpsg/utils/utils.py:75
↓ 1 callersFunctionmulticlass_nms_for_cluster
NMS for multi-class bboxes. Args: multi_bboxes (np.array): shape (n, #class*4) or (n, 4) multi_scores (np.array): shape (n, ),
openpsg/models/relation_heads/approaches/relation_util.py:624
↓ 1 callersMethodnode_backward
(self, feat_inp, root_c, root_h, dropout_mask)
openpsg/models/relation_heads/approaches/treelstm_util.py:251
↓ 1 callersMethodnode_forward
(self, feat_inp, left_c, right_c, left_h, right_h, dropout_mask)
openpsg/models/relation_heads/approaches/treelstm_util.py:130
↓ 1 callersMethodobj_ctx
Object context and object classification. :param num_objs: :param obj_feats: [num_obj, img_dim + object embedding0 dim] :para
openpsg/models/relation_heads/approaches/vctree.py:215
↓ 1 callersMethodobj_ctx
Object context and object classification. :param obj_feats: [num_obj, img_dim + object embedding0 dim] :param obj_labels: [num_obj] t
openpsg/models/relation_heads/approaches/motif.py:350
↓ 1 callersMethodoverlay_rotated_instances
Args: boxes (ndarray): an Nx5 numpy array of (x_center, y_center, width, height, angle_degrees) format
openpsg/utils/vis_tools/detectron_viz.py:464
↓ 1 callersFunctionparse_args
()
tools/train.py:22
↓ 1 callersFunctionparse_args
()
tools/test.py:24
↓ 1 callersFunctionparse_args
()
tools/grade.py:117
↓ 1 callersFunctionparse_args
()
tools/vis_results.py:13
← previousnext →101–200 of 484, ranked by callers