SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2306.15142 · 2023

LRANet: Towards Accurate and Efficient Scene Text Detection with Low-Rank Approximation Network

arXiv · PDF · Open in the Atlas

Code that ran

19 of 19 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 17 have no contract verdict; 2 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/2306.15142.json · badge: /api/ran/2306.15142.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
ychensu/lranet canonical (classifier label)
classifier basis: census
6 ran · 0 no recorded run
ernestchenchen/sg-lra community (classifier label)
classifier basis not recorded on the link
13 ran · 0 no recorded run
FunctionStatusWhere it lives
SMAPE Ran
ran on a synthesized input
ernestchenchen/sg-lra/Engine_data/Cobb_eval.py
code served (permissive licence) · get_code("8764da666d21bfbd")
How it ran

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

import numpy as np

# SMAPE function expects numpy arrays as inputs
# y_true and y_pred should be numpy arrays of the same shape

# Create small test arrays
np.random.seed(0)
y_true = np.array([3.0, -0.5, 2.0, 7.0])
y_pred = np.array([2.5, 0.0, 2.0, 8.0])

ARGS = {
    "y_true": y_true,
    "y_pred": y_pred,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
anchor Ran
ran; our contract draft was wrong, not the code
ychensu/lranet/docs_zh_CN/stats.py
code served (permissive licence) · get_code("d0ddd50f31a39641")
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 str. 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 re

def anchor(name):
    return re.sub('-+', '-', re.sub('[^a-zA-Z0-9]', '-', name.strip().lower())).strip('-')

ARGS = {
    'name': 'Hello-World_123!@#Test'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
chebyshev_distance Ran
ran on a synthesized input
ernestchenchen/sg-lra/Engine_data/Cobb_eval.py
code served (permissive licence) · get_code("54771587e8474db6")
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. 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 numpy as np

# Based on the function signature and body, we need two parameters:
# - point1: a list of 3 numbers (int or float)
# - point2: a list of 3 numbers (int or float)

# The function computes Chebyshev distance (max of absolute differences)
# between two 3D points

point1 = [1.0, 2.5, 3.7]
point2 = [4.2, 1.1, 5.3]

ARGS = {
    "point1": point1,
    "point2": point2
}
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 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
cobb_angle_calc Ran
ran on a synthesized input
ernestchenchen/sg-lra/Engine_data/cobb_evaluate.py
code served (permissive licence) · get_code("cc9e54c16c0b3c6b")
How it ran

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

import numpy as np
import cv2

# Create a small valid image (3 channels, height=480, width=640)
image = np.zeros((480, 640, 3), dtype=np.uint8)

# Create points array - needs to be divisible by 4 for the function logic
# The function expects pts in shape (num_pts, 2) where num_pts is divisible by 4
# We'll create 12 points (divisible by 4) representing 3 vertebrae with 2 sides each
pts = np.array([
    [100.0, 100.0],   # pt 0
    [120.0, 110.0],   # pt 1
    [110.0, 120.0],   # pt 2
    [130.0, 130.0],   # pt 3
    [150.0, 150.0],   # pt 4
    [170.0, 160.0],   # pt 5
    [160.0, 170.0],   # pt 6
    [180.0, 180.0],   # pt 7
    [200.0, 200.0],   # pt 8
    [220.0, 210.0],   # pt 9
    [210.0, 220.0],   # pt 10
    [230.0, 230.0],   # pt 11
], dtype=np.float32)

ARGS = {
    'pts': pts,
    'image': image,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
disable_text_recog_aug_test Ran
ran on a synthesized input
ychensu/lranet/mmocr/apis/inference.py
code served (permissive licence) · get_code("134a310b9ec68019")
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 Config. 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.

class PipelineModule:
    def __init__(self, type_name, **kwargs):
        self.type = type_name
        for key, value in kwargs.items():
            setattr(self, key, value)

class Config:
    def __init__(self):
        self.data = {}

def create_pipeline(pipeline_type='ResizeOCR', has_max_width=True):
    """Create a pipeline with specified configuration."""
    first_module = PipelineModule('LoadImageFromFile')
    
    if pipeline_type == 'MultiRotateAugOCR':
        second_module = PipelineModule('MultiRotateAugOCR')
        # Create transforms for MultiRotateAugOCR
        transform1 = PipelineModule('Resize', max_width=500 if has_max_width else None)
        transform2 = PipelineModule('Normalize')
        second_module.transforms = [transform1, transform2]
    else:  # ResizeOCR
        second_module = PipelineModule('ResizeOCR', max_width=500 if has_max_width else None)
    
    return [first_module, second_module]

def create_test_config():
    """Create a minimal config object for testing."""
    cfg = Config()
    
    # Create dataset configurations for test and val
    test_data = Config()
    test_data.pipeline = create_pipeline('MultiRotateAugOCR', has_max_width=True)
    
    val_data = Config()
    val_data.pipeline = create_pipeline('ResizeOCR', has_max_width=True)
    
    cfg.data['test'] = test_data
    cfg.data['val'] = val_data
    
    return cfg

cfg = create_test_config()
set_types = ['val', 'test']

ARGS = {
    'cfg': cfg,
    'set_types': set_types
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Config — a Config output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Config 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
euclidean_distance Ran
ran on a synthesized input
ernestchenchen/sg-lra/Engine_data/chen_lra_to_COCO.py
code served (permissive licence) · get_code("c2110b21810fb6e8")
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. 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 math

torch_available = True
try:
    import torch
except ImportError:
    torch_available = False

# Set seed for reproducibility if torch is available
if torch_available:
    torch.manual_seed(0)

# The function takes 4 parameters: x1, y1, x2, y2
# Looking at the function body, it performs arithmetic operations on these values
# They should be numeric types (int, float, or numeric tensors)

# Create simple numeric values for the coordinates
x1 = 0.0
y1 = 0.0
x2 = 3.0
y2 = 4.0

ARGS = {
    "x1": x1,
    "y1": y1,
    "x2": x2,
    "y2": y2
}
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
euclidean_distance Ran
ran on a synthesized input
ernestchenchen/sg-lra/Engine_data/Cobb_eval.py
code served (permissive licence) · get_code("ad4926183260cac8")
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. 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 math

# Construct arguments for euclidean_distance function
# The function takes two points, each represented as a list of exactly 3 numbers

point1 = [0, 0, 0]
point2 = [3, 4, 0]

ARGS = {
    "point1": point1,
    "point2": point2,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
inference_with_session Ran
ran on a synthesized input
ychensu/lranet/mmocr/core/deployment/deploy_utils.py
code served (permissive licence) · get_code("2252ddf7c0f7fffc")
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 list, ndim 3, 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 numpy as np
from unittest.mock import Mock, MagicMock

torch.manual_seed(0)

# Create mock ONNX Runtime session and IO binding
mock_session = Mock()
mock_io_binding = Mock()

# Configure io_binding mock to track bindings and return dummy outputs
mock_io_binding.bind_input = Mock()
mock_io_binding.bind_output = Mock()
mock_io_binding.copy_outputs_to_cpu = Mock(return_value=[np.array([[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0]], dtype=np.float32)])
mock_session.run_with_iobinding = Mock()

# Create a small input tensor on CPU
input_tensor = torch.randn(2, 4, dtype=torch.float32)

# Define parameters
input_name = "input"
output_names = ["output"]

ARGS = {
    "sess": mock_session,
    "io_binding": mock_io_binding,
    "input_name": input_name,
    "output_names": output_names,
    "input_tensor": input_tensor
}
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 list, ndim 3, dtype family float — a list 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
iou_score Ran
ran on a synthesized input
ernestchenchen/sg-lra/Engine_data/loss_dataset.py
code served (permissive licence) · get_code("a45e329ef3c0b6fd")
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. 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 numpy as np

torch.manual_seed(0)

# The function computes IOU between two bounding boxes in (x1, y1, x2, y2) format
# box1 and box2 are tuples/lists with 4 elements representing coordinates

box1 = (10, 20, 50, 80)
box2 = (30, 40, 70, 100)

ARGS = {
    "box1": box1,
    "box2": box2,
}
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 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
is_S Ran
ran on a synthesized input
ernestchenchen/sg-lra/Engine_data/cobb_evaluate.py
code served (permissive licence) · get_code("863f644c9c65b019")
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 numpy as np

# Construct a valid mid_p_v argument
# The function expects a 2D array with shape (num, 2) where num >= 3
# It accesses mid_p_v[i, 0], mid_p_v[i, 1], mid_p_v[0, ...], mid_p_v[num-1, ...]
# We need at least 3 rows to avoid issues with range(num - 2) being empty

mid_p_v = np.array([
    [1.0, 5.0],
    [2.0, 4.0],
    [3.0, 3.0],
    [4.0, 2.0]
], dtype=np.float32)

ARGS = {
    "mid_p_v": mid_p_v
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
is_point_in_rectangle Ran
ran on a synthesized input
ernestchenchen/sg-lra/Engine_data/chen_lra_to_COCO.py
code served (permissive licence) · get_code("7934463e9c48e36c")
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.

# Setup code for is_point_in_rectangle function

ARGS = {
    'x': 10,
    'y': 20,
    'w': 50,
    'h': 30,
    'x1': 35,
    'y1': 40
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
load_results Ran
ran; our contract draft was wrong, not the code
ernestchenchen/sg-lra/Engine_data/chen_lra_to_COCO_eval.py
code served (permissive licence) · get_code("231897c9154a0118")
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 json
import tempfile
import os

# Create a temporary file with sample JSON data
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "results.json")

# Write sample results to the temporary file
sample_results = {
    "accuracy": 0.95,
    "loss": 0.05,
    "epochs": 10,
    "metrics": {
        "precision": 0.94,
        "recall": 0.96
    }
}

with open(temp_file, 'w') as f:
    json.dump(sample_results, f)

ARGS = {
    "file_path": temp_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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
overlay_mask_img Ran
ran on a synthesized input
ychensu/lranet/mmocr/core/visualize.py
code served (permissive licence) · get_code("51bc3232ec8e8744")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 3, dtype family int, shape (32, 48, 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 cv2
import numpy as np

# Create a small test image (RGB format, uint8)
img = np.ones((32, 48, 3), dtype=np.uint8) * 200

# Create a simple binary mask
mask = np.zeros((32, 48), dtype=np.uint8)
mask[10:20, 15:35] = 255

ARGS = {
    "img": img,
    "mask": mask
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family int, shape (32, 48, 3) — shape (32, 48, 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
points2boundary Ran
ran on a synthesized input
ychensu/lranet/mmocr/core/mask.py
code served (permissive licence) · get_code("f9b4b952d392770f")
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 list, 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.

import numpy as np
import cv2

# Create valid test data for points2boundary function

# For 'quad' text representation type
# Points should be (n, 2) shape representing mask coordinates
quad_points = np.array([
    [10, 20],
    [50, 20],
    [50, 80],
    [10, 80]
], dtype=np.float32)

# For 'poly' text representation type
# Create a more complex polygon with multiple points
poly_points = np.array([
    [15, 25],
    [45, 20],
    [50, 35],
    [55, 70],
    [30, 85],
    [10, 75]
], dtype=np.float32)

# Test with quad representation
ARGS = {
    "points": quad_points,
    "text_repr_type": "quad",
    "text_score": 0.95,
    "min_width": 5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list 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
poly_to_bbox Ran
ran on a synthesized input
ernestchenchen/sg-lra/Engine_data/chen_lra_to_COCO_eval.py
code served (permissive licence) · get_code("fadb675e86458fda")
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 list, ndim 1, dtype family int; 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

torch.manual_seed(0)

# The function poly_to_bbox takes a polygon (list of points)
# and converts it to a bounding box in [xmin, ymin, width, height] format.
# Each point in the polygon is a tuple/list with at least 2 elements: (x, y)

# Create a simple polygon with 4 points (a rectangle)
poly = [
    [10, 20],
    [50, 20],
    [50, 80],
    [10, 80]
]

ARGS = {
    "poly": poly
}
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 list, ndim 1, dtype family int — a list 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
poly_to_bbox_specific Ran
ran on a synthesized input
ernestchenchen/sg-lra/Engine_data/chen_lra_to_COCO_eval.py
code served (permissive licence) · get_code("8c67e5100acd0c62")
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 list, ndim 1, dtype family int; 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 numpy as np

torch.manual_seed(0)

# The function poly_to_bbox_specific expects:
# - poly: a list-like object with at least 8 points
# - each point should have at least 2 coordinates (x, y)
# The function accesses: poly[0], poly[6], poly[7], poly[-1]
# and for each point p, accesses p[0] and p[1]

# Create a valid polygon with at least 8 points
# Each point is a tuple or list with (x, y) coordinates
poly = [
    (10, 20),   # poly[0]
    (15, 25),   # poly[1]
    (20, 30),   # poly[2]
    (25, 35),   # poly[3]
    (30, 40),   # poly[4]
    (35, 45),   # poly[5]
    (40, 50),   # poly[6]
    (45, 55),   # poly[7]
    (50, 60),   # poly[-1] when len=9
]

ARGS = {
    'poly': poly
}
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 list, ndim 1, dtype family int — a list 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
regression_loss Ran
ran on a synthesized input
ernestchenchen/sg-lra/Engine_data/loss_dataset.py
code served (permissive licence) · get_code("0a36a9256166788c")
How it ran

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

import numpy as np
import torch

# Construct arguments for regression_loss function
# The function expects pred and target as numpy arrays (or array-like)
# It computes L1 loss: mean of absolute differences

torch.manual_seed(0)

# Create small numpy arrays for predictions and targets
# Using batch_size=2, feature_dim=4 for tiny tensors
pred = np.array([[1.2, 2.3, 3.1, 4.5],
                 [1.1, 2.2, 3.0, 4.4]], dtype=np.float32)

target = np.array([[1.0, 2.0, 3.0, 4.0],
                   [1.0, 2.0, 3.0, 4.0]], dtype=np.float32)

ARGS = {
    'pred': pred,
    'target': target
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float32, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
seg2boundary Ran
ran on a synthesized input
ychensu/lranet/mmocr/core/mask.py
code served (permissive licence) · get_code("acefba8a62931b37")
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 list, 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.

import numpy as np

# Create a simple segmentation mask
seg = np.zeros((20, 20), dtype=np.uint8)
# Add some white pixels to form a shape
seg[5:15, 5:15] = 255

# Set text representation type
text_repr_type = 'quad'

# Set text score (optional)
text_score = 0.85

ARGS = {
    'seg': seg,
    'text_repr_type': text_repr_type,
    'text_score': text_score
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list 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
vertices_to_bbox Ran
ran on a synthesized input
ernestchenchen/sg-lra/Engine_data/loss_dataset.py
code served (permissive licence) · get_code("52af6f1b62ffd8bd")
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 list, ndim 1, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Construct valid arguments for vertices_to_bbox
# The function expects vertices as a list or array with 8 numbers (4 points with x,y coordinates)

vertices_input = [10, 20, 50, 30, 40, 60, 30, 50]

ARGS = {
    "vertices": vertices_input
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family int — a list 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

Also present in other papers' code

Of 19 samples lifted from this paper's linked repositories, 19 carry a function identity and 0 do not. Of the 19 distinct functions with an identity, 5 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 2 later) and 14 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
anchor 4 other papers
3 dated earlier, 1 later
2104.09952 (2021-04)
MGSampler: An Explainable Sampling Strategy for Video Action Recognition
2106.13230 (2021-06)
Video Swin Transformer
2209.12797 (2022-09)
Rethinking Resolution in the Context of Efficient Video Recognition
and 1 more not named here
overlay_mask_img 2 other papers
2 dated earlier
2105.01848 (2021-05)
PingAn-VCGroup's Solution for ICDAR 2021 Competition on Scientific Literature Parsing Task B: Table Recognition to HTML
2208.00438 (2022-08)
Toward Understanding WordArt: Corner-Guided Transformer for Scene Text Recognition
points2boundary 2 other papers
2 dated earlier
2105.01848 (2021-05)
PingAn-VCGroup's Solution for ICDAR 2021 Competition on Scientific Literature Parsing Task B: Table Recognition to HTML
2208.00438 (2022-08)
Toward Understanding WordArt: Corner-Guided Transformer for Scene Text Recognition
seg2boundary 2 other papers
2 dated earlier
2105.01848 (2021-05)
PingAn-VCGroup's Solution for ICDAR 2021 Competition on Scientific Literature Parsing Task B: Table Recognition to HTML
2208.00438 (2022-08)
Toward Understanding WordArt: Corner-Guided Transformer for Scene Text Recognition
load_results 1 other paper
1 later
2403.02839 (2024-03)
An Empirical Study of LLM-as-a-Judge for LLM Evaluation: Fine-tuned Judge Model is not a General Substitute for GPT-4

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

Recently, regression-based methods, which predict parameterized text shapes for text localization, have gained popularity in scene text detection. However, the existing parameterized text shape methods still have limitations in modeling arbitrary-shaped texts due to ignoring the utilization of text-specific shape information. Moreover, the time consumption of the entire pipeline has been largely overlooked, leading to a suboptimal overall inference speed. To address these issues, we first propose a novel parameterized text shape method based on low-rank approximation. Unlike other shape representation methods that employ data-irrelevant parameterization, our approach utilizes singular value decomposition and reconstructs the text shape using a few eigenvectors learned from labeled text contours. By exploring the shape correlation among different text contours, our method achieves consistency, compactness, simplicity, and robustness in shape representation. Next, we propose a dual assignment scheme for speed acceleration. It adopts a sparse assignment branch to accelerate the inference speed, and meanwhile, provides ample supervised signals for training through a dense assignment branch. Building upon these designs, we implement an accurate and efficient arbitrary-shaped text detector named LRANet. Extensive experiments are conducted on several challenging benchmarks, demonstrating the superior accuracy and efficiency of LRANet compared to state-of-the-art methods. Code is available at: \url{https://github.com/ychensu/LRANet.git}

For agents

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

get_harvested_code_for_paper("2306.15142")
get_code_for_paper("2306.15142")
have("2306.15142")

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

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

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

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

Connect an agent — have() is free.