SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2207.07861 · ECCV · 2022

TransGrasp: Grasp Pose Estimation of a Category of Objects by Transferring Grasps from Only One Labeled Instance

Yi Sun, Hongtao Wen, Wanli Peng, Jianhang Yan

arXiv · PDF · Open in the Atlas

Code that ran

6 of 6 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 4 failures of our instrument; 0 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/2207.07861.json · badge: /api/ran/2207.07861.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
yanjh97/TransGrasp community
Papers with Code archive
6 ran · 0 no recorded run
FunctionStatusWhere it lives
PandaRefine Ran
ran on a synthesized input · constructed an object; no result was computed
yanjh97/TransGrasp/grasp_transfer/refine_module.py
code served (permissive licence) · get_code("7260e16f895e7025")
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 an instance of its own class, PandaRefine: the run constructed the object and did not call it, so no result was computed. 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 torch.nn as nn
import numpy as np

torch.manual_seed(0)

# Build a minimal model that satisfies the interface used in get_refine_loss
class MinimalModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(10, 1)
    
    def inference_with_grad(self, points, shape_code):
        # Returns SDF values
        return torch.zeros(points.shape[0], 1, requires_grad=True)
    
    def get_template_field_with_grad(self, points):
        # Returns template field values
        return torch.zeros(points.shape[0], 1, requires_grad=True)

# Build grasp_info dict with grasp_params as a list of dicts
grasp_params_list = [
    {
        'left_points': np.array([0.1, 0.2, 0.3], dtype=np.float32),
        'right_points': np.array([0.4, 0.5, 0.6], dtype=np.float32),
        'depth': np.float32(0.05),
        'approach_vector': np.array([0.0, 0.0, 1.0], dtype=np.float32)
    },
    {
        'left_points': np.array([0.15, 0.25, 0.35], dtype=np.float32),
        'right_points': np.array([0.45, 0.55, 0.65], dtype=np.float32),
        'depth': np.float32(0.06),
        'approach_vector': np.array([0.0, 0.0, 1.0], dtype=np.float32)
    }
]

grasp_info = {
    'grasp_params': grasp_params_list
}

obj_scale = torch.tensor(0.1, dtype=torch.float32)
shape_code = torch.randn(1, 10, dtype=torch.float32)

ARGS = {
    'grasp_info': grasp_info,
    'obj_scale': obj_scale,
    'shape_code': shape_code
}
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 PandaRefine — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a PandaRefine 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
get_RTs_from_grasp_params_tensor Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
yanjh97/TransGrasp/grasp_transfer/refine_module.py
code served (permissive licence) · get_code("7da6757202421521")
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; no output shape is stated. 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 and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create small tensors for the function
batch_size = 2
point_dim = 3

# obj_left_points: shape (batch_size, 3) - left grasp point
obj_left_points = torch.randn(batch_size, point_dim)

# obj_right_points: shape (batch_size, 3) - right grasp point
obj_right_points = torch.randn(batch_size, point_dim)
# Ensure they're different to avoid zero norm assertion
obj_right_points = obj_right_points + torch.tensor([[1.0, 0.5, 0.3], [0.8, 1.0, 0.2]])

# vectors: shape (batch_size, 3) - approach vectors
vectors = torch.randn(batch_size, point_dim)

# depths: shape (batch_size,) - depth values
depths = torch.randn(batch_size)

# obj_scale: scalar - object scale factor
obj_scale = torch.tensor(2.0)

ARGS = {
    'obj_left_points': obj_left_points,
    'obj_right_points': obj_right_points,
    'vectors': vectors,
    'depths': depths,
    'obj_scale': obj_scale
}
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 — no output shape is stated: observe_signature.py could not observe it (call:AssertionError)
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
get_mesh_sampled_points Ran
ran; our contract draft was wrong, not the code
yanjh97/TransGrasp/grasp_transfer/refine_module.py
code served (permissive licence) · get_code("504b36a094dbe673")
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 numpy as np
import tempfile
import os

# Create a temporary directory and mock .npz file
temp_dir = tempfile.mkdtemp()
mock_npz_path = os.path.join(temp_dir, 'gripper_test.npz')

# Create mock gripper mesh data
hand_points = np.random.randn(50, 3).astype(np.float32)
left_finger_points = np.random.randn(30, 3).astype(np.float32)
right_finger_points = np.random.randn(30, 3).astype(np.float32)

# Save as npz file
np.savez(mock_npz_path, hand=hand_points, left_finger=left_finger_points, right_finger=right_finger_points)

# Patch the asset loading path for this test
import sys
from unittest.mock import patch

original_load = np.load

def mock_np_load(path, *args, **kwargs):
    if 'grasp_transfer/assets/' in path:
        # Extract gripper name and load from temp directory
        gripper_name = path.split('/')[-1].replace('.npz', '')
        return original_load(mock_npz_path, *args, **kwargs)
    return original_load(path, *args, **kwargs)

# Apply the patch
import builtins
_original_np_load = np.load
np.load = mock_np_load

ARGS = {
    'gripper_name': 'gripper_test',
    'num_points': 20
}
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 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
get_points_sdf_normal Ran
ran; our contract draft was wrong, not the code
yanjh97/TransGrasp/grasp_transfer/refine_module.py
code served (permissive licence) · get_code("3b05c9a396ea5d85")
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 torch
import torch.nn as nn

torch.manual_seed(0)

class MockModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 1)
    
    def inference_with_grad(self, points, shape_code):
        # points: [batch, 4], shape_code: [batch, 3]
        # Return SDF values
        combined = torch.cat([points, shape_code], dim=1)
        sdf = self.linear(combined[:, :4])
        return sdf

model = MockModel()
shape_code = torch.randn(2, 3, requires_grad=False)
points = torch.randn(2, 4, requires_grad=True)

ARGS = {
    "model": model,
    "shape_code": shape_code,
    "points": points,
}
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
get_template_points_sdf_normal Ran
ran; our contract draft was wrong, not the code
yanjh97/TransGrasp/grasp_transfer/refine_module.py
code served (permissive licence) · get_code("9da48e5f7200a3ce")
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 torch
import torch.nn as nn

torch.manual_seed(0)

class MockTemplateModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 1)
    
    def get_template_field_with_grad(self, points):
        """Returns SDF values for points, with gradient tracking enabled."""
        return self.linear(points)

# Create model instance
model = MockTemplateModel()

# Create points tensor with shape (2, 4) - batch_size=2, dim=4
# Mark requires_grad=True so autograd.grad can compute gradients
points = torch.randn(2, 4, requires_grad=True)

ARGS = {
    "model": model,
    "points": points,
}
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
get_width_from_grasp_params_tensor Ran
ran, honoured the contract we drafted
yanjh97/TransGrasp/grasp_transfer/refine_module.py
code served (permissive licence) · get_code("524e9ba7396e03a9")
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 (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)

# Construct tensors for grasp parameters
# obj_left_points: tensor of shape (batch_size, num_points)
# obj_right_points: tensor of shape (batch_size, num_points)
# obj_scale: scalar tensor or float

batch_size = 2
num_points = 4

obj_left_points = torch.randn(batch_size, num_points)
obj_right_points = torch.randn(batch_size, num_points)
obj_scale = torch.tensor(2.0)

ARGS = {
    "obj_left_points": obj_left_points,
    "obj_right_points": obj_right_points,
    "obj_scale": obj_scale,
}
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 (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

Also present in other papers' code

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

Grasp pose estimation is an important issue for robots to interact with the real world. However, most of existing methods require exact 3D object models available beforehand or a large amount of grasp annotations for training. To avoid these problems, we propose Trans-Grasp, a category-level grasp pose estimation method that predicts grasp poses of a category of objects by labeling only one object instance. Specifically, we perform grasp pose transfer across a category of objects based on their shape correspondences and propose a grasp pose refinement module to further fine-tune grasp pose of grippers so as to ensure successful grasps. Experiments demonstrate the effectiveness of our method on achieving high-quality grasps with the transferred grasp poses. Our code is available at https://github.com/yanjh97/TransGrasp.

For agents

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

get_harvested_code_for_paper("2207.07861")
get_code_for_paper("2207.07861")
have("2207.07861")

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

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

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

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

Connect an agent — have() is free.