SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1904.08921 · 2019

Deep Parametric Shape Predictions using Distance Fields

arXiv · PDF · Open in the Atlas

Code that ran

10 of 11 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; 2 failures of our instrument; 1 no recorded run), measured 2026-11-24; 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.08921.json · badge: /api/ran/1904.08921.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
dmsm/DeepParametricShapes canonical (classifier label)
classifier basis: census
10 ran · 1 no recorded run
FunctionStatusWhere it lives
add_z Ran
ran on a synthesized input
dmsm/DeepParametricShapes/dps_2d/models.py
code served (permissive licence) · get_code("0da3e9b90676b537")
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, 10, 3, 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 as th

th.manual_seed(0)

# Create a small batch of input tensors with shape (batch, channels, height, width)
# Using distinct sizes: batch=2, channels=4, height=3, width=5
x = th.randn(2, 4, 3, 5)

# Create a small batch of latent vectors with shape (batch, latent_dim)
# Using distinct sizes: batch=2, latent_dim=6
z = th.randn(2, 6)

ARGS = {
    "x": x,
    "z": z
}
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, 10, 3, 5) — shape (2, 10, 3, 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
conv1x1 Ran
ran; our contract draft was wrong, not the code
dmsm/DeepParametricShapes/dps_3d/models.py
pointer only (licence: MIT); the stored copy get_code serves, from Duplums/bhb10k-dl-benchmark, is pointer only (licence: NONE) · get_code("262e5c2a0bf12f36")
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 Duplums/bhb10k-dl-benchmark, 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
dmsm/DeepParametricShapes/dps_3d/models.py
pointer only (licence: MIT); the stored copy get_code serves, from Duplums/bhb10k-dl-benchmark, is pointer only (licence: NONE) · get_code("68212b2060dc618d")
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 Duplums/bhb10k-dl-benchmark, 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.

distance_to_cuboids Ran
ran on a synthesized input
dmsm/DeepParametricShapes/dps_3d/utils.py
code served (permissive licence) · get_code("bd80da550e0a68c3")
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 (1, 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 as th

th.manual_seed(0)

# source_points: [n_points, 3]
# params: [b, 10] where 10 = 3 (b) + 4 (q) + 3 (T)

source_points = th.randn(4, 3)  # n_points=4, 3D points

params = th.randn(2, 10)  # batch=2, 10 params per cuboid

ARGS = {
    "source_points": source_points,
    "params": params,
}
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 (1, 2, 4) — shape (1, 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
distance_to_curves Ran
ran on a synthesized input
dmsm/DeepParametricShapes/dps_2d/utils.py
code served (permissive licence) · get_code("964fbbd1f89095c7")
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
import numpy as np

torch.manual_seed(0)

# source_points: [n_points, 2]
# curves: [..., 3, 2]
# The function computes distance from each source point to each quadratic Bezier curve

source_points = torch.randn(4, 2)

# curves with shape [2, 3, 2] - batch of 2 curves, each with 3 control points, 2D coordinates
curves = torch.randn(2, 3, 2)

ARGS = {
    "source_points": source_points,
    "curves": curves,
}
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 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
distance_to_rounded_cuboids Ran
ran on a synthesized input
dmsm/DeepParametricShapes/dps_3d/utils.py
code served (permissive licence) · get_code("b5cc7c904bb23034")
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 (1, 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 torch.nn as nn

torch.manual_seed(0)

# Create source_points: [n_points, 3]
# Using 4 points, 3 spatial dimensions
source_points = torch.randn(4, 3)

# Create params: [b, 11]
# Structure: [3 (b), 4 (q), 3 (T), 1 (r)]
# Using batch size 2
params = torch.randn(2, 11)

ARGS = {
    "source_points": source_points,
    "params": params,
}
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 (1, 2, 4) — shape (1, 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
hamilton_product Ran
ran on a synthesized input
dmsm/DeepParametricShapes/dps_3d/utils.py
code served (permissive licence) · get_code("ed6cbfc730392d8c")
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 as th

th.manual_seed(0)

# Create two quaternion tensors
# Quaternions have 4 components (a, b, c, d), so the split dimension should be size 4
# Batch size 2, quaternion dimension 4
q1 = th.randn(2, 4)
q2 = th.randn(2, 4)

ARGS = {
    "q1": q1,
    "q2": q2,
    "dim": -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 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
make_safe Ran
ran on a synthesized input
dmsm/DeepParametricShapes/dps_2d/utils.py
code served (permissive licence) · get_code("f5eeb70ab5ddc525")
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 as th

th.manual_seed(0)

# Create a small tensor with some small entries (< 1e-06) and some normal entries
x = th.tensor([
    [1.5, 2e-07, 3.0, 4e-08],
    [5.0, 6.0, 7e-07, 8.0]
], dtype=th.float32)

ARGS = {
    "x": x
}
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
poly_bezier_to_bezier Ran
ran on a synthesized input
dmsm/DeepParametricShapes/dps_2d/font_tools.py
code served (permissive licence) · get_code("1672b2ea0e47796d")
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 1, dtype family float, shape (12,) 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 skimage.util.shape import view_as_windows

# The function takes a single parameter 'x' which:
# 1. Gets reshaped to [-1, 2]
# 2. Gets passed to view_as_windows with window shape [3, 2] and step=2
# 3. Gets reshaped to [-1]

# view_as_windows requires input shape to be compatible with window [3, 2] and step 2
# If we have shape (N, 2), we need N >= 3 to create at least one window of size 3
# With step=2, windows are at positions 0, 2, 4, etc.
# Let's create input that reshapes to shape (6, 2) - this will give us 2 windows of size [3, 2]

# Original input should be 1D or 2D array that reshapes to (6, 2)
# Total elements needed: 6 * 2 = 12
x_input = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], dtype=np.float32)

ARGS = {
    'x': x_input
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, skimage — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (12,) — shape (12,) 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
unroll_curves Ran
ran on a synthesized input
dmsm/DeepParametricShapes/dps_2d/utils.py
code served (permissive licence) · get_code("7a34125ae48e595c")
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. 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 as th

th.manual_seed(0)

# curves: [b, 2*max_n_curves, 2]
# We need batch size b=2, and 2*max_n_curves points with 2 coordinates each
# Let's say max_n_curves=3, so 2*max_n_curves=6
b = 2
max_n_curves = 3
curves = th.randn(b, 2 * max_n_curves, 2)

# topology: [n_loops] list of curves per loop (should sum to max_n_curves)
# The topology tells us how many curves are in each loop
# If max_n_curves=3, we could have topology=[2, 1] meaning 2 loops,
# first with 2 curves, second with 1 curve
topology = [2, 1]

ARGS = {
    "curves": curves,
    "topology": topology,
}
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 list — a list 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
apply_templates Not yet run
unverified (harvested, no recorded run)
dmsm/DeepParametricShapes/dps_2d/font_tools.py
code served (permissive licence) · get_code("e4598ad176af9717")
How it ran

no invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 2 later) and 9 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
conv1x1 3 other papers
2 dated earlier, 1 later · 1 only as an assembly brick
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
1611.05431 (2016-11)
Aggregated Residual Transformations for Deep Neural Networks
2211.08326 (2022-11)
Contrastive learning for regression in multi-site brain age prediction
conv3x3 3 other papers
2 dated earlier, 1 later · 1 only as an assembly brick
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
1611.05431 (2016-11)
Aggregated Residual Transformations for Deep Neural Networks
2211.08326 (2022-11)
Contrastive learning for regression in multi-site brain age prediction

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-24.

Repositories linked to this paper

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

Abstract

Many tasks in graphics and vision demand machinery for converting shapes into consistent representations with sparse sets of parameters; these representations facilitate rendering, editing, and storage. When the source data is noisy or ambiguous, however, artists and engineers often manually construct such representations, a tedious and potentially time-consuming process. While advances in deep learning have been successfully applied to noisy geometric data, the task of generating parametric shapes has so far been difficult for these methods. Hence, we propose a new framework for predicting parametric shape primitives using deep learning. We use distance fields to transition between shape parameters like control points and input data on a pixel grid. We demonstrate efficacy on 2D and 3D tasks, including font vectorization and surface abstraction.

For agents

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

get_harvested_code_for_paper("1904.08921")
get_code_for_paper("1904.08921")
have("1904.08921")

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

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

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

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

Connect an agent — have() is free.