SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1506.01497 · IEEE Transactions on Pattern Analysis and Machine Intelligence · 2015

Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks

Kaiming He, Jian Sun, Ross Girshick, Shaoqing Ren, • Girshick

arXiv · PDF · Open in the Atlas

Code that ran

79 of 124 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (9 of them constructed an object rather than computing a result; 20 honoured the contract we drafted, 6 violated it and 18 have no contract verdict; 35 failures of our instrument; 45 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/1506.01497.json · badge: /api/ran/1506.01497.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
jiajunhua/facebookresearch-Detectron community
not in the paper's declared repositories
8 ran · 6 no recorded run
JoegameZhou/hrnetv2 community (classifier label)
classifier basis not recorded on the link
8 ran · 1 no recorded run
AlphaJia/pytorch-faster-rcnn community
Papers with Code archive
6 ran · 3 no recorded run
aleksispi/drl-rpn-tf community (classifier label)
classifier basis not recorded on the link
6 ran · 2 no recorded run
liangheming/faster_rcnnv1 community
not in the paper's declared repositories
5 ran · 1 no recorded run
clemkoa/fasterrcnn community
not in the paper's declared repositories
5 ran · 1 no recorded run
smichalowski/faster_rcnn community
not in the paper's declared repositories
4 ran · 5 no recorded run
ithuanhuan/gpu-py3-faster-rcnn community
not in the paper's declared repositories
4 ran · 3 no recorded run
shkim960520/faster-rcnn-for-studying community
not in the paper's declared repositories
4 ran · 2 no recorded run
chenyuntc/simple-faster-rcnn-pytorch community
not in the paper's declared repositories
3 ran · 2 no recorded run
playerkk/face-py-faster-rcnn community (classifier label)
classifier basis not recorded on the link
3 ran · 2 no recorded run
facebookresearch/detectron community
not in the paper's declared repositories
2 ran · 3 no recorded run
yanxp/rcnn-discovery community
not in the paper's declared repositories
2 ran · 3 no recorded run
insigh/Faster-RCNN-Tensorflow community
not in the paper's declared repositories
2 ran · 1 no recorded run
Burf/tfdetection community
not in the paper's declared repositories
2 ran · 0 no recorded run
clemkoa/faster-rcnn community (classifier label)
classifier basis not recorded on the link
2 ran · 0 no recorded run
potterhsu/easy-faster-rcnn.pytorch community (classifier label)
classifier basis not recorded on the link
2 ran · 0 no recorded run
sonnguyen64/horus-tf-faster-rcnn community
not in the paper's declared repositories
1 ran · 2 no recorded run
bmstu-iu8-g1-2019-project/road-signs-recognition community
not in the paper's declared repositories
1 ran · 1 no recorded run
edwardyang12/Sign-Language-Detection community
not in the paper's declared repositories
1 ran · 0 no recorded run
jfc4050/detect-to-track community
not in the paper's declared repositories
1 ran · 0 no recorded run
quocdat32461997/Mask_RCNN community
not in the paper's declared repositories
1 ran · 0 no recorded run
WalterMa/gluon-faster-rcnn community (classifier label)
classifier basis not recorded on the link
1 ran · 0 no recorded run
kdha0727/lung-opacity-and-covid-chest-x-ray-detection community
not in the paper's declared repositories
1 ran · 0 no recorded run
AbhinavJhanwar/object-detection-classification community
Papers with Code archive
1 ran · 0 no recorded run
FunctionStatusWhere it lives
BoxCoder Ran
ran on a synthesized input · constructed an object; no result was computed
liangheming/faster_rcnnv1/nets/faster_rcnn.py
pointer only (licence: NONE) · get_code("f0c00a98a2d39aff")
How it ran

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

BoxSimilarity Ran
ran on a synthesized input · constructed an object; no result was computed
liangheming/faster_rcnnv1/nets/faster_rcnn.py
pointer only (licence: NONE) · get_code("6c7ac8e6466bcea8")
How it ran

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

IOULoss Ran
ran on a synthesized input · constructed an object; no result was computed
liangheming/faster_rcnnv1/nets/faster_rcnn.py
pointer only (licence: NONE) · get_code("c2609d337cc38d1f")
How it ran

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

IoU Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
clemkoa/fasterrcnn/src/fasterrcnn.py
code served (permissive licence) · get_code("f55438873775f578")
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 expects two bounding boxes, each with 4 coordinates (x1, y1, x2, y2)
# They should be tuples or lists that can be unpacked into 4 values

anchor = (10.0, 20.0, 50.0, 60.0)  # x1, y1, x2, y2
bbox = (30.0, 40.0, 70.0, 80.0)    # x3, y3, x4, y4

ARGS = {
    "anchor": anchor,
    "bbox": bbox
}
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
Matcher Ran
ran on a synthesized input · constructed an object; no result was computed
liangheming/faster_rcnnv1/nets/faster_rcnn.py
pointer only (licence: NONE) · get_code("7bf221011b0422f3")
How it ran

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

ProposalCreator Ran
ran on a synthesized input · constructed an object; no result was computed
shkim960520/faster-rcnn-for-studying/model/region_proposal_network.py
pointer only (licence: NONE) · get_code("14ffa58eda68a7de")
How it ran

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

RPN Ran
ran on a synthesized input · constructed an object; no result was computed
clemkoa/fasterrcnn/src/fasterrcnn.py
code served (permissive licence) · get_code("d3074fd4bb476f7c")
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 an instance of its own class, RPN: the run constructed the object and did not call it, so no result was computed. 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
import numpy as np

torch.manual_seed(0)

ARGS = {
    "in_dim": 512,
}
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 RPN — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a RPN 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
RPN Ran
ran on a synthesized input · constructed an object; no result was computed
edwardyang12/Sign-Language-Detection/RPN.py
pointer only (licence: NONE) · get_code("07e2761ffff4d782")
How it ran

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

RPN Ran
ran on a synthesized input
jfc4050/detect-to-track/detect_to_track/models/rpn.py
pointer only (licence: NONE) · get_code("2999eab920b83a84")
How it ran

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

RegionProposalNetwork Ran
ran on a synthesized input · constructed an object; no result was computed
Burf/tfdetection/tfdet/model/head/rcnn.py
code served (permissive licence) · get_code("841a6839dbfe8def")
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 an instance of its own class, RegionProposalNetwork: the run constructed the object and did not call it, so no result was computed. 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 tensorflow as tf

# Create a minimal custom convolution function that matches rpn_conv's interface
def custom_conv(filters, kernel_size, strides=1, padding='same', use_bias=True, kernel_initializer=tf.keras.initializers.RandomNormal(mean=0.0, stddev=0.01), **kwargs):
    return tf.keras.layers.Conv2D(filters, kernel_size, strides=strides, padding=padding, use_bias=use_bias, kernel_initializer=kernel_initializer, **kwargs)

# Create a minimal normalization layer that matches the normalize parameter usage
class MinimalNormalization(tf.keras.layers.Layer):
    def __init__(self, name=None, **kwargs):
        super(MinimalNormalization, self).__init__(name=name, **kwargs)
    
    def call(self, x):
        return x

# Create sample input tensors with distinct dimensions
input_feature_map_1 = tf.random.normal((2, 8, 8, 256))  # batch=2, height=8, width=8, channels=256
input_feature_map_2 = tf.random.normal((2, 4, 4, 256))  # batch=2, height=4, width=4, channels=256

# Build the arguments dictionary
ARGS = {
    'n_anchor': 9,
    'n_feature': 512,
    'use_bias': True,
    'feature_share': True,
    'concat': False,
    'convolution': custom_conv,
    'normalize': None,
    'activation': tf.keras.activations.relu,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type RegionProposalNetwork — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a RegionProposalNetwork 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
RegionProposalNetwork Ran
ran on a synthesized input · constructed an object; no result was computed
quocdat32461997/Mask_RCNN/models/rpn.py
code served (permissive licence) · get_code("a46037f2dfcbab55")
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 an instance of its own class, RegionProposalNetwork: the run constructed the object and did not call it, so no result was computed. 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 tensorflow as tf
import numpy as np

# Set random seed for reproducibility
tf.random.set_seed(0)
np.random.seed(0)

# Create anchors: a list of anchor coordinates
# The anchors parameter should be a sequence of coordinate pairs
# num_anchors = len(anchors) // 2, so we need an even number of elements
anchors = [0.5, 0.5, 1.0, 1.0, 1.5, 1.5, 2.0, 2.0]

ARGS = {
    'anchors': anchors,
    'name': 'RPN'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type RegionProposalNetwork — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a RegionProposalNetwork 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
_enumerate_shifted_anchor Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
shkim960520/faster-rcnn-for-studying/model/region_proposal_network.py
pointer only (licence: NONE) · get_code("f5977f4c8117ba6b")
How it ran

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

_enumerate_shifted_anchor Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
chenyuntc/simple-faster-rcnn-pytorch/model/region_proposal_network.py
pointer only (licence: NOASSERTION) · get_code("060f8463b181bc2a")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, chenyuntc/simple-faster-rcnn-pytorch (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.

_generate_anchors Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
facebookresearch/detectron/detectron/modeling/rpn_heads.py
code served (permissive licence) · get_code("b23ecd8325e475af")
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 2, dtype family float, shape (9, 4) 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

# Analyze the function _generate_anchors:
# - base_size: used as an integer in np.array([1, 1, base_size, base_size])
# - scales: used in np.vstack and _scale_enum, needs to be array-like of numbers
# - aspect_ratios: used in _ratio_enum, needs to be array-like of numbers

base_size = 16
scales = np.array([0.5, 1.0, 2.0])
aspect_ratios = np.array([0.5, 1.0, 2.0])

ARGS = {
    "base_size": base_size,
    "scales": scales,
    "aspect_ratios": aspect_ratios,
}
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 ndarray, ndim 2, dtype family float, shape (9, 4) — shape (9, 4) 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
_mkanchors Ran
ran, violated the contract we drafted
jiajunhua/facebookresearch-Detectron/detectron/modeling/rpn_heads.py
code served (permissive licence) · get_code("e6f256cf0e6682f7")
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 2, dtype family float, shape (3, 4) 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 arguments for _mkanchors
ws = np.array([64.0, 128.0, 256.0])
hs = np.array([64.0, 128.0, 256.0])
x_ctr = 100.0
y_ctr = 150.0

ARGS = {
    'ws': ws,
    'hs': hs,
    'x_ctr': x_ctr,
    'y_ctr': y_ctr
}
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 ndarray, ndim 2, dtype family float, shape (3, 4) — shape (3, 4) 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
_ratio_enum Ran
ran, violated the contract we drafted
jiajunhua/facebookresearch-Detectron/detectron/modeling/rpn_heads.py
code served (permissive licence) · get_code("bea564463ca31505")
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 2, dtype family float, shape (3, 4) 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

# Analyzing the function _ratio_enum:
# - anchor: used with indexing [0], [2], [3] - so it's array-like with at least 4 elements
# - ratios: used in division (size / ratios) and multiplication (ws * ratios) - so it's array-like of numbers

# Create a simple anchor (a 4-element array representing [x1, y1, x2, y2])
anchor = np.array([10.0, 20.0, 50.0, 80.0])

# Create a small ratios array
ratios = np.array([0.5, 1.0, 2.0])

ARGS = {
    "anchor": anchor,
    "ratios": ratios
}
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 ndarray, ndim 2, dtype family float, shape (3, 4) — shape (3, 4) 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
_scale_enum Ran
ran, violated the contract we drafted
jiajunhua/facebookresearch-Detectron/detectron/modeling/rpn_heads.py
code served (permissive licence) · get_code("c55a6b30f9bc962a")
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 2, dtype family float, shape (3, 4) 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 arguments for _scale_enum function

# First, create a base anchor (window) as a numpy array
# Format: [x1, y1, x2, y2]
anchor = np.array([10.0, 20.0, 50.0, 80.0])

# Create a set of scales to enumerate over
scales = np.array([0.5, 1.0, 2.0])

ARGS = {
    "anchor": anchor,
    "scales": scales
}
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 ndarray, ndim 2, dtype family float, shape (3, 4) — shape (3, 4) 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
_whctrs Ran
ran, violated the contract we drafted
jiajunhua/facebookresearch-Detectron/detectron/modeling/rpn_heads.py
code served (permissive licence) · get_code("3d4054a97b39b3a3")
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, 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 torch
import numpy as np

torch.manual_seed(0)

# The function _whctrs takes an anchor and accesses elements at indices 0, 1, 2, 3
# It performs arithmetic operations on these elements
# An anchor is expected to be an array-like object with at least 4 elements
# representing [x1, y1, x2, y2] in typical bounding box format

# Create a valid anchor as a list or numpy array
anchor = [10.0, 20.0, 50.0, 80.0]

ARGS = {
    "anchor": anchor
}
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 tuple, ndim 1, dtype family float — a tuple 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
a_cosine_learning_rate Ran
ran, honoured the contract we drafted
JoegameZhou/hrnetv2/src/lr_schedule.py
code served (permissive licence) · get_code("316fb42e9e6ed79e")
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

def a_cosine_learning_rate(current_step, base_lr, warmup_steps, decay_steps):
    base = float(current_step - warmup_steps) / float(decay_steps)
    learning_rate = (1 + math.cos(base * math.pi)) / 2 * base_lr
    return learning_rate

ARGS = {
    "current_step": 100,
    "base_lr": 0.1,
    "warmup_steps": 10,
    "decay_steps": 1000
}
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
add_single_scale_rpn_losses Ran
ran; our contract draft was wrong, not the code
jiajunhua/facebookresearch-Detectron/detectron/modeling/rpn_heads.py
code served (permissive licence) · get_code("bd2b197f56d84807")
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 torch
import torch.nn as nn
import types as _types

torch.manual_seed(0)

class MockNet:
    """Mock net object that simulates Caffe2-style operations"""
    def __init__(self):
        self.blobs = {}
    
    def SpatialNarrowAs(self, inputs, output):
        """Mock SpatialNarrowAs operation"""
        self.blobs[output] = torch.randn(2, 4)
        return output
    
    def SigmoidCrossEntropyLoss(self, inputs, output, scale=1.0):
        """Mock SigmoidCrossEntropyLoss operation"""
        self.blobs[output] = torch.tensor([0.5])
        return output
    
    def SmoothL1Loss(self, inputs, output, beta=1.0, scale=1.0):
        """Mock SmoothL1Loss operation"""
        self.blobs[output] = torch.tensor([0.3])
        return output
    
    def ConstantFill(self, blob_name, output_names, value=1.0):
        """Mock ConstantFill operation"""
        output_name = output_names[0]
        self.blobs[output_name] = torch.full((2, 4), value)
        return output_name

class MockModel:
    """Mock model that simulates Caffe2 model interface"""
    def __init__(self):
        self.net = MockNet()
        self.losses = []
    
    def GetLossScale(self):
        """Return loss scale"""
        return 1.0
    
    def AddLosses(self, loss_names):
        """Add losses to model"""
        self.losses.extend(loss_names)

def get_loss_gradients(model, loss_blobs):
    """Generate a gradient of 1 for each loss specified in 'loss_blobs'"""
    loss_gradients = {}
    for b in loss_blobs:
        loss_grad = model.net.ConstantFill(b, [b + '_grad'], value=1.0)
        loss_gradients[str(b)] = str(loss_grad)
    return loss_gradients

def add_single_scale_rpn_losses(model):
    """Add losses for a single scale RPN model (i.e., no FPN)."""
    model.net.SpatialNarrowAs(['rpn_labels_int32_wide', 'rpn_cls_logits'], 'rpn_labels_int32')
    for key in ('targets', 'inside_weights', 'outside_weights'):
        model.net.SpatialNarrowAs(['rpn_bbox_' + key + '_wide', 'rpn_bbox_pred'], 'rpn_bbox_' + key)
    loss_rpn_cls = model.net.SigmoidCrossEntropyLoss(['rpn_cls_logits', 'rpn_labels_int32'], 'loss_rpn_cls', scale=model.GetLossScale())
    loss_rpn_bbox = model.net.SmoothL1Loss(['rpn_bbox_pred', 'rpn_bbox_targets', 'rpn_bbox_inside_weights', 'rpn_bbox_outside_weights'], 'loss_rpn_bbox', beta=1.0 / 9.0, scale=model.GetLossScale())
    loss_gradients = get_loss_gradients(model, [loss_rpn_cls, loss_rpn_bbox])
    model.AddLosses(['loss_rpn_cls', 'loss_rpn_bbox'])
    return loss_gradients

model = MockModel()

ARGS = {
    'model': model
}
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 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
bbox_transform Ran
ran, violated the contract we drafted
playerkk/face-py-faster-rcnn/lib/fast_rcnn/bbox_transform.py
code served (permissive licence) · get_code("84dcf978d5570762")
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 2, dtype family float, shape (2, 4) 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

# bbox_transform expects two numpy arrays of bounding boxes
# Each bbox is [x1, y1, x2, y2] format
# The function computes regression targets from example rois to ground truth rois

# Create small example ROIs (batch of 2 boxes, 4 coords each)
ex_rois = np.array([
    [10.0, 20.0, 50.0, 80.0],
    [5.0, 15.0, 45.0, 75.0]
], dtype=np.float32)

# Create small ground truth ROIs (batch of 2 boxes, 4 coords each)
gt_rois = np.array([
    [12.0, 22.0, 52.0, 82.0],
    [7.0, 17.0, 47.0, 77.0]
], dtype=np.float32)

ARGS = {
    "ex_rois": ex_rois,
    "gt_rois": gt_rois
}
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 ndarray, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) 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
bbox_transform_inv Ran
ran, honoured the contract we drafted
yanxp/rcnn-discovery/lib/layer_utils/proposal_layer.py
code served (permissive licence) · get_code("ed64f0c42ae635d5")
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, 8) 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)

# boxes: shape (num_boxes, 4) - represents bounding boxes as [x1, y1, x2, y2]
# deltas: shape (num_boxes, num_anchors * 4) - represents delta transformations

boxes = torch.tensor([
    [10.0, 20.0, 50.0, 80.0],
    [5.0, 15.0, 45.0, 75.0]
], dtype=torch.float32)

deltas = torch.tensor([
    [0.1, 0.2, 0.05, -0.1, 0.15, 0.25, 0.08, -0.12],
    [0.12, 0.18, 0.06, -0.08, 0.14, 0.22, 0.07, -0.11]
], dtype=torch.float32)

ARGS = {
    "boxes": boxes,
    "deltas": deltas
}
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, 8) — shape (2, 8) 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
bbox_transform_inv Ran
ran, honoured the contract we drafted
ithuanhuan/gpu-py3-faster-rcnn/lib/layer_utils/proposal_layer.py
code served (permissive licence) · get_code("b3695ebe0c382b05")
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 2, dtype family float, shape (2, 8) 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

# Create small test data for bbox_transform_inv
# boxes: N x 4 array of bounding boxes [x1, y1, x2, y2]
# deltas: N x (4*K) array of box deltas for K classes

boxes = np.array([
    [10.0, 20.0, 50.0, 80.0],
    [100.0, 150.0, 200.0, 250.0]
], dtype=np.float32)

# deltas: 2 boxes, 2 classes (8 columns: dx, dy, dw, dh for each class)
deltas = np.array([
    [0.1, 0.2, -0.1, 0.05, 0.15, 0.1, -0.2, 0.0],
    [-0.05, 0.0, 0.1, -0.1, 0.2, -0.15, 0.05, 0.1]
], dtype=np.float32)

ARGS = {
    "boxes": boxes,
    "deltas": deltas
}
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 ndarray, ndim 2, dtype family float, shape (2, 8) — shape (2, 8) 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
bbox_transform_inv_tf Ran
ran, honoured the contract we drafted
insigh/Faster-RCNN-Tensorflow/lib/layer_utils/proposal_layer.py
code served (permissive licence) · get_code("b02278c1b3f3b63d")
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 EagerTensor, ndim 2, dtype family float, shape (2, 4) 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 tensorflow as tf
import numpy as np

# Set seed for reproducibility
tf.random.set_seed(0)
np.random.seed(0)

# Create small test tensors
# boxes: [batch_size, 4] with format [x1, y1, x2, y2]
boxes = tf.constant([
    [10.0, 20.0, 50.0, 80.0],
    [15.0, 25.0, 60.0, 90.0]
], dtype=tf.float32)

# deltas: [batch_size, 4] with format [dx, dy, dw, dh]
deltas = tf.constant([
    [0.1, 0.2, 0.3, 0.4],
    [0.15, 0.25, 0.35, 0.45]
], dtype=tf.float32)

ARGS = {
    "boxes": boxes,
    "deltas": deltas
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) 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
bbox_transform_inv_tf Ran
ran, honoured the contract we drafted
sonnguyen64/horus-tf-faster-rcnn/lib/layer_utils/proposal_layer_tf.py
code served (permissive licence) · get_code("0902f7f6352e685e")
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 EagerTensor, ndim 2, dtype family float, shape (2, 4) 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 tensorflow as tf
import numpy as np

# Set seed for reproducibility
tf.random.set_seed(0)
np.random.seed(0)

# Create small sample tensors for boxes and deltas
# boxes shape: (n, 4) representing [x1, y1, x2, y2]
boxes = tf.constant([
    [10.0, 20.0, 50.0, 80.0],
    [15.0, 25.0, 60.0, 90.0]
], dtype=tf.float32)

# deltas shape: (n, 4) representing [dx, dy, dw, dh]
deltas = tf.constant([
    [0.1, 0.2, 0.3, 0.4],
    [0.05, 0.15, 0.25, 0.35]
], dtype=tf.float32)

ARGS = {
    "boxes": boxes,
    "deltas": deltas
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) 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
box_area Ran
ran, honoured the contract we drafted
AlphaJia/pytorch-faster-rcnn/utils/rpn_utils.py
pointer only (licence: NONE) · get_code("591d88c9673c0fc7")
How it ran

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

box_iou Ran
ran, honoured the contract we drafted
liangheming/faster_rcnnv1/nets/faster_rcnn.py
pointer only (licence: NONE) · get_code("2ec9b42e568fb19f")
How it ran

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

box_iou Ran
ran; our contract draft was wrong, not the code
AlphaJia/pytorch-faster-rcnn/utils/rpn_utils.py
pointer only (licence: NONE) · get_code("0ca35377bdcd364d")
How it ran

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

calculate_fan_in_and_fan_out Ran
ran on a synthesized input
JoegameZhou/hrnetv2/src/FasterRcnn/hrnetv2.py
code served (permissive licence) · get_code("74bebe7a4353815b")
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, 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)

# Test case 1: 2D tensor (linear layer weight shape)
shape_2d = (5, 3)

# Test case 2: 4D tensor (conv2d weight shape: out_channels, in_channels, height, width)
shape_4d = (8, 4, 3, 3)

# Using the 2D case as the primary test
ARGS = {
    "shape": shape_2d
}
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 tuple, ndim 1, dtype family int — a tuple 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
clip_boxes Ran
ran; our contract draft was wrong, not the code
yanxp/rcnn-discovery/lib/layer_utils/proposal_layer.py
code served (permissive licence) · get_code("b34cbddfcacf0cce")
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, 8) 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)

# boxes: tensor with shape (batch_size, num_boxes*4) or (batch_size, num_boxes, 4)
# After view it becomes (batch_size, num_boxes, 4) where each box is [x1, y1, x2, y2]
boxes = torch.tensor([
    [10.0, 20.0, 100.0, 200.0, 15.0, 25.0, 105.0, 205.0],
    [5.0, 10.0, 50.0, 100.0, 8.0, 12.0, 55.0, 105.0]
], dtype=torch.float32)

# im_shape: (height, width) of the image
im_shape = (480, 640)

ARGS = {
    "boxes": boxes,
    "im_shape": im_shape
}
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, 8) — shape (2, 8) 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
clip_boxes Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ithuanhuan/gpu-py3-faster-rcnn/lib/layer_utils/proposal_layer.py
code served (permissive licence) · get_code("6c939ab027a6b144")
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 2, dtype family float, shape (2, 4) 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

# Create sample boxes: shape (N, 4*M) where each group of 4 is [x1, y1, x2, y2]
# Using 2 boxes with 1 coordinate set each (4 columns)
boxes = np.array([
    [10.5, 20.5, 100.5, 150.5],
    [5.0, 15.0, 200.0, 300.0]
], dtype=np.float32)

# Image shape as (height, width)
im_shape = (256, 512)

ARGS = {
    "boxes": boxes,
    "im_shape": im_shape
}
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 ndarray, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) 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
clip_boxes Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
smichalowski/faster_rcnn/faster_rcnn/rpn/proposal_im_detect.py
pointer only (licence: NONE) · get_code("0101675a1b149608")
How it ran

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

clip_boxes Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
playerkk/face-py-faster-rcnn/lib/fast_rcnn/bbox_transform.py
code served (permissive licence) · get_code("d24c99284beca7a6")
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 2, dtype family float, shape (2, 4) 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

# Create sample boxes array
# Shape: (num_boxes, num_coords) where coords are in format [x1, y1, x2, y2, ...]
# Using 2 boxes with 4 coordinates each (x1, y1, x2, y2)
boxes = np.array([
    [10.5, 20.3, 100.7, 150.2],
    [5.1, 15.8, 200.4, 300.9]
], dtype=np.float32)

# Image shape as (height, width)
im_shape = (256, 512)

ARGS = {
    "boxes": boxes,
    "im_shape": im_shape
}
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 ndarray, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) 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
clip_boxes_tf Ran
ran, honoured the contract we drafted
insigh/Faster-RCNN-Tensorflow/lib/layer_utils/proposal_layer.py
code served (permissive licence) · get_code("ad33fe7d19220e3a")
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 EagerTensor, ndim 2, dtype family float, shape (2, 4) 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 tensorflow as tf

# Create small test tensors
boxes = tf.constant([
    [10.0, 20.0, 100.0, 120.0],
    [5.0, 15.0, 95.0, 105.0]
], dtype=tf.float32)

# im_info format: [height, width, ...]
# From the function logic: im_info[0] is height, im_info[1] is width
im_info = tf.constant([150.0, 200.0], dtype=tf.float32)

ARGS = {
    "boxes": boxes,
    "im_info": im_info
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) 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
clip_boxes_to_image Ran
ran; our contract draft was wrong, not the code
AlphaJia/pytorch-faster-rcnn/utils/rpn_utils.py
pointer only (licence: NONE) · get_code("0ae6f0a64b0b3de7")
How it ran

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

concat_box_prediction_layers Ran
ran, honoured the contract we drafted
AlphaJia/pytorch-faster-rcnn/utils/rpn_utils.py
pointer only (licence: NONE) · get_code("9e8def059f5360f9")
How it ran

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

const_fill Ran
ran; our contract draft was wrong, not the code
jiajunhua/facebookresearch-Detectron/detectron/modeling/rpn_heads.py
code served (permissive licence) · get_code("93f6fc328f31783a")
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, 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 torch
import numpy as np

# The function const_fill takes a single parameter 'value' and returns a tuple
# containing a string and a dictionary with that value.
# We need to provide a valid value for the 'value' parameter.

# Based on the function signature and typical usage patterns for "ConstantFill",
# the value parameter should be a numeric constant that will be used to fill tensors.

torch.manual_seed(0)

# Create a simple numeric value for the fill operation
value = 3.14

ARGS = {
    'value': value
}
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 tuple, ndim 1, dtype family float — a tuple 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
dynamic_lr Ran
ran on a synthesized input
JoegameZhou/hrnetv2/src/lr_schedule.py
code served (permissive licence) · get_code("fdbedfdf345b25aa")
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 math

class Config:
    def __init__(self):
        self.base_lr = 0.001
        self.epoch_size = 10
        self.warmup_step = 100
        self.warmup_ratio = 0.1

config = Config()
steps_per_epoch = 50

ARGS = {
    "config": config,
    "steps_per_epoch": steps_per_epoch
}
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 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
fast_rcnn_bbox_transform_inv Ran
ran, honoured the contract we drafted
smichalowski/faster_rcnn/faster_rcnn/rpn/proposal_im_detect.py
pointer only (licence: NONE) · get_code("23846102391f5532")
How it ran

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

filter_boxes Ran
ran, honoured the contract we drafted
smichalowski/faster_rcnn/faster_rcnn/rpn/proposal_im_detect.py
pointer only (licence: NONE) · get_code("53cfb74c9acaebd7")
How it ran

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

gauss_fill Ran
ran; our contract draft was wrong, not the code
jiajunhua/facebookresearch-Detectron/detectron/modeling/rpn_heads.py
code served (permissive licence) · get_code("1e455c239bf7bdd6")
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, 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 torch
import numpy as np

torch.manual_seed(0)

ARGS = {
    'std': 0.5
}
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 tuple, ndim 1, dtype family float — a tuple 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
generate_anchor_base Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
shkim960520/faster-rcnn-for-studying/model/region_proposal_network.py
pointer only (licence: NONE) · get_code("13739dd398ad8d69")
How it ran

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

generate_anchor_base Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
chenyuntc/simple-faster-rcnn-pytorch/model/region_proposal_network.py
pointer only (licence: NOASSERTION) · get_code("92b2156d0a7c6228")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, chenyuntc/simple-faster-rcnn-pytorch (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.

generate_anchors Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
facebookresearch/detectron/detectron/modeling/rpn_heads.py
code served (permissive licence) · get_code("08a5a1f47d119996")
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 2, dtype family float, shape (15, 4) 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

ARGS = {
    'stride': 16,
    'sizes': (32, 64, 128, 256, 512),
    'aspect_ratios': (0.5, 1, 2)
}
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 ndarray, ndim 2, dtype family float, shape (15, 4) — shape (15, 4) 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
generate_anchors Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
aleksispi/drl-rpn-tf/lib/layer_utils/generate_anchors.py
code served (permissive licence) · get_code("d4f2ade15edff997")
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 2, dtype family float, shape (9, 4) 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

# generate_anchors has 3 parameters with defaults:
# - base_size: int (default 16)
# - ratios: list/array of floats (default [0.5, 1, 2])
# - scales: array of floats (default 2 ** np.arange(3, 6))

ARGS = {
    'base_size': 16,
    'ratios': [0.5, 1, 2],
    'scales': 2 ** np.arange(3, 6)
}
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 ndarray, ndim 2, dtype family float, shape (9, 4) — shape (9, 4) 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
generate_anchors Ran
ran on a synthesized input
WalterMa/gluon-faster-rcnn/rcnn/utils.py
code served (permissive licence) · get_code("ffec5c8e487649a5")
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 2, dtype family float, shape (9, 4) 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

ARGS = {
    'base_size': 16,
    'ratios': (0.5, 1, 2),
    'scales': (8, 16, 32),
}
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 ndarray, ndim 2, dtype family float, shape (9, 4) — shape (9, 4) 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
get_detector Ran
ran; our contract draft was wrong, not the code
kdha0727/lung-opacity-and-covid-chest-x-ray-detection/models/detector.py
pointer only (licence: NONE) · get_code("85b003e6c83cb43b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, kdha0727/lung-opacity-and-covid-chest-x-ray-detection 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_label_map_from_pbtxt Ran
ran on a synthesized input
clemkoa/faster-rcnn/src/utils.py
code served (permissive licence) · get_code("2472016d914a87af")
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 tempfile
import os

# Create a temporary pbtxt file with proper format
temp_dir = tempfile.mkdtemp()
pbtxt_file = os.path.join(temp_dir, "label_map.pbtxt")

# Write a sample pbtxt file with the expected format
pbtxt_content = """item {
  id: 1
  name: 'cat'
}
item {
  id: 2
  name: 'dog'
}
item {
  id: 3
  name: 'bird'
}
"""

with open(pbtxt_file, 'w') as f:
    f.write(pbtxt_content)

ARGS = {
    'file': pbtxt_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
get_loss_gradients Ran
ran; our contract draft was wrong, not the code
jiajunhua/facebookresearch-Detectron/detectron/modeling/rpn_heads.py
code served (permissive licence) · get_code("ed39bf5fccc27256")
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 torch
import torch.nn as nn

class MockNet(nn.Module):
    def __init__(self):
        super().__init__()
    
    def ConstantFill(self, blob_name, output_spec, value=1.0):
        """Mock ConstantFill that returns a gradient blob name"""
        output_name = output_spec[0]
        return output_name

class MockModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.net = MockNet()

torch.manual_seed(0)

model = MockModel()
loss_blobs = ['loss_1', 'loss_2', 'loss_3']

ARGS = {
    'model': model,
    'loss_blobs': loss_blobs
}
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 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
linear_warmup_learning_rate Ran
ran, honoured the contract we drafted
JoegameZhou/hrnetv2/src/lr_schedule.py
code served (permissive licence) · get_code("d6a99ec714147ac1")
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)

# Analyzing the function:
# - current_step: used in arithmetic (int or float)
# - warmup_steps: used in division (int or float)
# - base_lr: used in float() conversion and subtraction (int or float)
# - init_lr: used in float() conversion and addition (int or float)

ARGS = {
    "current_step": 500,
    "warmup_steps": 1000,
    "base_lr": 0.1,
    "init_lr": 0.001,
}
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
loc2bbox Ran
ran, honoured the contract we drafted
shkim960520/faster-rcnn-for-studying/model/region_proposal_network.py
pointer only (licence: NONE) · get_code("72307683ca04669e")
How it ran

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

loc2bbox Ran
ran, honoured the contract we drafted
chenyuntc/simple-faster-rcnn-pytorch/model/region_proposal_network.py
pointer only (licence: NOASSERTION) · get_code("fc1b18c3f9aaa651")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, chenyuntc/simple-faster-rcnn-pytorch (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.

mymax Ran
ran, honoured the contract we drafted
ithuanhuan/gpu-py3-faster-rcnn/lib/layer_utils/proposal_layer.py
code served (permissive licence) · get_code("341516a8780d42ca")
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 int, ndim 0, dtype family int, 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

torch.manual_seed(0)

# The function mymax takes two arguments and returns the larger one
# It uses >= comparison, so both arguments should be comparable

a = 5
b = 3

ARGS = {
    'a': a,
    'b': b,
}
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 int, ndim 0, dtype family int, 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
mymin Ran
ran, honoured the contract we drafted
ithuanhuan/gpu-py3-faster-rcnn/lib/layer_utils/proposal_layer.py
code served (permissive licence) · get_code("f7906400dae5e223")
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 int, ndim 0, dtype family int, 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

torch.manual_seed(0)

# The function mymin takes two arguments a and b and returns the smaller one
# based on the <= comparison. We need to provide two comparable values.

# Simple integers work fine
a = 5
b = 10

ARGS = {
    'a': a,
    'b': b
}
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 int, ndim 0, dtype family int, 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
nms Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
clemkoa/fasterrcnn/src/fasterrcnn.py
code served (permissive licence) · get_code("9b8ca176346f3308")
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 the nms function
# dets: detection boxes as (N, 4) array with columns [x1, y1, x2, y2]
# cls: confidence scores as (N,) array
# thresh: IoU threshold for NMS

dets = np.array([
    [10.0, 10.0, 50.0, 50.0],
    [15.0, 15.0, 55.0, 55.0],
    [100.0, 100.0, 150.0, 150.0],
    [105.0, 105.0, 155.0, 155.0],
], dtype=np.float32)

cls = np.array([0.9, 0.8, 0.85, 0.75], dtype=np.float32)

thresh = 0.3

ARGS = {
    "dets": dets,
    "cls": cls,
    "thresh": thresh,
}
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
parametrize Ran
ran, violated the contract we drafted
clemkoa/fasterrcnn/src/fasterrcnn.py
code served (permissive licence) · get_code("048178ed2b542c16")
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 2, dtype family float, shape (2, 4) 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 valid arguments for parametrize function
# The function expects:
# - anchors: numpy array of shape (N, 4) with bounding box coordinates [x1, y1, x2, y2]
# - bboxes: numpy array of shape (N, 4) with bounding box coordinates [x1, y1, x2, y2]

# Create small sample data
num_boxes = 2

# Anchors: 2 boxes with coordinates [x1, y1, x2, y2]
anchors = np.array([
    [10.0, 20.0, 50.0, 60.0],  # box 1
    [100.0, 150.0, 200.0, 250.0]  # box 2
], dtype=np.float32)

# Bboxes: 2 boxes with coordinates [x1, y1, x2, y2]
bboxes = np.array([
    [15.0, 25.0, 55.0, 65.0],  # box 1
    [110.0, 160.0, 210.0, 260.0]  # box 2
], dtype=np.float32)

ARGS = {
    'anchors': anchors,
    'bboxes': bboxes
}
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 ndarray, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) 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
parse_pbtxt Ran
ran on a synthesized input
clemkoa/faster-rcnn/src/utils.py
code served (permissive licence) · get_code("5b5529d8420c48f4")
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 tempfile
import os

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

# Write sample protobuf text format content
pbtxt_content = """item {
  name: "example1"
  value: "123"
}
item {
  id: "test_id"
  score: "0.95"
}
item {
  label: "sample"
  count: "42"
}
"""

with open(temp_file, 'w') as f:
    f.write(pbtxt_content)

ARGS = {
    'file': 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 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
parse_rec Ran
ran; our contract draft was wrong, not the code
aleksispi/drl-rpn-tf/lib/datasets/voc_eval.py
code served (permissive licence) · get_code("0eafc51289a49033")
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 xml.etree.ElementTree as ET
import tempfile
import os

# Create a minimal valid PASCAL VOC XML file
xml_content = """<?xml version="1.0" encoding="UTF-8"?>
<annotation>
    <object>
        <name>dog</name>
        <pose>Frontal</pose>
        <truncated>0</truncated>
        <difficult>0</difficult>
        <bndbox>
            <xmin>10</xmin>
            <ymin>20</ymin>
            <xmax>100</xmax>
            <ymax>150</ymax>
        </bndbox>
    </object>
    <object>
        <name>cat</name>
        <pose>Rear</pose>
        <truncated>1</truncated>
        <difficult>1</difficult>
        <bndbox>
            <xmin>50</xmin>
            <ymin>60</ymin>
            <xmax>200</xmax>
            <ymax>250</ymax>
        </bndbox>
    </object>
</annotation>
"""

# Create a temporary file with the XML content
temp_file = tempfile.NamedTemporaryFile(mode='w', suffix='.xml', delete=False)
temp_file.write(xml_content)
temp_file.close()

ARGS = {
    'filename': temp_file.name
}
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 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
permute_and_flatten Ran
ran; our contract draft was wrong, not the code
AlphaJia/pytorch-faster-rcnn/utils/rpn_utils.py
pointer only (licence: NONE) · get_code("d3ee28edbd99f270")
How it ran

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

prep_im_for_blob_size Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
smichalowski/faster_rcnn/faster_rcnn/rpn/proposal_im_detect.py
pointer only (licence: NONE) · get_code("797ff1b51915a853")
How it ran

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

Showing the first 60. An agent gets every one from get_harvested_code_for_paper("1506.01497").

Also present in other papers' code

Of 124 samples lifted from this paper's linked repositories, 124 carry a function identity and 0 do not. Of the 116 distinct functions with an identity, 25 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 8 the same month, 25 later) and 91 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
voc_ap 27 other papers
27 later
1605.06409 (2016-05)
R-FCN: Object Detection via Region-based Fully Convolutional Networks
1609.03605 (2016-09)
Detecting Text in Natural Image with Connectionist Text Proposal Network
1609.04836 (2016-09)
On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minima
and 24 more not named here
xywh_to_xyxy 21 other papers
1 the same month, 20 later
1506.02025 (2015-06)
Spatial Transformer Networks
1605.06409 (2016-05)
R-FCN: Object Detection via Region-based Fully Convolutional Networks
1609.03605 (2016-09)
Detecting Text in Natural Image with Connectionist Text Proposal Network
and 18 more not named here
xyxy_to_xywh 21 other papers
1 the same month, 20 later
1506.02025 (2015-06)
Spatial Transformer Networks
1605.06409 (2016-05)
R-FCN: Object Detection via Region-based Fully Convolutional Networks
1609.03605 (2016-09)
Detecting Text in Natural Image with Connectionist Text Proposal Network
and 18 more not named here
unique_boxes 20 other papers
1 the same month, 19 later
1506.02025 (2015-06)
Spatial Transformer Networks
1511.02853 (2015-11)
Weakly Supervised Deep Detection Networks
1605.06409 (2016-05)
R-FCN: Object Detection via Region-based Fully Convolutional Networks
and 17 more not named here
get_imdb 17 other papers
17 later
1605.06409 (2016-05)
R-FCN: Object Detection via Region-based Fully Convolutional Networks
1609.03605 (2016-09)
Detecting Text in Natural Image with Connectionist Text Proposal Network
1612.03144 (2016-12)
Feature Pyramid Networks for Object Detection
and 14 more not named here
parse_rec 14 other papers
14 later
1605.06409 (2016-05)
R-FCN: Object Detection via Region-based Fully Convolutional Networks
1609.03605 (2016-09)
Detecting Text in Natural Image with Connectionist Text Proposal Network
1612.03144 (2016-12)
Feature Pyramid Networks for Object Detection
and 11 more not named here
py_cpu_nms 9 other papers
9 later
1812.00155 (2018-12)
Learning RoI Transformer for Detecting Oriented Objects in Aerial Images
1905.00641 (2019-05)
RetinaFace: Single-stage Dense Face Localisation in the Wild
1905.02244 (2019-05)
Searching for MobileNetV3
and 6 more not named here
clip_boxes
brick of this paper's assembly: helper
7 other papers
1 the same month, 6 later
1506.02025 (2015-06)
Spatial Transformer Networks
1609.03605 (2016-09)
Detecting Text in Natural Image with Connectionist Text Proposal Network
1611.06607 (2016-11)
A Hierarchical Approach for Generating Descriptive Image Paragraphs
and 4 more not named here
linear_warmup_learning_rate 7 other papers
7 later
1606.04797 (2016-06)
V-Net: Fully Convolutional Neural Networks for Volumetric Medical Image Segmentation
1606.06650 (2016-06)
3D U-Net: Learning Dense Volumetric Segmentation from Sparse Annotation
1904.01906 (2019-04)
What Is Wrong With Scene Text Recognition Model Comparisons? Dataset and Model Analysis
and 4 more not named here
a_cosine_learning_rate 4 other papers
4 later
1606.06650 (2016-06)
3D U-Net: Learning Dense Volumetric Segmentation from Sparse Annotation
1904.01906 (2019-04)
What Is Wrong With Scene Text Recognition Model Comparisons? Dataset and Model Analysis
2103.13413 (2021-03)
Vision Transformers for Dense Prediction
and 1 more not named here
bbox_transform 4 other papers
1 the same month, 3 later
1506.02025 (2015-06)
Spatial Transformer Networks
1609.03605 (2016-09)
Detecting Text in Natural Image with Connectionist Text Proposal Network
1611.06607 (2016-11)
A Hierarchical Approach for Generating Descriptive Image Paragraphs
and 1 more not named here
bbox_transform_inv
brick of this paper's assembly: helper
4 other papers
1 the same month, 3 later
1506.02025 (2015-06)
Spatial Transformer Networks
1612.03144 (2016-12)
Feature Pyramid Networks for Object Detection
1702.06355 (2017-02)
Object Detection in Videos with Tubelet Proposal Networks
and 1 more not named here
generate_anchors
brick of this paper's assembly: helper
4 other papers
4 later
1809.08545 (2018-09)
Bounding Box Regression with Uncertainty for Accurate Object Detection
1904.08008 (2019-04)
Clustered Object Detection in Aerial Images
1909.03625 (2019-09)
CBNet: A Novel Composite Backbone Network Architecture for Object Detection
and 1 more not named here
generate_anchors 4 other papers
4 later
1612.03144 (2016-12)
Feature Pyramid Networks for Object Detection
1902.09658 (2019-02)
Detecting Lesion Bounding Ellipses With Gaussian Proposal Networks
1902.10200 (2019-02)
Differentiable Scene Graphs
and 1 more not named here
get_imdb 4 other papers
1 the same month, 3 later
1506.02025 (2015-06)
Spatial Transformer Networks
1507.00448 (2015-07)
Cross Modal Distillation for Supervision Transfer
1611.06607 (2016-11)
A Hierarchical Approach for Generating Descriptive Image Paragraphs
and 1 more not named here
bbox_overlaps 3 other papers
3 later
1908.11542 (2019-08)
Satellite Pose Estimation with Deep Landmark Regression and Nonlinear Pose Refinement
Zhou_Slot-VPS_Object-Centric_Representation_Learning_for_Video_Panoptic_Segmentation_CVPR_2022_paper (2022 (year only))
Slot-VPS: Object-centric Representation Learning for Video Panoptic Segmentation
2201.02784 (2022-01)
Relieving Long-tailed Instance Segmentation via Pairwise Class Balance
box_area
brick of this paper's assembly: helper
3 other papers
3 later
2004.10934 (2020-04)
YOLOv4: Optimal Speed and Accuracy of Object Detection
2010.04159 (2020-10)
Deformable DETR: Deformable Transformers for End-to-End Object Detection
const_fill
brick of this paper's assembly: helper
3 other papers
1 dated earlier, 2 later · 3 only as an assembly brick
1504.08083 (2015-04)
Fast R-CNN
1612.03144 (2016-12)
Feature Pyramid Networks for Object Detection
permute_and_flatten
brick of this paper's assembly: helper
3 other papers
3 later
2106.08322 (2021-06)
Dynamic Head: Unifying Object Detection Heads with Attentions
2107.10064 (2021-07)
Few Shots Are All You Need: A Progressive Few Shot Learning Approach for Low Resource Handwritten Text Recognition
Guo_Knowledge_Distillation_for_6D_Pose_Estimation_by_Aligning_Distributions_of_CVPR_2023_paper (2023 (year only))
Knowledge Distillation for 6D Pose Estimation by Aligning Distributions of Local Predictions
gauss_fill
brick of this paper's assembly: helper
2 other papers
1 dated earlier, 1 later · 2 only as an assembly brick
1504.08083 (2015-04)
Fast R-CNN

Shown: the 20 functions present in the most other papers. 5 more shared functions are not listed here.

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

More are linked than shown here.

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

State-of-the-art object detection networks depend on region proposal algorithms to hypothesize object locations. Advances like SPPnet [1] and Fast R-CNN [2] have reduced the running time of these detection networks, exposing region proposal computation as a bottleneck. In this work, we introduce a Region Proposal Network (RPN) that shares full-image convolutional features with the detection network, thus enabling nearly cost-free region proposals. An RPN is a fully convolutional network that simultaneously predicts object bounds and objectness scores at each position. The RPN is trained end-to-end to generate high-quality region proposals, which are used by Fast R-CNN for detection. We further merge RPN and Fast R-CNN into a single network by sharing their convolutional features-using the recently popular terminology of neural networks with "attention" mechanisms, the RPN component tells the unified network where to look. For the very deep VGG-16 model [3], our detection system has a frame rate of 5fps (including all steps) on a GPU, while achieving state-of-the-art object detection accuracy on PASCAL VOC 2007, 2012, and MS COCO datasets with only 300 proposals per image. In ILSVRC and COCO 2015 competitions, Faster R-CNN and RPN are the foundations of the 1st-place winning entries in several tracks. Code has been made publicly available.

For agents

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

get_harvested_code_for_paper("1506.01497")
get_code_for_paper("1506.01497")
have("1506.01497")

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

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

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

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

Connect an agent — have() is free.