SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1804.07739 · 2018

Synthesizing Images of Humans in Unseen Poses

arXiv · PDF · Open in the Atlas

Code that ran

9 of 10 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 9 have no contract verdict; 0 failures of our instrument; 1 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/1804.07739.json · badge: /api/ran/1804.07739.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
balakg/posewarp-cvpr2018 community (classifier label)
classifier basis not recorded on the link
9 ran · 1 no recorded run
FunctionStatusWhere it lives
get_person_scale Ran
ran on a synthesized input
balakg/posewarp-cvpr2018/code/data_generation.py
code served (permissive licence) · get_code("e0737fe58f40c6a6")
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 float32, 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 numpy as np

# Analyze the function:
# - joints parameter is indexed with [i][0] and [i][1] for coordinates
# - Accesses indices: 0, 8, 9, 10, 11, 12, 13
# - So we need at least 14 joints (0-13)
# - Each joint has at least 2 elements [x, y]

# Create a joints array with 14 joints, each with (x, y) coordinates
joints = np.array([
    [10.0, 20.0],   # joint 0
    [11.0, 21.0],   # joint 1
    [12.0, 22.0],   # joint 2
    [13.0, 23.0],   # joint 3
    [14.0, 24.0],   # joint 4
    [15.0, 25.0],   # joint 5
    [16.0, 26.0],   # joint 6
    [17.0, 27.0],   # joint 7
    [18.0, 28.0],   # joint 8
    [19.0, 29.0],   # joint 9
    [20.0, 30.0],   # joint 10
    [21.0, 31.0],   # joint 11
    [22.0, 32.0],   # joint 12
    [23.0, 33.0],   # joint 13
], dtype=np.float32)

ARGS = {
    "joints": joints
}
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 float32, 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
make_similarity Ran
ran on a synthesized input
balakg/posewarp-cvpr2018/code/transformations.py
code served (permissive licence) · get_code("1fc3d3d23107d1c4")
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 (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 numpy as np

# Create sample source and destination coordinate matrices
# src and dst should be Nx2 arrays where N is the number of points
src = np.array([
    [0.0, 0.0],
    [1.0, 0.0],
    [0.0, 1.0],
    [1.0, 1.0]
], dtype=np.float64)

# dst is the transformed coordinates
dst = np.array([
    [1.0, 2.0],
    [2.0, 2.5],
    [0.5, 3.0],
    [1.5, 3.5]
], dtype=np.float64)

ARGS = {
    "src": src,
    "dst": dst,
    "flip": False
}
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 1, dtype family float, shape (4,) — shape (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_vid_info_list Ran
ran on a synthesized input
balakg/posewarp-cvpr2018/code/data_generation.py
code served (permissive licence) · get_code("166d36bfd96a0819")
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 os
import scipy.io as sio
import glob
import tempfile
import numpy as np

# Create a temporary directory structure with mock data
temp_dir = tempfile.mkdtemp()
frames_dir = os.path.join(temp_dir, 'frames')
info_dir = os.path.join(temp_dir, 'info')
os.makedirs(frames_dir)
os.makedirs(info_dir)

# Create mock video frame directories
for i in range(2):
    vid_frame_dir = os.path.join(frames_dir, f'video_{i}')
    os.makedirs(vid_frame_dir)
    
    # Create corresponding .mat info files
    info_data = {
        'data': np.array([(np.array([[1, 2, 3, 4]]), np.array([[5, 6, 7, 8]]))], 
                         dtype=[('bbox', 'O'), ('X', 'O')])
    }
    mat_file_path = os.path.join(info_dir, f'video_{i}.mat')
    sio.savemat(mat_file_path, info_data)

ARGS = {
    'data_dir': temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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
my_conv Ran
ran on a synthesized input
balakg/posewarp-cvpr2018/code/networks.py
code served (permissive licence) · get_code("70d74c099ec06f25")
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 KerasTensor. 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 keras
from keras.layers import Conv2D, Dense, Activation, Input, UpSampling2D
from keras.layers import LeakyReLU, MaxPooling2D
import numpy as np

# Create a small input tensor using Keras Input layer
x_in = Input(shape=(4, 4, 3))

ARGS = {
    'x_in': x_in,
    'nf': 16,
    'ks': 3,
    'strides': 1,
    'activation': 'lrelu',
    'name': 'test_conv'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
keras, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type KerasTensor — a KerasTensor 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
read_frame Ran
ran on a synthesized input
balakg/posewarp-cvpr2018/code/data_generation.py
code served (permissive licence) · get_code("938309a542d2d6fa")
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 os
import numpy as np
import tempfile
import cv2

# Create a temporary directory for test images
temp_dir = tempfile.mkdtemp()

# Create a dummy image file
dummy_img = np.zeros((480, 640, 3), dtype=np.uint8)
img_path = os.path.join(temp_dir, '1.jpg')
cv2.imwrite(img_path, dummy_img)

# Create joints array - shape (14, 2, 1) for 14 joints, 2 coordinates, 1 frame
# Adding 1.0 because the function subtracts 1.0
joints = np.array([
    [[100.0], [50.0]],    # joint 0
    [[110.0], [60.0]],    # joint 1
    [[120.0], [70.0]],    # joint 2
    [[130.0], [80.0]],    # joint 3
    [[140.0], [90.0]],    # joint 4
    [[150.0], [100.0]],   # joint 5
    [[160.0], [110.0]],   # joint 6
    [[170.0], [120.0]],   # joint 7
    [[180.0], [130.0]],   # joint 8
    [[190.0], [140.0]],   # joint 9
    [[200.0], [150.0]],   # joint 10
    [[210.0], [160.0]],   # joint 11
    [[220.0], [170.0]],   # joint 12
    [[230.0], [180.0]],   # joint 13
], dtype=np.float32)

# Create box array - shape (1, 4) for 1 frame with [x, y, width, height]
box = np.array([[50.0, 40.0, 200.0, 300.0]], dtype=np.float32)

# Parameters for read_frame
vid_name = temp_dir
frame_num = 0
x = joints

ARGS = {
    'vid_name': vid_name,
    'frame_num': frame_num,
    'box': box,
    'x': x
}
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
similarity_transform Ran
ran on a synthesized input
balakg/posewarp-cvpr2018/code/transformations.py
code served (permissive licence) · get_code("acc4cd5f1f8a79d9")
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, 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 numpy as np

# Create sample coordinate data (Nx2 matrix)
coords = np.array([
    [1.0, 2.0],
    [3.0, 4.0],
    [5.0, 6.0],
    [7.0, 8.0]
], dtype=np.float64)

# Create transformation parameters (a0, a1, b0, b1)
# These would typically come from make_tform function
# Using simple values: scale=1.5, rotation, and translation
a0 = 0.5  # x translation
a1 = 1.2  # scale/rotation component
b0 = 0.3  # y translation
b1 = 0.4  # rotation component
params = np.array([a0, a1, b0, b1], dtype=np.float64)

ARGS = {
    "coords": coords,
    "params": params,
    "inverse": False
}
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 float, shape (4, 2) — shape (4, 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
vgg_loss Ran
ran on a synthesized input
balakg/posewarp-cvpr2018/code/networks.py
code served (permissive licence) · get_code("60f05a8163c35d75")
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 function. 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 tensorflow as tf
from keras.layers import Lambda
import numpy as np

# Create a minimal feat_net model that returns a list of feature maps
class MinimalFeatNet(tf.keras.Model):
    def __init__(self, n_layers=3):
        super().__init__()
        self.n_layers = n_layers
        self.dense_layers = [
            tf.keras.layers.Dense(8, activation='relu') for _ in range(n_layers)
        ]
    
    def call(self, x):
        # Flatten input and pass through dense layers
        x = tf.reshape(x, [tf.shape(x)[0], -1])
        outputs = []
        for layer in self.dense_layers:
            x = layer(x)
            # Reshape to 4D for consistency (batch, height, width, channels)
            x_reshaped = tf.reshape(x, [tf.shape(x)[0], 2, 2, 2])
            outputs.append(x_reshaped)
        return outputs

# Create feat_net instance
feat_net = MinimalFeatNet(n_layers=3)

# Create feat_weights dict with std values for each layer
feat_weights = {
    "0": [None, tf.constant([1.0, 1.0, 1.0, 1.0])],
    "1": [None, tf.constant([0.5, 0.5, 0.5, 0.5])],
    "2": [None, tf.constant([0.3, 0.3, 0.3, 0.3])],
}

# Define the vgg_loss function
def vgg_preprocess(arg):
    z = 255.0 * (arg + 1.0) / 2.0
    r = z[:, :, :, 0] - 103.939
    g = z[:, :, :, 1] - 116.779
    b = z[:, :, :, 2] - 123.68
    return tf.stack([r, g, b], axis=3)

def vgg_loss(feat_net, feat_weights, n_layers, reg=0.1):
    def loss_fcn(y_true, y_pred):
        y_true_feat = feat_net(Lambda(vgg_preprocess)(y_true))
        y_pred_feat = feat_net(Lambda(vgg_preprocess)(y_pred))
        loss = []
        for j in range(n_layers):
            std = feat_weights[str(j)][1] + reg
            std = tf.expand_dims(tf.expand_dims(tf.expand_dims(std, 0), 0), 0)
            d = tf.subtract(y_true_feat[j], y_pred_feat[j])
            loss_j = tf.reduce_mean(tf.abs(tf.divide(d, std)))
            if j == 0:
                loss = loss_j
            else:
                loss = tf.add(loss, loss_j)
        return loss / (n_layers * 1.0)
    return loss_fcn

ARGS = {
    "feat_net": feat_net,
    "feat_weights": feat_weights,
    "n_layers": 3,
    "reg": 0.1,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
keras, numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
vgg_preprocess Ran
ran on a synthesized input
balakg/posewarp-cvpr2018/code/networks.py
code served (permissive licence) · get_code("0f5666310a6de296")
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 4, dtype family float, shape (2, 4, 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 tensorflow as tf
import numpy as np

# Create a small batch of image data
# The function expects input in range [-1, 1] (based on the (arg + 1.0) / 2.0 scaling)
# Shape: (batch_size, height, width, channels)
batch_size = 2
height = 4
width = 3
channels = 3

# Create random input in range [-1, 1]
input_data = np.random.uniform(-1.0, 1.0, (batch_size, height, width, channels)).astype(np.float32)
arg = tf.constant(input_data)

ARGS = {
    "arg": arg
}
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 4, dtype family float, shape (2, 4, 3, 3) — shape (2, 4, 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
vgg_preprocess Ran
ran on a synthesized input
balakg/posewarp-cvpr2018/code/util.py
code served (permissive licence) · get_code("42527e02c224a89e")
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, 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
import numpy as np

torch.manual_seed(0)

# Construct a small tensor with shape (batch=2, height=4, width=3, channels=3)
# The function expects x to be in range [-1, 1] based on the formula: 255.0 * (x + 1.0) / 2.0
x = torch.randn(2, 4, 3, 3) * 0.5  # Small random values in approximately [-1, 1] range

ARGS = {
    "x": x
}
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 4, dtype family float, shape (2, 4, 3, 3) — shape (2, 4, 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
make_tform Not yet run
unverified (harvested, no recorded run)
balakg/posewarp-cvpr2018/code/transformations.py
code served (permissive licence) · get_code("7d9d9d0f84f1b56c")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 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 10 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

We address the computational problem of novel human pose synthesis. Given an image of a person and a desired pose, we produce a depiction of that person in that pose, retaining the appearance of both the person and background. We present a modular generative neural network that synthesizes unseen poses using training pairs of images and poses taken from human action videos. Our network separates a scene into different body part and background layers, moves body parts to new locations and refines their appearances, and composites the new foreground with a hole-filled background. These subtasks, implemented with separate modules, are trained jointly using only a single target image as a supervised label. We use an adversarial discriminator to force our network to synthesize realistic details conditioned on pose. We demonstrate image synthesis results on three action classes: golf, yoga/workouts and tennis, and show that our method produces accurate results within action classes as well as across action classes. Given a sequence of desired poses, we also produce coherent videos of actions.

For agents

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

get_harvested_code_for_paper("1804.07739")
get_code_for_paper("1804.07739")
have("1804.07739")

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

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

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

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

Connect an agent — have() is free.