SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2203.04275 · 2022

Robust Multi-Task Learning and Online Refinement for Spacecraft Pose Estimation across Domain Gap

arXiv · PDF · Open in the Atlas

Code that ran

6 of 12 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 6 have no contract verdict; 0 failures of our instrument; 6 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.04275.json · badge: /api/ran/2203.04275.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
tpark94/spnv2 canonical (classifier label)
classifier basis not recorded on the link
6 ran · 6 no recorded run
FunctionStatusWhere it lives
bbox_iou Ran
ran on a synthesized input
tpark94/spnv2/core/utils/metrics.py
code served (permissive licence) · get_code("afabbf638fe66d8d")
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 (1,) 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 center-x, center-y, width, height format
box1 = np.array([10.0, 10.0, 4.0, 6.0])
box2 = np.array([12.0, 11.0, 5.0, 7.0])

ARGS = {
    "box1": box1,
    "box2": box2,
    "x1y1x2y2": False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (1,) — shape (1,) 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
error_translation Ran
ran on a synthesized input
tpark94/spnv2/core/utils/metrics.py
code served (permissive licence) · get_code("e5fe431cf494a397")
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 float64, ndim 0, 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 numpy as np

# The function error_translation computes the Euclidean distance between two 3D translation vectors
# It takes two arguments: t_pr (predicted translation) and t_gt (ground truth translation)
# Both are reshaped to (3,) shape, so they can be any array-like with 3 elements or reshapeable to 3 elements

# Create sample translation vectors
t_pr = np.array([1.0, 2.0, 3.0])  # predicted translation (3D point)
t_gt = np.array([1.5, 2.5, 3.5])  # ground truth translation (3D point)

ARGS = {
    "t_pr": t_pr,
    "t_gt": t_gt,
}
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 float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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_optimizer Ran
ran on a synthesized input
tpark94/spnv2/core/solver/build.py
code served (permissive licence) · get_code("252f0ed9a01b3930")
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 Adam. 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)

# Create a minimal model with trainable parameters
class MinimalModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

model = MinimalModel()

# Create a minimal config object with required attributes
class Config:
    def __init__(self):
        self.TRAIN = TrainConfig()
        self.FP16 = False

class TrainConfig:
    def __init__(self):
        self.OPTIMIZER = 'Adam'
        self.LR = 0.001
        self.WD = 0.0001
        self.GAMMA1 = 0.9
        self.GAMMA2 = 0.999

cfg = Config()

ARGS = {
    'cfg': cfg,
    'model': model
}
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 Adam — a Adam output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Adam 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_scaled_parameters Ran
ran on a synthesized input
tpark94/spnv2/core/nets/build.py
code served (permissive licence) · get_code("1f62d0edd80a2c79")
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

# The function get_scaled_parameters takes a single parameter phi
# phi should be an integer in range [0, 6] to index into the tuples
# Let's test with phi = 0 (smallest EfficientPose variant)

ARGS = {
    'phi': 0
}
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
segment_iou Ran
ran on a synthesized input
tpark94/spnv2/core/utils/metrics.py
code served (permissive licence) · get_code("c6162079b6fafe58")
How it ran

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

import numpy as np
import torch

torch.manual_seed(0)

# segment_iou takes two mask arguments
# Looking at the function body:
# - mask1 and mask2 are used with np.sum() and element-wise multiplication (*)
# - They should be numpy arrays (or array-like)
# - The function expects 2D or flattened mask arrays

# Create two small binary masks as numpy arrays
mask1 = np.array([[1, 0, 1, 0],
                  [0, 1, 1, 0]], dtype=np.float32)

mask2 = np.array([[1, 1, 0, 0],
                  [0, 1, 0, 1]], dtype=np.float32)

ARGS = {
    "mask1": mask1,
    "mask2": mask2,
}
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 float32, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
solve_pose_from_heatmaps Ran
ran on a synthesized input
tpark94/spnv2/core/utils/postprocess.py
code served (permissive licence) · get_code("f5a6b9c582abc94c")
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 numpy as np

torch.manual_seed(0)

# Create small heatmaps: nK=6 keypoints, height=8, width=8
heatmaps = torch.rand(6, 8, 8)

# Image size
image_size = (640, 480)

# Threshold for visibility
threshold = 0.5

# Camera dict with required fields
camera = {
    'cameraMatrix': np.array([
        [500.0, 0.0, 320.0],
        [0.0, 500.0, 240.0],
        [0.0, 0.0, 1.0]
    ], dtype=np.float32),
    'distCoeffs': np.zeros((5, 1), dtype=np.float32),
    'horizontalFOV': np.pi / 3,  # 60 degrees
    'Nu': 640,
    'Nv': 480
}

# True 3D keypoints (6 keypoints with 3D coordinates)
keypts_true_3D = np.array([
    [0.0, 0.0, 10.0],
    [0.1, 0.0, 10.0],
    [0.0, 0.1, 10.0],
    [-0.1, 0.0, 10.0],
    [0.0, -0.1, 10.0],
    [0.05, 0.05, 10.0]
], dtype=np.float32)

ARGS = {
    'heatmaps': heatmaps,
    'image_size': image_size,
    'threshold': threshold,
    'camera': camera,
    'keypts_true_3D': keypts_true_3D
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, numpy, scipy, 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
build_dataset Not yet run
unverified (harvested, no recorded run)
tpark94/spnv2/core/dataset/build.py
code served (permissive licence) · get_code("0c593734d9f94980")
How it ran

no invocation recorded.

delta_xy_tz_to_translation Not yet run
unverified (harvested, no recorded run)
tpark94/spnv2/core/utils/postprocess.py
code served (permissive licence) · get_code("195416253420fd69")
How it ran

no invocation recorded.

get_dataloader Not yet run
unverified (harvested, no recorded run)
tpark94/spnv2/core/dataset/build.py
code served (permissive licence) · get_code("6e538c5360051b8b")
How it ran

no invocation recorded.

get_scaler Not yet run
unverified (harvested, no recorded run)
tpark94/spnv2/core/solver/build.py
code served (permissive licence) · get_code("5e9cbeffcbc50081")
How it ran

no invocation recorded.

load_checkpoint Not yet run
unverified (harvested, no recorded run)
tpark94/spnv2/core/utils/checkpoints.py
code served (permissive licence) · get_code("7d3b66747ff809f2")
How it ran

no invocation recorded.

raw_output_to_bbox Not yet run
unverified (harvested, no recorded run)
tpark94/spnv2/core/utils/postprocess.py
code served (permissive licence) · get_code("10d3c16eac0503a7")
How it ran

no invocation recorded.

Also present in other papers' code

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

This work presents Spacecraft Pose Network v2 (SPNv2), a Convolutional Neural Network (CNN) for pose estimation of noncooperative spacecraft across domain gap. SPNv2 is a multi-scale, multi-task CNN which consists of a shared multi-scale feature encoder and multiple prediction heads that perform different tasks on a shared feature output. These tasks are all related to detection and pose estimation of a target spacecraft from an image, such as prediction of pre-defined satellite keypoints, direct pose regression, and binary segmentation of the satellite foreground. It is shown that by jointly training on different yet related tasks with extensive data augmentations on synthetic images only, the shared encoder learns features that are common across image domains that have fundamentally different visual characteristics compared to synthetic images. This work also introduces Online Domain Refinement (ODR) which refines the parameters of the normalization layers of SPNv2 on the target domain images online at deployment. Specifically, ODR performs self-supervised entropy minimization of the predicted satellite foreground, thereby improving the CNN's performance on the target domain images without their pose labels and with minimal computational efforts. The GitHub repository for SPNv2 is available at https://github.com/tpark94/spnv2.

For agents

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

get_harvested_code_for_paper("2203.04275")
get_code_for_paper("2203.04275")
have("2203.04275")

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

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

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

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

Connect an agent — have() is free.