SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2404.04624 · CVPR · 2024

Bridging the Gap Between End-to-End and Two-Step Text Spotting

Xiang Bai, Yuliang Liu, Lianwen Jin, Hongliang Li, Mingxin Huang

arXiv · PDF · Open in the Atlas

Code that ran

27 of 37 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (5 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 16 have no contract verdict; 9 failures of our instrument; 10 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/2404.04624.json · badge: /api/ran/2404.04624.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
mxin262/swintextspotter canonical (classifier label)
classifier basis: census
5 ran · 3 no recorded run
husterpzh/pssr community
Papers with Code archive
10 ran · 4 no recorded run
mxin262/estextspotter community
Papers with Code archive
6 ran · 2 no recorded run
mxin262/bridging-text-spotting marked official in Papers with Code
Papers with Code archive
5 ran · 1 no recorded run
copy not recorded community
not in the paper's declared repositories
1 ran · 0 no recorded run
FunctionStatusWhere it lives
Attention Ran
ran on a synthesized input · constructed an object; no result was computed
mxin262/bridging-text-spotting/adet/modeling/bridge.py
pointer only (licence: NOASSERTION) · get_code("f07a7b5124daa4d3")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, mxin262/bridging-text-spotting (NOASSERTION). 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.

Attention Ran
ran on a synthesized input
husterpzh/pssr/model.py
code served (permissive licence) · get_code("a55e20272adb06c8")
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 Tensor, ndim 3, dtype family float; no output shape is stated. 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 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 torch
import torch.nn as nn

# INIT_ARGS for Attention.__init__(input_size, hidden_size, num_classes)
INIT_ARGS = {
    'input_size': 8,      # contextual feature channels
    'hidden_size': 6,     # hidden state dimension
    'num_classes': 38     # number of character classes (including GO token)
}

# ARGS for Attention.forward(batch_H, text, is_train=True, batch_max_length=25)
batch_size = 2
num_steps = 10  # sequence length in batch_H
batch_max_length = 5  # max text length (excluding GO token)

# batch_H: [batch_size x num_steps x input_size]
batch_H = torch.randn(batch_size, num_steps, INIT_ARGS['input_size'])

# text: [batch_size x (batch_max_length+1)] with values in [0, num_classes-1]
# text[:, 0] should be the GO token (typically 0)
text = torch.randint(0, INIT_ARGS['num_classes'], (batch_size, batch_max_length + 1))
text[:, 0] = 0  # GO token

ARGS = {
    'batch_H': batch_H,
    'text': text,
    'is_train': True,
    'batch_max_length': batch_max_length
}
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 Tensor, ndim 3, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
AttentionCell Ran
ran on a synthesized input
husterpzh/pssr/model.py
code served (permissive licence) · get_code("87ec0a6342858e38")
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 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 torch.nn as nn

INIT_ARGS = {
    'input_size': 4,
    'hidden_size': 8,
    'num_embeddings': 3,
}

ARGS = {
    'prev_hidden': (
        torch.randn(2, 8),
        torch.randn(2, 8),
    ),
    'batch_H': torch.randn(2, 5, 4),
    'char_onehots': torch.randn(2, 3),
}
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 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
BasicBlock Ran
ran on a synthesized input
husterpzh/pssr/model.py
code served (permissive licence) · get_code("a06d957836eecfd1")
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 Tensor, ndim 4, 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 torch
import torch.nn as nn

INIT_ARGS = {
    'inplanes': 4,
    'planes': 4,
    'stride': 1,
    'downsample': None
}

# Create a downsample layer for testing residual path
downsample = nn.Sequential(
    nn.Conv2d(4, 4, kernel_size=1, stride=1, bias=False),
    nn.BatchNorm2d(4)
)
# Alternative INIT_ARGS with downsample
INIT_ARGS_DOWNSAMPLE = {
    'inplanes': 4,
    'planes': 4,
    'stride': 2,
    'downsample': downsample
}

# Input tensor: batch=2, channels=4, height=3, width=3
ARGS = {
    'x': torch.randn(2, 4, 3, 3)
}

# Test both configurations
def test_basic_block():
    # Test without downsample
    block = BasicBlock(**INIT_ARGS)
    out = block(**ARGS)
    print("Output shape without downsample:", out.shape)

    # Test with downsample
    block_ds = BasicBlock(**INIT_ARGS_DOWNSAMPLE)
    out_ds = block_ds(**ARGS)
    print("Output shape with downsample:", out_ds.shape)

if __name__ == "__main__":
    test_basic_block()
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 Tensor, ndim 4, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
BidirectionalLSTM Ran
ran on a synthesized input
husterpzh/pssr/model.py
code served (permissive licence) · get_code("0a490b941ecc0d0b")
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 Tensor, ndim 3, dtype family float, shape (2, 5, 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 as nn

class BidirectionalLSTM(nn.Module):

    def __init__(self, input_size, hidden_size, output_size):
        super(BidirectionalLSTM, self).__init__()
        self.rnn = nn.LSTM(input_size, hidden_size, bidirectional=True, batch_first=True)
        self.linear = nn.Linear(hidden_size * 2, output_size)

    def forward(self, input):
        """
        input : visual feature [batch_size x T x input_size]
        output : contextual feature [batch_size x T x output_size]
        """
        self.rnn.flatten_parameters()
        recurrent, _ = self.rnn(input)
        output = self.linear(recurrent)
        return output


INIT_ARGS = {
    'input_size': 4,
    'hidden_size': 8,
    'output_size': 3,
}

ARGS = {
    'input': torch.randn(2, 5, 4),
}
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 Tensor, ndim 3, dtype family float, shape (2, 5, 3) — shape (2, 5, 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
Block Ran
ran on a synthesized input
mxin262/bridging-text-spotting/adet/modeling/bridge.py
pointer only (licence: NOASSERTION) · get_code("5ad9f4a5115fc2c9")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, mxin262/bridging-text-spotting (NOASSERTION). 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.

DropPath Ran
ran on a synthesized input · constructed an object; no result was computed
mxin262/bridging-text-spotting/adet/modeling/bridge.py
pointer only (licence: NOASSERTION) · get_code("7d9a8a01e3d8b2af")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, mxin262/bridging-text-spotting (NOASSERTION). 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.

GRCL Ran
ran on a synthesized input
husterpzh/pssr/model.py
code served (permissive licence) · get_code("ad2aab77e017ae44")
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 Tensor, ndim 4, 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 torch
import torch.nn as nn

# INIT_ARGS for GRCL.__init__(input_channel, output_channel, num_iteration, kernel_size, pad)
INIT_ARGS = {
    'input_channel': 3,
    'output_channel': 8,
    'num_iteration': 2,
    'kernel_size': 3,
    'pad': 1
}

# ARGS for GRCL.forward(input)
# input should be a 4D tensor: (batch, input_channel, height, width)
ARGS = {
    'input': torch.randn(2, 3, 16, 16)
}
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 Tensor, ndim 4, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
GRCL_unit Ran
ran on a synthesized input
husterpzh/pssr/model.py
code served (permissive licence) · get_code("2d06924d44e4a05f")
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 Tensor, ndim 4, dtype family float, shape (2, 4, 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 as nn

class GRCL_unit(nn.Module):

    def __init__(self, output_channel):
        super(GRCL_unit, self).__init__()
        self.BN_gfu = nn.BatchNorm2d(output_channel)
        self.BN_grx = nn.BatchNorm2d(output_channel)
        self.BN_fu = nn.BatchNorm2d(output_channel)
        self.BN_rx = nn.BatchNorm2d(output_channel)
        self.BN_Gx = nn.BatchNorm2d(output_channel)

    def forward(self, wgf_u, wgr_x, wf_u, wr_x):
        G_first_term = self.BN_gfu(wgf_u)
        G_second_term = self.BN_grx(wgr_x)
        G = torch.sigmoid(G_first_term + G_second_term)
        x_first_term = self.BN_fu(wf_u)
        x_second_term = self.BN_Gx(self.BN_rx(wr_x) * G)
        x = torch.relu(x_first_term + x_second_term)
        return x


INIT_ARGS = {
    'output_channel': 4
}

ARGS = {
    'wgf_u': torch.randn(2, 4, 3, 3),
    'wgr_x': torch.randn(2, 4, 3, 3),
    'wf_u': torch.randn(2, 4, 3, 3),
    'wr_x': torch.randn(2, 4, 3, 3)
}

if __name__ == '__main__':
    model = GRCL_unit(**INIT_ARGS)
    output = model(**ARGS)
    print(f"Output shape: {output.shape}")
    print(f"Output: {output}")
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 Tensor, ndim 4, dtype family float, shape (2, 4, 3, 3) — shape (2, 4, 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
GridGenerator Ran
ran on a synthesized input
husterpzh/pssr/model.py
code served (permissive licence) · get_code("345b61e3a6a59f12")
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 Tensor, ndim 3, dtype family float, shape (2, 1024, 2) 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 as nn
import numpy as np

INIT_ARGS = {
    'F': 4,
    'I_r_size': (32, 32)
}

ARGS = {
    'batch_C_prime': torch.randn(2, 4, 2)
}

METHOD = 'build_P_prime'

if __name__ == '__main__':
    model = nn.Module()
    
    # Import the class
    import sys
    sys.path.insert(0, '.')
    
    # Manually define GridGenerator here for testing
    device = torch.device('cpu')
    
    class GridGenerator(nn.Module):
        """ Grid Generator of RARE, which produces P_prime by multipling T with P """

        def __init__(self, F, I_r_size):
            """ Generate P_hat and inv_delta_C for later """
            super(GridGenerator, self).__init__()
            self.eps = 1e-06
            self.I_r_height, self.I_r_width = I_r_size
            self.F = F
            self.C = self._build_C(self.F)
            self.P = self._build_P(self.I_r_width, self.I_r_height)
            self.register_buffer('inv_delta_C', torch.tensor(self._build_inv_delta_C(self.F, self.C)).float())
            self.register_buffer('P_hat', torch.tensor(self._build_P_hat(self.F, self.C, self.P)).float())

        def _build_C(self, F):
            """ Return coordinates of fiducial points in I_r; C """
            ctrl_pts_x = np.linspace(-1.0, 1.0, int(F / 2))
            ctrl_pts_y_top = -1 * np.ones(int(F / 2))
            ctrl_pts_y_bottom = np.ones(int(F / 2))
            ctrl_pts_top = np.stack([ctrl_pts_x, ctrl_pts_y_top], axis=1)
            ctrl_pts_bottom = np.stack([ctrl_pts_x, ctrl_pts_y_bottom], axis=1)
            C = np.concatenate([ctrl_pts_top, ctrl_pts_bottom], axis=0)
            return C

        def _build_inv_delta_C(self, F, C):
            """ Return inv_delta_C which is needed to calculate T """
            hat_C = np.zeros((F, F), dtype=float)
            for i in range(0, F):
                for j in range(i, F):
                    r = np.linalg.norm(C[i] - C[j])
                    hat_C[i, j] = r
                    hat_C[j, i] = r
            np.fill_diagonal(hat_C, 1)
            hat_C = hat_C ** 2 * np.log(hat_C)
            delta_C = np.concatenate([np.concatenate([np.ones((F, 1)), C, hat_C], axis=1), np.concatenate([np.zeros((2, 3)), np.transpose(C)], axis=1), np.concatenate([np.zeros((1, 3)), np.ones((1, F))], axis=1)], axis=0)
            inv_delta_C = np.linalg.inv(delta_C)
            return inv_delta_C

        def _build_P(self, I_r_width, I_r_height):
            I_r_grid_x = (np.arange(-I_r_width, I_r_width, 2) + 1.0) / I_r_width
            I_r_grid_y = (np.arange(-I_r_height, I_r_height, 2) + 1.0) / I_r_height
            P = np.stack(np.meshgrid(I_r_grid_x, I_r_grid_y), axis=2)
            return P.reshape([-1, 2])

        def _build_P_hat(self, F, C, P):
            n = P.shape[0]
            P_tile = np.tile(np.expand_dims(P, axis=1), (1, F, 1))
            C_tile = np.expand_dims(C, axis=0)
            P_diff = P_tile - C_tile
            rbf_norm = np.linalg.norm(P_diff, ord=2, axis=2, keepdims=False)
            rbf = np.multiply(np.square(rbf_norm), np.log(rbf_norm + self.eps))
            P_hat = np.concatenate([np.ones((n, 1)), P, rbf], axis=1)
            return P_hat

        def build_P_prime(self, batch_C_prime):
            """ Generate Grid from batch_C_prime [batch_size x F x 2] """
            batch_size = batch_C_prime.size(0)
            batch_inv_delta_C = self.inv_delta_C.repeat(batch_size, 1, 1)
            batch_P_hat = self.P_hat.repeat(batch_size, 1, 1)
            batch_C_prime_with_zeros = torch.cat((batch_C_prime, torch.zeros(batch_size, 3, 2).float()), dim=1)
            batch_T = torch.bmm(batch_inv_delta_C, batch_C_prime_with_zeros)
            batch_P_prime = torch.bmm(batch_P_hat, batch_T)
            return batch_P_prime

    # Construct and call
    grid_gen = GridGenerator(**INIT_ARGS)
    result = grid_gen.build_P_prime(**ARGS)
    print(f"Result shape: {result.shape}")
    print(f"Result: {result}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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, 1024, 2) — shape (2, 1024, 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
LocalizationNetwork Ran
ran on a synthesized input
husterpzh/pssr/model.py
code served (permissive licence) · get_code("e3f116bb52340904")
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 Tensor, ndim 3, dtype family float, shape (2, 8, 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
import numpy as np

class LocalizationNetwork(nn.Module):
    """ Localization Network of RARE, which predicts C' (K x 2) from I (I_width x I_height) """

    def __init__(self, F, I_channel_num):
        super(LocalizationNetwork, self).__init__()
        self.F = F
        self.I_channel_num = I_channel_num
        self.conv = nn.Sequential(nn.Conv2d(in_channels=self.I_channel_num, out_channels=64, kernel_size=3, stride=1, padding=1, bias=False), nn.BatchNorm2d(64), nn.ReLU(True), nn.MaxPool2d(2, 2), nn.Conv2d(64, 128, 3, 1, 1, bias=False), nn.BatchNorm2d(128), nn.ReLU(True), nn.MaxPool2d(2, 2), nn.Conv2d(128, 256, 3, 1, 1, bias=False), nn.BatchNorm2d(256), nn.ReLU(True), nn.MaxPool2d(2, 2), nn.Conv2d(256, 512, 3, 1, 1, bias=False), nn.BatchNorm2d(512), nn.ReLU(True), nn.AdaptiveAvgPool2d(1))
        self.localization_fc1 = nn.Sequential(nn.Linear(512, 256), nn.ReLU(True))
        self.localization_fc2 = nn.Linear(256, self.F * 2)
        self.localization_fc2.weight.data.fill_(0)
        ctrl_pts_x = np.linspace(-1.0, 1.0, int(F / 2))
        ctrl_pts_y_top = np.linspace(0.0, -1.0, num=int(F / 2))
        ctrl_pts_y_bottom = np.linspace(1.0, 0.0, num=int(F / 2))
        ctrl_pts_top = np.stack([ctrl_pts_x, ctrl_pts_y_top], axis=1)
        ctrl_pts_bottom = np.stack([ctrl_pts_x, ctrl_pts_y_bottom], axis=1)
        initial_bias = np.concatenate([ctrl_pts_top, ctrl_pts_bottom], axis=0)
        self.localization_fc2.bias.data = torch.from_numpy(initial_bias).float().view(-1)

    def forward(self, batch_I):
        """
        input:     batch_I : Batch Input Image [batch_size x I_channel_num x I_height x I_width]
        output:    batch_C_prime : Predicted coordinates of fiducial points for input batch [batch_size x F x 2]
        """
        batch_size = batch_I.size(0)
        features = self.conv(batch_I).view(batch_size, -1)
        batch_C_prime = self.localization_fc2(self.localization_fc1(features)).view(batch_size, self.F, 2)
        return batch_C_prime


INIT_ARGS = {
    'F': 8,
    'I_channel_num': 3,
}

ARGS = {
    'batch_I': torch.randn(2, 3, 32, 32),
}

if __name__ == '__main__':
    model = LocalizationNetwork(**INIT_ARGS)
    output = model(**ARGS)
    print(f"Output shape: {output.shape}")
    print(f"Expected shape: (2, 8, 2)")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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, 8, 2) — shape (2, 8, 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
MLP Ran
ran on a synthesized input · constructed an object; no result was computed
mxin262/estextspotter/models/ests/ests.py
pointer only (licence: NONE) · get_code("d71ab24dd4408288")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mxin262/estextspotter 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.

NestedTensor Ran
ran on a synthesized input · constructed an object; no result was computed
mxin262/estextspotter/models/ests/ests.py
pointer only (licence: NONE) · get_code("6efd3189a09cd0af")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mxin262/estextspotter 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.

PatchEmbed Ran
ran on a synthesized input · constructed an object; no result was computed
mxin262/bridging-text-spotting/adet/modeling/bridge.py
pointer only (licence: NOASSERTION) · get_code("36ec904c3b4e4e27")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, mxin262/bridging-text-spotting (NOASSERTION). 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.

ResNet Ran
ran on a synthesized input
husterpzh/pssr/model.py
code served (permissive licence) · get_code("f0555475dca7332a")
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 Tensor, ndim 4, 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 torch
import torch.nn as nn

class BasicBlock(nn.Module):
    expansion = 1

    def __init__(self, inplanes, planes, stride=1, downsample=None):
        super(BasicBlock, self).__init__()
        self.conv1 = nn.Conv2d(inplanes, planes, kernel_size=3, stride=stride, padding=1, bias=False)
        self.bn1 = nn.BatchNorm2d(planes)
        self.relu = nn.ReLU(inplace=True)
        self.conv2 = nn.Conv2d(planes, planes, kernel_size=3, stride=1, padding=1, bias=False)
        self.bn2 = nn.BatchNorm2d(planes)
        self.downsample = downsample
        self.stride = stride

    def forward(self, x):
        residual = x
        out = self.conv1(x)
        out = self.bn1(out)
        out = self.relu(out)
        out = self.conv2(out)
        out = self.bn2(out)
        if self.downsample is not None:
            residual = self.downsample(x)
        out += residual
        out = self.relu(out)
        return out

INIT_ARGS = {
    'input_channel': 3,
    'output_channel': 64,
    'block': BasicBlock,
    'layers': [1, 1, 1, 1]
}

ARGS = {
    'x': torch.randn(2, 3, 32, 48)
}
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 Tensor, ndim 4, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
VGG_FeatureExtractor Ran
ran on a synthesized input
husterpzh/pssr/model.py
code served (permissive licence) · get_code("2ac69ad6b536be49")
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 Tensor, ndim 4, dtype family float, shape (2, 512, 3, 31) 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

class VGG_FeatureExtractor(nn.Module):
    """ FeatureExtractor of CRNN (https://arxiv.org/pdf/1507.05717.pdf) """

    def __init__(self, input_channel, output_channel=512):
        super(VGG_FeatureExtractor, self).__init__()
        self.output_channel = [int(output_channel / 8), int(output_channel / 4), int(output_channel / 2), output_channel]
        self.ConvNet = nn.Sequential(nn.Conv2d(input_channel, self.output_channel[0], 3, 1, 1), nn.ReLU(True), nn.MaxPool2d(2, 2), nn.Conv2d(self.output_channel[0], self.output_channel[1], 3, 1, 1), nn.ReLU(True), nn.MaxPool2d(2, 2), nn.Conv2d(self.output_channel[1], self.output_channel[2], 3, 1, 1), nn.ReLU(True), nn.Conv2d(self.output_channel[2], self.output_channel[2], 3, 1, 1), nn.ReLU(True), nn.MaxPool2d((2, 1), (2, 1)), nn.Conv2d(self.output_channel[2], self.output_channel[3], 3, 1, 1, bias=False), nn.BatchNorm2d(self.output_channel[3]), nn.ReLU(True), nn.Conv2d(self.output_channel[3], self.output_channel[3], 3, 1, 1, bias=False), nn.BatchNorm2d(self.output_channel[3]), nn.ReLU(True), nn.MaxPool2d((2, 1), (2, 1)), nn.Conv2d(self.output_channel[3], self.output_channel[3], 2, 1, 0), nn.ReLU(True))

    def forward(self, input):
        return self.ConvNet(input)


INIT_ARGS = {
    'input_channel': 3,
    'output_channel': 512
}

ARGS = {
    'input': torch.randn(2, 3, 64, 128)
}

if __name__ == '__main__':
    model = VGG_FeatureExtractor(**INIT_ARGS)
    model.eval()
    output = model(**ARGS)
    print(f"Output shape: {output.shape}")
    print(f"Output: {output}")
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 Tensor, ndim 4, dtype family float, shape (2, 512, 3, 31) — shape (2, 512, 3, 31) 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
_max_by_axis Ran
ran, honoured the contract we drafted
mxin262/estextspotter/models/ests/ests.py
pointer only (licence: NONE) · get_code("ef393284ce3c9ea1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mxin262/estextspotter 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.

batched_nms Ran
ran; our contract draft was wrong, not the code
mxin262/swintextspotter/detectron2/layers/nms.py
pointer only (licence: NONE) · get_code("5a3c7069b28e9ffb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mxin262/swintextspotter 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.

convert_basic_c2_names Ran
ran; our contract draft was wrong, not the code
mxin262/swintextspotter/detectron2/checkpoint/c2_model_loading.py
pointer only (licence: NONE) · get_code("e8526a516b4f9206")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mxin262/swintextspotter 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.

convert_c2_detectron_names Ran
ran; our contract draft was wrong, not the code
mxin262/swintextspotter/detectron2/checkpoint/c2_model_loading.py
pointer only (licence: NONE) · get_code("e36f87059208bb7e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mxin262/swintextspotter 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.

dn_post_process Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
mxin262/estextspotter/models/ests/ests.py
pointer only (licence: NONE) · get_code("5bcf7dfb561bb961")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mxin262/estextspotter 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.

get_sinusoid_encoding_table Ran
ran, honoured the contract we drafted
mxin262/bridging-text-spotting/adet/modeling/bridge.py
pointer only (licence: NOASSERTION) · get_code("e270b1e0375e984c")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, mxin262/bridging-text-spotting (NOASSERTION). 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.

inverse_sigmoid Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from wjun0830/qd-detr
pointer only; the stored copy get_code serves, from wjun0830/qd-detr, is pointer only (licence: NOASSERTION) · get_code("6897880b6ce14c94")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

nested_tensor_from_tensor_list Ran
ran; our contract draft was wrong, not the code
mxin262/estextspotter/models/ests/ests.py
pointer only (licence: NONE) · get_code("6309c6cf50423938")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mxin262/estextspotter 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.

pad_masks Ran
ran; our contract draft was wrong, not the code
mxin262/swintextspotter/detectron2/layers/mask_ops.py
pointer only (licence: NONE); the stored copy get_code serves, from thinklab-sjtu/bench2drivezoo, is pointer only (licence: NOASSERTION) · get_code("406f84cf799ed34d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mxin262/swintextspotter 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.

paste_mask_in_image_old Ran
ran; our contract draft was wrong, not the code
mxin262/swintextspotter/detectron2/layers/mask_ops.py
pointer only (licence: NONE); the stored copy get_code serves, from thinklab-sjtu/bench2drivezoo, is pointer only (licence: NOASSERTION) · get_code("d03592674030077f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mxin262/swintextspotter 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.

prepare_for_cdn Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
mxin262/estextspotter/models/ests/ests.py
pointer only (licence: NONE) · get_code("ac9fc8884bc0cd7d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mxin262/estextspotter 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.

Bridge Not yet run
unverified (harvested, no recorded run)
mxin262/bridging-text-spotting/adet/modeling/bridge.py
pointer only (licence: NOASSERTION) · get_code("179df4b05daa85e4")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, mxin262/bridging-text-spotting (NOASSERTION). 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. No invocation recorded.

ESTS Not yet run
unverified (harvested, no recorded run)
mxin262/estextspotter/models/ests/ests.py
pointer only (licence: NONE) · get_code("2402a1a05761b00a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mxin262/estextspotter 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. No invocation recorded.

Model Not yet run
unverified (harvested, no recorded run)
husterpzh/pssr/model.py
code served (permissive licence) · get_code("e3d0360e5fe8ab89")
How it ran

no invocation recorded.

RCNN_FeatureExtractor Not yet run
unverified (harvested, no recorded run)
husterpzh/pssr/model.py
code served (permissive licence) · get_code("ef5e9a2a130e79ff")
How it ran

no invocation recorded.

ResNet_FeatureExtractor Not yet run
unverified (harvested, no recorded run)
husterpzh/pssr/model.py
code served (permissive licence) · get_code("5a4873d904275392")
How it ran

no invocation recorded.

TPS_SpatialTransformerNetwork Not yet run
unverified (harvested, no recorded run)
husterpzh/pssr/model.py
code served (permissive licence) · get_code("6717e6516dabf3ca")
How it ran

no invocation recorded.

_onnx_nested_tensor_from_tensor_list Not yet run
unverified (harvested, no recorded run)
mxin262/estextspotter/models/ests/ests.py
pointer only (licence: NONE) · get_code("5772986b5d3cd55c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mxin262/estextspotter 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. No invocation recorded.

align_and_update_state_dicts Not yet run
unverified (harvested, no recorded run)
mxin262/swintextspotter/detectron2/checkpoint/c2_model_loading.py
pointer only (licence: NONE) · get_code("ac2638463572c152")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mxin262/swintextspotter 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. No invocation recorded.

batched_nms_rotated Not yet run
unverified (harvested, no recorded run)
mxin262/swintextspotter/detectron2/layers/nms.py
pointer only (licence: NONE) · get_code("b112e6eead8331b7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mxin262/swintextspotter 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. No invocation recorded.

nms_rotated Not yet run
unverified (harvested, no recorded run)
mxin262/swintextspotter/detectron2/layers/nms.py
pointer only (licence: NONE) · get_code("ca61f088e7266086")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, mxin262/swintextspotter 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. No invocation recorded.

Also present in other papers' code

Of 37 samples lifted from this paper's linked repositories, 37 carry a function identity and 0 do not. Of the 37 distinct functions with an identity, 15 are also present in other papers whose code we hold (15 with at least one paper dated earlier, 3 the same month, 13 later) and 22 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
MLP
brick of this paper's assembly: helper
68 other papers
58 dated earlier, 1 the same month, 9 later · 58 only as an assembly brick
2005.12872 (2020-05)
End-to-End Object Detection with Transformers
2010.04159 (2020-10)
Deformable DETR: Deformable Transformers for End-to-End Object Detection
2101.01909 (2021-01)
Line Segment Detection Using Transformers without Edges
and 65 more not named here
nested_tensor_from_tensor_list
brick of this paper's assembly: helper
55 other papers
42 dated earlier, 11 later, 2 same year, order not determinable · 17 only as an assembly brick
1608.03983 (2016-08)
SGDR: Stochastic Gradient Descent with Warm Restarts
2005.12872 (2020-05)
End-to-End Object Detection with Transformers
2101.01909 (2021-01)
Line Segment Detection Using Transformers without Edges
and 52 more not named here
_max_by_axis
brick of this paper's assembly: helper
49 other papers
45 dated earlier, 4 later · 49 only as an assembly brick
2005.12872 (2020-05)
End-to-End Object Detection with Transformers
2010.04159 (2020-10)
Deformable DETR: Deformable Transformers for End-to-End Object Detection
2101.01909 (2021-01)
Line Segment Detection Using Transformers without Edges
and 46 more not named here
convert_basic_c2_names 45 other papers
42 dated earlier, 3 later
1703.06870 (2017-03)
Mask R-CNN
1804.08864 (2018-04)
Learning to See the Invisible: End-to-End Trainable Amodal Instance Segmentation
1901.08164 (2019-01)
Decoupled Greedy Learning of CNNs
and 42 more not named here
inverse_sigmoid
brick of this paper's assembly: helper
28 other papers
18 dated earlier, 1 the same month, 7 later, 2 same year, order not determinable · 10 only as an assembly brick
2201.12329 (2022-01)
DAB-DETR: Dynamic Anchor Boxes are Better Queries for DETR
2203.01305 (2022-03)
DN-DETR: Accelerate DETR Training by Introducing Query DeNoising
2209.13306 (2022-09)
Embracing Consistency: A One-Stage Approach for Spatio-Temporal Video Grounding
and 25 more not named here
DropPath
brick of this paper's assembly: model
25 other papers
18 dated earlier, 7 later · 14 only as an assembly brick
2106.08254 (2021-06)
BEIT: BERT Pre-Training of Image Transformers
2111.06377 (2021-11)
Masked Autoencoders Are Scalable Vision Learners
2201.12096 (2022-01)
Mask-based Latent Reconstruction for Reinforcement Learning
and 22 more not named here
_onnx_nested_tensor_from_tensor_list
brick of this paper's assembly: helper
24 other papers
20 dated earlier, 4 later · 17 only as an assembly brick
2005.12872 (2020-05)
End-to-End Object Detection with Transformers
2103.14167 (2021-03)
COTR: Correspondence Transformer for Matching Across Images
2104.07434 (2021-04)
Points as Queries: Weakly Semi-supervised Object Detection by Points
and 21 more not named here
pad_masks 22 other papers
21 dated earlier, 1 later
1703.06870 (2017-03)
Mask R-CNN
1804.08864 (2018-04)
Learning to See the Invisible: End-to-End Trainable Amodal Instance Segmentation
1908.07836 (2019-08)
PubLayNet: largest dataset ever for document layout analysis
and 19 more not named here
paste_mask_in_image_old 22 other papers
21 dated earlier, 1 later
1703.06870 (2017-03)
Mask R-CNN
1804.08864 (2018-04)
Learning to See the Invisible: End-to-End Trainable Amodal Instance Segmentation
1908.07836 (2019-08)
PubLayNet: largest dataset ever for document layout analysis
and 19 more not named here
get_sinusoid_encoding_table
brick of this paper's assembly: helper
21 other papers
13 dated earlier, 1 the same month, 7 later · 1 only as an assembly brick
2111.06377 (2021-11)
Masked Autoencoders Are Scalable Vision Learners
2208.07049 (2022-08)
Self-Supervised Vision Transformers for Malware Detection
2302.14042 (2023-02)
Knowledge-enhanced Visual-Language Pre-training on Chest Radiology Images
and 18 more not named here
align_and_update_state_dicts 13 other papers
11 dated earlier, 2 later
1912.08193 (2019-12)
PointRend: Image Segmentation as Rendering
2211.09808 (2022-11)
Uni-Perceiver v2: A Generalist Model for Large-Scale Vision and Vision-Language Tasks
and 10 more not named here
convert_c2_detectron_names 13 other papers
11 dated earlier, 2 later
1912.08193 (2019-12)
PointRend: Image Segmentation as Rendering
2211.09808 (2022-11)
Uni-Perceiver v2: A Generalist Model for Large-Scale Vision and Vision-Language Tasks
and 10 more not named here
NestedTensor
brick of this paper's assembly: helper
9 other papers
6 dated earlier, 3 later · 7 only as an assembly brick
2201.12329 (2022-01)
DAB-DETR: Dynamic Anchor Boxes are Better Queries for DETR
2203.01305 (2022-03)
DN-DETR: Accelerate DETR Training by Introducing Query DeNoising
2212.07855 (2022-12)
QueryPose: Sparse Multi-Person Pose Regression via Spatial-Aware Part-Level Query
and 6 more not named here
batched_nms_rotated 4 other papers
4 dated earlier
2210.11035 (2022-10)
PointTAD: Multi-Label Temporal Action Detection with Learnable Query Points
2304.03752 (2023-04)
V3Det: Vast Vocabulary Visual Detection Dataset
2307.13619 (2023-07)
RecursiveDet: End-to-End Region-based Recursive Object Detection
and 1 more not named here
batched_nms 2 other papers
2 dated earlier
2210.11035 (2022-10)
PointTAD: Multi-Label Temporal Action Detection with Learnable Query Points
2307.13619 (2023-07)
RecursiveDet: End-to-End Region-based Recursive Object Detection

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

Modularity plays a crucial role in the development and maintenance of complex systems. While end-to-end text spotting efficiently mitigates the issues of error accumulation and sub-optimal performance seen in traditional twostep methodologies, the two-step methods continue to be favored in many competitions and practical settings due to their superior modularity. In this paper, we introduce Bridging Text Spotting, a novel approach that resolves the error accumulation and suboptimal performance issues in two-step methods while retaining modularity. To achieve this, we adopt a well-trained detector and recognizer that are developed and trained independently and then lock their parameters to preserve their already acquired capabilities. Subsequently, we introduce a Bridge that connects the locked detector and recognizer through a zero-initialized neural network. This zero-initialized neural network, initialized with weights set to zeros, ensures seamless integration of the large receptive field features in detection into the locked recognizer. Furthermore, since the fixed detector and recognizer cannot naturally acquire end-to-end optimization features, we adopt the Adapter to facilitate their efficient learning of these features. We demonstrate the effectiveness of the proposed method through extensive experiments: Connecting the latest detector and recognizer through Bridging Text Spotting, we achieved an accuracy of 83.3% on Total-Text, 69.8% on CTW1500, and 89.5% on ICDAR 2015. The code is available at https://github.com/mxin262/ Bridging-Text-Spotting.

For agents

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

get_harvested_code_for_paper("2404.04624")
get_code_for_paper("2404.04624")
have("2404.04624")

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

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

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

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

Connect an agent — have() is free.