SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2304.05277 · 2023

Graph-based Topology Reasoning for Driving Scenes

arXiv · PDF · Open in the Atlas

Code that ran

4 of 4 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 0 failures of our instrument; 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/2304.05277.json · badge: /api/ran/2304.05277.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
opendrivelab/toponet canonical (classifier label)
classifier basis: census
4 ran · 0 no recorded run
FunctionStatusWhere it lives
denormalize_3dlane Ran
ran on a synthesized input
opendrivelab/toponet/projects/toponet/core/lane/util.py
code served (permissive licence) · get_code("12011d62cff184fa")
How it ran

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

torch.manual_seed(0)

# normalized_lanes should be a tensor with shape (..., N) where N is divisible by 3
# The function accesses indices 0::3, 1::3, 2::3 so it expects x, y, z coordinates
# Let's create a batch of normalized lanes with shape (2, 12) representing 2 lanes with 4 points each (4*3=12 coords)
normalized_lanes = torch.randn(2, 12)

# pc_range is a list/tuple of 6 elements [x_min, y_min, z_min, x_max, y_max, z_max]
pc_range = [0.0, -40.0, -1.0, 70.4, 40.0, 3.4]

ARGS = {
    "normalized_lanes": normalized_lanes,
    "pc_range": pc_range,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 12) — shape (2, 12) 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
draw_corner_rectangle Ran
ran on a synthesized input
opendrivelab/toponet/projects/toponet/core/visualizer/lane.py
code served (permissive licence) · get_code("3ca2707d65a7dc11")
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 (100, 100, 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 numpy as np
import cv2

# Create a simple image (100x100 RGB image)
img = np.zeros((100, 100, 3), dtype=np.uint8)

# Define the arguments dictionary
ARGS = {
    "img": img,
    "pt1": (10, 10),
    "pt2": (80, 80),
    "color": (0, 255, 0),
    "corner_thickness": 3,
    "edge_thickness": 2,
    "centre_cross": False,
    "lineType": cv2.LINE_8
}
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 (100, 100, 3) — shape (100, 100, 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
normalize_3dlane Ran
ran on a synthesized input
opendrivelab/toponet/projects/toponet/core/lane/util.py
code served (permissive licence) · get_code("2d44c73be8e6fb9d")
How it ran

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

import torch

torch.manual_seed(0)

# Create a small lanes tensor with shape (batch=2, num_points=4, coords=3)
# Each point has (x, y, z) coordinates
lanes = torch.tensor([
    [[1.0, 2.0, 0.5], [2.0, 3.0, 0.6], [3.0, 4.0, 0.7], [4.0, 5.0, 0.8]],
    [[1.5, 2.5, 0.55], [2.5, 3.5, 0.65], [3.5, 4.5, 0.75], [4.5, 5.5, 0.85]]
], dtype=torch.float32)

# pc_range: [x_min, y_min, z_min, x_max, y_max, z_max]
# Using a range that will normalize the lanes tensor values to [0, 1]
pc_range = [0.0, 0.0, 0.0, 5.0, 6.0, 1.0]

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

# Create sample lane data
# Each lane is an array of shape (num_points, 2+) where first 2 columns are x, y coordinates
gt_lane_1 = np.array([
    [-10.0, 5.0],
    [-15.0, 10.0],
    [-20.0, 15.0],
    [-25.0, 20.0]
])

gt_lane_2 = np.array([
    [0.0, 5.0],
    [-5.0, 10.0],
    [-10.0, 15.0],
    [-15.0, 20.0]
])

pred_lane_1 = np.array([
    [-10.5, 5.2],
    [-15.2, 10.1],
    [-20.1, 15.3],
    [-25.2, 20.1]
])

pred_lane_2 = np.array([
    [0.2, 5.1],
    [-4.8, 10.2],
    [-10.1, 15.1],
    [-15.2, 20.2]
])

# Lane-to-lane connectivity matrices (2 lanes, so 2x2 boolean matrices)
gt_lclc = np.array([
    [False, True],
    [True, False]
])

pred_lclc = np.array([
    [False, True],
    [True, False]
])

ARGS = {
    'gt_lane': [gt_lane_1, gt_lane_2],
    'pred_lane': [pred_lane_1, pred_lane_2],
    'gt_lclc': gt_lclc,
    'pred_lclc': pred_lclc,
    'only': None,
    'map_size': [-55, 55, -30, 30],
    'scale': 10
}
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 (1100, 600, 3) — shape (1100, 600, 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

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 4 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

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

Understanding the road genome is essential to realize autonomous driving. This highly intelligent problem contains two aspects - the connection relationship of lanes, and the assignment relationship between lanes and traffic elements, where a comprehensive topology reasoning method is vacant. On one hand, previous map learning techniques struggle in deriving lane connectivity with segmentation or laneline paradigms; or prior lane topology-oriented approaches focus on centerline detection and neglect the interaction modeling. On the other hand, the traffic element to lane assignment problem is limited in the image domain, leaving how to construct the correspondence from two views an unexplored challenge. To address these issues, we present TopoNet, the first end-to-end framework capable of abstracting traffic knowledge beyond conventional perception tasks. To capture the driving scene topology, we introduce three key designs: (1) an embedding module to incorporate semantic knowledge from 2D elements into a unified feature space; (2) a curated scene graph neural network to model relationships and enable feature interaction inside the network; (3) instead of transmitting messages arbitrarily, a scene knowledge graph is devised to differentiate prior knowledge from various types of the road genome. We evaluate TopoNet on the challenging scene understanding benchmark, OpenLane-V2, where our approach outperforms all previous works by a great margin on all perceptual and topological metrics. The code is released at https://github.com/OpenDriveLab/TopoNet

For agents

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

get_harvested_code_for_paper("2304.05277")
get_code_for_paper("2304.05277")
have("2304.05277")

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

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

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

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

Connect an agent — have() is free.