SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2205.01297 · CVPR · 2022

RU-Net: Regularized Unrolling Network for Scene Graph Generation

Dacheng Tao, Jing Zhang, Yibing Zhan, Xin Lin, Changxing Ding

arXiv · PDF · Open in the Atlas

Code that ran

3 of 5 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; 1 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 0 failures of our instrument; 2 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/2205.01297.json · badge: /api/ran/2205.01297.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
siml3/RU-Net community
Papers with Code archive
3 ran · 2 no recorded run
FunctionStatusWhere it lives
Get_Atten_map_mc_clear Ran
ran on a synthesized input
siml3/RU-Net/maskrcnn_benchmark/modeling/roi_heads/relation_head/model_runet.py
code served (permissive licence) · get_code("16810f7c7d582abf")
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. 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

# INIT_ARGS for Get_Atten_map_mc_clear.__init__(input_dims, p)
INIT_ARGS = {
    'input_dims': 8,
    'p': 3
}

# ARGS for Get_Atten_map_mc_clear.forward(obj_feats, union_feats, pair_idxs)
n_nodes = 5
n_pairs = 7
input_dims = INIT_ARGS['input_dims']

obj_feats = torch.randn(n_nodes, input_dims)
union_feats = torch.randn(n_pairs, input_dims)
pair_idxs = torch.tensor([
    [0, 1],
    [0, 2],
    [1, 2],
    [1, 3],
    [2, 3],
    [3, 4],
    [0, 4]
])

ARGS = {
    'obj_feats': obj_feats,
    'union_feats': union_feats,
    'pair_idxs': pair_idxs
}
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 — 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)
Message_Passing4OBJ Ran
ran on a synthesized input
siml3/RU-Net/maskrcnn_benchmark/modeling/roi_heads/relation_head/model_runet.py
code served (permissive licence) · get_code("dc95ccf10a15ea97")
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 list. 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 numpy as np

# INIT_ARGS for Message_Passing4OBJ.__init__
INIT_ARGS = {
    'input_dims': 8
}

# ARGS for Message_Passing4OBJ.forward
# The forward method expects:
# - obj_feats: list of tensors, each of shape [n_objects, input_dims]
# - phr_feats: list of tensors, each of shape [n_pairs, input_dims]
# - pair_idxs: list of tensors, each of shape [n_pairs, 2]

# Create sample data for a batch of 2 scenes
# Scene 1: 5 objects, 6 pairs
n_objects_1 = 5
n_pairs_1 = 6
obj_feats_1 = torch.randn(n_objects_1, 8)
phr_feats_1 = torch.randn(n_pairs_1, 8)
pair_idxs_1 = torch.tensor([
    [0, 1],
    [0, 2],
    [1, 2],
    [2, 3],
    [3, 4],
    [1, 4]
], dtype=torch.long)

# Scene 2: 4 objects, 5 pairs
n_objects_2 = 4
n_pairs_2 = 5
obj_feats_2 = torch.randn(n_objects_2, 8)
phr_feats_2 = torch.randn(n_pairs_2, 8)
pair_idxs_2 = torch.tensor([
    [0, 1],
    [1, 2],
    [2, 3],
    [0, 3],
    [1, 3]
], dtype=torch.long)

ARGS = {
    'obj_feats': [obj_feats_1, obj_feats_2],
    'phr_feats': [phr_feats_1, phr_feats_2],
    'pair_idxs': [pair_idxs_1, pair_idxs_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 list — a list 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)
obj_edge_vectors Ran
ran, honoured the contract we drafted
siml3/RU-Net/maskrcnn_benchmark/modeling/roi_heads/relation_head/model_runet.py
code served (permissive licence) · get_code("35329c072dd14f4e")
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) and returned Tensor, ndim 2, dtype family float, shape (4, 300) 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 tempfile
import os

torch.manual_seed(0)

# Create a temporary directory for word vectors
temp_dir = tempfile.mkdtemp()

# Create a minimal mock word vector file
wv_file = os.path.join(temp_dir, 'glove.6B.300d.txt')
with open(wv_file, 'w') as f:
    # Write a few word vectors
    f.write('the ' + ' '.join(['0.1'] * 300) + '\n')
    f.write('cat ' + ' '.join(['0.2'] * 300) + '\n')
    f.write('dog ' + ' '.join(['0.3'] * 300) + '\n')
    f.write('bird ' + ' '.join(['0.4'] * 300) + '\n')

# Define the arguments for obj_edge_vectors
ARGS = {
    'names': ['the', 'cat', 'dog', 'unknown_word'],
    'wv_dir': temp_dir,
    'wv_type': 'glove.6B',
    'wv_dim': 300
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
six, torch, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (4, 300) — shape (4, 300) 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
RUNetContext Not yet run
unverified (harvested, no recorded run)
siml3/RU-Net/maskrcnn_benchmark/modeling/roi_heads/relation_head/model_runet.py
code served (permissive licence) · get_code("17da839e910c019b")
How it ran

no invocation recorded.

load_word_vectors Not yet run
unverified (harvested, no recorded run)
siml3/RU-Net/maskrcnn_benchmark/modeling/roi_heads/relation_head/model_runet.py
code served (permissive licence) · get_code("74fcef63a3a4847c")
How it ran

no invocation recorded.

Also present in other papers' code

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

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

FunctionAlso present inEarliest-datedOthers named
obj_edge_vectors
brick of this paper's assembly: helper
1 other paper
1 the same month
2205.01316 (2022-05)
HL-Net: Heterophily Learning Network for Scene Graph Generation

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

to suppress spurious connections between nodes. Second, we propose a group diversity enhancement module that promotes the prediction diversity of relationships via rank maximization. Systematic experiments demonstrate that RU-Net is effective under a variety of settings and metrics. Furthermore, RU-Net achieves new state-of-the-arts on three popular databases: VG, VRD, and OI. Code is available at https://github.com/siml3/RU-Net.

For agents

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

get_harvested_code_for_paper("2205.01297")
get_code_for_paper("2205.01297")
have("2205.01297")

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

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

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

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

Connect an agent — have() is free.