MCPcopy Create free account

hub / github.com/damo-cv/MogFace / functions

Functions534 in github.com/damo-cv/MogFace

Method__init__
(self)
data/data_feed.py:76
Method__init__
(self, data_aug_settings, img_mean=[104., 117., 123.], img_std=[1., 1., 1.], normalize_pixel=False, use_rgb=Fa
data/preprocess.py:19
Method__init__
(self, phase='test', base_data_path = './dataset', img_inf
data/datasets_utils/widerface.py:25
Method__init__
(self, phase='training', debug_img_dir='./debug_img_dir', base
data/datasets_utils/widerface.py:94
Method__init__
Creates the matcher Params: cost_class: This is the relative weight of the classification error in the matching cost
data/anchors_opr/matcher.py:22
Method__init__
(self, rpn_positive_overlap=0.35, \ rpn_negative_overlap=0.35, \ gt_match_ma
data/anchors_opr/anchor_target.py:15
Method__init__
(self, scale_list=[1.], \ aspect_ratio_list=[1.0], \ stride_list=[4,8,16,32,
data/anchors_opr/generate_anchors.py:20
Method__iter__
(self)
data/datasets_utils/widerface.py:42
Method__len__
(self)
data/data_feed.py:44
Method__len__
(self)
data/datasets_utils/widerface.py:64
Method__len__
(self)
data/datasets_utils/widerface.py:148
Method__missing__
(self, key)
core/config/schema.py:89
Method__next__
return img, img_name(not abs_path), dir_name(not abs_path) e.g. img_name: []
data/datasets_utils/widerface.py:45
Function__pyx_f_5numpy_PyArray_MultiIterNew1
utils/bbox/bbox.c:2407
Function__pyx_f_5numpy_PyArray_MultiIterNew1
utils/nms/cython_nms.c:4608
Function__pyx_f_5numpy_PyArray_MultiIterNew2
utils/bbox/bbox.c:2457
Function__pyx_f_5numpy_PyArray_MultiIterNew2
utils/nms/cython_nms.c:4658
Function__pyx_f_5numpy_PyArray_MultiIterNew3
utils/bbox/bbox.c:2507
Function__pyx_f_5numpy_PyArray_MultiIterNew3
utils/nms/cython_nms.c:4708
Function__pyx_f_5numpy_PyArray_MultiIterNew4
utils/bbox/bbox.c:2557
Function__pyx_f_5numpy_PyArray_MultiIterNew4
utils/nms/cython_nms.c:4758
Function__pyx_f_5numpy_PyArray_MultiIterNew5
utils/bbox/bbox.c:2607
Function__pyx_f_5numpy_PyArray_MultiIterNew5
utils/nms/cython_nms.c:4808
Function__pyx_f_5numpy_PyDataType_SHAPE
utils/bbox/bbox.c:2657
Function__pyx_f_5numpy_PyDataType_SHAPE
utils/nms/cython_nms.c:4858
Function__pyx_f_5numpy_get_array_base
utils/bbox/bbox.c:2773
Function__pyx_f_5numpy_get_array_base
utils/nms/cython_nms.c:4974
Function__pyx_f_5numpy_import_array
utils/bbox/bbox.c:2854
Function__pyx_f_5numpy_import_array
utils/nms/cython_nms.c:5055
Function__pyx_f_5numpy_import_ufunc
utils/bbox/bbox.c:3118
Function__pyx_f_5numpy_import_ufunc
utils/nms/cython_nms.c:5319
Function__pyx_f_5numpy_import_umath
utils/bbox/bbox.c:2986
Function__pyx_f_5numpy_import_umath
utils/nms/cython_nms.c:5187
Function__pyx_f_5numpy_set_array_base
utils/bbox/bbox.c:2731
Function__pyx_f_5numpy_set_array_base
utils/nms/cython_nms.c:4932
Function__pyx_pw_10cython_nms_1nms
utils/nms/cython_nms.c:2039
Function__pyx_pw_10cython_nms_3soft_nms
utils/nms/cython_nms.c:2868
Function__pyx_pw_4bbox_1bbox_overlaps
utils/bbox/bbox.c:1737
Function__pyx_pymod_create
utils/bbox/bbox.c:3540
Function__pyx_pymod_create
utils/nms/cython_nms.c:5876
Method__setitem__
(self, key, value)
core/config/schema.py:80
Functionbatch_bbox_overlap
rois [batch_size, num_anchor, 5[batch_idx. decoded_proposal]] gt_boxes [batch_size, num_anchor, 5[loc, labels]] use for proposal_target_l
evaluation/box_utils_revised_1.py:72
Functionbox_cxcywh_to_xyxy
(x)
utils/box_ops.py:9
Functionbox_xyxy_to_cxcywh
(x)
utils/box_ops.py:16
Functionbuild_matcher
(args)
data/anchors_opr/matcher.py:91
Functioncenter_size
Convert prior_boxes to (cx, cy, w, h) representation for comparison to center-size form ground truth data. Args: boxes: (tensor) poin
evaluation/box_utils_revised_1.py:19
Functioncompute_center_distance
gt_bboxes: n * [x0, y0, x1, y1] transformed_anchors: [c_x, cy, w, h]
data/anchors_opr/anchor_utils.py:64
Functioncompute_iou
(box_a, box_b)
evaluation/evaluate_ap50.py:22
Functiondas_crop_img
(img, bbox_labels, sampled_bboxes, settings)
data/transform/image_util.py:222
Functiondas_sample_bbox
img: arr bgr h,w,3 bbox_labels: arr [[xmin, ymin, xmax, ymax, label]] return: sampled_bbox (list), img, bbox_labels, for img and bbox_lab
data/transform/image_util.py:100
Functiondecode
loc: torch.Tensor anchors: 2-d, torch.Tensor (cx, cy, w, h) boxes: 2-d, torch.Tensor (x0, y0, x1, y1)
data/anchors_opr/anchor_utils.py:100
Functiondecode
Decode locations from predictions using priors to undo the encoding we did for offset regression at train time. Args: loc (tensor): lo
evaluation/box_utils_revised_1.py:637
Functiondetect_face_with_net
(net, image, shrink, val_set, gpu=None)
test_single.py:41
Functiondistort_image
align
data/transform/image_util.py:80
Functiondraw_bbox
Draw one bounding box on image. Args: image (PIL.Image): a PIL Image object. bbox (np.array|list|tuple): (xmin, ymin, xmax, y
tools/visualize.py:25
Functiondraw_bboxes
Draw bounding boxes on image. Args: img (np.ndarray or string): input image or image path. bboxes (np.array): bounding b
tools/visualize.py:42
Functiondump_value
(value)
core/workspace.py:41
Functionencode
anchors: np.array (cx, cy, w, h) anchor_matched_gt np.array (x0, y0, x1, y1) ret: np.array (delta(cx) / anchors_w, delta(cy) / anchors_h,
data/anchors_opr/anchor_utils.py:86
Functionencode_opr
anchors: Tensor (cx, cy, w, h) anchor_matched_gt Tensor (x0, y0, x1, y1) ret: Tensor (delta(cx) / anchors_w, delta(cy) / anchors_h, log(g
data/anchors_opr/anchor_utils.py:19
Functioneval_map
(pred, gt)
evaluation/eval_map.py:274
Functionfilter_face
(img, bbox_labels, settings)
data/transform/image_util.py:350
Methodfind_default_keys
(self)
core/config/schema.py:121
Methodflush
(self)
utils/logger.py:19
Methodforward
(self, conf, fp_label)
modelling/criterion.py:25
Methodforward
(self, conf, loc, bbox_targets)
modelling/criterion.py:49
Methodforward
(self, conf, loc, bbox_targets, anchors, bbox_labels_list)
modelling/criterion.py:87
Methodforward
(self, x)
modelling/backbones/resnet.py:65
Methodforward
(self, x)
modelling/backbones/resnet.py:104
Methodforward
(self, x)
modelling/backbones/resnet.py:204
Methodforward
(self, feature_list)
modelling/architectures/widerface_basenet.py:35
Methodforward
(self, x)
modelling/architectures/widerface_basenet.py:67
Methodforward
(self, x)
modelling/architectures/widerface_basenet.py:105
Methodforward
(self,up,main,attention)
modelling/neck_modules/bffpn.py:19
Methodforward
(self, layer_list)
modelling/neck_modules/bffpn.py:125
Methodforward
(self,up,main)
modelling/neck_modules/fpn.py:19
Methodforward
(self, feature_list)
modelling/neck_modules/fpn.py:78
Methodforward
(self, feature_list)
modelling/neck_modules/fpn.py:150
Methodforward
(self, inputs)
modelling/neck_modules/rffpn.py:335
Methodforward
(self, x)
modelling/pred_modules/pred_net.py:28
Methodforward
(self, x)
modelling/pred_modules/pred_net.py:49
Methodforward
(self, x)
modelling/pred_modules/pred_net.py:77
Methodforward
(self, x)
modelling/pred_modules/pred_net.py:101
Methodforward
(self, pyramid_feature_list, fp_context_fts, mask_fp_context_fts)
modelling/pred_modules/pred_net.py:144
Methodforward
(self, pyramid_feature_list, targets=None)
modelling/pred_modules/pred_net.py:223
Methodforward
(self, pyramid_feature_list)
modelling/pred_modules/pred_net.py:369
Methodforward
(self, pyramid_feature_list, dsfd_ft_list=None)
modelling/pred_modules/pred_net.py:455
Methodforward
Performs the matching Params: outputs: This is a dict that contains at least these entries: "pred_logits": Tens
data/anchors_opr/matcher.py:37
Functiongen_soft_link_dir
(dir_name_list)
test_single.py:252
Functiongen_soft_link_dir
(dir_name_list)
test_multi.py:293
Functiongeneralized_box_iou
Generalized IoU from https://giou.stanford.edu/ The boxes should be in [x0, y0, x1, y1] format Returns a [N, M] pairwise matrix, where
utils/box_ops.py:40
Functionget_gt_boxes_from_txt
(gt_path, cache_dir)
evaluation/evaluate_ap50.py:64
Functionget_gt_boxes_from_txt
(gt_path, cache_dir)
evaluation/eval_map.py:37
Functionget_k_center_anchor
gt_bbox: [x0, x1, y0, y1] transformed_anchors: [c_x, cy, w, h]
data/anchors_opr/anchor_utils.py:41
Functionget_registered_modules
()
core/workspace.py:101
Methodhas_default
(self)
core/config/schema.py:68
Functionig_outlier_negative_anchor
gt_bbox: [x0, x1, y0, y1] transformed_anchors: [c_x, cy, w, h]
data/anchors_opr/anchor_utils.py:51
Functionig_outlier_negative_anchor_2
gt_bboxes: n * [x0, x1, y0, y1] transformed_anchors: [c_x, cy, w, h]
data/anchors_opr/anchor_utils.py:75
Methodinit_weights
(self)
modelling/neck_modules/rffpn.py:324
Functionlog_sum_exp
Utility function for computing log_sum_exp while determining This will be used to determine unaveraged confidence loss across all examples in
evaluation/box_utils_revised_1.py:662
Methodmandatory
(self)
core/config/schema.py:127
← previousnext →401–500 of 534, ranked by callers