SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1901.02970 · 2019

Normalized Object Coordinate Space for Category-Level 6D Object Pose and Size Estimation

arXiv · PDF · Open in the Atlas

Code that ran

18 of 20 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, 1 violated it and 11 have no contract verdict; 4 failures of our instrument; 2 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/1901.02970.json · badge: /api/ran/1901.02970.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
sahithchada/NOCS_PyTorch community (classifier label)
classifier basis not recorded on the link
13 ran · 2 no recorded run
edavalosanaya/FastPoseCNN community (classifier label)
classifier basis not recorded on the link
5 ran · 0 no recorded run
FunctionStatusWhere it lives
apply_mask Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
sahithchada/NOCS_PyTorch/visualize.py
code served (permissive licence) · get_code("cdda836085a5b1af")
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 3, dtype family float, 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

# Create a small test image (height=4, width=3, channels=3)
image = np.random.rand(4, 3, 3).astype(np.float32) * 255

# Create a binary mask (height=4, width=3)
mask = np.array([
    [1, 0, 1],
    [0, 1, 0],
    [1, 1, 0],
    [0, 0, 1]
], dtype=np.int32)

# Define a color (RGB values between 0 and 1)
color = np.array([0.5, 0.3, 0.8])

# Alpha blending factor
alpha = 0.5

ARGS = {
    "image": image,
    "mask": mask,
    "color": color,
    "alpha": alpha
}
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 3, dtype family float, 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
cartesian_2_homogeneous_coord Ran
ran on a synthesized input
edavalosanaya/FastPoseCNN/source_code/FastPoseCNN/lib/gpu_tensor_funcs.py
code served (permissive licence) · get_code("9155d097d86fdf48")
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 (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 torch

torch.manual_seed(0)

# Create a small cartesian coordinate matrix of size [N, M]
# N = 3 (e.g., x, y, z coordinates)
# M = 2 (e.g., 2 points)
cartesian_coord = torch.tensor([
    [1.0, 2.0],
    [3.0, 4.0],
    [5.0, 6.0]
], dtype=torch.float32)

ARGS = {
    "cartesian_coord": cartesian_coord
}
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 (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
compress_dict Ran
ran on a synthesized input
edavalosanaya/FastPoseCNN/source_code/FastPoseCNN/lib/pose_regressor.py
code served (permissive licence) · get_code("39a6b29e494e3854")
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

torch.manual_seed(0)

# Analyze the function:
# - my_dict: a dict where values are dicts (nested dict structure)
# - additional_subkey: optional string parameter
# - The function iterates over my_dict.keys(), then over my_dict[key].keys()
# - It accesses my_dict[key][subkey] to get values
# - It constructs new keys with f-string formatting

# Build a valid nested dictionary
my_dict = {
    'model': {
        'weight': torch.randn(2, 4),
        'bias': torch.randn(4),
    },
    'optimizer': {
        'lr': 0.001,
        'momentum': 0.9,
    },
    'loss': {
        'value': 3.14,
    }
}

additional_subkey = 'checkpoint'

ARGS = {
    'my_dict': my_dict,
    'additional_subkey': additional_subkey,
}
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
compute_iou Ran
ran, violated the contract we drafted
sahithchada/NOCS_PyTorch/utils.py
code served (permissive licence) · get_code("b2aae18de5fa3893")
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 (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 a single box [y1, x1, y2, x2]
box = np.array([10.0, 20.0, 30.0, 40.0])

# Create multiple boxes for comparison
boxes = np.array([
    [12.0, 22.0, 28.0, 38.0],
    [5.0, 15.0, 35.0, 45.0]
])

# Calculate box area: (y2 - y1) * (x2 - x1)
box_area = (box[2] - box[0]) * (box[3] - box[1])

# Calculate areas for each box in boxes
boxes_area = np.array([
    (boxes[0, 2] - boxes[0, 0]) * (boxes[0, 3] - boxes[0, 1]),
    (boxes[1, 2] - boxes[1, 0]) * (boxes[1, 3] - boxes[1, 1])
])

ARGS = {
    "box": box,
    "boxes": boxes,
    "box_area": box_area,
    "boxes_area": boxes_area
}
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 (2,) — shape (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
compute_overlaps Ran
ran, honoured the contract we drafted
sahithchada/NOCS_PyTorch/utils.py
code served (permissive licence) · get_code("698f3241ee39ad75")
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 (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 numpy as np

# Create sample bounding boxes in format [y1, x1, y2, x2]
# boxes1: 3 boxes
boxes1 = np.array([
    [10, 20, 50, 80],
    [30, 40, 70, 100],
    [5, 5, 25, 35]
], dtype=np.float32)

# boxes2: 2 boxes
boxes2 = np.array([
    [15, 25, 60, 90],
    [25, 35, 65, 95]
], dtype=np.float32)

ARGS = {
    "boxes1": boxes1,
    "boxes2": boxes2
}
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 (3, 2) — shape (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
crop_and_resize Ran
ran on a synthesized input
sahithchada/NOCS_PyTorch/model.py
code served (permissive licence) · get_code("69c7643b22386435")
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, 5, 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 torchvision

torch.manual_seed(0)

# Create a small image tensor: (batch_size, height, width, channels)
image = torch.rand(2, 8, 10, 3)

# Create boxes tensor with normalized coordinates: (num_boxes, 4)
# Each box is [y1, x1, y2, x2] normalized to [0, 1]
boxes = torch.tensor([
    [0.1, 0.2, 0.7, 0.8],
    [0.2, 0.1, 0.9, 0.9]
], dtype=torch.float32)

# box_indices maps each box to an image in the batch
box_indices = torch.tensor([0, 1], dtype=torch.int32)

# Target crop size
crop_size = (4, 5)

ARGS = {
    "image": image,
    "boxes": boxes,
    "box_indices": box_indices,
    "crop_size": crop_size
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torchvision — 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, 5, 3) — shape (2, 4, 5, 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
dec_empty_check Ran
ran on a synthesized input
edavalosanaya/FastPoseCNN/source_code/FastPoseCNN/lib/loss.py
code served (permissive licence) · get_code("8a8f9ac29ee2f0f9")
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. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 functools
import torch
import torch.nn as nn


def dec_empty_check(function):
    """ A Decorator that catches when the input data is None """

    @functools.wraps(function)
    def wrapper(*args, **kwargs):
        try:
            loss_object = args[0]
            gt_pred_matches = args[1]
        except:
            loss_object = args[0]
            gt_pred_matches = kwargs['gt_pred_matches']
        if type(gt_pred_matches) != type(None) and loss_object.key in gt_pred_matches.keys():
            result = function(*args, **kwargs)
        else:
            try:
                return torch.tensor(float('nan'), device=gt_pred_matches['instance_masks'].device).float()
            except:
                try:
                    return torch.tensor(float('nan')).cuda().float()
                except:
                    return torch.tensor(float('nan')).float()
        return result
    return wrapper


# Create a mock loss object with a 'key' attribute
class MockLossObject:
    def __init__(self, key):
        self.key = key


# Create a simple decorated function to test the decorator
@dec_empty_check
def dummy_loss_function(loss_object, gt_pred_matches):
    return torch.tensor(0.5)


torch.manual_seed(0)

# Set up arguments for the decorator
loss_obj = MockLossObject(key='test_key')

gt_pred_matches_dict = {
    'test_key': torch.randn(2, 4),
    'instance_masks': torch.randn(2, 4)
}

ARGS = {
    'function': dummy_loss_function,
}
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 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
draw_box Ran
ran; our contract draft was wrong, not the code
sahithchada/NOCS_PyTorch/visualize.py
code served (permissive licence) · get_code("dc05d22f3d39bea6")
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 3, dtype family int, shape (10, 10, 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)

# Create a small image array (height=10, width=10, channels=3)
image = np.zeros((10, 10, 3), dtype=np.uint8)

# Define a bounding box as (y1, x1, y2, x2)
box = (1, 2, 7, 8)

# Define a color as a list of 3 RGB values
color = [255, 0, 0]  # red

ARGS = {
    "image": image,
    "box": box,
    "color": color
}
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 ndarray, ndim 3, dtype family int, shape (10, 10, 3) — shape (10, 10, 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
estimateRestrictedAffineTransform Ran
ran on a synthesized input
sahithchada/NOCS_PyTorch/aligning.py
code served (permissive licence) · get_code("e8287b383349ddf6")
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 numpy as np
import cv2

# Create small sample point clouds for source and target
# Using 5 3D points for testing
np.random.seed(0)
source = np.random.randn(5, 3).astype(np.float32)
target = np.random.randn(5, 3).astype(np.float32)

ARGS = {
    "source": source,
    "target": target,
    "verbose": False
}
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
estimateSimilarityTransform Ran
ran on a synthesized input
sahithchada/NOCS_PyTorch/aligning.py
code served (permissive licence) · get_code("b7f7231e07daadeb")
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 numpy as np

# Set random seed for reproducibility
np.random.seed(0)

# Create small sample point clouds
# source: N points in 3D space
# target: N points in 3D space (transformed version of source)
N = 20
source = np.random.randn(N, 3).astype(np.float64)
target = np.random.randn(N, 3).astype(np.float64)

ARGS = {
    "source": source,
    "target": target,
    "verbose": 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 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
extract_bboxes Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
sahithchada/NOCS_PyTorch/utils.py
code served (permissive licence) · get_code("d2c9b72e23d9588a")
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 (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 numpy as np

# Create a simple test mask with shape [height, width, num_instances]
# Let's use height=5, width=6, num_instances=3
height = 5
width = 6
num_instances = 3

mask = np.zeros((height, width, num_instances), dtype=np.uint8)

# Instance 0: small rectangle in top-left
mask[1:3, 1:3, 0] = 1

# Instance 1: small rectangle in bottom-right
mask[3:5, 4:6, 1] = 1

# Instance 2: single pixel
mask[2, 3, 2] = 1

ARGS = {
    "mask": mask
}
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 (3, 4) — shape (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
getRANSACInliers Ran
ran on a synthesized input
sahithchada/NOCS_PyTorch/aligning.py
code served (permissive licence) · get_code("4f2d0da31c4fd316")
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 numpy as np

np.random.seed(0)

# Create synthetic 3D point clouds in homogeneous coordinates
# SourceHom and TargetHom should be (4, N) arrays where first 3 rows are 3D points
# and last row is all 1s for homogeneous coordinates

n_points = 10

# Create source points (4 x 10)
SourceHom = np.random.randn(3, n_points) * 10
SourceHom = np.vstack([SourceHom, np.ones((1, n_points))])

# Create target points by applying a known transformation + small noise
# to simulate a registration problem
rotation = np.array([
    [0.9, -0.436, 0.0],
    [0.436, 0.9, 0.0],
    [0.0, 0.0, 1.0]
])
translation = np.array([5.0, 3.0, 2.0])
scale = 1.1

TargetHom_3d = scale * (rotation @ SourceHom[:3, :]) + translation.reshape(3, 1)
TargetHom = np.vstack([TargetHom_3d, np.ones((1, n_points))])

# Define parameters for getRANSACInliers
ARGS = {
    "SourceHom": SourceHom,
    "TargetHom": TargetHom,
    "MaxIterations": 50,
    "PassThreshold": 500,
    "StopThreshold": 10
}
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 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
get_standard_preds Ran
ran on a synthesized input
edavalosanaya/FastPoseCNN/source_code/FastPoseCNN/lib/matching.py
code served (permissive licence) · get_code("e7de4517508fd1cc")
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 torch.nn as nn

torch.manual_seed(0)

# Construct the gts dictionary with the required keys
# Each tensor in KEYS_TO_STACK needs to be batched (first dim is batch size)
gts = {
    'instance_masks': torch.zeros(2, 4, 3, dtype=torch.float32),
    'quaternion': torch.zeros(2, 4, dtype=torch.float32),
    'R': torch.eye(3, dtype=torch.float32).unsqueeze(0).repeat(2, 1, 1),
    'scales': torch.ones(2, 3, dtype=torch.float32),
    'xy': torch.zeros(2, 2, dtype=torch.float32),
    'z': torch.ones(2, 1, dtype=torch.float32),
    'T': torch.zeros(2, 3, dtype=torch.float32),
    'RT': torch.eye(4, dtype=torch.float32).unsqueeze(0).repeat(2, 1, 1),
}

n_of_data = 3

ARGS = {
    'gts': gts,
    'n_of_data': n_of_data,
}
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
intersect1d Ran
ran; our contract draft was wrong, not the code
sahithchada/NOCS_PyTorch/model.py
code served (permissive licence) · get_code("555b5a67f9b65e14")
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 1, dtype family int, shape (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)

# The function intersect1d takes two tensors and finds their intersection
# by concatenating, sorting, and comparing adjacent elements
# It expects 1D tensors (or tensors that can be concatenated along dim=0)

tensor1 = torch.tensor([1, 2, 3, 4])
tensor2 = torch.tensor([3, 4, 5, 6])

ARGS = {
    "tensor1": tensor1,
    "tensor2": tensor2,
}
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 1, dtype family int, shape (2,) — shape (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
nocs_map_rotation Ran
ran on a synthesized input
sahithchada/NOCS_PyTorch/loss.py
code served (permissive licence) · get_code("0466b12c0859f1a9")
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. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 math

torch.manual_seed(0)

# Analyze the function signature and body to determine required arguments
# nocs_map_rotation(positive_class_ids, positive_ix, target_coords, mask_shape)

# positive_class_ids: used in list comprehension with class_id_to_theta(x)
# - should be a 1D tensor of class IDs (values 0-5 or similar)
positive_class_ids = torch.tensor([1, 2, 4], dtype=torch.int64)

# positive_ix: used to index into target_coords and in torch.stack with positive_class_ids
# - should be a 1D tensor of indices
positive_ix = torch.tensor([0, 1, 2], dtype=torch.int64)

# target_coords: indexed with positive_ix, result is shape (..., 3)
# - used as target_coords[positive_ix] which should give shape (3, H, W, 3)
# - need to support indexing with a 1D tensor
batch_size = 3
height = 4
width = 5
target_coords = torch.randn(batch_size, height, width, 3, dtype=torch.float32)

# mask_shape: tuple used with mask_shape[2] and mask_shape[3]
# - represents shape with at least 4 dimensions
mask_shape = (batch_size, 3, height, width)

ARGS = {
    "positive_class_ids": positive_class_ids,
    "positive_ix": positive_ix,
    "target_coords": target_coords,
    "mask_shape": mask_shape,
}
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 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
normalize Ran
ran on a synthesized input
edavalosanaya/FastPoseCNN/source_code/FastPoseCNN/lib/gpu_tensor_funcs.py
code served (permissive licence) · get_code("9e55c8fa32330a06")
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

torch.manual_seed(0)

# The function takes:
# - data: a tensor with a norm() method and supports division
# - dim: an integer specifying which dimension to compute the norm over

# Create a small tensor (batch=2, features=4)
data = torch.randn(2, 4)

# dim parameter - compute norm across feature dimension
dim = 1

ARGS = {
    "data": data,
    "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 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
random_colors Ran
ran, honoured the contract we drafted
sahithchada/NOCS_PyTorch/visualize.py
code served (permissive licence) · get_code("a9d0cf3b71fefa32")
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, ndim 2, 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 random
import colorsys

def random_colors(N, bright=True):
    """
    Generate random colors.
    To get visually distinct colors, generate them in HSV space then
    convert to RGB.
    """
    brightness = 1.0 if bright else 0.7
    hsv = [(i / N, 1, brightness) for i in range(N)]
    colors = list(map(lambda c: colorsys.hsv_to_rgb(*c), hsv))
    random.shuffle(colors)
    return colors


ARGS = {
    "N": 5,
    "bright": True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, dtype family float — a list output has no array shape of its own; none is stated
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
unique1d Ran
ran on a synthesized input
sahithchada/NOCS_PyTorch/model.py
code served (permissive licence) · get_code("5866d898668b0ddc")
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 1, dtype family float, shape (3,) as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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
from torch.autograd import Variable

torch.manual_seed(0)

# The function takes a tensor as input
# It expects the tensor to have a size() method and support sorting, indexing, and comparison operations
# Create a small 1D tensor with some duplicate values
tensor = torch.tensor([3, 1, 2, 1, 3], dtype=torch.float32)

ARGS = {
    "tensor": tensor
}
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 1, dtype family float, shape (3,) — shape (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
compute_losses Not yet run
unverified (harvested, no recorded run)
sahithchada/NOCS_PyTorch/loss.py
code served (permissive licence) · get_code("b73499f3de89c7b5")
How it ran

no invocation recorded.

compute_mrcnn_coord_bins_symmetry_loss Not yet run
unverified (harvested, no recorded run)
sahithchada/NOCS_PyTorch/loss.py
code served (permissive licence) · get_code("a0c70f26b59ee20f")
How it ran

no invocation recorded.

Also present in other papers' code

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

FunctionAlso present inEarliest-datedOthers named
compute_iou 9 other papers
4 dated earlier, 5 later
1612.03242 (2016-12)
StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networks
1702.01983 (2017-02)
Face Aging With Conditional Generative Adversarial Networks
and 6 more not named here
compute_overlaps 9 other papers
4 dated earlier, 5 later
1612.03242 (2016-12)
StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networks
1702.01983 (2017-02)
Face Aging With Conditional Generative Adversarial Networks
and 6 more not named here
extract_bboxes 9 other papers
4 dated earlier, 5 later
1612.03242 (2016-12)
StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networks
1702.01983 (2017-02)
Face Aging With Conditional Generative Adversarial Networks
and 6 more not named here
random_colors 9 other papers
3 dated earlier, 6 later
1612.03242 (2016-12)
StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networks
1702.01983 (2017-02)
Face Aging With Conditional Generative Adversarial Networks
and 6 more not named here
apply_mask 6 other papers
3 dated earlier, 3 later
1612.03242 (2016-12)
StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networks
1702.01983 (2017-02)
Face Aging With Conditional Generative Adversarial Networks
and 3 more not named here
draw_box 6 other papers
3 dated earlier, 3 later
1612.03242 (2016-12)
StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networks
1702.01983 (2017-02)
Face Aging With Conditional Generative Adversarial Networks
and 3 more not named here
intersect1d 1 other paper
1 later
1908.06537 (2019-08)
Hyperpixel Flow: Semantic Correspondence with Multi-layer Neural Features

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

The goal of this paper is to estimate the 6D pose and dimensions of unseen object instances in an RGB-D image. Contrary to "instance-level" 6D pose estimation tasks, our problem assumes that no exact object CAD models are available during either training or testing time. To handle different and unseen object instances in a given category, we introduce a Normalized Object Coordinate Space (NOCS)---a shared canonical representation for all possible object instances within a category. Our region-based neural network is then trained to directly infer the correspondence from observed pixels to this shared object representation (NOCS) along with other object information such as class label and instance mask. These predictions can be combined with the depth map to jointly estimate the metric 6D pose and dimensions of multiple objects in a cluttered scene. To train our network, we present a new context-aware technique to generate large amounts of fully annotated mixed reality data. To further improve our model and evaluate its performance on real data, we also provide a fully annotated real-world dataset with large environment and instance variation. Extensive experiments demonstrate that the proposed method is able to robustly estimate the pose and size of unseen object instances in real environments while also achieving state-of-the-art performance on standard 6D pose estimation benchmarks.

For agents

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

get_harvested_code_for_paper("1901.02970")
get_code_for_paper("1901.02970")
have("1901.02970")

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

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

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

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

Connect an agent — have() is free.