SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2203.13572 · ECCV · 2022

A Visual Navigation Perspective for Category-Level Object Pose Estimation

Yue Wang, Yiyi Liao, Yunhui Liu, Jiaxin Guo, Rong Xiong, Fangxun Zhong

arXiv · PDF · Open in the Atlas

Code that ran

15 of 17 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; 3 honoured the contract we drafted, 1 violated it and 9 have no contract verdict; 2 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/2203.13572.json · badge: /api/ran/2203.13572.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
wrld/visual_navigation_pose_estimation canonical (classifier label)
classifier basis not recorded on the link
15 ran · 2 no recorded run
FunctionStatusWhere it lives
actvn Ran
ran; our contract draft was wrong, not the code
wrld/visual_navigation_pose_estimation/models/networks/networks.py
code served (permissive licence) · get_code("5bd96fb5938773d4")
How it ran

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

import torch
import torch.nn.functional as F

torch.manual_seed(0)

# The function actvn takes a single parameter x and applies leaky_relu to it
# x should be a tensor
x = torch.randn(2, 4)

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_RotMats Ran
ran on a synthesized input
wrld/visual_navigation_pose_estimation/utils/loss.py
code served (permissive licence) · get_code("5be53270342b91a6")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 3, dtype family float, shape (2, 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)

# The function expects:
# - rot: a tensor of shape (batch, 3) containing [azimuth, elevation, tilt] angles
# - degree: a boolean flag indicating if angles are in degrees

# Create a small batch of rotation parameters (azimuth, elevation, tilt)
batch_size = 2
rot = torch.randn(batch_size, 3, dtype=torch.float32)

# Test both with degree=False and degree=True
ARGS = {
    "rot": rot,
    "degree": False
}
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 3, dtype family float, shape (2, 3, 3) — shape (2, 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
compute_iou Ran
ran, violated the contract we drafted
wrld/visual_navigation_pose_estimation/nocs/utils.py
code served (permissive licence) · get_code("2757c39fd1d64ab6")
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 sample box and boxes
# box: 1D vector [y1, x1, y2, x2]
box = np.array([10.0, 20.0, 30.0, 40.0])

# boxes: [boxes_count, (y1, x1, y2, x2)]
# Using 2 boxes for small but non-trivial example
boxes = np.array([
    [12.0, 22.0, 28.0, 38.0],  # overlapping box
    [50.0, 60.0, 70.0, 80.0]   # non-overlapping box
])

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

# Calculate boxes_area: array of areas for each box
boxes_area = (boxes[:, 2] - boxes[:, 0]) * (boxes[:, 3] - boxes[:, 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
wrld/visual_navigation_pose_estimation/nocs/utils.py
code served (permissive licence) · get_code("d8f86755404a2057")
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 (2, 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 sample bounding boxes in format [y1, x1, y2, x2]
boxes1 = np.array([
    [10.0, 20.0, 50.0, 60.0],
    [15.0, 25.0, 55.0, 65.0],
], dtype=np.float32)

boxes2 = np.array([
    [12.0, 22.0, 52.0, 62.0],
    [20.0, 30.0, 60.0, 70.0],
    [5.0, 10.0, 30.0, 40.0],
], 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 (2, 3) — shape (2, 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
create_window Ran
ran, honoured the contract we drafted
wrld/visual_navigation_pose_estimation/models/networks/losses.py
code served (permissive licence) · get_code("6154e3744ece5728")
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 (3, 1, 5, 5) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from torch.autograd import Variable
from math import exp

torch.manual_seed(0)

def gaussian(window_size, sigma):
    gauss = torch.Tensor([exp(-(x - window_size // 2) ** 2 / float(2 * sigma ** 2)) for x in range(window_size)])
    return gauss / gauss.sum()

def create_window(window_size, channel):
    _1D_window = gaussian(window_size, 1.5).unsqueeze(1)
    _2D_window = _1D_window.mm(_1D_window.t()).float().unsqueeze(0).unsqueeze(0)
    window = Variable(_2D_window.expand(channel, 1, window_size, window_size).contiguous())
    return window

ARGS = {
    "window_size": 5,
    "channel": 3
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (3, 1, 5, 5) — shape (3, 1, 5, 5) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
euler2mat Ran
ran on a synthesized input
wrld/visual_navigation_pose_estimation/models/networks/networks.py
code served (permissive licence) · get_code("966e21cead161e27")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 3, dtype family float, shape (2, 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

torch.manual_seed(0)

# Create a small batch of euler angles
# angle should be size [B, 3] where B is batch size
# Each row contains 3 rotation angles in radians (x, y, z)
angle = torch.randn(2, 3)

# Prepare ARGS dict with all parameters
ARGS = {
    'angle': angle,
    'euler_seq': 'xyz'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (2, 3, 3) — shape (2, 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
extract_bboxes Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
wrld/visual_navigation_pose_estimation/nocs/utils.py
code served (permissive licence) · get_code("75499b9fb42b31f7")
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 mask array with shape (height, width, num_instances)
# height=5, width=6, num_instances=3
mask = np.zeros((5, 6, 3), dtype=np.uint8)

# Instance 0: create a small bounding box region
mask[1:3, 1:4, 0] = 1

# Instance 1: create another bounding box region
mask[2:5, 3:6, 1] = 1

# Instance 2: create a single pixel region
mask[0:2, 0:2, 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
gaussian Ran
ran, honoured the contract we drafted
wrld/visual_navigation_pose_estimation/models/networks/losses.py
code served (permissive licence) · get_code("c56b7ef16f309a45")
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 Tensor, ndim 1, dtype family float, shape (5,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from math import exp

torch.manual_seed(0)

ARGS = {
    "window_size": 5,
    "sigma": 1.0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 (5,) — shape (5,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
grid_sample Ran
ran on a synthesized input
wrld/visual_navigation_pose_estimation/models/networks/utils.py
code served (permissive licence) · get_code("774db7133dd29213")
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, 3, 4, 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 torch.nn.functional as F

torch.manual_seed(0)

# image: input tensor of shape (batch, channels, height, width)
# The function calls F.grid_sample on it, expecting a 4D tensor
image = torch.randn(2, 3, 4, 5)

# grid: sampling grid of shape (batch, height_out, width_out, 2)
# Contains normalized coordinates in [-1, 1]
# The function indexes grid[:, :, :, 0] and grid[:, :, :, 1]
grid = torch.randn(2, 4, 3, 2) * 0.5  # Keep values in reasonable range

# mode: interpolation mode
mode = 'bilinear'

# padding_mode: how to handle out-of-bounds
padding_mode = 'constant'

# padding_value: value to use for out-of-bounds pixels
padding_value = 1

ARGS = {
    'image': image,
    'grid': grid,
    'mode': mode,
    'padding_mode': padding_mode,
    'padding_value': padding_value,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (2, 3, 4, 3) — shape (2, 3, 4, 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
init_variable Ran
ran on a synthesized input
wrld/visual_navigation_pose_estimation/models/networks/utils.py
code served (permissive licence) · get_code("3980d98cced8b905")
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)

ARGS = {
    'dim': 4,
    'n_init': 2,
    'device': 'cpu',
    'mode': 'random',
    'range': [0, 1],
    'value': 1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
rot Ran
ran on a synthesized input
wrld/visual_navigation_pose_estimation/models/networks/networks.py
code served (permissive licence) · get_code("01df6fccefdc574e")
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 5, dtype family float, shape (2, 3, 4, 5, 6) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
import torch.nn.functional as F

torch.manual_seed(0)

# Create a small 5D tensor for input x: [batch=2, channels=3, depth=4, height=5, width=6]
x = torch.randn(2, 3, 4, 5, 6)

# Create angle tensor for euler angles: [batch=2, 3 angles]
angle = torch.randn(2, 3)

# Valid padding mode for grid_sample
padding_mode = 'zeros'

# Valid euler sequence
euler_seq = 'xyz'

ARGS = {
    'x': x,
    'angle': angle,
    'euler_seq': euler_seq,
    'padding': padding_mode
}
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 5, dtype family float, shape (2, 3, 4, 5, 6) — shape (2, 3, 4, 5, 6) 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
rot_error Ran
ran on a synthesized input
wrld/visual_navigation_pose_estimation/utils/loss.py
code served (permissive licence) · get_code("65e457d25bcad96a")
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
import numpy as np

torch.manual_seed(0)

# Create small tensors for pose and pose_gt
# Shape: (batch_size, 3) where batch_size=2
# The 3 columns represent: azimuth, elevation, tilt angles
batch_size = 2
pose = torch.randn(batch_size, 3, dtype=torch.float32)
pose_gt = torch.randn(batch_size, 3, dtype=torch.float32)

ARGS = {
    "pose": pose,
    "pose_gt": pose_gt,
    "reduction": False
}
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 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
ssim Ran
ran on a synthesized input
wrld/visual_navigation_pose_estimation/models/networks/losses.py
code served (permissive licence) · get_code("b21bebe6240b182c")
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 0, dtype family float, shape () 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
import torch.nn.functional as F
from torch.autograd import Variable
from math import exp

torch.manual_seed(0)

def gaussian(window_size, sigma):
    gauss = torch.Tensor([exp(-(x - window_size // 2) ** 2 / float(2 * sigma ** 2)) for x in range(window_size)])
    return gauss / gauss.sum()

def create_window(window_size, channel):
    _1D_window = gaussian(window_size, 1.5).unsqueeze(1)
    _2D_window = _1D_window.mm(_1D_window.t()).float().unsqueeze(0).unsqueeze(0)
    window = Variable(_2D_window.expand(channel, 1, window_size, window_size).contiguous())
    return window

def _ssim(img1, img2, window, window_size, channel, size_average=True):
    mu1 = F.conv2d(img1, window, padding=window_size // 2, groups=channel)
    mu2 = F.conv2d(img2, window, padding=window_size // 2, groups=channel)
    mu1_sq = mu1.pow(2)
    mu2_sq = mu2.pow(2)
    mu1_mu2 = mu1 * mu2
    sigma1_sq = F.conv2d(img1 * img1, window, padding=window_size // 2, groups=channel) - mu1_sq
    sigma2_sq = F.conv2d(img2 * img2, window, padding=window_size // 2, groups=channel) - mu2_sq
    sigma12 = F.conv2d(img1 * img2, window, padding=window_size // 2, groups=channel) - mu1_mu2
    C1 = 0.01 ** 2
    C2 = 0.03 ** 2
    ssim_map = (2 * mu1_mu2 + C1) * (2 * sigma12 + C2) / ((mu1_sq + mu2_sq + C1) * (sigma1_sq + sigma2_sq + C2))
    if size_average:
        return ssim_map.mean()
    else:
        return ssim_map.mean(1).mean(1).mean(1)

def ssim(img1, img2, window_size=11, reduce=True):
    _, channel, _, _ = img1.size()
    window = create_window(window_size, channel)
    if img1.is_cuda:
        window = window.cuda(img1.get_device())
    window = window.type_as(img1)
    return _ssim(img1, img2, window, window_size, channel, reduce)

img1 = torch.randn(2, 3, 16, 20)
img2 = torch.randn(2, 3, 16, 20)

ARGS = {
    "img1": img1,
    "img2": img2,
    "window_size": 11,
    "reduce": True
}
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 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
trans_error Ran
ran on a synthesized input
wrld/visual_navigation_pose_estimation/utils/loss.py
code served (permissive licence) · get_code("af3c4a71bdfa4413")
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)

# Analyze the function:
# - input: tensor with shape (batch, 4) where it indexes [:, 0:1], [:, 1:3]
# - targets: tensor with shape (batch, 4) where it indexes [:, 0:1], [:, 1:3]
# Both are multiplied element-wise and then subtracted
# torch.norm is called with dim=1, so batch dimension is preserved

# Create small tensors with batch size 2 and appropriate dimensions
batch_size = 2

# input shape: (2, 4) - batch of 2, 4 features
# Indices 0:1 extracts column 0 (shape 2x1)
# Indices 1:3 extracts columns 1-2 (shape 2x2)
# Multiplication broadcasts to (2x2)
input_tensor = torch.randn(batch_size, 4)

# targets shape: (2, 4) - same structure as input
targets_tensor = torch.randn(batch_size, 4)

ARGS = {
    "input": input_tensor,
    "targets": targets_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 (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
warping_grid Ran
ran on a synthesized input
wrld/visual_navigation_pose_estimation/models/networks/utils.py
code served (permissive licence) · get_code("bec655e3507fba1e")
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, 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
import torch.nn as nn
from torch.nn import functional as F

torch.manual_seed(0)

# Analyze the function to determine required tensor shapes and types
# angle: used in torch.cos() and torch.sin(), concatenated with dim=1
# transx, transy: concatenated with dim=1
# scale: reshaped to (-1, 1, 1) and expanded to match affine_mat.shape
# image_shape: used as size parameter in F.affine_grid and for viewing affine_mat

# F.affine_grid expects:
# - theta: (N, 2, 3) tensor for 2D
# - size: (N, C, H, W) tuple

# Working backwards:
# affine_mat.view(image_shape[0], 2, 3) means we need image_shape[0] to be batch size
# and the concatenation of [cosz, -sinz, transx, sinz, cosz, transy] along dim=1
# produces shape (batch_size, 6) before viewing to (batch_size, 2, 3)

batch_size = 2
image_height = 4
image_width = 3
num_channels = 1

# angle, transx, transy must have shape (batch_size, 1) to concatenate along dim=1
angle = torch.randn(batch_size, 1)
transx = torch.randn(batch_size, 1)
transy = torch.randn(batch_size, 1)

# scale must have shape (batch_size, 1) so it can be reshaped and expanded
scale = torch.randn(batch_size, 1)

# image_shape is a tuple (N, C, H, W) used by F.affine_grid
image_shape = (batch_size, num_channels, image_height, image_width)

ARGS = {
    "angle": angle,
    "transx": transx,
    "transy": transy,
    "scale": scale,
    "image_shape": image_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 Tensor, ndim 4, dtype family float, shape (2, 4, 3, 2) — shape (2, 4, 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
remove_spectral_norm Not yet run
unverified (harvested, no recorded run)
wrld/visual_navigation_pose_estimation/models/networks/spectral_norm.py
code served (permissive licence) · get_code("a9881435918e1dc4")
How it ran

no invocation recorded.

spectral_norm Not yet run
unverified (harvested, no recorded run)
wrld/visual_navigation_pose_estimation/models/networks/spectral_norm.py
code served (permissive licence) · get_code("9cf6a2515e727176")
How it ran

no invocation recorded.

Also present in other papers' code

Of 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 17 distinct functions with an identity, 8 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 2 the same month, 8 later) and 9 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
gaussian 160 other papers
18 dated earlier, 1 the same month, 140 later, 1 same year, order not determinable · 7 only as an assembly brick
1812.11941 (2018-12)
High Quality Monocular Depth Estimation via Transfer Learning
1904.01538 (2019-04)
Spatial Attentive Single-Image Deraining with a High Quality Real Rain Dataset
1907.11628 (2019-07)
Unsupervised Learning for Optical Flow Estimation Using Pyramid Convolution LSTM
and 157 more not named here
create_window 52 other papers
11 dated earlier, 1 the same month, 40 later · 5 only as an assembly brick
1904.01538 (2019-04)
Spatial Attentive Single-Image Deraining with a High Quality Real Rain Dataset
1907.11628 (2019-07)
Unsupervised Learning for Optical Flow Estimation Using Pyramid Convolution LSTM
2002.11616 (2020-02)
Zooming Slow-Mo: Fast and Accurate One-Stage Space-Time Video Super-Resolution
and 49 more not named here
compute_iou 9 other papers
7 dated earlier, 2 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
7 dated earlier, 2 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
7 dated earlier, 2 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
actvn 6 other papers
3 dated earlier, 3 later
1810.00821 (2018-10)
Variational Discriminator Bottleneck: Improving Imitation Learning, Inverse RL, and GANs by Constraining Information Flow
1912.05237 (2019-12)
Towards Unsupervised Learning of Generative Models for 3D Controllable Image Synthesis
2002.11810 (2020-02)
On Leveraging Pretrained GANs for Generation with Limited Data
and 3 more not named here
remove_spectral_norm 6 other papers
4 dated earlier, 2 later
1911.07532 (2019-11)
Graph Neural Ordinary Differential Equations
2003.00378 (2020-03)
Understanding the Intrinsic Robustness of Image Distributions using Conditional Generative Models
2007.10247 (2020-07)
Learning Joint Spatial-Temporal Transformations for Video Inpainting
and 3 more not named here
spectral_norm 6 other papers
5 dated earlier, 1 later
1911.13239 (2019-11)
DoveNet: Deep Image Harmonization via Domain Verification
2001.02332 (2020-01)
Generative Adversarial Zero-Shot Relational Learning for Knowledge Graphs
2003.00378 (2020-03)
Understanding the Intrinsic Robustness of Image Distributions using Conditional Generative Models
and 3 more not named here

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 studies category-level object pose estimation based on a single monocular image. Recent advances in pose-aware generative models have paved the way for addressing this challenging task using analysis-by-synthesis. The idea is to sequentially update a set of latent variables, e.g., pose, shape, and appearance, of the generative model until the generated image best agrees with the observation. However, convergence and efficiency are two challenges of this inference procedure. In this paper, we take a deeper look at the inference of analysis-by-synthesis from the perspective of visual navigation, and investigate what is a good navigation policy for this specific task. We evaluate three different strategies, including gradient descent, reinforcement learning and imitation learning, via thorough comparisons in terms of convergence, robustness and efficiency. Moreover, we show that a simple hybrid approach leads to an effective and efficient solution. We further compare these strategies to state-of-the-art methods, and demonstrate superior performance on synthetic and real-world datasets leveraging off-the-shelf pose-aware generative models.

For agents

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

get_harvested_code_for_paper("2203.13572")
get_code_for_paper("2203.13572")
have("2203.13572")

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

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

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

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

Connect an agent — have() is free.