Back to paper library
Paper notesarXiv 2021CVPR 2022

MogFace

Six Crowns?

Original paper

MogFace: Towards a Deeper Appreciation on Face Detection

Paper authors

Yang Liu · Fei Wang · Jiankang Deng · Zhipeng Zhou · Baigui Sun · Hao Li

Publication
CVPR 2022Conference
First submitted to arXiv
arXiv:2103.11139
Cite this paper · BibTeX

The citation identifies the linked source version. It cites the original paper and its authors.

@misc{objectdetectionmogface2021,
  title = {{MogFace: Towards a Deeper Appreciation on Face Detection}},
  author = {Yang Liu and Fei Wang and Jiankang Deng and Zhipeng Zhou and Baigui Sun and Hao Li},
  year = {2021},
  eprint = {2103.11139},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2103.11139}
}
On this page

The test-set PR curve images on WIDER FACE's official results page are the same file in every web archive capture from November 2021 to May 2024. In the legend of the Hard plot, the first line reads MogFace-0.926 and the second TinaFace-0.924.

Three subsets each for validation and test make six plots, and every one has MogFace's name on the first line; these are the "six champions" the paper talks about. Between first and second place, the gap is at most 0.5 percentage points. The first version of the paper already claimed all six in March 2021, and when Alibaba later put the model up on ModelScope, the model card said it had "topped the leaderboards for over a year."

MogFace comes from Alibaba, and the final version's author list also includes Jiankang Deng, first author of RetinaFace and ArcFace. It's an SSD-style single-stage face detector that takes in an image and outputs face boxes and scores, trained only on WIDER FACE. The paper proposes no new backbone or feature pyramid; what it changes are three things often treated as training details, namely how anchors are split into positives and negatives, how large the faces in the training data should be scaled, and what to do when the detector mistakes a calendar on the wall for a face.

The paper's title also changed once. The first version, in March 2021, was called "Rethinking Scale Augmentation on the Face Detector" and covered only scale augmentation; only the fourth version, that December, switched to the final title and added the other two modules. This comes back when reading the leaderboard results.

Defining the Problem

The Yardstick

WIDER FACE has 32,203 images and 393,703 face boxes from 61 event scenes, split 4:1:5 into training, validation and test. Each subset is divided into Easy, Medium and Hard groups, depending on whether EdgeBox, a traditional proposal method, can find the face; this is related to face size but isn't a direct split by size. Hard contains every face, many of them small. Scoring uses AP. A detection box counts as correct if its IoU (intersection over union) with a labeled box reaches 0.5, and AP is the area under the PR curve traced by precision and recall.

What Was Carried Over From Generic Object Detection

By 2021, the backbones, feature pyramids and detection heads of face detectors had nearly all been carried over from generic object detection. The authors point out two kinds of methods whose effect is unstable after the move, plus one problem specific to face detection.

Splitting positives from negatives (label assignment). Anchors are reference boxes laid out in advance at every position of the feature map, and before a single-stage detector computes the loss on each anchor, it has to decide whether that anchor counts as face or background. The authors divide the available information into two kinds. Offline information can be computed during data preparation, such as the IoU between an anchor and a ground-truth box or the distance between their centers (CPD); online information is only available after the forward pass, such as the score the model predicts for the anchor (PCS) and the box coordinates it predicts (PLC).

RetinaNet looks only at IoU; if the IoU is large enough, the anchor is a positive. ATSS first takes the KK anchors with the nearest centers on each level as candidates, then uses the mean plus the standard deviation of the candidates' IoUs as the threshold. HAMBox found that some negative anchors actually predict quite accurate boxes, so during training it uses the predicted boxes to pull them back in as positives. OTA formulates assignment as an optimal transport problem, with a cost made up of a weighted combination of center distance, predicted score and predicted box. The authors' criticism has two points. Early in training the model hasn't learned much yet and online information is unreliable, so letting it drive assignment easily sends learning further and further off course; and hyperparameters such as ATSS's KK and OTA's weight α\alpha take repeated trial and error to find, and may not carry over from COCO to faces.

Scale augmentation. Generic object detection commonly handles scale variation with multi-scale training (MST, randomly resizing each image within some range) and random square cropping (RSC). Face scales are distributed far more extremely than COCO's; the figure below shows the cumulative distributions of the two.

Original Figure 1(b): cumulative distribution curves, with relative scale (object size divided by 640, 0 to 1) on the horizontal axis and cumulative fraction on the vertical axis. The blue line is WIDERFACE and the orange line COCO. The blue line is already at 55.21% at a relative scale of 0.03125 and reaches 90% at 0.10323 (66 pixels); the orange line is only at 18.60% at 0.03125 (20 pixels) and doesn't reach 90% until 0.40882 (261 pixels).
Original Figure 1(b), Liu et al., from PDF page 2, CC BY 4.0.

The horizontal axis is an object's side as a fraction of 640, after the image is resized to 640. 0.03125 is 20 pixels; 55.21% of WIDER FACE faces are smaller than that, against only 18.60% for COCO. 90% of faces are smaller than 66 pixels, while COCO doesn't accumulate 90% until 261 pixels.

With so many small faces, uniformly sampled MST and RSC already produce plenty of small faces; PyramidBox's data-anchor-sampling (DAS) goes further and deliberately shrinks faces. Small faces already have someone looking after them, so the authors ask about the other end. Large faces make up only about a tenth of the training set, so how do you detect medium and large faces well too?

False positives. A face detector's output goes on to downstream tasks such as alignment and recognition, so false positives are more troublesome than in generic object detection. The authors ran an experiment with the HAMBox detector. In one photo, a calendar in the top-left corner of the wall was taken for a face; centered on the calendar, they cropped one small image with more of the surroundings and one with less, and the same detector no longer misjudged either crop. On the WIDER FACE validation set, re-cropping HAMBox's false positives in a similar way makes about 95% of them disappear. Whether the calendar looks like a face depends on what's around it.

The three problems map to three modules. Ali-AMS handles positives and negatives, SSE handles scale augmentation, and HCAM handles false positives.

Solving the Problem

Baseline: The S3FD Skeleton

All ablations start from the same baseline. The architecture follows S3FD with a ResNet-50 backbone, taking six levels of features, p2 to p7, from stride 4 to 128, with one square anchor per position whose sides are 16, 32, 64, 128, 256 and 512 in turn. On a 640×640 input, the six levels have 1602+802+402+202+102+52=34,125160^2+80^2+40^2+20^2+10^2+5^2=34{,}125 anchors, 25,600 of them on p2.

Classification uses focal loss and box regression smooth L1, weighted 1:2. In the official config, an anchor whose IoU with a ground-truth box reaches 0.35 is a positive, and the anchor with the highest IoU for each face always counts as a positive too. Training uses 4 V100s with 7 images each, SGD, a learning rate of 4×10−34\times10^{-3} dropping to 4×10−44\times10^{-4} at step 50k, for 70k steps in total. Testing uses only the original image at a single scale, takes the 5,000 highest-scoring boxes for NMS (when two boxes have an IoU above 0.6, the lower-scoring one is deleted), and keeps 750.

The baseline's data augmentation already includes PyramidBox's DAS; the SSE table later shows a version with DAS removed.

Ali-AMS: Match by the Rules, Then Top Up by Score

The Adaptive Online Incremental Anchor Mining Strategy (Ali-AMS) builds on RetinaNet's standard assignment and, after the forward pass, adds some positives for faces that matched too few anchors. Algorithm 1 of the paper runs once per level.

Walk p3 through it. p3 is the level with stride 8 and 32-pixel anchors; suppose that by the IoU rule three faces in this image are assigned to p3, matching 6 positive anchors for face A, 2 for face B and 4 for face C.

  1. This level's standard. Take the largest match count on this level as the target, T=6\mathcal T=6.
  2. How many to add. Face gg originally matched A[g]\mathcal A[g] anchors and needs Ng=T−A[g]\mathcal N_g=\mathcal T-\mathcal A[g] more. Face A needs none, face B needs 4, face C needs 2.
  3. Candidates. For face B, take the 6 anchors on p3 whose centers are closest to B, then the 6 anchors with the highest IoU with B; together that's at most 12.
  4. Pick by score. Sort the candidates by the face score the model currently predicts for them, take the top 4 and relabel them as positives, with face B as the regression target.

The authors call step 1 the pyramid-level consistency principle, under which faces on the same level end up matching the same number of anchors; steps 2 to 4 use the score to assess candidate quality. T\mathcal T is computed automatically for each image and each level, with no new hyperparameters to tune by hand.

Online information plays only a supporting role here. The candidates are first fenced in by two offline rules, center distance and IoU, and the model's score only ranks them inside the fence; the main boundary between positives and negatives is still the IoU threshold. The authors' reasoning is that scores are unreliable early in training, and letting them drive assignment easily sends learning off course from the start.

MethodEasyMediumHard
Baseline94.693.486.5
+ HAMBox94.593.886.9
+ ATSS94.593.286.3
+ OTA93.391.784.7
+ Ali-AMS94.693.687.3

Compiled from Table 3 of the paper, WIDER FACE validation set, single-scale testing.

Ali-AMS is 0.8 above the baseline on Hard and 0.4 above HAMBox; on Medium, HAMBox is highest. ATSS is 0.2 below even the baseline, and OTA drops 1.8. This fits the authors' claim that assignment methods from generic object detection "fail to maintain consistent superiority when applying on the face detector directly," but the paper doesn't say what KK for ATSS or α\alpha for OTA were, or whether they were tuned for faces, so how much of their loss is the method and how much the hyperparameters is something this table can't separate.

The official code differs from Algorithm 1 in two places. The candidates come only from the nearest-center group, without the IoU group, and p7 gets no compensation. In March 2023 someone pointed out in issue #7 that the code and paper don't match; ly19965, replying as an author, admitted that the IoU candidates were missing, said this version doesn't affect accuracy, and that they could be added later.

SSE: How Many Faces Each Layer Should Get

Selective Scale Enhancement (SSE) starts from an experiment. The authors wanted to know whether a feature level that gets matched with more faces learns better.

The method is described in the supplementary material. For each training image, a random face is picked and the whole image is scaled so that this face falls in the target level's scale range; the target scale is adjusted by bisection until roughly a specified fraction of the faces in the training data is assigned to that level, and then training and evaluation run with this setting. The Easy and Medium subsets, which have many large faces, are used to see how well p4 to p6 learn.

Layer (subset)20%40%60%80%
p4 (Easy)67.075.381.384.3
p4 (Medium)75.382.684.583.6
p5 (Easy)81.882.277.973.2
p5 (Medium)85.485.285.083.7
p6 (Easy)86.283.184.883.3
p6 (Medium)85.280.582.281.2

Compiled from Table 1 of the paper, WIDER FACE validation AP. The columns are the fraction of faces assigned to that level, and bold marks the highest value in each row.

For p4, more is roughly better, with Easy peaking at 80% and Medium at 60%. p5 and p6 go the other way, with their best at 20% or 40%; push 80% of the faces onto p5, and Easy drops from 81.8 to 73.2. The authors' conclusion is that the number of faces a level gets should be "appropriate" rather than "the more, the better."

From this, SSE sets three premises:

  1. Main and auxiliary levels. The two levels best at detecting large faces are p5 and p6; p5 is the main level and p6 the auxiliary level.
  2. Ratios. Both levels are set to 20%, the best value for the two p6 rows and for p5 (Medium); the best for p5 (Easy) is actually 40%, but the authors took 20%. Each image has a probability of trmpl=0.2tr_{mpl}=0.2 of scaling the picked face to the main level's scale, and of the remaining 80%, another fifth goes to the auxiliary level, trapl=(1−0.2)×0.2=0.16tr_{apl}=(1-0.2)\times0.2=0.16.
  3. Scale ranges. The face sizes each level handles are given in the table below.
LayerStrideAnchorFace size (px)
p24168.4–20.7
p383220.7–48.2
p4166448.2–106.2
p532128106.2–212.4
p664256212.4–420.8
p7128512420.8–640

Compiled from Table 2 of the paper, with the strides and anchors filled in from the baseline settings. Where the scale ranges of adjacent levels overlap, the authors simply split them down the middle.

Next comes Algorithm 2 of the paper, run once for each training image. Walk a 1024×768 image with one 40×50 face through it.

  1. First randomly scale the short side to between 640 and 1280. Suppose it draws 960; the image becomes 1280×960 and the face 50×62.5, with size fs=50×62.5≈55.9f_s=\sqrt{50\times62.5}\approx55.9.
  2. Draw a random number rr between 0 and 1. If r<0.2r<0.2, the target level is p5; if 0.2≤r<0.360.2\le r<0.36, it's p6; otherwise one level is picked at random from p2, p3, p4 and p7.
  3. Suppose r=0.13r=0.13, so the target is p5, and a size is drawn at random between 106.2 and 212.4, say 150. The scale factor is 150/55.9≈2.68150/55.9\approx2.68, the whole image becomes about 3435×2576, and the face becomes 150 pixels.
  4. If the image is larger than 640×640, a random 640×640 patch is cropped; if smaller, it's padded with zeros.

Each image has a 36% chance of pushing one face up to p5 or p6 scale, while large faces make up only about a tenth of the training set to begin with. What SSE does is redistribute the faces each level sees during training according to each level's needs.

The official code is written a bit differently from Algorithm 2 again. In the remaining 64% of cases, the code draws a size uniformly between 16 and 106.2 pixels and never picks p7; the scale ranges of p2 to p4 also change to 8.4–26.7, 26.7–54 and 54–106.2. Cropping follows DAS's approach, taking a 640×640 patch based on the picked face.

MethodEasyMediumHard
Baseline (no DAS)92.290.581.4
+ MST93.391.583.6
+ DAS94.693.486.5
+ SSE95.694.1–

Compiled from Table 4 of the paper, WIDER FACE validation set, single-scale testing.

SSE beats DAS by 1.0 on Easy and 0.7 on Medium. The Hard cell is a dash, and the paper doesn't explain it.

The first two rows have a story of their own. MST, the most common choice in generic object detection, adds only 2.2 on Hard over the baseline without DAS; DAS adds 5.1. In the supplementary material, random square cropping (RSC) scores 86.4, almost the same as DAS. The authors' explanation in issue #7 is that a WIDER FACE image has so many faces that without cropping the foreground is too crowded and the network struggles to converge, and that the network can't really learn the scale information MST brings in.

HCAM: A Glance at the Neighbors Before Judging

Original Figure 2: on the left, three levels of Backbone + FPN features, each connected to a Hierachical Context-Aware Module. The dashed box on the right shows the module in detail: the Pyramid Layer Feature Map at the top (W×H×256) goes one way into the Main Classifier and the other way, through a plus sign, into the Progressive Classifier. The Backbone Feature Map at the bottom (W×H×256) splits into two branches, each giving a Context-Enhanced Feature Map (W×H×256), which are multiplied by Attention map with N=3 and Attention map with N=5 (W×H×1) respectively; the two results are added and connected by a dashed line to the plus sign above. The generate dynamic discrepancy supervision label block at the bottom right takes the Main Classifier's output and produces the two attention maps.
Original Figure 2, Liu et al., from PDF page 5, CC BY 4.0.

The Hierarchical Context-Aware Module (HCAM) hangs beside each level of pyramid features; follow the dashed box on the right.

  1. The main classifier predicts as usual. The pyramid features at the top feed the main classifier, which gives each anchor a face score.
  2. Mark the high-confidence positions. Some high-scoring anchors are real faces and some are false positives. For these positions, draw two attention maps the same size as the feature map, setting the N×NN\times N cells around each high-confidence position to 1 and everything else to 0, with NN equal to 3 and 5. The official code defines "high confidence" during training as a score above 0.1.
  3. Get the context. The backbone features are first reduced to 256 channels with a 1×11\times1 convolution, then each passes through one 3×33\times3 convolution layer, giving two context-enhanced feature maps; the supplementary material compares ASPP and SSH's detection module, which beat a single 3×33\times3 layer by 0.3 and 0.2 on Hard, and the authors chose the single 3×33\times3 layer for its computational cost.
  4. Keep only the neighbors' context. The two feature maps are multiplied by the two attention maps respectively, zeroing everything outside the neighborhoods of high-confidence positions, and then added together.
  5. Judge again. The result is added back to the pyramid features and handed to the progressive classifier to be scored again.

On p3, at stride 8, the N=3N=3 mask covers 24×24 pixels of the original image and the N=5N=5 mask 40×40 pixels. The mask only decides which positions keep their context features; each cell's features, after the backbone and that 3×33\times3 convolution layer, see a much larger area than the mask. For a calendar misjudged as a face, the information about the surrounding wall reaches the progressive classifier through these features.

The progressive classifier's labels are given only to high-confidence anchors. Those originally labeled as faces that the main classifier also scored highly are labeled positive; those originally background that the main classifier nonetheless scored highly, that is, false positives, are labeled negative; all other anchors are left out of the loss. The authors call these labels, which change as training goes on, the dynamic discrepancy supervision label yhcy_{hc}. The total loss is equation (1) of the paper:

L=fflm(fc,y)+γ fflp(fccom,yhc)L = f^{m}_{fl}(f_c, y) + \gamma\, f^{p}_{fl}(f^{com}_c, y_{hc})

fcf_c and fccomf^{com}_c are the outputs of the main classifier and the progressive classifier, yy is the label from ordinary anchor assignment, fflmf^{m}_{fl} and fflpf^{p}_{fl} are both sigmoid focal losses, and γ=1\gamma=1 works best.

NNEasyMediumHardFPs
Baseline94.693.486.5948
394.994.086.8532
594.894.187.0476
3 and 595.194.287.4192

Compiled from Table 5 of the paper, WIDER FACE validation set, single-scale testing.

With both neighborhood sizes together, false positives drop from 948 to 192, eighty percent fewer, and Hard gains 0.9. The paper doesn't say at what score threshold the false positives were counted.

The paper doesn't say which classifier's score is used at inference either. The official test_single.py and test_multi.py both take the main classifier's output, and the progressive classifier's output is computed but never used. Going by this code, HCAM changes the shared pyramid features only indirectly, through that extra loss during training.

Discussion

Six Firsts on the Leaderboard

Two models made it onto the leaderboard. MogFace-E uses Ali-AMS, HCAM and SSE, and MogFace uses Ali-AMS and HCAM; both also add the three modules HAMBox brought in, SSH's detection head, PyramidBox's Pyramid Anchor and RetinaNet's deep detection head, and at test time they ensemble multi-scale results.

SubsetMogFace-EMogFaceBest other
Val Easy97.797.197.2
Val Medium96.996.596.5
Val Hard91.993.893.4
Test Easy97.096.396.7
Test Medium96.295.996.2
Test Hard91.592.692.4

Compiled from the legends of Figure 4 of the paper. "Best other" is the highest-scoring method other than the two MogFace versions.

The best other scores come from three methods, MaskFace, ASFD and TinaFace. TinaFace is runner-up on Hard both times; the 96.2 on test Medium is ASFD, tied with MogFace-E (one of the six crowns is shared). When the paper lists its leading margins, it gives five subsets, and the one it skips is test Medium. ASFD is a detector that uses architecture search to find its feature enhancement module, and six of its ten authors are also on DSFD's author list.

The titles are split between two models. The firsts on Easy and Medium go to MogFace-E, which uses SSE, and the firsts on Hard to MogFace, which doesn't. According to the paper, the two models differ only in whether they use SSE; after the training data is pushed toward large faces, MogFace-E's test Hard drops to 91.5, 1.1 below MogFace and only 0.1 above RetinaFace's 91.4.

Which Model Produced These Scores

Put the paper's versions and the official code side by side, and there turn out to be several versions of where these scores came from.

The first version. v1, from March 2021, has only SSE, split into SSE-E, good at large faces, and SSE-H, good at small faces (SSE-H uses p2 and p3 as its main and auxiliary levels), plus HAMBox's three modules. All six WIDER FACE scores, 97.7/96.9/93.8 on validation and 97.0/96.2/92.6 on test, are already in v1.

From the fourth version on. The same scores are credited instead to MogFace-E and MogFace, which add Ali-AMS and HCAM, and the Hard model no longer uses SSE (not a single decimal changed). As of the November 2024 web archive capture, MogFace's row on WIDER FACE's official results page still carries v1's title, "Rethinking Scale Augmentation on the Face Detector."

The official configs. In the repo, the configs for these two models, MogFace.yml (ResNet-101) and MogFace_E.yml (ResNet-152), turn on neither Ali-AMS nor HCAM. What they turn on are the deep detection head, SSH (replaced by PyramidBox's CPM in MogFace-E), SSE (MogFace-E only), and one line, use_dsfd: True, which hangs an extra set of prediction heads, used only in training, on the backbone features before the FPN, that is, DSFD's first shot. The module the repo calls SSHContext has exactly the same number of convolution layers and dilations in its three branches as the FEM class in DSFD's official code. In the training script train.py, Ali-AMS and HCAM sit in the same if/elif, so the two can't be turned on together, and there's no code handling the DSFD path. In issue #9, someone training with MogFace.yml got an error right at the start, while the Ali-AMS config ran fine; the thread runs from April to December 2023, the last comment is the asker's own "Unfortunately no..", and no maintainer ever showed up.

What the authors said in the issues. The asker in issue #7 said that training from scratch gave results far from the paper's. ly19965's reply was that the champion model itself isn't open-sourced, and only a corresponding model was released for testing; the leaderboard push also used a deep detection head, Pyramid Anchor and multi-scale ensembling, plus a pretrained model, more training epochs and tuning, which count as leaderboard tricks and don't need to be open-sourced. Of these, Pyramid Anchor and the deep detection head were the only two at the method level that raised scores, but they use a lot of GPU memory, and the authors themselves said they're not very solid. The reply also gave the source of the scores, with Easy and Medium taken from one model's results and Hard from an ensemble of 6 models, of which the released model is one.

The multi-scale models released in the official README score 97.7/96.9/92.0 for MogFace-E and 97.0/96.3/93.0 for MogFace on the validation set; the paper's Hard of 93.8 is 0.8 above the released model. The README says "The best MogFace model and some tricks will be released soon"; as of the last comment on issue #9 in December 2023, the repo's commit history still has only the two commits from December 7, 2021 (two years of "soon").

Other Datasets

The paper reports three more datasets. On AFW (205 images, 473 faces), AP is 99.85; the text says it leads by at least 1.0%, but the runner-up in the legend, SFDet, is at 99.78, 0.07 behind. On PASCAL Face (851 images, 1,335 faces) it's 99.32, with the runner-up SFD at 98.49.

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 the detection box and the ellipse exceeds 0.5.

Original Figure 3(c): FDDB discrete ROC curves, with False positives from 0 to 2000 on the horizontal axis and True positive rate from 0 to 1 on the vertical axis. The top two lines hug 1.0; the first line of the legend is ASFD (0.994) and the second Ours (0.992); below them, in order, are older methods such as HeadHunter (0.881), DPM (0.872) and SquaresChnFtrs-5 (0.867), with Viola Jones (0.655) and Mikolajczyk et al (0.595) at the bottom.
Original Figure 3(c), Liu et al., from PDF page 7, CC BY 4.0.

The text says MogFace achieves the highest score on FDDB, 99.2%. The first line of the legend is ASFD's 0.994, and MogFace's 0.992 is on the second (the authors drew the figure themselves). Most of the other contenders in the figure are methods from before 2015; DSFD's 99.1% and RetinaFace aren't in it.

Public Models and Code

The MogFace most people can get hold of is Alibaba's "MogFace face detection model-large" on ModelScope. The validation scores on its model card are 97.0/96.3/93.0, and its training setup is a learning rate of 10−210^{-2}, batch 28 and 140,000 steps, consistent with the README's MogFace (multi-scale testing) and the ResNet-101 setup in MogFace.yml, that is, the Hard model without SSE. In its limitations field, the model card says "detection of large faces is mediocre."

The official code also has a few issues nobody answered. Issue #10 (May 2023) points out that the deep detection head's forward is wrong; open the code and DeepHead defines four convolution layers, yet its forward calls self.conv1 all four times. When HCAM builds its attention maps, the neighborhood coordinates are clipped with torch.clamp(..., 0, tmp_h), whose upper bound is off by one, so a high-confidence anchor on the last row or column of the feature map goes out of bounds; the IndexError reported in issue #3 (December 2022) is exactly this line.

Reproduction is disputed too. The asker in issue #7 trained Ali-AMS from scratch (without pretraining) and got 92.38/91.63/85.61, against the README's 94.6/93.6/87.3. The authors put it down to environment and settings, saying the learning rate has to be scaled for 8 GPUs, and posted a screenshot of a friend's reproduction with Hard even 0.1 higher. The thread was closed without a conclusion.

Conclusion

What MogFace has in the way of controlled comparisons is the single-scale ResNet-50 ablation set. Ali-AMS adds anchors for faces that matched too few, gaining 0.8 on Hard; SSE redistributes face sizes during training according to how each level performs, gaining 1.0 on Easy; HCAM has high-scoring anchors glance at their surroundings before judging, cutting false positives from 948 to 192. All three modules can be added to existing anchor-based detectors, and the cheapest step needs no code changes at all, just counting first how many faces each level gets in your own training data. The SSE table shows that once a level gets more than a certain number of faces, that level actually learns worse. Which classifier's score HCAM should use at inference the paper doesn't say, so that's yours to decide.

The six firsts are another matter. The paper, the first version, the configs and the issue replies each tell a different story of what went into them, and Hard, by the authors' own word, is an ensemble of 6 models. The MogFace-large on ModelScope whose model card says it "topped the leaderboards for over a year" is the version without SSE, tuned for Hard, and its own limitations field says detection of large faces is mediocre; selfies and video calls, with just one or two large faces in the frame, land squarely on the weakness it admits to.