Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tencent/FaceDetection-DSFD
/ functions
Functions
174 in github.com/Tencent/FaceDetection-DSFD
⨍
Functions
174
◇
Types & classes
47
↓ 12 callers
Function
detect_face
(image, shrink)
widerface_val.py:49
↓ 10 callers
Function
infer
(net , img , transform , thresh , cuda , shrink)
demo.py:64
↓ 5 callers
Method
init_priors
(self ,cfg , min_size=cfg['min_sizes'], max_size=cfg['max_sizes'])
face_ssd.py:189
↓ 5 callers
Method
mio_module
(self, each_mmbox, len_conf)
face_ssd.py:391
↓ 5 callers
Method
part_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 callers
Method
_make_layer
(self, block, planes, blocks, stride=1)
model/resnet.py:128
↓ 4 callers
Function
decode
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 callers
Method
__init__
(self, block, layers, num_classes=1000)
model/resnet.py:105
↓ 3 callers
Method
_make_layer
(self, block, planes, blocks, stride=1)
model/detnet_backbone.py:141
↓ 3 callers
Method
_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 callers
Function
bbox_vote
(det)
widerface_val.py:172
↓ 3 callers
Function
build_ssd
(phase, size=640, num_classes=2)
face_ssd.py:550
↓ 3 callers
Function
encode
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 callers
Function
jaccard
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 callers
Method
__init__
(self, channel_size)
face_ssd.py:32
↓ 2 callers
Method
__init__
(self, block, layers, num_classes=1000)
model/detnet_backbone.py:114
↓ 2 callers
Method
_make_new_layer
(self, planes, blocks)
model/detnet_backbone.py:161
↓ 2 callers
Method
_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 callers
Function
center_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 callers
Function
conv3x3
3x3 convolution with padding
model/resnet.py:27
↓ 2 callers
Function
jaccard_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 callers
Function
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:128
↓ 2 callers
Function
point_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 callers
Function
sfd_match
S3FD: Single Shot Scale-invariant Face Detector
layers/box_utils.py:181
↓ 1 callers
Method
_PyramidRoI_Feat
roi pool on pyramid feature maps
model/fpn.py:108
↓ 1 callers
Method
__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 callers
Method
__len__
(self)
data/coco.py:115
↓ 1 callers
Method
_head_to_tail
(self, pool5)
model/resnet.py:325
↓ 1 callers
Method
_init_modules
(self)
model/resnet.py:226
↓ 1 callers
Method
_init_weights
(self)
model/fpn.py:46
↓ 1 callers
Method
_load_widerface
(self)
data/widerface.py:157
↓ 1 callers
Function
add_extras
(extras_cfg, i, batch_norm=False)
face_ssd.py:449
↓ 1 callers
Function
arm_multibox
(output_channels, mbox_cfg, num_classes)
face_ssd.py:481
↓ 1 callers
Function
base_transform
(image, size, mean)
data/__init__.py:37
↓ 1 callers
Function
detnet59
Constructs a ResNet-50 model. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet
model/detnet_backbone.py:210
↓ 1 callers
Function
flip_test
(image, shrink)
fddb_test.py:58
↓ 1 callers
Function
flip_test
(image, shrink)
widerface_val.py:159
↓ 1 callers
Method
forward
(self)
layers/functions/prior_box.py:31
↓ 1 callers
Function
get_label_map
(label_file)
data/coco.py:37
↓ 1 callers
Function
infer_flip
(net , img , transform , thresh , cuda , shrink)
demo.py:95
↓ 1 callers
Function
intersect
(box_a, box_b)
utils/augmentations.py:19
↓ 1 callers
Function
intersect
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 callers
Function
log_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 callers
Function
multi_scale_test
(image, max_im_shrink)
widerface_val.py:98
↓ 1 callers
Function
multi_scale_test_pyramid
(image, max_shrink)
widerface_val.py:131
↓ 1 callers
Function
multibox
(output_channels, mbox_cfg, num_classes)
face_ssd.py:464
↓ 1 callers
Function
nms
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 callers
Function
pa_multibox
(output_channels, mbox_cfg, num_classes)
face_ssd.py:505
↓ 1 callers
Method
pull_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 callers
Method
pull_event
(self, index)
data/widerface.py:273
↓ 1 callers
Method
pull_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 callers
Method
pull_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 callers
Method
pull_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 callers
Method
pull_item
(self, index)
data/widerface.py:203
↓ 1 callers
Method
pull_item
Args: index (int): Index Returns: tuple: Tuple (image, target, height, width). target is t
data/coco.py:118
↓ 1 callers
Method
pull_item
(self, index)
data/voc0712.py:128
↓ 1 callers
Function
refine_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 callers
Method
reset_parameters
(self)
layers/modules/l2norm.py:18
↓ 1 callers
Function
resnet101
Constructs a ResNet-101 model. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet
model/resnet.py:196
↓ 1 callers
Function
test_base_transform
(image, mean)
data/__init__.py:53
↓ 1 callers
Function
test_fddbface
()
fddb_test.py:81
↓ 1 callers
Function
test_oneimage
()
demo.py:166
↓ 1 callers
Function
test_widerface
()
widerface_val.py:275
↓ 1 callers
Function
vgg
(vgg_cfg, i, batch_norm=False)
face_ssd.py:426
↓ 1 callers
Function
vis_detections
Draw detected bounding boxes.
demo.py:133
↓ 1 callers
Function
write_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