DSFD: Dual Shot Face Detector
- Publication
- CVPR 2019Conference
- First submitted to arXiv
- arXiv:1810.10220
Cite this paper · BibTeX
The citation identifies the linked source version. It cites the original paper and its authors.
@misc{objectdetectiondsfd2018,
title = {{DSFD: Dual Shot Face Detector}},
author = {Jian Li and Yabiao Wang and Changan Wang and Ying Tai and Jianjun Qian and Jian Yang and Chengjie Wang and Jilin Li and Feiyue Huang},
year = {2018},
eprint = {1810.10220},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1810.10220}
}
An image that goes into DSFD gets detected twice. First it's detected on six levels of backbone features; then each of those six levels is processed into a new feature map of the same size, and detection runs a second time. Each pass has its own loss, and they're trained together. At inference, the output of the first pass is thrown away entirely, and only the second is kept.
DSFD's full name is Dual Shot Face Detector, and Dual Shot refers to exactly these two shots.
If the first shot is never used, why fire it during training? Its anchors are only half the size of the second shot's, there purely to make the shallow features learn more small faces. That's one of the paper's three designs; the other two are the Feature Enhance Module (FEM), which processes the features into the second shot's input, and a data augmentation that makes face sizes land exactly on anchors.
DSFD is a joint effort by Nanjing University of Science and Technology and Tencent's Youtu Lab. The ResNet-152 version reaches 90.4 on the WIDER FACE Hard validation set, where the same comparison figure has SRN at 90.1 and PyramidBox at 88.9. Once scores are squeezed up around 90, every step forward is only a few tenths, and the ablation tables later on have to be read cell by cell.
Defining the Problem
The Yardstick for Face Detection
A face detector takes in an image and outputs a list of boxes with a confidence score for each. DSFD is trained only on the WIDER FACE training set, then tested on WIDER FACE and FDDB.
WIDER FACE has 32,203 images and 393,703 face boxes from 61 event scenes (parades, ball games, meetings…), split 4:1:5 into training, validation and test. Each subset is further divided into Easy, Medium and Hard groups, depending on whether EdgeBox, a traditional proposal method, can find the face; the harder it is to find, the harder the face. Difficulty is related to face size, but the split isn't made directly by size. The three groups are nested, and Hard contains every face, many of them small faces only a dozen or so pixels wide.
Scoring uses AP. A detection box counts as correct if its IoU (intersection area divided by union area) with a labeled box reaches 0.5. Sort all detections by score from high to low and count down the list, computing precision (how many of the boxes found are real faces) and recall (how many of the real faces were found) at each step; together they trace a PR curve, and the area under it is AP.
The Skeleton Inherited From S3FD and PyramidBox
DSFD is an SSD-style single-stage detector. On several feature maps of the backbone, each position gets an anchor of a predefined size, and the network directly predicts "is this anchor a face" and "where should the box move and how much should it scale," with no region proposal step in between.
The backbone is the same extended VGG16 that S3FD and PyramidBox use, with the classification layers removed and two more groups of convolutions added after it; six layers, conv3_3, conv4_3, conv5_3, conv_fc7, conv6_2 and conv7_2, are taken out for detection. With a 640×640 input, these six layers have strides of 4, 8, 16, 32, 64 and 128, and the feature maps shrink from 160×160 all the way down to 5×5.
S3FD set a rule that an anchor's side is 4 times the stride. The stride-4 layer gets 16-pixel anchors, with adjacent anchor centers 4 pixels apart; the stride-8 layer gets 32 pixels, and so on. On top of this skeleton, PyramidBox added a feature pyramid that starts from a middle layer (LFPN), context anchors for the head and body, and a multi-branch prediction module.
Three Gaps the Authors Point Out
Section 1 of the paper splits the problem into three parts, and each of the three designs that follow fills one.
Features. FPN sends deep semantics down and merges them with shallow layers. The authors argue this only stacks upper and lower layers, without using the current layer's own information or considering the context between anchors. A 20-pixel face covers 5 cells on the stride-4 layer, and the hair, shoulders and whole crowd beside it all fall into neighboring cells.
Loss. Each layer's anchors are supervised only on that layer. FANet added a loss at each stage of the feature pyramid, but every stage used the same anchor sizes. What the authors want is supervision where anchor size changes with the level and also with "which shot."
Anchor matching. Anchor sizes are discrete, 16, 32, 64…, while face sizes after random cropping and scaling in data augmentation are continuous. S3FD lowers the matching threshold and then compensates with extra anchors so small faces get enough positives; the authors argue these approaches don't consider the random sampling of data augmentation, and positive and negative anchors remain unbalanced.
Solving the Problem
One 640×640 Image, Two Shots

Let's follow one 640×640 training image through it.
The top half is the first shot. The image passes through VGG16, and the six layers of original features are called to (original feature); each layer is wired straight to an SSD-style prediction head, and this shot's loss is called First Shot PAL. The orange bar in the middle is FEM, which turns each layer into an (enhanced feature) of the same size. In the bottom half, to feed a second set of prediction heads, whose loss is called Second Shot PAL.
The two shots' anchors are given in Table 1 of the paper:
| Layer | Map | Stride | Anchor |
|---|---|---|---|
| () | 160×160 | 4 | 16 (8) |
| () | 80×80 | 8 | 32 (16) |
| () | 40×40 | 16 | 64 (32) |
| () | 20×20 | 32 | 128 (64) |
| () | 10×10 | 64 | 256 (128) |
| () | 5×5 | 128 | 512 (256) |
Compiled from Table 1 of the paper. In the anchor column, the number outside the parentheses is the second shot and the number inside is the first.
With a ResNet backbone, the first four layers use the outputs of ResNet's four residual stages instead, the last two are still extra convolutions added on, and the six layers keep the same sizes.
Each position gets only one anchor, with an aspect ratio of 1.5:1, taller than it is wide. When the official code generates anchors, the width is and the height , so a "16-pixel" anchor is actually 13.1 wide and 19.6 tall, with the area still . The authors say this ratio comes from statistics of face boxes, since faces are usually taller than they are wide.
The count can be worked out too. One shot has anchors, 25,600 of them on the stride-4 layer, three quarters of the total.
The second shot keeps S3FD's rule of "anchor is 4 times the stride," while the first shot uses only 2 times, so the stride-4 gets 8-pixel anchors. In Section 3.1 the authors say that with the receptive field enlarged by FEM (the input region one cell of the feature map can see) and the new anchor design, stride, anchor and receptive field no longer need to follow S3FD's equal-proportion principle.
FEM: Multiply by the Layer Above, Then Look Around

FEM is defined by equation (1) of the paper. is the cell at position of the original features on layer , is the intermediate result after fusion, and is the enhanced output:
Walk through it. is conv4_3, 80×80; the layer above it, , is conv5_3, 40×40.
- Each layer passes through a convolution that brings the channel count to the same .
- is upsampled to 80×80 () and multiplied element-wise with (), giving an 80×80× map .
- is split along the channels into three parts of each, which pass through 1, 2 and 3 layers of dilated convolution respectively, all with a dilation rate of 3.
- The three branches are concatenated back to channels (), and that is , still 80×80.
Step 2 is a lot like FPN, except that addition is replaced by multiplication. PyramidBox's LFPN blocks also multiply element-wise, and the DSFD paper gives no separate reason for choosing multiplication.
Step 3 is the "looking around." With a rate of 3, the nine sampling points of a convolution sit 3 cells apart, reaching 3 cells out from the center on each side, so one layer covers cells. Stack a second layer and it reaches another 3 cells out on each side, making ; three layers make . On the stride-8 , the three branches see neighborhoods about 56, 104 and 152 pixels wide in the original image, before counting the backbone's own receptive field. A 32-pixel face covers only 4 cells on this layer, and the longest branch sees an area nearly five face-widths across around it.
Each of the two steps has a source. The upper-lower fusion in the first half comes from FPN, and the multi-branch dilated convolution in the second half comes from RFBNet's Receptive Field Block (RFB). Each RFB branch has only one layer of dilated convolution; FEM stacks layers within each branch, so the three branches' fields of view spread further apart.
PAL: First-Shot Anchors at Half the Size
The second shot's loss is equation (2) of the paper, a standard SSD-style multi-task loss:
is the predicted probability that anchor is a face, and is the label, 1 for positives and 0 for background. is a two-class softmax loss over face and background, and is the total number of positive and negative anchors in classification. is the predicted box and the ground-truth box, both parameterized relative to the anchor ; is smooth L1, which, multiplied by , is computed only on positives and then divided by the number of positives, . balances the two terms.
The first shot's loss is equation (3), exactly the same form, with the anchor replaced by at half the size. Their weighted sum is the Progressive Anchor Loss, equation (4):
The paper gives no values for or .
The "progressive" in the name means anchor sizes grow in two directions. Within one shot, they double at each layer from to ; within one layer, they double again from the first shot to the second. The authors' reasoning is that the original features of a layer carry less semantics and more location information than the enhanced features, which suits them to finding smaller faces; the paper says this judgment was inspired by Faster R-CNN, citing the statement that "low-level features are more suitable for small faces."
Work it out for a 10-pixel face. Say it is 9 wide and 11 tall on the 640×640 input, with its center lined up exactly on the center of a stride-4 anchor.
- The second shot's 16-pixel anchor on is 13.1×19.6, and the whole face fits inside the anchor. The intersection is the face's area, 99, the union is the anchor's 256, and the IoU is . DSFD's matching threshold is 0.4, just out of reach. Move the face center up to 2 pixels off and the face still sits entirely inside the anchor, with the IoU staying at 0.39.
- The first shot's 8-pixel anchor on is 6.5×9.8 and lies entirely inside the face. The intersection is the anchor's 64, the union is the face's 99, and the IoU is about 0.65. When the face center falls in the middle of four anchors, all four anchors have an IoU of 0.42 and all count as positives.
So in the second shot this face matches no anchor above the threshold (the official code follows SSD's matching, which forces each face to match the anchor with the highest IoU, but that's the only one), while in the first shot it has one to four positives. The first shot's loss acts directly on , the output of conv3_3; FEM uses conv3_3 to produce , so the shallow features get an extra dose of small-face supervision.
At inference the first shot is ignored entirely and only the second shot's output is used, so the computation is the same as a single-shot detector.
IAM: Scaling Faces to Anchor Size
Improved Anchor Matching (IAM) has no corresponding network module; in issue #31 the authors say it is a combination of anchor design and data augmentation. Section 3.4 of the paper boils down to four things:
- The anchor aspect ratio is 1.5:1, set from face statistics; first-shot anchors are half the size of second-shot ones.
- Each training image has a 2/5 chance of anchor-based sampling. Pick a random face and crop a sub-image containing it, so that the ratio of the sub-image's side to the face size equals 640 divided by a random number from {16, 32, 64, 128, 256, 512}. Once the sub-image is resized to 640×640, the face is exactly the size of some anchor.
- The other 3/5 of the time, SSD-style data augmentation is used.
- An anchor whose IoU with a ground-truth box reaches 0.4 counts as a positive.
Point 2 reuses PyramidBox's data-anchor-sampling; DSFD ties it together with the anchor design and names the combination IAM.
In October 2019 someone said in issue #55 that they could find only PyramidBox's sampling in the code and no IAM, and nobody answered. The PyramidBox version of the sampling is indeed switched off in the config; IAM lives in RandomCrop in utils/augmentations.py, and this branch runs when 0.7 or 0.9 is drawn from the five options (exactly 2/5):
# utils/augmentations.py, the branch of RandomCrop where mode is 0.7 or 0.9 (excerpt)
random_box = random_random.choice(boxes)
w = np.sqrt(rbw * rbh)
if w > 256:
random_scale = 640 / random_random.choice([16, 32, 64, 128, 256, 512])
elif w > 128:
random_scale = 640 / random_random.choice([16, 32, 64, 128, 256])
elif w > 64:
random_scale = 640 / random_random.choice([16, 32, 64, 128])
elif w > 32:
random_scale = 640 / random_random.choice([16, 32, 64])
else:
random_scale = 640 / random_random.choice([16, 32])
w = int(w * random_scale)
h = w
w starts out as the square root of the face box's width times height, and after multiplying by random_scale it becomes the crop's side. The code adds one restriction the paper doesn't have, capping the target anchor at the upper bound of the range the face falls in. A 50-pixel face is only ever scaled to 16, 32 or 64 pixels, and faces of 32 pixels or less only to 16 or 32 pixels.
For a concrete example, take a 1024×768 training image with a 40×50 face. , which falls between 32 and 64, so the target anchor is picked from 16, 32 and 64.
- Pick 64, and the crop side is pixels; enlarging it to 640 is a factor of 1.43, and the face becomes 57.2×71.6, with exactly 64.
- Pick 16, and the crop side would have to be 1,789 pixels, bigger than the whole image. The code clips the crop box at the image border, giving a sub-image that isn't square, and the face gets stretched out of shape when it's resized to 640×640. In issue #9 the authors say this case is rare.
That 57.2×71.6 face, aligned on center with a 64-pixel anchor on (52.3×78.4), has an IoU of 0.84. Move the anchor center off by half a stride (8 pixels) and it's 0.69 horizontally and 0.75 vertically, and still 0.62 when it's off in both directions, all far above 0.4.

In this figure, the horizontal axis is face size and the vertical axis is how many anchors faces of that size match in total. The green line is traditional matching and the red line is IAM. The caption makes a point of saying that the green line actually uses a threshold of 0.35, looser than IAM's 0.4; even so, the red line is still higher around 10 to 35 pixels. As an average, the anchors matched per face go from 6.4 to about 6.9. Above 50 pixels the two lines nearly coincide, so IAM's effect is concentrated on small faces.
Training and Testing
The backbone is an ImageNet-pretrained VGG or ResNet, and the new layers use xavier initialization. SGD with momentum 0.9, weight decay 0.0005 and batch 16; the learning rate is for 40k steps, then and for 10k steps each. The authors added in issue #4 that ResNet-152 was trained on two P40s with 8 images each.
Testing uses only the second shot, takes the 5,000 highest-scoring boxes for NMS (when two boxes have an IoU above 0.3, the lower-scoring one is deleted), and keeps at most 750 boxes per image.
The WIDER FACE results also add multi-scale testing. The paper only says it builds an image pyramid following FAN; the official widerface_val.py is clearer. For a 1024×768 validation image, the maximum enlargement is capped at 3 times, and the code runs, in order:
- the original image, and the original flipped horizontally;
- shrunk to 0.25, 0.5 and 0.75 times, keeping only large faces (box long side over 30 pixels);
- enlarged to 1.25, 1.5, 1.75, 2, 2.25 and 3 times, keeping only small faces (box short side under 100 pixels).
That's 11 forward passes in all. They're finally merged with box voting, where boxes with IoU above 0.3 are grouped and their coordinates averaged with score weights. At 3 times, the image is 3072×2304, and ResNet-152 has to compute six levels of features from an image that large.
Discussion
Ablation: FEM Carries Most of the Load
The ablations are all done on the WIDER FACE validation set. The baseline is called FSSD (Face SSD); it uses S3FD and PyramidBox's anchor design and classifies and regresses directly on the six levels of original features. The three designs are each verified on a different backbone, starting with the first two:
| Backbone | Setting | Easy | Medium | Hard |
|---|---|---|---|---|
| VGG16 | FSSD | 92.6 | 90.2 | 79.1 |
| VGG16 | + FEM | 93.0 | 91.4 | 84.6 |
| Res50 | FSSD | 93.7 | 92.2 | 81.8 |
| Res50 | + FEM | 95.0 | 94.1 | 88.0 |
| Res50 | + FEM + PAL | 95.3 | 94.4 | 88.6 |
The two VGG16 rows are compiled from Table 2 of the paper, the three Res50 rows from Table 3.
| Setting (Res101) | Easy | Medium | Hard |
|---|---|---|---|
| FSSD | 95.1 | 93.6 | 83.7 |
| + FEM | 95.8 | 95.1 | 89.7 |
| + IAM | 96.1 | 95.2 | 90.0 |
| + PAL | 96.3 | 95.4 | 90.1 |
| Res152 instead | 96.6 | 95.7 | 90.4 |
| + larger batch | 96.4 | 95.7 | 91.2 |
Compiled from Table 4 of the paper. Each row builds on the row above; the FSSD in this group doesn't include S3FD's anchor compensation.
Four things stand out in these two tables.
- FEM is the star. On the three backbones, adding FEM raises Hard by 5.5, 6.2 and 6.0; Easy gains only 0.4 to 1.3. The enhanced features mainly help the hard faces.
- PAL and IAM are both small. PAL adds 0.6 on Res50, and only 0.1 on Res101, which already has IAM; IAM's three numbers are 0.3, 0.1 and 0.3.
- The last row is batch size. The paper doesn't say how big the LargeBS batch is; the authors mentioned in issue #4 that switching to four P40s with batch 32 works better, which is presumably this row. Hard rises from 90.4 to 91.2, a gain of 0.8, while Easy actually drops 0.2 (
a bigger batch beat the two new designs combined). - Each cell is a single number. There's no standard deviation and no repeated training; whether a 0.1 gap can be told apart from random variation in training is something these two tables can't answer.
Where do FEM's 6 percentage points come from? Table 6 swaps FEM for other structures, with everything else the same as the full DSFD:
| Module | Easy | Medium | Hard |
|---|---|---|---|
| RFB | 96.0 | 94.5 | 87.2 |
| FPN | 96.2 | 95.1 | 89.7 |
| FPN + RFB | 96.2 | 95.3 | 89.9 |
| FEM | 96.3 | 95.4 | 90.1 |
Compiled from Table 6 of the paper, ResNet-101. The FEM row is the "+ PAL" row of the table above.
RFB alone (one layer of dilated convolution per branch, no upper-lower fusion) gets 87.2; FPN-style fusion alone already gets 89.7, and FEM adds another 0.4. Fusing with the layer above contributes most of it, and stacking dilated convolutions within each branch is icing on the cake.
The backbone comparison is in Table 5:
| Backbone | Top-1 | Easy | Hard |
|---|---|---|---|
| ResNet-101 | 77.44 | 96.3 | 90.1 |
| ResNet-152 | 78.42 | 96.6 | 90.4 |
| SE-ResNet-101 | 78.39 | 95.7 | 88.6 |
| DPN-98 | 79.22 | 96.3 | 90.4 |
| SE-ResNeXt-101 | 80.19 | 95.7 | 88.9 |
Compiled from Table 5 of the paper. Top-1 is ImageNet classification accuracy; all five backbones come with FEM, IAM and PAL.
SE-ResNeXt-101, with the highest ImageNet accuracy, is actually 1.2 below ResNet-101 on Hard. From this the authors conclude that higher classification accuracy doesn't guarantee better detection.
This table also has a Params column, filled with 399M to 515M. In December 2019 someone said in issue #59 that by their own count the ResNet-152 version has only about 120M parameters, and the authors replied that 459M is the size of the model file (conveniently, both units are M).
WIDER FACE and FDDB
The final model is ResNet-152, trained only on the WIDER FACE training set, plus the 11-pass multi-scale test described above. It scores 96.6/95.7/90.4 on validation Easy, Medium and Hard, and 96.0/95.3/90.0 on test; this is the row in the ablation table without the larger batch, and the version with 91.2 on Hard isn't used in the comparison. The top few on Hard:
| Method | Val Hard | Test Hard |
|---|---|---|
| DSFD | 90.4 | 90.0 |
| SRN | 90.1 | 89.6 |
| FANet | 89.5 | 88.7 |
| PyramidBox | 88.9 | 88.7 |
| FAN | 88.8 | 88.5 |
Compiled from the legend of Figure 6 of the paper.
That's 0.3 to 0.4 ahead of SRN and 1.3 to 1.5 ahead of PyramidBox. The numbers in the figure are each method's self-reported full recipe, with different backbones and testing procedures; PyramidBox uses VGG16, DSFD uses ResNet-152. Half a year later, RetinaFace reached 91.4 on test Hard.
FDDB has 2,845 images and 5,171 faces, annotated with ellipses. Scoring draws an ROC curve, with the total number of false positives on the horizontal axis and the fraction of faces found on the vertical axis. The discrete score only checks whether the overlap ratio between a detection box and the ellipse exceeds 0.5, scoring 1 if it does and 0 if it doesn't; the continuous score uses the overlap ratio itself as the score, so the tighter the box, the higher it goes. DSFD outputs rectangular boxes, so the authors separately learned a regressor that turns boxes into ellipses. At 1,000 false positives, discrete is 99.1% and continuous 86.2%.
Speed
The paper says the ResNet-50 version runs at 22 FPS on VGA input (P40). Officially, only the ResNet-152 weights were released. Issue #21 asked about the ResNet-50 version in April 2019, and the authors said they were preparing a more real-time model; people followed up in August 2019 and again in September 2021, and nothing more ever came of it.
ResNet-152 with multi-scale testing is much slower. In issue #14, someone ran the demo on a 1070 Ti, with six forward passes on a 768×1024 image at 2, 1 and 0.5 times plus flips, and it took 20 seconds; the authors replied that the demo takes 6 to 10 seconds on a P100 anyway, and that ResNet-152 with multi-scale testing is very time-consuming. In another, issue #22, someone asked whether it was faster than MTCNN, and the authors said DSFD was built for the utmost detection accuracy, so it uses a larger backbone and multi-scale testing and runs much slower.
Two and a half years later, SCRFD retested a whole batch of detectors under the same conditions: VGA resolution, single scale, RTX 2080 Ti. DSFD (ResNet-152) scores 71.39 on Hard, at 259.55 GFLOPs and 55.6 milliseconds per forward pass; in the same table, SCRFD-34GF gets 85.29 with 34 GFLOPs and 11.7 milliseconds. VGA shrinks WIDER FACE's original images, so the small faces get even smaller. The conditions behind 71.39 and 90.4 differ in resolution and in those 11 forward passes, so the two numbers can't simply be subtracted.
How Far the Official Code Is From the Paper
The official repo is Tencent/FaceDetection-DSFD, PyTorch 0.3.1, with inference code only.
Training code. In March 2019 the authors said in issue #3 that the training code wouldn't be released for the time being, and in April in issue #12 they said "Maybe,training code is released with next version." Follow-ups in the same thread run from October 2020 all the way to June 2023's "release the training code, pronto" (four years on, the next version is still on its way).
FEM. The FEM class in the code has only the dilated-convolution half. Its three branches are one layer of dilation 1; dilation 2 followed by dilation 1; and two layers of dilation 2 followed by dilation 1, with 256, 128 and 128 output channels. By the calculation above, the three branches cover 3, 7 and 11 cells, while the rate 3 in the paper's figure gives 7, 13 and 19 cells. When issue #23 asked about this, the authors said "N/3 just means three branches." The multiplicative fusion of the first half is written in the main model, applied only to conv3_3, conv4_3 and conv5_3 and chained top-down from fc7, the same as PyramidBox's LFPN; the fusion for fc7, conv6_2 and conv7_2 was written into the code and then commented out, so FEM on these three layers is only dilated convolution.
Prediction heads. progressive_anchor: True in the config turns on pa_multibox. The stride-4 layer predicts only faces, the stride-8 layer adds a set of head classification and regression outputs, and from stride 16 on there are both heads and bodies, with the loss split into three terms for face, head and body; this is PyramidBox's PyramidAnchors. The config also turns on PyramidBox's max-in-out (predicting several background or foreground scores at one position and taking the maximum). In June 2020 someone pointed out in issue #64 that none of this is written in the paper, and the authors replied that max-in-out, low-level FPN and these other PyramidBox structures were "inherited directly."
Loss normalization. In the code, both the classification and regression terms are divided by the number of positives, and hard negative mining takes 3 times as many negatives as positives, the same as SSD; equation (2) writes the classification term as divided by the total number of positive and negative anchors.
The inference code has no first shot, and the authors confirmed in issue #30 that inference doesn't need it anyway. Without training code, though, nobody outside can check how the paper's PAL and IAM are actually trained together with PyramidAnchors and max-in-out.
The version the community uses most is hukkelas/DSFD-Pytorch-Inference, the pip package face-detection. It loads the official weights, swaps NMS for torchvision's version, caches the anchors, and filters by a score threshold before NMS; the README says inference time drops from about 6 seconds to 0.2 seconds (V100). Single-scale on a 1024×687 image, it takes 100 milliseconds on a V100, 482 milliseconds on a T4 and 17.5 seconds on a CPU. The same author's face anonymization project, DeepPrivacy, also uses DSFD as its detector, and its README says another RetinaNet detector is much faster but detects worse than DSFD.
Conclusion
Run the official weights on a 1024×768 group photo, and the face-detection package does a single forward pass by default. The paper's 90.4 on Hard comes from running the same photo 11 times, enlarged up to 3072×2304, and merging the results with box voting. For faces a dozen or so pixels wide, the official test code relies on those enlargements of 1.25 to 3 times; if you run single-scale yourself and want the small faces, you have to enlarge the input. The score threshold also has to go from the 0.01 used for evaluation to around the 0.8 the authors suggested in issue #10, or there will be lots of false positives. ResNet-152 already takes nearly 260 GFLOPs at VGA resolution, and latency is whatever you actually measure on the target hardware.
As for the paper itself, what the ablations support is FEM, which adds 5.5 to 6.2 percentage points on Hard across all three backbones; PAL and IAM are each within 0.6, less than the 0.8 from a larger batch. The first shot did stick around, though. Three years later, Alibaba's MogFace has use_dsfd: True in its official config, hanging an extra set of prediction heads, used only in training, on the backbone features before the FPN.