SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1806.06098 · 2018

Unsupervised Training for 3D Morphable Model Regression

arXiv · PDF · Open in the Atlas

Code that ran

8 of 13 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 8 have no contract verdict; 0 failures of our instrument; 5 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/1806.06098.json · badge: /api/ran/1806.06098.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
google/tf_mesh_renderer canonical (classifier label)
classifier basis: census
2 ran · 3 no recorded run
FuxiCV/pt_mesh_renderer community (classifier label)
classifier basis not recorded on the link
6 ran · 2 no recorded run
FunctionStatusWhere it lives
euler_matrices Ran
ran on a synthesized input
google/tf_mesh_renderer/mesh_renderer/camera_utils.py
code served (permissive licence) · get_code("f597c63188c9765c")
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 EagerTensor, ndim 3, dtype family float, shape (2, 4, 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 tensorflow as tf
import numpy as np

# Create a small batch of angles (batch_size=2, 3 angles for XYZ rotation)
angles = tf.constant([
    [0.1, 0.2, 0.3],
    [0.4, 0.5, 0.6]
], dtype=tf.float32)

ARGS = {
    "angles": angles
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 3, dtype family float, shape (2, 4, 4) — shape (2, 4, 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
euler_matrices Ran
ran on a synthesized input
FuxiCV/pt_mesh_renderer/pt_mesh_renderer/camera_utils.py
code served (permissive licence) · get_code("5a0d7d77280c1c67")
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, 4, 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 expects angles: a [batch_size, 3] tensor containing X, Y, and Z angles in radians
angles = torch.randn(2, 3)  # batch_size=2, 3 angles (X, Y, Z)

ARGS = {
    "angles": angles
}
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, 4, 4) — shape (2, 4, 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
look_at Ran
ran on a synthesized input
FuxiCV/pt_mesh_renderer/pt_mesh_renderer/camera_utils.py
code served (permissive licence) · get_code("a4ebd8e0d6d91caa")
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, 4, 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)

# Create small batch size of 2, dimension 3 for eye/center/world_up
batch_size = 2

# eye: [batch_size, 3] - camera positions in world space
eye = torch.tensor([
    [1.0, 2.0, 3.0],
    [0.5, 1.5, 2.5]
], dtype=torch.float32)

# center: [batch_size, 3] - points the camera looks at
center = torch.tensor([
    [0.0, 0.0, 0.0],
    [0.0, 0.0, 0.0]
], dtype=torch.float32)

# world_up: [batch_size, 3] - world up direction
world_up = torch.tensor([
    [0.0, 1.0, 0.0],
    [0.0, 1.0, 0.0]
], dtype=torch.float32)

ARGS = {
    'eye': eye,
    'center': center,
    'world_up': world_up
}
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, 4, 4) — shape (2, 4, 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
perspective Ran
ran on a synthesized input
google/tf_mesh_renderer/mesh_renderer/camera_utils.py
code served (permissive licence) · get_code("05434f691625f2ee")
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 EagerTensor, ndim 3, dtype family float, shape (2, 4, 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 tensorflow as tf
import math

# Set seed for reproducibility
tf.random.set_seed(0)

# Create small batch of test data
batch_size = 2

# aspect_ratio: float value specifying the image aspect ratio (width/height)
aspect_ratio = 1.5

# fov_y: 1-D float32 Tensor with shape [batch_size] specifying output vertical field of views in degrees
fov_y = tf.constant([45.0, 60.0], dtype=tf.float32)

# near_clip: 1-D float32 Tensor with shape [batch_size] specifying near clipping plane distance
near_clip = tf.constant([0.1, 0.2], dtype=tf.float32)

# far_clip: 1-D float32 Tensor with shape [batch_size] specifying far clipping plane distance
far_clip = tf.constant([100.0, 200.0], dtype=tf.float32)

ARGS = {
    "aspect_ratio": aspect_ratio,
    "fov_y": fov_y,
    "near_clip": near_clip,
    "far_clip": far_clip,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 3, dtype family float, shape (2, 4, 4) — shape (2, 4, 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
perspective Ran
ran on a synthesized input
FuxiCV/pt_mesh_renderer/pt_mesh_renderer/camera_utils.py
code served (permissive licence) · get_code("4553e70c7e503752")
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, 4, 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 math

torch.manual_seed(0)

ARGS = {
    "aspect_ratio": 1.5,
    "fov_y": torch.tensor([45.0, 60.0], dtype=torch.float32),
    "near_clip": torch.tensor([0.1, 0.2], dtype=torch.float32),
    "far_clip": torch.tensor([100.0, 200.0], dtype=torch.float32),
}
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, 4, 4) — shape (2, 4, 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
phong_shader Ran
ran on a synthesized input
FuxiCV/pt_mesh_renderer/pt_mesh_renderer/mesh_renderer.py
code served (permissive licence) · get_code("508039c12462db1d")
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, 4, 3, 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 torch.nn as nn

torch.manual_seed(0)

batch_size = 2
image_height = 4
image_width = 3
light_count = 2

# normals: [batch_size, image_height, image_width, 3]
normals = torch.randn(batch_size, image_height, image_width, 3, dtype=torch.float32)
normals = torch.nn.functional.normalize(normals, p=2, dim=-1)

# alphas: [batch_size, image_height, image_width]
alphas = torch.rand(batch_size, image_height, image_width, dtype=torch.float32)

# pixel_positions: [batch_size, image_height, image_width, 3]
pixel_positions = torch.randn(batch_size, image_height, image_width, 3, dtype=torch.float32)

# light_positions: [batch_size, light_count, 3]
light_positions = torch.randn(batch_size, light_count, 3, dtype=torch.float32)

# light_intensities: [batch_size, light_count, 3]
light_intensities = torch.rand(batch_size, light_count, 3, dtype=torch.float32) + 0.5

# diffuse_colors: [batch_size, image_height, image_width, 3]
diffuse_colors = torch.rand(batch_size, image_height, image_width, 3, dtype=torch.float32)

# camera_position: [batch_size, 3]
camera_position = torch.randn(batch_size, 3, dtype=torch.float32)

# specular_colors: [batch_size, image_height, image_width, 3]
specular_colors = torch.rand(batch_size, image_height, image_width, 3, dtype=torch.float32)

# shininess_coefficients: can be [batch_size, image_height, image_width] or broadcastable
shininess_coefficients = torch.rand(batch_size, 1, 1, dtype=torch.float32) + 0.5

# ambient_color: [batch_size, 3]
ambient_color = torch.rand(batch_size, 3, dtype=torch.float32)

ARGS = {
    'normals': normals,
    'alphas': alphas,
    'pixel_positions': pixel_positions,
    'light_positions': light_positions,
    'light_intensities': light_intensities,
    'diffuse_colors': diffuse_colors,
    'camera_position': camera_position,
    'specular_colors': specular_colors,
    'shininess_coefficients': shininess_coefficients,
    'ambient_color': ambient_color,
}
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, 4, 3, 4) — shape (2, 4, 3, 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
rasterize_clip_space Ran
ran on a synthesized input
FuxiCV/pt_mesh_renderer/pt_mesh_renderer/rasterizer.py
code served (permissive licence) · get_code("a4c036df88819499")
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; 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 torch

torch.manual_seed(0)

# Mock the rasterize_triangles function that is called internally
def rasterize_triangles(vertices, triangles, image_width, image_height):
    """Mock rasterizer that returns barycentric coordinates, triangle IDs, and z-buffer."""
    # vertices: [vertex_count, 4]
    # triangles: [triangle_count, 3]
    # Returns: barycentric_coordinates, triangle_ids, z_buffer
    
    batch_pixels = image_height * image_width
    
    # Create mock barycentric coordinates [image_height, image_width, 3]
    barycentric_coords = torch.rand(image_height, image_width, 3)
    barycentric_coords = barycentric_coords / barycentric_coords.sum(dim=2, keepdim=True)
    
    # Create mock triangle IDs [image_height, image_width]
    num_triangles = triangles.shape[0]
    triangle_ids = torch.randint(0, max(1, num_triangles), (image_height, image_width))
    
    # Create mock z-buffer [image_height, image_width]
    z_buffer = torch.rand(image_height, image_width)
    
    return barycentric_coords, triangle_ids, z_buffer

# Inject mock into module namespace for the function to use
import sys
current_module = sys.modules[__name__]
setattr(current_module, 'rasterize_triangles', rasterize_triangles)

# Construct arguments
batch_size = 2
vertex_count = 5
attribute_count = 3
triangle_count = 4
image_width = 8
image_height = 6

clip_space_vertices = torch.rand(batch_size, vertex_count, 4, dtype=torch.float32)
attributes = torch.rand(batch_size, vertex_count, attribute_count, dtype=torch.float32)
triangles = torch.tensor([
    [0, 1, 2],
    [1, 2, 3],
    [2, 3, 4],
    [0, 3, 4]
], dtype=torch.int32)
background_value = torch.rand(attribute_count, dtype=torch.float32)

ARGS = {
    'clip_space_vertices': clip_space_vertices,
    'attributes': attributes,
    'triangles': triangles,
    'image_width': image_width,
    'image_height': image_height,
    'background_value': background_value
}
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 — no output shape is stated: observe_signature.py could not observe it (fixture:KeyError)
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
tone_mapper Ran
ran on a synthesized input
FuxiCV/pt_mesh_renderer/pt_mesh_renderer/mesh_renderer.py
code served (permissive licence) · get_code("43d01235bad4018c")
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, 4, 3, 2) 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 batch of images
# Shape: [batch_size=2, height=4, width=3, channels=2]
image = torch.rand(2, 4, 3, 2, dtype=torch.float32) * 2.0  # Scale up to have values > 1 for HDR effect

# Create a gamma correction factor (0-D tensor)
gamma = torch.tensor(0.5, dtype=torch.float32)

ARGS = {
    "image": image,
    "gamma": gamma,
}
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, 4, 3, 2) — shape (2, 4, 3, 2) 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
look_at Not yet run
unverified (harvested, no recorded run)
google/tf_mesh_renderer/mesh_renderer/camera_utils.py
code served (permissive licence) · get_code("ceaa9cb1cb869141")
How it ran

no invocation recorded.

mesh_renderer Not yet run
unverified (harvested, no recorded run)
FuxiCV/pt_mesh_renderer/pt_mesh_renderer/mesh_renderer.py
code served (permissive licence) · get_code("5379a7bcf47d408a")
How it ran

no invocation recorded.

phong_shader Not yet run
unverified (harvested, no recorded run)
google/tf_mesh_renderer/mesh_renderer/mesh_renderer.py
code served (permissive licence) · get_code("1dd47327b13afc60")
How it ran

no invocation recorded.

rasterize Not yet run
unverified (harvested, no recorded run)
FuxiCV/pt_mesh_renderer/pt_mesh_renderer/rasterizer.py
code served (permissive licence) · get_code("24ee1d2de50813af")
How it ran

no invocation recorded.

tone_mapper Not yet run
unverified (harvested, no recorded run)
google/tf_mesh_renderer/mesh_renderer/mesh_renderer.py
code served (permissive licence) · get_code("7480ef42438e87bf")
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, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 later) and 12 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
tone_mapper 1 other paper
1 later
2003.05653 (2020-03)
Towards High-Fidelity 3D Face Reconstruction from In-the-Wild Images Using Graph Convolutional Networks

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

We present a method for training a regression network from image pixels to 3D morphable model coordinates using only unlabeled photographs. The training loss is based on features from a facial recognition network, computed on-the-fly by rendering the predicted faces with a differentiable renderer. To make training from features feasible and avoid network fooling effects, we introduce three objectives: a batch distribution loss that encourages the output distribution to match the distribution of the morphable model, a loopback loss that ensures the network can correctly reinterpret its own output, and a multi-view identity loss that compares the features of the predicted 3D face and the input photograph from multiple viewing angles. We train a regression network using these objectives, a set of unlabeled photographs, and the morphable model itself, and demonstrate state-of-the-art results.

For agents

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

get_harvested_code_for_paper("1806.06098")
get_code_for_paper("1806.06098")
have("1806.06098")

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

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

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

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

Connect an agent — have() is free.