SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2607.15995 · 2026

CanonicalPhys: Pose-Robust Remote Photoplethysmography via Canonical-Space Priors

Hui Wei, Guoying Zhao, Xiaobai Li, Seyedata Seyedian

arXiv · PDF · Open in the Atlas

Code that ran

10 of 13 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (7 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 7 have no contract verdict; 3 failures of our instrument; 3 no recorded run), measured 2026-11-23; 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/2607.15995.json · badge: /api/ran/2607.15995.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
infraface/CanonicalPhys community
Papers with Code archive
10 ran · 3 no recorded run
FunctionStatusWhere it lives
CanonicalWarp Ran
ran on a synthesized input · constructed an object; no result was computed
infraface/CanonicalPhys/models/canonical_phys.py
code served (permissive licence) · get_code("e4ee3dab942051c5")
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 an instance of its own class, CanonicalWarp: the run constructed the object and did not call it, so no result was computed. 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)

# Define the module as shown in the function signature
ANCHOR_INDICES = [36, 45, 48, 54]
CANONICAL_ANCHORS = torch.tensor([[0.3, 0.4], [0.7, 0.4], [0.38, 0.72], [0.62, 0.72]], dtype=torch.float32)

ARGS = {
    'anchor_indices': ANCHOR_INDICES,
    'canonical_anchors': CANONICAL_ANCHORS,
    'padding_mode': 'zeros',
}
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 CanonicalWarp — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a CanonicalWarp output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
ConvBNReLU Ran
ran on a synthesized input · constructed an object; no result was computed
infraface/CanonicalPhys/models/canonical_phys.py
code served (permissive licence) · get_code("33a9f1fd32ac30fc")
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 an instance of its own class, ConvBNReLU: the run constructed the object and did not call it, so no result was computed. 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)

# ConvBNReLU is a class, so we need to instantiate it with valid arguments
# Looking at __init__, the parameters are:
# in_c, out_c, kernel_size, stride, padding, dilation, groups, act, apply_bn, apply_act

ARGS = {
    'in_c': 3,
    'out_c': 16,
    'kernel_size': 1,
    'stride': 1,
    'padding': 'same',
    'dilation': 1,
    'groups': 1,
    'act': 'relu',
    'apply_bn': False,
    'apply_act': True
}
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 ConvBNReLU — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a ConvBNReLU output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
NMF Ran
ran on a synthesized input · constructed an object; no result was computed
infraface/CanonicalPhys/models/canonical_phys.py
code served (permissive licence) · get_code("69456bfe18ae790d")
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 an instance of its own class, NMF: the run constructed the object and did not call it, so no result was computed. 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)

# Create md_config dictionary with all required keys
md_config = {
    'MD_TYPE': 'NMF',
    'MD_TRANSFORM': 't_kab',
    'MD_S': 2,
    'MD_R': 3,
    'MD_STEPS': 2,
    'INV_T': 1.0,
    'ETA': 0.01,
    'RAND_INIT': False,
}

# Set device to CPU
device = 'cpu'

# Define ARGS dictionary with all parameters for NMF.__init__
ARGS = {
    'device': device,
    'md_config': md_config,
    'dim': '3D',
}
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 NMF — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a NMF output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
PhysicsWeight Ran
ran on a synthesized input · constructed an object; no result was computed
infraface/CanonicalPhys/models/canonical_phys.py
code served (permissive licence) · get_code("5882ae3d9ba25d42")
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 an instance of its own class, PhysicsWeight: the run constructed the object and did not call it, so no result was computed. 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
import numpy as np
import tempfile
import os

torch.manual_seed(0)

# Create temporary directory for the weight files
temp_dir = tempfile.mkdtemp()

# Create mock canonical normals file
# Shape: (K, 3) where K is number of landmarks
K = 68  # dlib68 landmarks
canonical_normals = np.random.randn(K, 3).astype(np.float32)
canonical_normals = canonical_normals / np.linalg.norm(canonical_normals, axis=1, keepdims=True)
canonical_normals_path = os.path.join(temp_dir, 'canonical_normals_dlib68.npy')
np.save(canonical_normals_path, canonical_normals)

# Create mock canonical 2D landmarks file
# Shape: (K, 2) with values in [0, 1]
canonical_landmarks_2d = np.random.rand(K, 2).astype(np.float32)
canonical_landmarks_2d_path = os.path.join(temp_dir, 'canonical_landmarks_2d.npy')
np.save(canonical_landmarks_2d_path, canonical_landmarks_2d)

ARGS = {
    'canonical_normals_path': canonical_normals_path,
    'canonical_landmarks_2d_path': canonical_landmarks_2d_path,
    'spatial_size': 72,
    'sharpness': 8.0,
    'bias': 0.55,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PhysicsWeight — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a PhysicsWeight output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
VQ Ran
ran on a synthesized input · constructed an object; no result was computed
infraface/CanonicalPhys/models/canonical_phys.py
code served (permissive licence) · get_code("f8c2510e6799871d")
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 an instance of its own class, VQ: the run constructed the object and did not call it, so no result was computed. 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)

device = 'cpu'

md_config = {
    'MD_TYPE': 'VQ',
    'MD_TRANSFORM': 't_kab',
    'MD_S': 2,
    'MD_R': 3,
    'MD_STEPS': 2,
    'INV_T': 1.0,
    'ETA': 0.99,
    'RAND_INIT': False,
}

dim = '3D'

ARGS = {
    'device': device,
    'md_config': md_config,
    'dim': dim,
}
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 VQ — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a VQ output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
_MatrixDecompositionBase Ran
ran on a synthesized input · constructed an object; no result was computed
infraface/CanonicalPhys/models/canonical_phys.py
code served (permissive licence) · get_code("ceee6689ac59746b")
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 an instance of its own class, _MatrixDecompositionBase: the run constructed the object and did not call it, so no result was computed. 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)

# Create md_config dictionary with all required keys
md_config = {
    'MD_TYPE': 'svd',
    'MD_TRANSFORM': 't_kab',
    'MD_S': 2,
    'MD_R': 3,
    'MD_STEPS': 1,
    'INV_T': 1.0,
    'ETA': 0.1,
    'RAND_INIT': False,
}

# Device set to CPU
device = 'cpu'

# Dimension parameter
dim = '3D'

ARGS = {
    'device': device,
    'md_config': md_config,
    'dim': dim,
}
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 _MatrixDecompositionBase — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a _MatrixDecompositionBase output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
build_pixel_to_landmark_assignment Ran
ran; our contract draft was wrong, not the code
infraface/CanonicalPhys/models/canonical_phys.py
code served (permissive licence) · get_code("74ca8dfc40b96809")
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 int, shape (72, 72) 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

# Create canonical landmarks in 2D space normalized to [0, 1]
# Using K=5 landmarks
canonical_landmarks_2d = np.array([
    [0.2, 0.3],
    [0.8, 0.2],
    [0.5, 0.5],
    [0.3, 0.8],
    [0.7, 0.7]
], dtype=np.float32)

# Spatial size for the output grid
spatial_size = 72

ARGS = {
    "canonical_landmarks_2d": canonical_landmarks_2d,
    "spatial_size": spatial_size
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — 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 int, shape (72, 72) — shape (72, 72) 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
compute_homography_4pt Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
infraface/CanonicalPhys/models/canonical_phys.py
code served (permissive licence) · get_code("543dada4d641088c")
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 3, dtype family float, shape (2, 3, 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 torch

torch.manual_seed(0)

# Create small tensors for 4-point correspondences
# src: (N, 4, 2) - N=2 batches, 4 points per batch, 2 coordinates (x, y)
# dst: (N, 4, 2) - N=2 batches, 4 points per batch, 2 coordinates (u, v)

N = 2
src = torch.randn(N, 4, 2, dtype=torch.float32)
dst = torch.randn(N, 4, 2, dtype=torch.float32)

ARGS = {
    "src": src,
    "dst": dst,
}
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 3, dtype family float, shape (2, 3, 3) — shape (2, 3, 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
rPPG_FeatureExtractor Ran
ran on a synthesized input · constructed an object; no result was computed
infraface/CanonicalPhys/models/canonical_phys.py
code served (permissive licence) · get_code("89df520c25e445c2")
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 an instance of its own class, rPPG_FeatureExtractor: the run constructed the object and did not call it, so no result was computed. 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)

# The rPPG_FeatureExtractor takes a 5D input tensor (batch, channels, depth, height, width)
# Based on the architecture, it expects 3D convolutions
# We'll create a small input tensor: batch=2, channels=3, depth=4, height=8, width=8

ARGS = {
    'inCh': 3,
    'dropout_rate': 0.1
}
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 rPPG_FeatureExtractor — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a rPPG_FeatureExtractor output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
warp_by_homography Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
infraface/CanonicalPhys/models/canonical_phys.py
code served (permissive licence) · get_code("7873e9dbf4d20fc9")
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, 3, 6, 7) 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.functional as F

torch.manual_seed(0)

# Create small test tensors
# frames: (N, C, H, W) - batch of 2, 3 channels, 4x5 spatial dims
frames = torch.randn(2, 3, 4, 5, dtype=torch.float32)

# H: (N, 3, 3) - homography matrices for each frame in batch
# Create valid homographies (invertible matrices)
H = torch.eye(3, dtype=torch.float32).unsqueeze(0).expand(2, -1, -1).clone()
# Add small perturbations to make them distinct but still valid
H[0, 0, 1] = 0.1
H[1, 1, 0] = 0.05
H[1, 2, 2] = 1.2

# out_size: optional output spatial dimensions
out_size = (6, 7)

# padding_mode: string parameter
padding_mode = 'zeros'

ARGS = {
    'frames': frames,
    'H': H,
    'out_size': out_size,
    'padding_mode': padding_mode,
}
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, 3, 6, 7) — shape (2, 3, 6, 7) 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
BVP_Head Not yet run
unverified (harvested, no recorded run)
infraface/CanonicalPhys/models/canonical_phys.py
code served (permissive licence) · get_code("12a52c494b33d6f6")
How it ran

no invocation recorded.

CanonicalPhys Not yet run
unverified (harvested, no recorded run)
infraface/CanonicalPhys/models/canonical_phys.py
code served (permissive licence) · get_code("9ddba0b6a1dd65e6")
How it ran

no invocation recorded.

FeaturesFactorizationModule Not yet run
unverified (harvested, no recorded run)
infraface/CanonicalPhys/models/canonical_phys.py
code served (permissive licence) · get_code("31d31b654b6c43a4")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 13 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.

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

Deep remote photoplethysmography (rPPG) attains subbpm heart-rate error on frontal, stationary faces yet degrades sharply under head pose: on MMPD, the state-ofthe-art FactorizePhys backbone's MAE grows 1.60× from frontal (|yaw|<15 • ) to large-yaw (|yaw|≥45 • ) frames. We argue that pose is a coordinate-structural nuisance rather than a data-augmentation problem: in image coordinates the same pixel maps to different anatomy at different poses, blocking three priors otherwise natural for rPPG, namely the dichromatic reflection model, pulse-phase invariance across skin regions, and the POS/CHROM chromaticity projection, each of which presumes a stable anatomy-to-pixel mapping. We introduce CanonicalPhys, which prepends a differentiable four-point homography that fixes four facial anchors at canonical positions; in this canonical frame the three priors become expressible as a per-pixel Lambertian weight, a cross-ROI temporal consistency loss, and knowledge distillation from windowed POS, none of which adds trainable parameters over the backbone. At an identical parameter count, CanonicalPhys reduces MMPD's frontal-tolarge-yaw MAE degradation from 1.60× to 1.33× and flattens the mild-yaw bin from 1.32× to 1.07× (across Canon-icalPhys variants), with matched cross-dataset MAE reductions of up to 32% on pose-rich targets. Code: https: //github.com/infraface/CanonicalPhys.

For agents

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

get_harvested_code_for_paper("2607.15995")
get_code_for_paper("2607.15995")
have("2607.15995")

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

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

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

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

Connect an agent — have() is free.