SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2308.05140 · ICCV · 2023

Robust Object Modeling for Visual Tracking

Jie Tang, Jie Liu, Gangshan Wu, Yidong Cai

arXiv · PDF · Open in the Atlas

Code that ran

1 of 1 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 1 has no contract verdict; 0 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/2308.05140.json · badge: /api/ran/2308.05140.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
dawnyc/romtrack marked official in Papers with Code
Papers with Code archive
1 ran · 0 no recorded run
FunctionStatusWhere it lives
ROMTrack Ran
ran on a synthesized input
dawnyc/romtrack/lib/models/ROMTrack/ROMTrack.py
code served (permissive licence) · get_code("63c0d76a0fa05fe7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned NoneType. 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
from torch import nn
import copy

class MockEncoder(nn.Module):
    def __init__(self, feat_dim=8):
        super().__init__()
        self.feat_dim = feat_dim
        self.layers = nn.ModuleList([
            nn.Linear(feat_dim, feat_dim) for _ in range(12)
        ])
        
    def forward(self, template, inherent_template, search, layer_idx):
        # Simple pass-through with layer processing
        template = self.layers[layer_idx](template.flatten(2).transpose(1, 2)).transpose(1, 2).reshape(template.shape)
        inherent_template = self.layers[layer_idx](inherent_template.flatten(2).transpose(1, 2)).transpose(1, 2).reshape(inherent_template.shape)
        search = self.layers[layer_idx](search.flatten(2).transpose(1, 2)).transpose(1, 2).reshape(search.shape)
        return template, inherent_template, search
    
    def forward_train_generate_variation_token(self, template, inherent_template, search, layer_idx):
        template = self.layers[layer_idx](template.flatten(2).transpose(1, 2)).transpose(1, 2).reshape(template.shape)
        inherent_template = self.layers[layer_idx](inherent_template.flatten(2).transpose(1, 2)).transpose(1, 2).reshape(inherent_template.shape)
        search = self.layers[layer_idx](search.flatten(2).transpose(1, 2)).transpose(1, 2).reshape(search.shape)
        vt_it = torch.randn_like(inherent_template)
        return template, inherent_template, search, vt_it
    
    def forward_train_fuse_vt(self, template, search, layer_idx, vt_token):
        template = self.layers[layer_idx](template.flatten(2).transpose(1, 2)).transpose(1, 2).reshape(template.shape)
        search = self.layers[layer_idx](search.flatten(2).transpose(1, 2)).transpose(1, 2).reshape(search.shape)
        return template, search
    
    def set_online(self, ini_it_vt, layer_idx):
        return self.layers[layer_idx](ini_it_vt.flatten(2).transpose(1, 2)).transpose(1, 2).reshape(ini_it_vt.shape)
    
    def forward_test(self, template, search, layer_idx):
        template = self.layers[layer_idx](template.flatten(2).transpose(1, 2)).transpose(1, 2).reshape(template.shape)
        search = self.layers[layer_idx](search.flatten(2).transpose(1, 2)).transpose(1, 2).reshape(search.shape)
        return template, search
    
    def set_online_without_vt(self, ini_it, layer_idx):
        return self.layers[layer_idx](ini_it.flatten(2).transpose(1, 2)).transpose(1, 2).reshape(ini_it.shape)
    
    def forward_test_without_vt(self, template, search, layer_idx):
        template = self.layers[layer_idx](template.flatten(2).transpose(1, 2)).transpose(1, 2).reshape(template.shape)
        search = self.layers[layer_idx](search.flatten(2).transpose(1, 2)).transpose(1, 2).reshape(search.shape)
        return template, search
    
    def forward_profile(self, template, inherent_template, search, layer_idx):
        template = self.layers[layer_idx](template.flatten(2).transpose(1, 2)).transpose(1, 2).reshape(template.shape)
        inherent_template = self.layers[layer_idx](inherent_template.flatten(2).transpose(1, 2)).transpose(1, 2).reshape(inherent_template.shape)
        search = self.layers[layer_idx](search.flatten(2).transpose(1, 2)).transpose(1, 2).reshape(search.shape)
        return template, inherent_template, search


class MockCornerHead(nn.Module):
    def __init__(self, in_channels=8):
        super().__init__()
        self.conv = nn.Conv2d(in_channels, 4, kernel_size=1)
        
    def forward(self, x):
        # x: (b, c, h, w) -> output: (b, 4) in xyxy format
        b, c, h, w = x.shape
        out = self.conv(x)  # (b, 4, h, w)
        out = out.mean(dim=[2, 3])  # (b, 4)
        # Ensure valid xyxy: x0, y0, x1, y1 where x1 > x0, y1 > y0
        out = torch.sigmoid(out)  # normalize to [0, 1]
        return out


encoder = MockEncoder(feat_dim=8)
head = MockCornerHead(in_channels=8)

INIT_ARGS = {
    'encoder': encoder,
    'head': head,
    'head_type': 'CORNER',
    'depth': 12
}

ARGS = {
    'template': torch.randn(2, 8, 5, 5),
    'inherent_template': torch.randn(2, 8, 5, 5),
    'search': torch.randn(2, 8, 7, 7)
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type NoneType — a NoneType output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a NoneType 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)

Also present in other papers' code

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

Object modeling has become a core part of recent tracking frameworks. Current popular tackers use Transformer attention to extract the template feature separately or interactively with the search region. However, separate template learning lacks communication between the template and search regions, which brings difficulty in extracting discriminative target-oriented features. On the other hand, interactive template learning produces hybrid template features, which may introduce potential distractors to the template via the cluttered search regions. To enjoy the merits of both methods, we propose a robust object modeling framework for visual tracking (ROMTrack), which simultaneously models the inherent template and the hybrid template features. As a result, harmful distractors can be suppressed by combining the inherent features of target objects with search regions' guidance. Target-related features can also be extracted using the hybrid template, thus resulting in a more robust object modeling framework. To further enhance robustness, we present novel variation tokens to depict the ever-changing appearance of target objects. Variation tokens are adaptable to object deformation and appearance variations, which can boost overall performance with negligible computation. Experiments show that our ROM-Track sets a new state-of-the-art on multiple benchmarks.

For agents

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

get_harvested_code_for_paper("2308.05140")
get_code_for_paper("2308.05140")
have("2308.05140")

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

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

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

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

Connect an agent — have() is free.