Back to paper library
Paper notesarXiv 2022ICFSP 2023

L2CS-Net

From Head to Eye

Original paper

L2CS-Net: Fine-Grained Gaze Estimation in Unconstrained Environments

Paper authors

Ahmed A. Abdelrahman · Thorsten Hempel · Aly Khalifa · Ayoub Al-Hamadi

Publication
ICFSP 2023Conference
First submitted to arXiv
arXiv:2203.03339
Cite this paper · BibTeX

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

@misc{faceanalysisl2csnet2022,
  title = {{L2CS-Net: Fine-Grained Gaze Estimation in Unconstrained Environments}},
  author = {Ahmed A. Abdelrahman and Thorsten Hempel and Aly Khalifa and Ayoub Al-Hamadi},
  year = {2022},
  eprint = {2203.03339},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.03339}
}
On this page

Search around for a way to add "where is this person looking" to your own project, and you're likely to run into L2CS-Net. Give it a face and it returns two angles, one saying how far the gaze turns left or right, the other how far up or down; the official README includes a webcam demo and also lists Roboflow's open-source Inference project, through which you can call it over HTTP.

The paper behind this model is only four pages long. The method is a ResNet-50 followed by two fully connected layers, and the L2, C and S in its name stand for the ℓ2 loss, cross-entropy and softmax. The authors are Ahmed A. Abdelrahman, Thorsten Hempel, Aly Khalifa and Ayoub Al-Hamadi of the Neuro-Information Technology group at Otto-von-Guericke-University Magdeburg in Germany; only ten days earlier, the same group had put the head pose model 6DRepNet on arXiv.

Four pages can't hold much, and this note fills in three parts. How gaze is described with two angles and how the error is computed; how the trick of bin classification plus expected-value regression actually works, and how the official code writes it; and finally the paper's numbers, along with what the community has reported over the years after retraining it, retesting it and putting it to use.

Defining the Problem

Two Angles, One Arrow

Gaze estimation has to answer which direction the eyes are looking. In camera coordinates, that direction is a 3D vector g\mathbf g of length 1. Most methods don't output the three numbers directly; they output two angles, yaw (turning left and right) and pitch (nodding up and down), and convert them into the vector. The conversion in L2CS-Net's official code is

g=[−cos⁡ϕ sin⁡θ−sin⁡ϕ−cos⁡ϕ cos⁡θ]\mathbf g = \begin{bmatrix} -\cos\phi\,\sin\theta \\ -\sin\phi \\ -\cos\phi\,\cos\theta \end{bmatrix}

θ\theta is yaw and ϕ\phi is pitch. The camera's zz axis points forward, from the lens toward the person; when both angles are 0, g=(0,0,−1)\mathbf g=(0,0,-1), and the gaze points straight into the lens.

Plug in some numbers. With yaw 30° and pitch −10°, cos⁡(−10°)=0.985\cos(-10°)=0.985 and sin⁡30°=0.5\sin 30°=0.5, giving g=(−0.492, 0.174, −0.853)\mathbf g=(-0.492,\ 0.174,\ -0.853); the squares of the three numbers sum to 1.

Scoring uses the angular error, the angle between the predicted vector g^\hat{\mathbf g} and the ground truth g\mathbf g:

ϵ=arccos⁡g⋅g^∥g∥ ∥g^∥\epsilon = \arccos\frac{\mathbf g\cdot\hat{\mathbf g}}{\|\mathbf g\|\,\|\hat{\mathbf g}\|}

The unit is degrees. Again with pitch −10°, if only yaw is guessed as 34°, the angle between the two is 3.94°; if only pitch is off by 4°, it's 4.00°. With the eyes 60 centimeters from the screen, 4° lands about 4.2 centimeters away on the screen.

Estimating Straight from the Face Image

There are two routes to estimating gaze. Model-based methods first find geometric features such as the pupil and corneal reflections and fit them to an eyeball model to compute the direction, usually needing an infrared light source or high-resolution eye images. Appearance-based methods learn a mapping directly from images taken by an ordinary camera; L2CS-Net is one of these, and its input is the whole face.

When the same person turns their head or stands nearer to or farther from the lens, their face looks very different in the photo. The MPIIGaze line of work therefore applies data normalization first: based on the head pose, the camera is virtually turned to face the center of the face and pulled to a fixed distance, the head's sideways tilt is removed, and then a face is cropped, with the gaze label rotated along with it. That way, the faces the network sees are all about the same size and placement.

Two Exams

MPIIGaze/MPIIFaceGaze. Over several months of everyday laptop use, software showed random dots on the screen for 15 participants to look at, while the laptop camera filmed their faces. The raw data runs to over 210,000 images; evaluation uses the official selection of 3,000 per person, 45,000 in total. MPIIFaceGaze is the full-face version of the same data. Evaluation is leave-one-subject-out: each time 14 people train and the remaining 1 tests, rotating 15 times and averaging. The gaze range is small, since what's being looked at is a laptop screen; the best methods before this paper were around 4.1°.

Gaze360. 238 participants, filmed indoors and outdoors with a 360-degree Ladybug camera; people could stand in any direction around the camera, even with their backs to the lens. Distances are long and angles large, and errors are above 10°. The original authors split the test set into three ranges: everything (All 360°), gaze within 90° of the direction to the lens (Front 180°), and within 20° (Front facing).

What It Sets Out to Solve

The prior methods the authors survey mostly use a VGG or ResNet backbone, take a face or the eyes as input, and output both angles at once from a single final fully connected layer, trained with MSE (mean squared error); Gaze360 switches to pinball loss, estimating the direction and the error range at the same time. The authors consider these CNN methods not robust enough in unconstrained environments and propose two things. First, predict each of the two angles with its own fully connected layer; second, build each angle's loss from two parts, first cutting the angle into bins for classification, then regressing with the expected value of the classification probabilities.

The second trick had already been used in head pose estimation. Hopenet in 2017 cut each of the three Euler angles, yaw, pitch and roll, into 66 bins of 3°, with one "cross-entropy + expected-value MSE" loss per angle. L2CS-Net amounts to turning the three angles into two and the head into the eyes.

So the question for this paper is how far the approach, moved over to gaze, can push MPIIGaze's 4.1° and Gaze360's 11°.

Solving the Problem

Architecture

Original Figure 1: on the left are six cropped faces, passing through a ResNet-50 block that narrows from large to small and branches into two fully connected layers (FC layers), one blue and one red. The blue one connects to the loss block above: after Softmax it splits in two, one path going into Cross Entropy Loss and the other through Expectation to give Yaw, then into Mean Square Error, and the two are added into Total yaw Error. The red one connects to an identically structured block below, giving Pitch and Total Pitch Error.
Original Figure 1, Abdelrahman et al., from PDF page 3, CC BY 4.0.

The face comes in on the left and passes through an ImageNet-pretrained ResNet-50, whose final global average pooling compresses the features into a 2048-dimensional vector. The vector goes to two fully connected layers, one outputting BB scores for yaw and the other BB scores for pitch, where BB is the number of bins. The two colored blocks on the right are the losses, identical in structure, each handling one angle.

Since the two fully connected layers take the same 2048-dimensional vector, together they are exactly the same as one fully connected layer outputting 2B2B numbers, the first BB for yaw and the last BB for pitch. The paper stresses that with two losses the network "has two signals that backpropagate through the network"; in the code the two losses are backpropagated together, and the gradient is the same as adding the two losses and backpropagating the sum. So the two fully connected layers themselves bring nothing new; what changes is the form of the output and the loss. Each angle goes from one number to BB scores, which after softmax become the probabilities of the bins.

One Loss, Step by Step

Take the Gaze360 setup as an example. The official code cuts −180° to 180° into 90 bins of 4° each. Bin ii covers [4i−180, 4i−176)[4i-180,\ 4i-176), i=0,…,89i=0,\dots,89.

For yaw, the network outputs 90 scores z0,…,z89z_0,\dots,z_{89}, which after softmax become the probabilities

pi=ezi∑j=089ezjp_i = \frac{e^{z_i}}{\sum_{j=0}^{89} e^{z_j}}

The first part is classification. The bin the ground-truth angle falls in serves as the class label cc, and the cross-entropy is

H=−log⁡pcH = -\log p_c

A ground truth of 10° falls in bin 47 (8°–12°), and the cross-entropy looks only at p47p_{47}. The more probability the network puts on bin 47, the smaller HH.

The second part is regression. Using the probabilities as weights, take the expected value over the bin indices and convert it back to an angle. The official code writes

θ^=4∑i=089pi i−180\hat\theta = 4\sum_{i=0}^{89} p_i\, i - 180

and then computes the squared error (θ^−θ)2(\hat\theta-\theta)^2 against the continuous ground truth, in degrees squared. The total loss for one angle is the paper's

CLS=H+β⋅MSE\mathrm{CLS} = H + \beta\cdot\mathrm{MSE}

β\beta is the weight of the regression term; the paper tried 1 and 2. Yaw and pitch each get one such loss, and the two added together make the loss of the whole network. MPIIGaze's gaze range is small, so the code switches to 28 bins over ±42°, 3° each, and the conversion becomes 3∑pi i−423\sum p_i\,i-42.

The classification term lets the network first learn "roughly which neighborhood," and softmax plus cross-entropy is very stable, so a face won't be dragged far off by one or two extreme samples; the expected-value term lets the output land between bins instead of being stuck on the 4° grid. That's the Hopenet paper's argument, and L2CS-Net carried the reasoning over unchanged.

The Decoded Value Sits on the Bin's Left Edge

By the conversion above, bin 47 becomes 4×47−180=8°4\times47-180=8°, the left edge of the bin rather than its center, 10°. Take a ground truth of 10° and compute two outputs.

A diagram drawn for this note, in two columns, A and B. The horizontal axis is bins 46 to 49, covering 4–8°, 8–12°, 12–16° and 16–20°, with decoded values at each range's left edge: 4°, 8°, 12° and 16°. The range of bin 47 is shaded light orange, and a green dashed line marks the ground truth of 10°, right in the middle of the range. Column A puts all the probability, 1.0, on bin 47, with the bar standing at 8° and an expectation of 8.0°; below it reads cross-entropy 0.00, MSE 4.00. Column B puts 0.5 on each of bins 47 and 48, with bars at 8° and 12° and an expectation of 10.0°, coinciding with the ground truth; below it reads cross-entropy 0.69, MSE 0.00. Two lines at the bottom explain that the official code decodes bin i to its left edge, 4i − 180; with β = 1, A's total loss is 4.0 and B's 0.69; decoded to the center, 4i − 178, both of A's terms are 0.
Drawn for this note from the loss in §3.1 of the paper and the binning and conversion in the official train.py.

A puts all its probability on the correct bin 47; the cross-entropy is 0, yet the expected value is only 8°, and the MSE is 4. B splits the probability evenly between bins 47 and 48; the expected value is exactly 10° and the MSE is 0, yet the cross-entropy is −ln⁡0.5=0.69-\ln 0.5=0.69. With β=1\beta=1, B's total loss is lower than A's, so the network learns to move part of the probability over to the bin on the right, compensating for this half-bin offset. The two losses pull against each other here. The classification term wants everything concentrated in bin 47, while the regression term wants some of it moved to the right.

When the author answered "how do I change the number of bins" in issue #8 (August 2022), the formula given was θ^=w∑i=1bpi (i−1+b2)\hat\theta = w\sum_{i=1}^{b} p_i\,(i-\tfrac{1+b}{2}), with ww the bin width and bb the number of bins. This formula corresponds to bin centers and differs from the code by half a bin (1.5° for MPIIGaze, 2° for Gaze360). With the regression term in place, the network can learn to compensate on its own; but if you train with cross-entropy alone, or switch at inference to the most probable bin, remember to add half a bin width when converting. Hopenet's code uses the same left-edge conversion.

Below is the official code's loss for the Gaze360 branch, with .cuda() and Variable omitted.

Python
# Excerpt from the official train.py; the comments are this note's
pitch, yaw = model(images_gaze)                       # 90-dim outputs of the two fully connected layers

loss_pitch_gaze = criterion(pitch, label_pitch_gaze)  # cross-entropy; the label is the bin index
loss_yaw_gaze = criterion(yaw, label_yaw_gaze)

pitch_predicted = softmax(pitch)
yaw_predicted = softmax(yaw)
pitch_predicted = torch.sum(pitch_predicted * idx_tensor, 1) * 4 - 180   # expected value back to an angle
yaw_predicted = torch.sum(yaw_predicted * idx_tensor, 1) * 4 - 180

loss_reg_pitch = reg_criterion(pitch_predicted, label_pitch_cont_gaze)   # MSE, in degrees
loss_reg_yaw = reg_criterion(yaw_predicted, label_yaw_cont_gaze)
loss_pitch_gaze += alpha * loss_reg_pitch             # alpha is the paper's β
loss_yaw_gaze += alpha * loss_reg_yaw

loss_seq = [loss_pitch_gaze, loss_yaw_gaze]
grad_seq = [torch.tensor(1.0) for _ in range(len(loss_seq))]
torch.autograd.backward(loss_seq, grad_seq)           # same as (loss_pitch_gaze + loss_yaw_gaze).backward()

idx_tensor holds the bin indices 0 to 89, criterion is nn.CrossEntropyLoss and reg_criterion is nn.MSELoss. The pitch and yaw in the variable names come up again later.

Training Setup

The paper gives an ImageNet-pretrained ResNet-50, Adam with a learning rate of 10−510^{-5}, 50 epochs and batch size 16. The remaining details are in the code.

  • Input. The data first goes through the GazeHub preprocessing compiled by Cheng et al., with faces cropped to 224×224224\times224, then upscaled to 448×448448\times448 during training.
  • Freezing. The first convolution layer and its BatchNorm get a learning rate of 0; BatchNorm layers in the backbone whose names contain bn are switched to eval mode, keeping ImageNet's statistics. The few functions that pick out these parameters are word for word the same as in Hopenet's official code.
  • Preprocessing. MPIIFaceGaze is normalized as described earlier, with right-eye samples flipped horizontally. Gaze360's preprocessing only crops a square around the center of the face box and resizes it to 224, with no virtual camera rotation; frames where the face can't be seen are skipped, so samples facing away from the camera aren't in this data.
  • Range. Gaze360 trains on all angles, while testing keeps only samples with yaw and pitch both within ±90°, that is, Front 180°.

Discussion

MPIIGaze

The numbers below are mean angular errors under leave-one-subject-out, in degrees, from the MPIIFaceGaze column.

MethodError
FullFace4.8
Dilated-Net4.8
GEDDNet4.5
RT-Gene (4-model ensemble)4.3
FAR-Net4.3
CA-Net4.1
AGE-Net4.09
L2CS-Net (β = 1)3.96
L2CS-Net (β = 2)3.92

Excerpted from Table 1 of the paper.

3.92° is 0.17° lower than the previous best, AGE-Net's 4.09°. As computed earlier, with pitch −10° a 4° yaw offset gives an angle of 3.94°, and a mean error of 3.92° is on that order.

In the Gaze360 table, the authors cite Cheng et al.'s 2021 gaze survey; in the MPIIFaceGaze column of that same survey, AFF-Net is at 3.73°, lower than 3.92°, and this table doesn't list it (AFF-Net originally estimates the point of gaze on the screen, and 3.73° is the angle the survey converted it to).

Original Figure 2: a bar chart with the 15 participants p00 to p14 and the average Avg on the horizontal axis and the mean angular error (degrees) on the vertical axis, drawn from 2 up to 7. Green is L2CS-Net and orange is FARE-Net. For most participants green is shorter than orange, for example about 3.8 versus 5.7 for p02 and about 4.3 versus 6.7 for p14; p11 is the reverse, with green about 6.7 and orange about 3.6; for p03, p04 and p06 the two are close, with orange slightly lower. Avg is 3.9 versus 4.4.
Original Figure 2, Abdelrahman et al., from PDF page 4, CC BY 4.0.

The authors compare participant by participant against FAR-Net (labeled FARE-Net in the legend), on the grounds that the FAR-Net paper published each participant's results. When reading the figure, note first that the vertical axis starts at 2°, which makes the differences in bar height look more dramatic than they are. L2CS-Net wins for 11 of the 15 participants, most clearly p02, p05 and p14, each lower by more than 1.3°. Of the 4 it loses, p03, p04 and p06 are within 0.5°, but p11 is 6.7° against 3.6°, nearly double. The same L2CS-Net, with a different participant as the test set, can jump from 2.4° to 6.7°; the two models' averages differ by only 0.5°, and the paper doesn't discuss what happened with p11.

Gaze360

MethodFront 180°Front facing
FullFace14.99–
Dilated-Net13.73–
RT-Gene (4-model ensemble)12.26–
CA-Net12.26–
Gaze360 (LSTM)11.411.1
L2CS-Net (β = 2)10.549.13
L2CS-Net (β = 1)10.419.02

Compiled from Table 2 of the paper, mean angular error (degrees).

The single-image L2CS-Net is about 1° lower on Front 180° than the Gaze360 model, which uses 7 video frames and a bidirectional LSTM, and 2° lower on Front facing. Counting single frames only, the Gaze360 paper's Pinball Static is 13.4° on Front 180°.

The numbers in this table come from two places. The Gaze360 (LSTM) row is taken from the Gaze360 paper, with the original authors' head crops and preprocessing; the first four rows, the authors say, are taken from Cheng et al.'s survey, rerun under GazeHub preprocessing. CA-Net's 12.26° in the table is identical to RT-Gene's in the row above, but in the survey CA-Net is 11.20°, and Gaze360 in the same survey is 11.04° (swap them back and L2CS still leads).

The Missing Ablation Table

The paper's only controlled experiment is β equal to 1 or 2. How much better is bin classification plus expected value than plain regression? How many bins should there be? Does it matter whether there are two fully connected layers or one? How much is lost by switching the backbone to ResNet-18? None of these get an answer.

Hopenet ran exactly this table on AFLW2000. A ResNet-50 with MSE regression alone had a mean error of 8.545°, cross-entropy alone (α = 0) 8.238°, and the two combined with α = 2 6.155°. On head pose, removing either loss makes things worse, and there's a table to prove it. Moving to gaze, L2CS-Net didn't redo the experiment; "classification plus regression works for gaze" can only be inferred indirectly, by comparing its total scores with methods that use other architectures and other preprocessing.

Now read the two papers side by side. Section 3.2 of Hopenet says "three fully-connected layers share the previous convolutional layers of the network," "we use the very stable softmax layer and cross-entropy, thus the network learns to predict the neighbourhood of the pose in a robust fashion," and that three cross-entropy losses give "three signals which are backpropagated into the network"; its loss is written L=H(y,y^)+α⋅MSE(y,y^)L = H(y,\hat y) + \alpha\cdot\mathrm{MSE}(y,\hat y), training uses Adam with a learning rate of 10−510^{-5}, and the main table lists two models, α = 1 and α = 2. Section 3 of L2CS-Net turns three into two and α into β, with nearly everything else matching sentence for sentence, and adds "To the best of our knowledge, all related works which estimated gaze using CNN-based methods do not consider the combined classification and regression loss in their techniques." The official model.py has a never-used fc_finetune layer with the comment "Vestigial layer from previous experiments"; Hopenet's hopenet.py has the same layer with the same comment. L2CS-Net's reference list has 21 entries, and Hopenet isn't one of them (its vestiges live on in the code, though). Ten days earlier, the same authors had listed HopeNet (α = 1) and HopeNet (α = 2) in 6DRepNet's comparison table.

Does the Official Code Run?

The README says it provides training and testing code for MPIIGaze, running leave-one-person-out. Open train.py, though, and the MPIIGaze branch passes one argument too few when building the dataset, so the fold number fold lands in the slot for the angle limit angle; for fold 0 the limit becomes 0° and every sample is filtered out. Then, when building the optimizer, get_ignored_params(model, args.arch) passes one argument too many and throws a TypeError straight away. Both bugs have been there since the first commit in March 2022.

In April 2022 someone reported the TypeError in issue #5, and others kept adding their voices until 2024; the authors never replied. In July 2024, issue #37 posted "45000 items removed from dataset that have an angle > 0", and 45,000 is exactly the whole evaluation set; the fix, PR #40, was submitted on January 1, 2025 and never merged. The args.bins, args.angle and args.bin_width that test.py reads aren't defined in the argument parser either.

leave_one_out_eval.py, which computes the MPIIGaze average, is more interesting still. Its loop was originally meant to compute a 15-fold average for each of the 50 epochs and keep the smallest; the released version hard-codes j=20 inside the loop, always reading the 21st epoch. MPIIGaze has no separate validation set, so whether you take the minimum or hard-code a particular epoch, the only basis for the choice is the error on the test folds.

Reproduction reports are all over the place too. In issue #6 in April 2022, the person asking retrained on their own and got a better number than 3.92°, but testing the officially released MPIIGaze weights gave 4.17°; another person in the same thread retrained with the paper's parameters and got 4.9°; in 2024 someone else likewise trained a model that beat the paper's number, and in 2025 another reported results far worse. The authors never appeared in that thread. On the Gaze360 side, in August 2024 a user wrote yakhyo/gaze-estimation from scratch, with the same 448 input and the same loss; a ResNet-50 trained for 200 epochs got 11.34° on Front 180°, against the paper's 10.41°.

The weights are on Google Drive. In September 2026, issue #47 reported that the link no longer opened; the official repo's last commit at the time was still from November 2023. In November a user shared a copy they had saved.

The Names pitch and yaw

In March 2024, issue #32 found that model.py returns in the order (yaw, pitch), while pipeline.py writes gaze_pitch, gaze_yaw = self.model(img); in July 2026, issue #45 reported it again, and two PRs have tried to "fix" the order.

It only becomes clear when you trace it back to the data source. In GazeHub's label files, the 2D gaze is ordered yaw, pitch; L2CS-Net's data loading, however, calls the first column pitch and the second yaw. During training, pitch, yaw = model(...) swaps the order of the model's outputs once more, and the two swaps cancel out, so the layer named fc_yaw_gaze really does learn yaw, and the error computation and the arrows drawn on screen are correct too. Only the variable names are wrong, from data loading all the way to the output, so in the result returned by pipeline.step(), the pitch field holds the horizontal angle and yaw holds the vertical angle, in radians (issue #24 asked about this in October 2023 and got no answer). Both PRs changed only the return order in model.py. Apply them, and inference with the official weights gets field names that match, but vis.py swaps the horizontal and vertical components when drawing the arrow; retrain with train.py, and the layer named fc_pitch_gaze ends up learning yaw.

Before You Use It

The official pipeline first finds faces with RetinaFace, crops the detection box as is, resizes it straight to 224×224224\times224, then upscales to 448 and feeds it to the model. The training data was a square cropped around the center of the face box, while detection boxes usually aren't square, so after resizing the face gets squashed or stretched; MPIIGaze-style data normalization isn't done either. In June 2023, issue #21 pointed out this mismatch, and the authors didn't reply.

How does it do in scenes the paper never looked at? In May 2026, Gaze4HRI (Sezer et al.) tested several public models zero-shot in human-robot interaction scenes, and for L2CS-Net it used the official Gaze360 weights. In the group with 100% lighting and a fixed camera, L2CS-Net's error was 18.99°, the highest of the seven models; PureGaze, trained on ETH-XGaze, was at 10.19°, and GazeTR, likewise trained only on Gaze360, at 17.17°. Taking all four lighting conditions together, the authors ranked L2CS-Net and GaT last among the Gaze360-trained models. Its variation across lighting conditions was the smallest, though. Speed isn't a problem; the same paper measured 1.92 milliseconds per image on an RTX A4000.

One more limit follows from the formula. The bins form a straight line from −180° to 180°; 178° and −178° are only 4° apart in direction, yet they are the first and last bins. For a gaze facing away from the camera, probability may pile up at both ends at once, and the expected value gets averaged to somewhere near 0°. The paper and the official tests only evaluate within ±90°, so they happen never to run into this problem. Gaze360's pitch never goes beyond ±90° either, so at least half of the 90 bins are never labeled at all.

Conclusion

L2CS-Net moves Hopenet's bin classification plus expected-value regression over to gaze. A ResNet-50 followed by two fully connected layers, with one "cross-entropy + β·MSE" each for yaw and pitch, reports 3.92° on MPIIGaze and 10.41° on Gaze360 Front 180°, the lowest on both tables.

What the paper can support ends at those two tables. The only control is β equal to 1 or 2, and how much of the improvement comes from the loss and how much from the 448 input and GazeHub preprocessing can't be told from the paper. The community's numbers are scattered too. The official MPIIGaze weights test at 4.17°, retraining with the paper's parameters gave 4.9°, and some people trained models that beat the paper; in human-robot interaction scenes, Gaze4HRI measured 18.99° in the fixed-camera, full-light group, the highest of the seven models.

When hooking up the official weights, three things need handling first. Crop faces the way the training data was cropped, as squares centered on the face; resizing the detection box directly squashes or stretches the face. The pitch field holds the horizontal angle and yaw the vertical angle, in radians; one photo looking left and one looking up will confirm it. And before retraining on MPIIGaze, fix the two argument bugs in train.py.

The paper is only four pages, and L2CS-Net's fame comes mainly from that webcam demo and a set of weights you can load directly. For how much its loss actually helps on gaze, the ablation to consult is the one [17.10] Hopenet: A Head Above ran on head pose; and of all the papers, Hopenet is the one missing from L2CS-Net's reference list.