SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · Zhang_Spiking_Transformers_for_Event-Based_Single_Object_Tracking_CVPR_2022_paper · CVPR · 2022

Spiking Transformers for Event-based Single Object Tracking

Xin Yang, Bo Dong, Haiwei Zhang, Baocai Yin, Jiqing Zhang, Felix Heide, Jianchuan Ding

Code that ran

4 of 7 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; 0 failures of our instrument; 3 no recorded run), measured 2026-11-23; 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/Zhang_Spiking_Transformers_for_Event-Based_Single_Object_Tracking_CVPR_2022_paper.json · badge: /api/ran/Zhang_Spiking_Transformers_for_Event-Based_Single_Object_Tracking_CVPR_2022_paper.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
Jee-King/CVPR2022_STNet canonical (classifier label)
classifier basis: census
4 ran · 3 no recorded run
FunctionStatusWhere it lives
convert_numpy_to_tensor Ran
ran on a synthesized input
Jee-King/CVPR2022_STNet/videoanalyst/utils/torch_module.py
code served (permissive licence) · get_code("6eaaca85a808b3e1")
How it ran

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

torch.manual_seed(0)

# Test case 1: numpy array
numpy_array = np.random.randn(4, 3).astype(np.float32)

# Test case 2: dict with image (HxWxC format)
dict_with_image = {
    'image': np.random.randn(5, 6, 3).astype(np.float32),
    'label': np.array([1, 2]).astype(np.float32),
    'metadata': 'some_string'
}

# Test case 3: list of numpy arrays
list_of_arrays = [
    np.random.randn(2, 4).astype(np.float32),
    np.random.randn(3, 2).astype(np.float32)
]

# Test case 4: nested structure with dict containing list
nested_dict = {
    'data': [np.random.randn(2, 3).astype(np.float32)],
    'values': np.array([5.0, 6.0]).astype(np.float32)
}

# Test case 5: plain Python object (non-numpy, non-dict, non-sequence)
plain_object = 42

ARGS = {
    'raw_data': numpy_array
}
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 2, dtype family float, shape (4, 3) — shape (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
move_data_to_device Ran
ran on a synthesized input
Jee-King/CVPR2022_STNet/videoanalyst/utils/torch_module.py
code served (permissive licence) · get_code("ac366e2158e0b6a5")
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

torch.manual_seed(0)

# Create a device (CPU only)
device = torch.device('cpu')

# Create a data dictionary with tensors and lists of tensors
data_dict = {
    'tensor_key': torch.randn(2, 4),
    'list_key': [torch.randn(2, 3), torch.randn(2, 5)],
    'another_tensor': torch.randn(2, 4),
}

ARGS = {
    'data_dict': data_dict,
    'dev': device,
}
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
specify_task Ran
ran on a synthesized input
Jee-King/CVPR2022_STNet/videoanalyst/config/config.py
code served (permissive licence) · get_code("df5b6d48d5678fc1")
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, ndim 1, 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.

from yacs.config import CfgNode

cfg = CfgNode()

# Initialize the config with task structures
cfg['track'] = CfgNode()
cfg['track']['exp_name'] = 'unknown'

cfg['vos'] = CfgNode()
cfg['vos']['exp_name'] = 'unknown'

# Set one task to have a non-default exp_name so the function returns successfully
cfg['track']['exp_name'] = 'tracking_experiment'

ARGS = {
    'cfg': cfg
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
yacs — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
xcorr_depthwise Ran
ran on a synthesized input
Jee-King/CVPR2022_STNet/videoanalyst/model/common_opr/common_block.py
code served (permissive licence) · get_code("071f7e0c8eff71ca")
How it ran

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

torch.manual_seed(0)

# Create small tensors for depthwise cross correlation
# x: search region feature with shape (batch, channel, height, width)
# kernel: template feature with shape (batch, channel, kernel_h, kernel_w)

batch = 2
channel = 4
x_height = 7
x_width = 7
kernel_height = 3
kernel_width = 3

# x tensor: (batch=2, channel=4, height=7, width=7)
x = torch.randn(batch, channel, x_height, x_width)

# kernel tensor: (batch=2, channel=4, kernel_h=3, kernel_w=3)
kernel = torch.randn(batch, channel, kernel_height, kernel_width)

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, 4, 5, 5) — shape (2, 4, 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
build Not yet run
unverified (harvested, no recorded run)
Jee-King/CVPR2022_STNet/videoanalyst/model/builder.py
code served (permissive licence) · get_code("48acb618c8672361")
How it ran

no invocation recorded.

get_config Not yet run
unverified (harvested, no recorded run)
Jee-King/CVPR2022_STNet/videoanalyst/model/builder.py
code served (permissive licence) · get_code("7853875da2b379d6")
How it ran

no invocation recorded.

unwrap_model Not yet run
unverified (harvested, no recorded run)
Jee-King/CVPR2022_STNet/videoanalyst/utils/torch_module.py
code served (permissive licence) · get_code("99a642ee770823da")
How it ran

no invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 0 later) and 4 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
convert_numpy_to_tensor 1 other paper
1 dated earlier
2003.00482 (2020-03)
State-Aware Tracker for Real-Time Video Object Segmentation
specify_task 1 other paper
1 dated earlier
2003.00482 (2020-03)
State-Aware Tracker for Real-Time Video Object Segmentation
unwrap_model 1 other paper
1 dated earlier
2003.00482 (2020-03)
State-Aware Tracker for Real-Time Video Object Segmentation

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

Event-based cameras bring a unique capability to tracking, being able to function in challenging real-world conditions as a direct result of their high temporal resolution and high dynamic range. These imagers capture events asynchronously that encode rich temporal and spatial information. However, effectively extracting this information from events remains an open challenge. In this work, we propose a spiking transformer network, STNet, for single object tracking. STNet dynamically extracts and fuses information from both temporal and spatial domains. In particular, the proposed architecture features a transformer module to provide global spatial information and a spiking neural network (SNN) module for extracting temporal cues. The spiking threshold of the SNN module is dynamically adjusted based on the statistical cues of the spatial information, which we find essential in providing robust SNN features. We fuse both feature branches dynamically with a novel cross-domain attention fusion algorithm. Extensive experiments on three event-based datasets, FE240hz, EED and VisEvent validate that the proposed STNet outperforms existing state-of-the-art methods in both tracking accuracy and speed with a significant margin. The code and pretrained models are at https://github.com/Jee-King/CVPR2022_STNet.

For agents

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

get_harvested_code_for_paper("Zhang_Spiking_Transformers_for_Event-Based_Single_Object_Tracking_CVPR_2022_paper")
get_code_for_paper("Zhang_Spiking_Transformers_for_Event-Based_Single_Object_Tracking_CVPR_2022_paper")
have("Zhang_Spiking_Transformers_for_Event-Based_Single_Object_Tracking_CVPR_2022_paper")

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

curl https://syntology.ai/api/ran/Zhang_Spiking_Transformers_for_Event-Based_Single_Object_Tracking_CVPR_2022_paper.json

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

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

Connect an agent — have() is free.