SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2003.06761 · 2020

Siamese Box Adaptive Network for Visual Tracking

arXiv · PDF · Open in the Atlas

Code that ran

6 of 8 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 4 have no contract verdict; 2 failures of our instrument; 2 no recorded run), measured 2026-11-22; 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/2003.06761.json · badge: /api/ran/2003.06761.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
hqucv/siamban canonical (classifier label)
classifier basis: census
6 ran · 2 no recorded run
FunctionStatusWhere it lives
check_keys Ran
ran on a synthesized input
hqucv/siamban/siamban/utils/model_load.py
code served (permissive licence) · get_code("ec73a18eb6cee64f")
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 bool, 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 torch
import torch.nn as nn
import logging

logger = logging.getLogger('global')

torch.manual_seed(0)

# Create a simple model with state_dict
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.layer1 = nn.Linear(4, 3)
        self.layer2 = nn.Linear(3, 2)
        self.bn = nn.BatchNorm1d(2)
    
    def forward(self, x):
        x = self.layer1(x)
        x = self.layer2(x)
        x = self.bn(x)
        return x

model = SimpleModel()

# Create a pretrained state dict with some overlapping and some unused keys
pretrained_state_dict = {
    'layer1.weight': torch.randn(3, 4),
    'layer1.bias': torch.randn(3),
    'layer2.weight': torch.randn(2, 3),
    'layer2.bias': torch.randn(2),
    'bn.weight': torch.randn(2),
    'bn.bias': torch.randn(2),
    'bn.running_mean': torch.randn(2),
    'bn.running_var': torch.randn(2),
    'bn.num_batches_tracked': torch.tensor(0),
    'unused_layer.weight': torch.randn(5, 5),
    'unused_layer.bias': torch.randn(5),
}

ARGS = {
    'model': model,
    'pretrained_state_dict': pretrained_state_dict,
}
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 bool, 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
get_cls_loss Ran
ran on a synthesized input
hqucv/siamban/siamban/models/loss.py
code served (permissive licence) · get_code("c15bf5953bf452e6")
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. 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)

# Create pred tensor: log probabilities for 2 samples, 4 classes
# F.nll_loss expects log probabilities as input
pred = torch.randn(2, 4)
pred = F.log_softmax(pred, dim=1)

# Create label tensor: class indices for 2 samples
label = torch.tensor([0, 2], dtype=torch.long)

# Create select tensor: indices to select from pred and label
select = torch.tensor([0, 1], dtype=torch.long)

ARGS = {
    "pred": pred,
    "label": label,
    "select": select
}
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
remove_prefix Ran
ran on a synthesized input
hqucv/siamban/siamban/utils/model_load.py
code served (permissive licence) · get_code("a57313630ecbb3a1")
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 logging

logging.basicConfig(level=logging.INFO)

# Create a sample state_dict with some parameters that have a common prefix
state_dict = {
    'module.layer1.weight': torch.randn(4, 3),
    'module.layer1.bias': torch.randn(4),
    'module.layer2.weight': torch.randn(5, 4),
    'layer3.weight': torch.randn(3, 5),
}

# Define the prefix to remove
prefix = 'module.'

ARGS = {
    'state_dict': state_dict,
    'prefix': prefix,
}
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
select_cross_entropy_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hqucv/siamban/siamban/models/loss.py
code served (permissive licence) · get_code("608039b454e6bd80")
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 float, 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

torch.manual_seed(0)

# Create pred tensor: shape (2, 2) for binary classification on 2 samples
# The function reshapes to (-1, 2), so we need a tensor with 2 as last dim
pred = torch.randn(2, 2, requires_grad=True)

# Create label tensor: shape (2,) with binary labels (0 or 1)
label = torch.tensor([1, 0], dtype=torch.long)

ARGS = {
    "pred": pred,
    "label": label,
}
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 float, 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
xcorr_depthwise Ran
ran; our contract draft was wrong, not the code
hqucv/siamban/siamban/core/xcorr.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from hqucv/siamrn, is pointer only (licence: NONE) · get_code("541e18bc31d27b44")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from hqucv/siamrn, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

xcorr_fast Ran
ran on a synthesized input
hqucv/siamban/siamban/core/xcorr.py
code served (permissive licence) · get_code("928a6daecaca5912")
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, 1, 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 torch.nn.functional as F

torch.manual_seed(0)

# x: input tensor with shape (batch, channels, height, width)
# The function calls:
# - kernel.size()[0] to get batch dimension
# - x.size()[1] to get channel dimension
# - kernel.size()[2], kernel.size()[3] to get kernel height/width
# - x.size()[2], x.size()[3] to get input height/width

# kernel: filter tensor with shape (batch, channels, kernel_h, kernel_w)
# The function reshapes it to (-1, x.size()[1], kernel.size()[2], kernel.size()[3])

# Create small tensors with distinct dimensions for clarity
batch_size = 2
in_channels = 4
kernel_h = 3
kernel_w = 3
input_h = 5
input_w = 5

x = torch.randn(batch_size, in_channels, input_h, input_w)
kernel = torch.randn(batch_size, in_channels, kernel_h, kernel_w)

ARGS = {
    "x": x,
    "kernel": kernel
}
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, 1, 3, 3) — shape (2, 1, 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
load_pretrain Not yet run
unverified (harvested, no recorded run)
hqucv/siamban/siamban/utils/model_load.py
code served (permissive licence) · get_code("1023e0f5057a4383")
How it ran

no invocation recorded.

xcorr_slow Not yet run
unverified (harvested, no recorded run)
hqucv/siamban/siamban/core/xcorr.py
code served (permissive licence) · get_code("74d343344c065353")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 8 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 0 the same month, 8 later) and 0 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
check_keys 4 other papers
1 dated earlier, 3 later
1812.11703 (2018-12)
SiamRPN++: Evolution of Siamese Visual Tracking with Very Deep Networks
aaai_20232 (2022 (year only))
Homography Decomposition Networks for Planar Object Tracking
2203.10541 (2022-03)
Unsupervised Domain Adaptation for Nighttime Aerial Tracking
and 1 more not named here
get_cls_loss 4 other papers
2 dated earlier, 2 later
1812.11703 (2018-12)
SiamRPN++: Evolution of Siamese Visual Tracking with Very Deep Networks
1911.07241 (2019-11)
SiamCAR: Siamese Fully Convolutional Classification and Regression for Visual Tracking
aaai_20232 (2022 (year only))
Homography Decomposition Networks for Planar Object Tracking
and 1 more not named here
remove_prefix 4 other papers
1 dated earlier, 3 later
1812.11703 (2018-12)
SiamRPN++: Evolution of Siamese Visual Tracking with Very Deep Networks
aaai_20232 (2022 (year only))
Homography Decomposition Networks for Planar Object Tracking
2203.10541 (2022-03)
Unsupervised Domain Adaptation for Nighttime Aerial Tracking
and 1 more not named here
select_cross_entropy_loss 4 other papers
2 dated earlier, 2 later
1812.11703 (2018-12)
SiamRPN++: Evolution of Siamese Visual Tracking with Very Deep Networks
1911.07241 (2019-11)
SiamCAR: Siamese Fully Convolutional Classification and Regression for Visual Tracking
aaai_20232 (2022 (year only))
Homography Decomposition Networks for Planar Object Tracking
and 1 more not named here
xcorr_depthwise 4 other papers
1 dated earlier, 3 later
1812.11703 (2018-12)
SiamRPN++: Evolution of Siamese Visual Tracking with Very Deep Networks
2104.00829 (2021-04)
Learning to Filter: Siamese Relation Network for Robust Tracking
aaai_20232 (2022 (year only))
Homography Decomposition Networks for Planar Object Tracking
and 1 more not named here
load_pretrain 3 other papers
1 dated earlier, 2 later
1812.11703 (2018-12)
SiamRPN++: Evolution of Siamese Visual Tracking with Very Deep Networks
2203.10541 (2022-03)
Unsupervised Domain Adaptation for Nighttime Aerial Tracking
2505.23068 (2025-05)
URWKV: Unified RWKV Model with Multi-state Perspective for Low-light Image Restoration
xcorr_fast 3 other papers
1 dated earlier, 2 later
1812.11703 (2018-12)
SiamRPN++: Evolution of Siamese Visual Tracking with Very Deep Networks
aaai_20232 (2022 (year only))
Homography Decomposition Networks for Planar Object Tracking
2203.10541 (2022-03)
Unsupervised Domain Adaptation for Nighttime Aerial Tracking
xcorr_slow 3 other papers
1 dated earlier, 2 later
1812.11703 (2018-12)
SiamRPN++: Evolution of Siamese Visual Tracking with Very Deep Networks
aaai_20232 (2022 (year only))
Homography Decomposition Networks for Planar Object Tracking
2203.10541 (2022-03)
Unsupervised Domain Adaptation for Nighttime Aerial Tracking

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-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Most of the existing trackers usually rely on either a multi-scale searching scheme or pre-defined anchor boxes to accurately estimate the scale and aspect ratio of a target. Unfortunately, they typically call for tedious and heuristic configurations. To address this issue, we propose a simple yet effective visual tracking framework (named Siamese Box Adaptive Network, SiamBAN) by exploiting the expressive power of the fully convolutional network (FCN). SiamBAN views the visual tracking problem as a parallel classification and regression problem, and thus directly classifies objects and regresses their bounding boxes in a unified FCN. The no-prior box design avoids hyper-parameters associated with the candidate boxes, making SiamBAN more flexible and general. Extensive experiments on visual tracking benchmarks including VOT2018, VOT2019, OTB100, NFS, UAV123, and LaSOT demonstrate that SiamBAN achieves state-of-the-art performance and runs at 40 FPS, confirming its effectiveness and efficiency. The code will be available at https://github.com/hqucv/siamban.

For agents

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

get_harvested_code_for_paper("2003.06761")
get_code_for_paper("2003.06761")
have("2003.06761")

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

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

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

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

Connect an agent — have() is free.