SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1812.11788 · 2018

PVNet: Pixel-wise Voting Network for 6DoF Pose Estimation

arXiv · PDF · Open in the Atlas

Code that ran

8 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; 2 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 2 failures of our instrument; 3 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/1812.11788.json · badge: /api/ran/1812.11788.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
zju3dv/pvnet canonical (classifier label)
classifier basis: classifier_2025
2 ran · 0 no recorded run
ivano-donadi/kvn community (classifier label)
classifier basis not recorded on the link
6 ran · 3 no recorded run
FunctionStatusWhere it lives
ct_collator Ran
ran on a synthesized input
ivano-donadi/kvn/lib/datasets/collate_batch.py
code served (permissive licence) · get_code("8e600d3888aac2b0")
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 dict. 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
from torch.utils.data.dataloader import default_collate

torch.manual_seed(0)

# Create a minimal batch for ct_collator
# The function expects a list of dicts with keys: 'inp', 'meta', 'ct_hm', 'wh', 'ct_cls', 'ct_ind'

batch_item_1 = {
    'inp': torch.randn(3, 4, 4),  # 3-channel image, 4x4
    'meta': {
        'ct_num': torch.tensor([2])  # 2 detections in this item
    },
    'ct_hm': torch.randn(1, 4, 4),  # heatmap
    'wh': [[1.0, 2.0], [3.0, 4.0]],  # 2 width-height pairs
    'ct_cls': [0, 1],  # 2 class labels
    'ct_ind': [5, 7]  # 2 indices
}

batch_item_2 = {
    'inp': torch.randn(3, 4, 4),
    'meta': {
        'ct_num': torch.tensor([1])  # 1 detection in this item
    },
    'ct_hm': torch.randn(1, 4, 4),
    'wh': [[2.0, 3.0]],  # 1 width-height pair
    'ct_cls': [1],  # 1 class label
    'ct_ind': [10]  # 1 index
}

batch = [batch_item_1, batch_item_2]

ARGS = {
    'batch': batch
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
make_collator Ran
ran on a synthesized input
ivano-donadi/kvn/lib/datasets/collate_batch.py
code served (permissive licence) · get_code("f96de9a541b417b6")
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 torch
import numpy as np

torch.manual_seed(0)

class Config:
    def __init__(self, task):
        self.task = task

# Test case 1: ct_collator
batch_ct = [
    {
        'inp': torch.randn(3, 32, 32),
        'meta': {'ct_num': torch.tensor([2])},
        'ct_hm': torch.randn(1, 64, 64),
        'wh': [[1.0, 2.0], [3.0, 4.0]],
        'ct_cls': [0, 1],
        'ct_ind': [10, 20]
    },
    {
        'inp': torch.randn(3, 32, 32),
        'meta': {'ct_num': torch.tensor([1])},
        'ct_hm': torch.randn(1, 64, 64),
        'wh': [[5.0, 6.0]],
        'ct_cls': [0],
        'ct_ind': [30]
    }
]

cfg_ct = Config(task='ct')

ARGS = {
    'cfg': cfg_ct
}
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 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
pvnet_collator Ran
ran on a synthesized input
ivano-donadi/kvn/lib/datasets/collate_batch.py
code served (permissive licence) · get_code("936f02449c110f6d")
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 dict. 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 numpy as np
from torch.utils.data.dataloader import default_collate

torch.manual_seed(0)

# Create a minimal batch with the expected structure
# The function expects batch to be a list of dicts with 'inp' and 'meta' keys
batch = [
    {
        'inp': np.random.randn(2, 4, 3),  # shape (2, 4, 3) - 2 channels, 4x3 spatial
        'meta': {
            'pose_test': np.array([1.0, 2.0, 3.0]),
            'id': 0
        }
    },
    {
        'inp': np.random.randn(2, 4, 3),
        'meta': {
            'pose_test': np.array([4.0, 5.0, 6.0]),
            'id': 1
        }
    }
]

ARGS = {
    'batch': batch
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
read_mask_np Ran
ran, honoured the contract we drafted
zju3dv/pvnet/lib/utils/data_utils.py
code served (permissive licence) · get_code("2ce98a92e5494135")
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) and returned ndarray, ndim 2, dtype family int, shape (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 numpy as np
from PIL import Image
import tempfile
import os

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

# Create a simple test mask image
mask_array = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]], dtype=np.uint8)
mask_image = Image.fromarray(mask_array)
mask_path = os.path.join(temp_dir, "test_mask.png")
mask_image.save(mask_path)

ARGS = {
    "mask_path": mask_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
PIL, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family int, shape (3, 3) — shape (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
read_rgb_np Ran
ran, honoured the contract we drafted
zju3dv/pvnet/lib/utils/data_utils.py
code served (permissive licence) · get_code("5be77d101869a2ef")
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) and returned ndarray, ndim 3, dtype family int, shape (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 numpy as np
from PIL import Image
import tempfile
import os

# Create a temporary RGB image file
temp_dir = tempfile.mkdtemp()
temp_image_path = os.path.join(temp_dir, "test_image.png")

# Create a small RGB image (4x3 pixels)
rgb_array = np.random.randint(0, 256, (4, 3, 3), dtype=np.uint8)
img = Image.fromarray(rgb_array, mode='RGB')
img.save(temp_image_path)

ARGS = {
    'rgb_path': temp_image_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
PIL, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family int, shape (4, 3, 3) — shape (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
resize_keep_aspect_ratio Ran
ran; our contract draft was wrong, not the code
ivano-donadi/kvn/lib/datasets/augmentation.py
code served (permissive licence) · get_code("469f96dc37b6cbbf")
How it ran

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

import cv2
import numpy as np

# Create a small test image with distinct dimensions
# Using 5x4 to have distinguishable height and width
img = np.random.randint(0, 256, (5, 4, 3), dtype=np.uint8)

# Define arguments for the function
ARGS = {
    'img': img,
    'imsize': 8,
    'intp_type': cv2.INTER_LINEAR
}
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
rotate Ran
ran; our contract draft was wrong, not the code
ivano-donadi/kvn/lib/datasets/augmentation.py
code served (permissive licence) · get_code("317fd27af8e8a5f6")
How it ran

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

import cv2
import numpy as np

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

# Create a small test mask (same dimensions as img, single channel)
mask = np.random.randint(0, 2, (100, 150), dtype=np.uint8)

# Create homography coordinates - typically a 4x3 matrix of float32
# representing transformed points in homogeneous coordinates
hcoords = np.array([
    [1.0, 0.0, 0.0],
    [0.0, 1.0, 0.0],
    [0.0, 0.0, 1.0],
    [0.5, 0.5, 1.0]
], dtype=np.float32)

# Rotation angle range in degrees
rot_ang_min = -15.0
rot_ang_max = 15.0

ARGS = {
    "img": img,
    "mask": mask,
    "hcoords": hcoords,
    "rot_ang_min": rot_ang_min,
    "rot_ang_max": rot_ang_max
}
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
rotate_instance Ran
ran on a synthesized input
ivano-donadi/kvn/lib/datasets/augmentation.py
code served (permissive licence) · get_code("14aecd8a70929e31")
How it ran

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

import cv2
import numpy as np

# Create a small image (height=50, width=60, 3 channels for color)
img = np.random.randint(0, 255, (50, 60, 3), dtype=np.uint8)

# Create a mask with some non-zero values
mask = np.zeros((50, 60), dtype=np.uint8)
mask[10:40, 15:45] = 1

# Create homogeneous coordinates for some points
# These should be in the format that can be multiplied by the transformation matrix
# Shape should be (N, 3) for homogeneous coordinates
hcoords = np.array([
    [10.0, 20.0, 1.0],
    [30.0, 40.0, 1.0],
    [15.0, 25.0, 1.0]
], dtype=np.float32)

# Rotation angle range
rot_ang_min = -15.0
rot_ang_max = 15.0

ARGS = {
    "img": img,
    "mask": mask,
    "hcoords": hcoords,
    "rot_ang_min": rot_ang_min,
    "rot_ang_max": rot_ang_max
}
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
batch_project Not yet run
unverified (harvested, no recorded run)
ivano-donadi/kvn/lib/bpnp/bpnp.py
code served (permissive licence) · get_code("d35e8d21d1b9d980")
How it ran

no invocation recorded.

get_coefs Not yet run
unverified (harvested, no recorded run)
ivano-donadi/kvn/lib/bpnp/bpnp.py
code served (permissive licence) · get_code("58b72ebb953d3283")
How it ran

no invocation recorded.

make_analyzer Not yet run
unverified (harvested, no recorded run)
ivano-donadi/kvn/lib/analyzers/make_analyzer.py
code served (permissive licence) · get_code("e2a61f3fba0c0ec3")
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, 6 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 6 later) and 5 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
get_coefs 2 other papers
2 later
1909.06043 (2019-09)
End-to-End Learnable Geometric Vision by Backpropagating PnP Optimization
2411.17662 (2024-11)
RoboPEPP: Vision-Based Robot Pose and Joint Angle Estimation through Embedding Predictive Pre-Training
batch_project 1 other paper
1 later
1909.06043 (2019-09)
End-to-End Learnable Geometric Vision by Backpropagating PnP Optimization
make_analyzer 1 other paper
1 later
2104.00633 (2021-04)
RePOSE: Fast 6D Object Pose Refinement via Deep Texture Rendering
make_collator 1 other paper
1 later
2104.00633 (2021-04)
RePOSE: Fast 6D Object Pose Refinement via Deep Texture Rendering
resize_keep_aspect_ratio 1 other paper
1 later
2104.00633 (2021-04)
RePOSE: Fast 6D Object Pose Refinement via Deep Texture Rendering
rotate 1 other paper
1 later
2104.00633 (2021-04)
RePOSE: Fast 6D Object Pose Refinement via Deep Texture Rendering

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

This paper addresses the challenge of 6DoF pose estimation from a single RGB image under severe occlusion or truncation. Many recent works have shown that a two-stage approach, which first detects keypoints and then solves a Perspective-n-Point (PnP) problem for pose estimation, achieves remarkable performance. However, most of these methods only localize a set of sparse keypoints by regressing their image coordinates or heatmaps, which are sensitive to occlusion and truncation. Instead, we introduce a Pixel-wise Voting Network (PVNet) to regress pixel-wise unit vectors pointing to the keypoints and use these vectors to vote for keypoint locations using RANSAC. This creates a flexible representation for localizing occluded or truncated keypoints. Another important feature of this representation is that it provides uncertainties of keypoint locations that can be further leveraged by the PnP solver. Experiments show that the proposed approach outperforms the state of the art on the LINEMOD, Occlusion LINEMOD and YCB-Video datasets by a large margin, while being efficient for real-time pose estimation. We further create a Truncation LINEMOD dataset to validate the robustness of our approach against truncation. The code will be avaliable at https://zju-3dv.github.io/pvnet/.

For agents

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

get_harvested_code_for_paper("1812.11788")
get_code_for_paper("1812.11788")
have("1812.11788")

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

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

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

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

Connect an agent — have() is free.