MCPcopy Create free account

hub / github.com/Tencent/FaceDetection-DSFD / functions

Functions174 in github.com/Tencent/FaceDetection-DSFD

↓ 12 callersFunctiondetect_face
(image, shrink)
widerface_val.py:49
↓ 10 callersFunctioninfer
(net , img , transform , thresh , cuda , shrink)
demo.py:64
↓ 5 callersMethodinit_priors
(self ,cfg , min_size=cfg['min_sizes'], max_size=cfg['max_sizes'])
face_ssd.py:189
↓ 5 callersMethodmio_module
(self, each_mmbox, len_conf)
face_ssd.py:391
↓ 5 callersMethodpart_forward
Multibox Loss Args: predictions (tuple): A tuple containing loc preds, conf preds, and prior boxes from SSD net.
layers/modules/multibox_loss.py:94
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1)
model/resnet.py:128
↓ 4 callersFunctiondecode
Decode locations from predictions using priors to undo the encoding we did for offset regression at train time. Args: loc (tensor): lo
layers/box_utils.py:273
↓ 3 callersMethod__init__
(self, block, layers, num_classes=1000)
model/resnet.py:105
↓ 3 callersMethod_make_layer
(self, block, planes, blocks, stride=1)
model/detnet_backbone.py:141
↓ 3 callersMethod_upsample_product
Upsample and add two feature maps. Args: x: (Variable) top feature map to be upsampled. y: (Variable) lateral feature map.
face_ssd.py:405
↓ 3 callersFunctionbbox_vote
(det)
widerface_val.py:172
↓ 3 callersFunctionbuild_ssd
(phase, size=640, num_classes=2)
face_ssd.py:550
↓ 3 callersFunctionencode
Encode the variances from the priorbox layers into the ground truth boxes we have matched (based on jaccard overlap) with the prior boxes. Arg
layers/box_utils.py:248
↓ 3 callersFunctionjaccard
Compute the jaccard overlap of two sets of boxes. The jaccard overlap is simply the intersection over union of two boxes. Here we operate on
layers/box_utils.py:56
↓ 2 callersMethod__init__
(self, channel_size)
face_ssd.py:32
↓ 2 callersMethod__init__
(self, block, layers, num_classes=1000)
model/detnet_backbone.py:114
↓ 2 callersMethod_make_new_layer
(self, planes, blocks)
model/detnet_backbone.py:161
↓ 2 callersMethod_upsample_add
Upsample and add two feature maps. Args: x: (Variable) top feature map to be upsampled. y: (Variable) lateral feature map.
model/fpn.py:89
↓ 2 callersFunctioncenter_size
Convert prior_boxes to (cx, cy, w, h) representation for comparison to center-size form ground truth data. Args: boxes: (tensor) poin
layers/box_utils.py:23
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
model/resnet.py:27
↓ 2 callersFunctionjaccard_numpy
Compute the jaccard overlap of two sets of boxes. The jaccard overlap is simply the intersection over union of two boxes. Args: box_a
utils/augmentations.py:26
↓ 2 callersFunctionmatch
Match each prior box with the ground truth box of the highest jaccard overlap, encode the bounding boxes, then return the matched indices corr
layers/box_utils.py:128
↓ 2 callersFunctionpoint_form
Convert prior_boxes to (xmin, ymin, xmax, ymax) representation for comparison to point form ground truth data. Args: boxes: (tensor)
layers/box_utils.py:11
↓ 2 callersFunctionsfd_match
S3FD: Single Shot Scale-invariant Face Detector
layers/box_utils.py:181
↓ 1 callersMethod_PyramidRoI_Feat
roi pool on pyramid feature maps
model/fpn.py:108
↓ 1 callersMethod__init__
focusing is parameter that can adjust the rate at which easy examples are down-weighted. alpha may be set by inve
layers/modules/multibox_loss.py:209
↓ 1 callersMethod__len__
(self)
data/coco.py:115
↓ 1 callersMethod_head_to_tail
(self, pool5)
model/resnet.py:325
↓ 1 callersMethod_init_modules
(self)
model/resnet.py:226
↓ 1 callersMethod_init_weights
(self)
model/fpn.py:46
↓ 1 callersMethod_load_widerface
(self)
data/widerface.py:157
↓ 1 callersFunctionadd_extras
(extras_cfg, i, batch_norm=False)
face_ssd.py:449
↓ 1 callersFunctionarm_multibox
(output_channels, mbox_cfg, num_classes)
face_ssd.py:481
↓ 1 callersFunctionbase_transform
(image, size, mean)
data/__init__.py:37
↓ 1 callersFunctiondetnet59
Constructs a ResNet-50 model. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet
model/detnet_backbone.py:210
↓ 1 callersFunctionflip_test
(image, shrink)
fddb_test.py:58
↓ 1 callersFunctionflip_test
(image, shrink)
widerface_val.py:159
↓ 1 callersMethodforward
(self)
layers/functions/prior_box.py:31
↓ 1 callersFunctionget_label_map
(label_file)
data/coco.py:37
↓ 1 callersFunctioninfer_flip
(net , img , transform , thresh , cuda , shrink)
demo.py:95
↓ 1 callersFunctionintersect
(box_a, box_b)
utils/augmentations.py:19
↓ 1 callersFunctionintersect
We resize both tensors to [A,B,2] without new malloc: [A,2] -> [A,1,2] -> [A,B,2] [B,2] -> [1,B,2] -> [A,B,2] Then we compute the area of
layers/box_utils.py:35
↓ 1 callersFunctionlog_sum_exp
Utility function for computing log_sum_exp while determining This will be used to determine unaveraged confidence loss across all examples in
layers/box_utils.py:295
↓ 1 callersFunctionmulti_scale_test
(image, max_im_shrink)
widerface_val.py:98
↓ 1 callersFunctionmulti_scale_test_pyramid
(image, max_shrink)
widerface_val.py:131
↓ 1 callersFunctionmultibox
(output_channels, mbox_cfg, num_classes)
face_ssd.py:464
↓ 1 callersFunctionnms
Apply non-maximum suppression at test time to avoid detecting too many overlapping bounding boxes for a given object. Args: boxes: (te
layers/box_utils.py:309
↓ 1 callersFunctionpa_multibox
(output_channels, mbox_cfg, num_classes)
face_ssd.py:505
↓ 1 callersMethodpull_anno
Returns the original annotation of image at index Note: not using self.__getitem__(), as any transformations passed in could mess up
data/coco.py:162
↓ 1 callersMethodpull_event
(self, index)
data/widerface.py:273
↓ 1 callersMethodpull_image
Returns the original image object at index in PIL form Note: not using self.__getitem__(), as any transformations passed in could mes
data/widerface.py:260
↓ 1 callersMethodpull_image
Returns the original image object at index in PIL form Note: not using self.__getitem__(), as any transformations passed in could mes
data/coco.py:147
↓ 1 callersMethodpull_image
Returns the original image object at index in PIL form Note: not using self.__getitem__(), as any transformations passed in could mes
data/voc0712.py:148
↓ 1 callersMethodpull_item
(self, index)
data/widerface.py:203
↓ 1 callersMethodpull_item
Args: index (int): Index Returns: tuple: Tuple (image, target, height, width). target is t
data/coco.py:118
↓ 1 callersMethodpull_item
(self, index)
data/voc0712.py:128
↓ 1 callersFunctionrefine_match
Match each prior box with the ground truth box of the highest jaccard overlap, encode the bounding boxes, then return the matched indices corr
layers/box_utils.py:77
↓ 1 callersMethodreset_parameters
(self)
layers/modules/l2norm.py:18
↓ 1 callersFunctionresnet101
Constructs a ResNet-101 model. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet
model/resnet.py:196
↓ 1 callersFunctiontest_base_transform
(image, mean)
data/__init__.py:53
↓ 1 callersFunctiontest_fddbface
()
fddb_test.py:81
↓ 1 callersFunctiontest_oneimage
()
demo.py:166
↓ 1 callersFunctiontest_widerface
()
widerface_val.py:275
↓ 1 callersFunctionvgg
(vgg_cfg, i, batch_norm=False)
face_ssd.py:426
↓ 1 callersFunctionvis_detections
Draw detected bounding boxes.
demo.py:133
↓ 1 callersFunctionwrite_to_txt
(f, det , event, im_name)
widerface_val.py:209
Method__call__
(self, img, boxes=None, labels=None)
utils/augmentations.py:58
Method__call__
(self, img, boxes=None, labels=None)
utils/augmentations.py:71
Method__call__
(self, image, boxes=None, labels=None)
utils/augmentations.py:76
Method__call__
(self, image, boxes=None, labels=None)
utils/augmentations.py:84
Method__call__
(self, image, boxes=None, labels=None)
utils/augmentations.py:91
Method__call__
(self, image, boxes=None, labels=None)
utils/augmentations.py:102
Method__call__
(self, image, boxes=None, labels=None)
utils/augmentations.py:115
Method__call__
(self, image, boxes=None, labels=None)
utils/augmentations.py:129
Method__call__
(self, image, boxes=None, labels=None)
utils/augmentations.py:141
Method__call__
(self, image, boxes=None, labels=None)
utils/augmentations.py:155
Method__call__
(self, image, boxes=None, labels=None)
utils/augmentations.py:168
Method__call__
(self, image, boxes=None, labels=None)
utils/augmentations.py:186
Method__call__
(self, image, boxes=None, labels=None)
utils/augmentations.py:199
Method__call__
(self, tensor, boxes=None, labels=None)
utils/augmentations.py:207
Method__call__
(self, cvimage, boxes=None, labels=None)
utils/augmentations.py:212
Method__call__
(self, image, boxes=None, labels=None)
utils/augmentations.py:242
Method__call__
(self, image, boxes=None, labels=None)
utils/augmentations.py:341
Method__call__
(self, image, boxes, labels)
utils/augmentations.py:450
Method__call__
(self, image, boxes, classes)
utils/augmentations.py:475
Method__call__
Args: image (Tensor): image tensor to be transformed Return: a tensor with channels swapped according to swap
utils/augmentations.py:495
Method__call__
(self, image, boxes, labels)
utils/augmentations.py:523
Method__call__
(self, im, boxes, labels)
utils/augmentations.py:541
Method__call__
(self, img, boxes, labels)
utils/augmentations.py:665
Method__call__
Arguments: target (annotation) : the target annotation to be made usable will be an ET.Element Returns:
data/widerface.py:45
Method__call__
(self, image, boxes=None, labels=None)
data/__init__.py:49
Method__call__
(self, image, boxes=None, labels=None)
data/__init__.py:66
Method__call__
Args: target (dict): COCO target json annotation as a python dict height (int): height width (int): width
data/coco.py:55
Method__call__
Arguments: target (annotation) : the target annotation to be made usable will be an ET.Element Returns:
data/voc0712.py:55
Method__getitem__
(self, index)
data/widerface.py:196
Method__getitem__
Args: index (int): Index Returns: tuple: Tuple (image, target). target is the object retur
data/coco.py:104
Method__getitem__
(self, index)
data/voc0712.py:120
Method__init__
(self, phase, size, num_classes)
face_ssd.py:66
Method__init__
(self, input_channels, output_channels)
face_ssd.py:491
Method__init__
(self, transforms)
utils/augmentations.py:55
next →1–100 of 174, ranked by callers