SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1904.07399 · 2019

Adaptive Wing Loss for Robust Face Alignment via Heatmap Regression

arXiv · PDF · Open in the Atlas

Code that ran

17 of 27 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 10 have no contract verdict; 7 failures of our instrument; 10 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/1904.07399.json · badge: /api/ran/1904.07399.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
protossw512/AdaptiveWingLoss canonical (classifier label)
classifier basis: census
2 ran · 4 no recorded run
affromero/SMILE community (classifier label)
classifier basis not recorded on the link
14 ran · 6 no recorded run
zs7779/FAN_AdaptiveWingLoss reimplementation (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
bisenet2sean Ran
ran on a synthesized input
affromero/SMILE/metrics/segmentation_model.py
code served (permissive licence) · get_code("e47699a7d59b856e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family int, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import sys
from unittest.mock import MagicMock

torch.manual_seed(0)

# Create mock modules for misc.visualization
sys.modules['misc'] = MagicMock()
sys.modules['misc.visualization'] = MagicMock()

# Define the mock data that would come from misc.visualization
MASK_LABELS = {
    'skin': 1,
    'hair': 2,
    'shirt': 3,
    'pants': 4
}

ATTRS = ['skin', 'hair', 'shirt', 'pants']

# Mock the import
import misc.visualization as viz_mock
viz_mock.MASK_LABELS = MASK_LABELS
viz_mock.ATTRS = ATTRS

# Create a small label tensor with values matching MASK_LABELS values
# Shape: (2, 4) - batch of 2, spatial dims 4x1
label = torch.tensor([
    [1, 2, 3, 4],
    [1, 2, 3, 4]
], dtype=torch.long)

ARGS = {
    'label': label,
    'reverse': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
misc, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family int, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
conv3x3 Ran
ran; our contract draft was wrong, not the code
affromero/SMILE/metrics/arcface_resnet.py
pointer only (licence: MIT); the stored copy get_code serves, from lixiaotong97/DSU, is pointer only (licence: NONE) · get_code("fac5364e2f53c6db")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from lixiaotong97/DSU, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

conv3x3 Ran
ran; our contract draft was wrong, not the code
zs7779/FAN_AdaptiveWingLoss/core/models.py
pointer only (licence: NONE) · get_code("cd28335574411d48")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zs7779/FAN_AdaptiveWingLoss when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

conv_1x1_bn Ran
ran; our contract draft was wrong, not the code
affromero/SMILE/metrics/mobilenetv2.py
pointer only (licence: MIT); the stored copy get_code serves, from zhoudaquan/rethinking_bottleneck_design, is pointer only (licence: NOASSERTION) · get_code("a0131fb70c267a9e")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from zhoudaquan/rethinking_bottleneck_design, and GitHub could not classify the licence of that repository (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

conv_3x3_bn Ran
ran; our contract draft was wrong, not the code
affromero/SMILE/metrics/mobilenetv2.py
pointer only (licence: MIT); the stored copy get_code serves, from zhoudaquan/rethinking_bottleneck_design, is pointer only (licence: NOASSERTION) · get_code("408e747e0425a594")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from zhoudaquan/rethinking_bottleneck_design, and GitHub could not classify the licence of that repository (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

create_layer_basic Ran
ran; our contract draft was wrong, not the code
affromero/SMILE/metrics/segmentation_model.py
pointer only (licence: MIT); the stored copy get_code serves, from vladhondru25/DF-MoE, is pointer only (licence: NOASSERTION) · get_code("325b8d54f52e2421")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from vladhondru25/DF-MoE, and GitHub could not classify the licence of that repository (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

cv_crop Ran
ran on a synthesized input
protossw512/AdaptiveWingLoss/utils/utils.py
code served (permissive licence) · get_code("70a97576b2e259bc")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import cv2
import numpy as np

# Create a small test image (height=400, width=400, channels=3)
image = np.random.randint(0, 256, size=(400, 400, 3), dtype=np.uint8)

# Create landmarks as a numpy array (num_landmarks=5, coordinates=2)
landmarks = np.array([
    [100.0, 100.0],
    [150.0, 120.0],
    [200.0, 100.0],
    [120.0, 180.0],
    [180.0, 180.0]
], dtype=np.float32)

# Center point as a list
center = [200.0, 200.0]

# Scale factor
scale = 0.5

# Resolution for output
resolution = 256

# Center shift
center_shift = 10

ARGS = {
    "image": image,
    "landmarks": landmarks,
    "center": center,
    "scale": scale,
    "resolution": resolution,
    "center_shift": center_shift
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
gan_feat_loss Ran
ran on a synthesized input
affromero/SMILE/misc/losses.py
code served (permissive licence) · get_code("d27b2e2462c936f0")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# real_feat and fake_feat are lists of tensors
# The function slices them [from_f:-1], iterates through them with zip,
# and applies L1Loss to each pair
# We need lists with at least 2 elements so that [0:-1] produces a non-empty list

real_feat = [
    torch.randn(2, 4),  # batch size 2, feature dim 4
    torch.randn(2, 4),
    torch.randn(2, 4),
]

fake_feat = [
    torch.randn(2, 4),  # batch size 2, feature dim 4
    torch.randn(2, 4),
    torch.randn(2, 4),
]

ARGS = {
    "real_feat": real_feat,
    "fake_feat": fake_feat,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_activations Ran
ran on a synthesized input
affromero/SMILE/metrics/fid_score.py
code served (permissive licence) · get_code("914550130b4d8353")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family float, shape (4, 16) as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
import numpy as np

torch.manual_seed(0)

# Create a minimal Inception-like model that returns a tensor with spatial dimensions
class MinimalInceptionModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.conv1 = nn.Conv2d(3, 16, kernel_size=3, padding=1)
        self.pool = nn.AdaptiveAvgPool2d((4, 4))
    
    def forward(self, x):
        # x shape: (batch_size, 3, height, width)
        x = self.conv1(x)  # (batch_size, 16, height, width)
        x = self.pool(x)   # (batch_size, 16, 4, 4)
        # Return as tuple since code does model(batch)[0]
        return (x,)

# Create a tiny model instance
model = MinimalInceptionModel()

# Create sample images as numpy array with values between 0 and 1
# Shape: (num_images, 3, height, width)
images = np.random.rand(4, 3, 8, 8).astype(np.float32)

ARGS = {
    'images': images,
    'model': model,
    'batch_size': 2,
    'dims': 16,
    'cuda': False,
    'verbose': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (4, 16) — shape (4, 16) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_disc Ran
ran on a synthesized input
affromero/SMILE/misc/losses.py
code served (permissive licence) · get_code("4566e5df584812fa")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

class SimpleDiscriminator(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 1)
    
    def forward(self, input, label, sem=None):
        # Return a single tensor (not tuple/list) to test the conversion logic
        batch_size = input.shape[0]
        return self.linear(input).squeeze(-1)

# Create tiny tensors
input_tensor = torch.randn(2, 4)  # batch_size=2, feature_dim=4
label_tensor = torch.randn(2, 3)  # batch_size=2, label_dim=3
seg_tensor = torch.randn(2, 5)    # batch_size=2, seg_dim=5

# Create discriminator instance
disc = SimpleDiscriminator()

ARGS = {
    "Disc": disc,
    "input": input_tensor,
    "label": label_tensor,
    "seg": seg_tensor
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_images Ran
ran on a synthesized input
affromero/SMILE/metrics/fid_score.py
code served (permissive licence) · get_code("608139996fc77fef")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 4, dtype family float, shape (2, 3, 4, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from PIL import Image
import tempfile
import os

# Create temporary image files for testing
temp_dir = tempfile.mkdtemp()

# Create small test images (4x3 pixels, RGB)
img_array_1 = np.random.randint(0, 256, (4, 3, 3), dtype=np.uint8)
img_array_2 = np.random.randint(0, 256, (4, 3, 3), dtype=np.uint8)

img_1 = Image.fromarray(img_array_1, mode='RGB')
img_2 = Image.fromarray(img_array_2, mode='RGB')

img_path_1 = os.path.join(temp_dir, 'img1.png')
img_path_2 = os.path.join(temp_dir, 'img2.png')

img_1.save(img_path_1)
img_2.save(img_path_2)

# Create images list with file paths
images = [img_path_1, img_path_2]

ARGS = {
    'images': images,
    'start': 0,
    'end': 2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 4, dtype family float, shape (2, 3, 4, 3) — shape (2, 3, 4, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_zero_tensor Ran
ran on a synthesized input
affromero/SMILE/misc/losses.py
code served (permissive licence) · get_code("74b3e6d3ba3df864")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function takes an 'input' parameter and uses it with:
# - .to(input) to move a tensor to the same device as input
# - .expand_as(input) to expand a tensor to the same shape as input
# So 'input' must be a torch.Tensor

input_tensor = torch.randn(2, 4)

ARGS = {
    "input": input_tensor
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_meta_subset_data Ran
ran on a synthesized input
protossw512/AdaptiveWingLoss/dataset/convert_WFLW.py
code served (permissive licence) · get_code("0ef7e489513c369c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import os

# Create a temporary file with meta data in the expected format
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt')
temp_file.write("image1 cat\n")
temp_file.write("image2 dog\n")
temp_file.write("image3 bird\n")
temp_file.close()

meta_path = temp_file.name

ARGS = {
    "meta_path": meta_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
process_image Ran
ran on a synthesized input
affromero/SMILE/metrics/identity_model.py
code served (permissive licence) · get_code("011d1c9dcf2417ee")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 4, dtype family float, shape (4, 1, 4, 5) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create a small RGB image tensor
# Shape: (batch_size=2, channels=3, height=4, width=5)
# The function expects 3 channels (R, G, B) in dim=1
image = torch.randn(2, 3, 4, 5)

ARGS = {
    "image": image
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (4, 1, 4, 5) — shape (4, 1, 4, 5) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
resnet18 Ran
ran; our contract draft was wrong, not the code
affromero/SMILE/metrics/arcface_resnet.py
pointer only (licence: MIT); the stored copy get_code serves, from ronghuaiyang/arcface-pytorch, is pointer only (licence: NONE) · get_code("bd8fb5c95fa87652")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from ronghuaiyang/arcface-pytorch, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

resnet34 Ran
ran; our contract draft was wrong, not the code
affromero/SMILE/metrics/arcface_resnet.py
pointer only (licence: MIT); the stored copy get_code serves, from ronghuaiyang/arcface-pytorch, is pointer only (licence: NONE) · get_code("bb357f89cac141ff")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from ronghuaiyang/arcface-pytorch, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

toGray Ran
ran on a synthesized input
affromero/SMILE/metrics/identity_model.py
code served (permissive licence) · get_code("32fe5c39d154aeef")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 4, dtype family float, shape (2, 1, 4, 5) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function expects a tensor with shape (batch, 3, height, width)
# where dim=1 contains the R, G, B channels
# We'll create a small tensor: batch=2, channels=3, height=4, width=5
tensor = torch.rand(2, 3, 4, 5)

ARGS = {
    "tensor": tensor
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (2, 1, 4, 5) — shape (2, 1, 4, 5) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
calculate_frechet_distance Not yet run
unverified (harvested, no recorded run)
affromero/SMILE/metrics/fid_score.py
code served (permissive licence) · get_code("0def50a351111624")
How it ran

no invocation recorded. this sample carries JSON test cases instead of a setup block; get_reference_implementation serves them with the level they back.

compute_f1 Not yet run
unverified (harvested, no recorded run)
affromero/SMILE/metrics/f1_score.py
code served (permissive licence) · get_code("cf6388d3dfe650b4")
How it ran

no invocation recorded.

draw_gaussian Not yet run
unverified (harvested, no recorded run)
protossw512/AdaptiveWingLoss/utils/utils.py
code served (permissive licence) · get_code("d5a717a5a0d0df17")
How it ran

no invocation recorded.

get_loader Not yet run
unverified (harvested, no recorded run)
affromero/SMILE/data_loader.py
code served (permissive licence) · get_code("2cef682f544273a6")
How it ran

no invocation recorded.

get_transformations Not yet run
unverified (harvested, no recorded run)
affromero/SMILE/data_loader.py
code served (permissive licence) · get_code("24d857446f68d11f")
How it ran

no invocation recorded.

mobilenetv2 Not yet run
unverified (harvested, no recorded run)
affromero/SMILE/metrics/mobilenetv2.py
code served (permissive licence) · get_code("44d3e225af74f1a4")
How it ran

no invocation recorded.

parse_pts Not yet run
unverified (harvested, no recorded run)
protossw512/AdaptiveWingLoss/dataset/convert_WFLW.py
code served (permissive licence) · get_code("b26af76575924632")
How it ran

no invocation recorded.

transform Not yet run
unverified (harvested, no recorded run)
protossw512/AdaptiveWingLoss/dataset/convert_WFLW.py
code served (permissive licence) · get_code("79b7a34d972b528d")
How it ran

no invocation recorded.

transform Not yet run
unverified (harvested, no recorded run)
protossw512/AdaptiveWingLoss/utils/utils.py
code served (permissive licence) · get_code("1cd6afcc14570b53")
How it ran

no invocation recorded.

update_config Not yet run
unverified (harvested, no recorded run)
affromero/SMILE/config.py
code served (permissive licence) · get_code("e0e9e48345e57d40")
How it ran

no invocation recorded.

Also present in other papers' code

Of 27 samples lifted from this paper's linked repositories, 27 carry a function identity and 0 do not. Of the 27 distinct functions with an identity, 8 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 5 the same month, 8 later) and 19 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
conv3x3 686 other papers
102 dated earlier, 16 the same month, 568 later · 31 only as an assembly brick
1406.2661 (2014-06)
Generative Adversarial Networks
1409.0575 (2014-09)
ImageNet Large Scale Visual Recognition Challenge
1412.6572 (2014-12)
Explaining and Harnessing Adversarial Examples
and 683 more not named here
resnet18 89 other papers
11 dated earlier, 3 the same month, 75 later
1705.09759 (2017-05)
CASENet: Deep Category-Aware Semantic Edge Detection
1801.07698 (2018-01)
ArcFace: Additive Angular Margin Loss for Deep Face Recognition
1803.00839 (2018-03)
Pose-Robust Face Recognition via Deep Residual Equivariant Mapping
and 86 more not named here
calculate_frechet_distance 74 other papers
4 dated earlier, 2 the same month, 68 later
1610.09585 (2016-10)
Conditional Image Synthesis With Auxiliary Classifier GANs
1706.08500 (2017-06)
GANs Trained by a Two Time-Scale Update Rule Converge to a Local Nash Equilibrium
1807.11458 (2018-07)
To learn image super-resolution, use a GAN to learn how to do image degradation first
and 71 more not named here
resnet34 53 other papers
10 dated earlier, 3 the same month, 40 later
1705.09759 (2017-05)
CASENet: Deep Category-Aware Semantic Edge Detection
1801.07698 (2018-01)
ArcFace: Additive Angular Margin Loss for Deep Face Recognition
1803.00839 (2018-03)
Pose-Robust Face Recognition via Deep Residual Equivariant Mapping
and 50 more not named here
conv_1x1_bn 31 other papers
6 dated earlier, 1 the same month, 24 later · 2 only as an assembly brick
1703.07402 (2017-03)
Simple Online and Realtime Tracking with a Deep Association Metric
1801.04381 (2018-01)
MobileNetV2: Inverted Residuals and Linear Bottlenecks
1811.08383 (2018-11)
TSM: Temporal Shift Module for Efficient Video Understanding
and 28 more not named here
create_layer_basic 18 other papers
18 later
1911.09070 (2019-11)
EfficientDet: Scalable and Efficient Object Detection
2011.00844 (2020-11)
Do 2D GANs Know 3D Shape? Unsupervised 3D shape reconstruction from 2D Image GANs
2104.02244 (2021-04)
Content-Aware GAN Compression
and 15 more not named here
conv_3x3_bn 12 other papers
1 dated earlier, 11 later
1801.04381 (2018-01)
MobileNetV2: Inverted Residuals and Linear Bottlenecks
1911.08114 (2019-11)
Neural Network Pruning with Residual-Connections and Limited-Data
aaai_6622 (2020 (year only))
Learning Deep Relations to Promote Saliency Detection
and 9 more not named here
conv3x3 1 other paper
1 later
2410.00418 (2024-10)
Posterior-Mean Rectified Flow: Towards Minimum MSE Photo-Realistic Image Restoration

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Heatmap regression with a deep network has become one of the mainstream approaches to localize facial landmarks. However, the loss function for heatmap regression is rarely studied. In this paper, we analyze the ideal loss function properties for heatmap regression in face alignment problems. Then we propose a novel loss function, named Adaptive Wing loss, that is able to adapt its shape to different types of ground truth heatmap pixels. This adaptability penalizes loss more on foreground pixels while less on background pixels. To address the imbalance between foreground and background pixels, we also propose Weighted Loss Map, which assigns high weights on foreground and difficult background pixels to help training process focus more on pixels that are crucial to landmark localization. To further improve face alignment accuracy, we introduce boundary prediction and CoordConv with boundary coordinates. Extensive experiments on different benchmarks, including COFW, 300W and WFLW, show our approach outperforms the state-of-the-art by a significant margin on various evaluation metrics. Besides, the Adaptive Wing loss also helps other heatmap regression tasks. Code will be made publicly available at https://github.com/protossw512/AdaptiveWingLoss.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("1904.07399")
get_code_for_paper("1904.07399")
have("1904.07399")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/1904.07399.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/1904.07399.svg)](https://syntology.ai/paper/1904.07399)

Connect an agent — have() is free.