SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1703.06870 · 2017

Mask R-CNN

Georgia Gkioxari, Kaiming He, Piotr Dollár, Ross Girshick

arXiv · PDF · Open in the Atlas

Code that ran

101 of 140 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (3 of them constructed an object rather than computing a result; 17 honoured the contract we drafted, 5 violated it and 23 have no contract verdict; 56 failures of our instrument; 39 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/1703.06870.json · badge: /api/ran/1703.06870.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
Okery/PyTorch-Simple-MaskRCNN community
not in the paper's declared repositories
11 ran · 9 no recorded run
RituYadav92/Radar-RGB-Attentive-Multimodal-Object-Detection community (classifier label)
classifier basis not recorded on the link
10 ran · 2 no recorded run
ErikGDev/instance-segmentation community (classifier label)
classifier basis not recorded on the link
9 ran · 2 no recorded run
yczhang1017/SSD_resnet_pytorch community (classifier label)
classifier basis not recorded on the link
7 ran · 1 no recorded run
jremillard/images-to-osm community (classifier label)
classifier basis not recorded on the link
7 ran · 0 no recorded run
charlesshang/fastmaskrcnn community (classifier label)
classifier basis not recorded on the link
6 ran · 4 no recorded run
AKASH2907/bird-species-classification community (classifier label)
classifier basis not recorded on the link
6 ran · 3 no recorded run
itsasimiqbal/SeBRe community (classifier label)
classifier basis not recorded on the link
6 ran · 0 no recorded run
deolipankaj/Stone_Detection_MRCNN community (classifier label)
classifier basis not recorded on the link
5 ran · 1 no recorded run
maxfrei750/DeepParticleNet community (classifier label)
classifier basis not recorded on the link
4 ran · 2 no recorded run
hellohaozheng/maskrcnn-mindspore community (classifier label)
classifier basis not recorded on the link
4 ran · 0 no recorded run
maxfrei750/FibeR-CNN community (classifier label)
classifier basis not recorded on the link
4 ran · 0 no recorded run
facebookresearch/maskrcnn-benchmark community (classifier label)
classifier basis not recorded on the link
4 ran · 0 no recorded run
waspinator/deep-learning-explorer community (classifier label)
classifier basis not recorded on the link
3 ran · 4 no recorded run
sbetageri/MaskRCNN community (classifier label)
classifier basis not recorded on the link
3 ran · 0 no recorded run
quocdat32461997/Mask_RCNN community
not in the paper's declared repositories
2 ran · 2 no recorded run
chenwuperth/ClaRAN community (classifier label)
classifier basis not recorded on the link
2 ran · 2 no recorded run
SfTI-Robotics/ROS-label-node community (classifier label)
classifier basis not recorded on the link
2 ran · 1 no recorded run
casiopa/Madrid_Rooftops community
not in the paper's declared repositories
1 ran · 0 no recorded run
alexander-pv/maskrcnn_tf2 community
not in the paper's declared repositories
1 ran · 0 no recorded run
Qinhj07/ATOMCode community
not in the paper's declared repositories
1 ran · 0 no recorded run
Biantian/MscProject community
Papers with Code archive
1 ran · 0 no recorded run
alililia/ascend_maskrcnn_mobilenetv1 community (classifier label)
classifier basis not recorded on the link
1 ran · 0 no recorded run
dvl-tum/motsynth-baselines community
not in the paper's declared repositories
1 ran · 0 no recorded run
phykn/film-defect-detection community
not in the paper's declared repositories
0 ran · 1 no recorded run
FunctionStatusWhere it lives
AnchorGenerator Ran
ran on a synthesized input
Okery/PyTorch-Simple-MaskRCNN/pytorch_mask_rcnn/model/mask_rcnn.py
code served (permissive licence) · get_code("1325bdc51f31c55d")
How it ran

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

import torch
import numpy as np

# INIT_ARGS for AnchorGenerator.__init__(sizes, ratios)
INIT_ARGS = {
    'sizes': [32, 64, 128],
    'ratios': [0.5, 1.0, 2.0]
}

# ARGS for AnchorGenerator.__call__(feature, image_size)
# feature is a tensor with shape [..., H, W] where H, W are the grid dimensions
# image_size is a tuple (height, width) of the original image
feature = torch.randn(2, 256, 8, 6)  # batch=2, channels=256, height=8, width=6
image_size = (128, 96)  # original image size that corresponds to the feature map

ARGS = {
    'feature': feature,
    'image_size': image_size
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
BalancedPositiveNegativeSampler Ran
ran on a synthesized input
Okery/PyTorch-Simple-MaskRCNN/pytorch_mask_rcnn/model/mask_rcnn.py
code served (permissive licence) · get_code("f7fc8874ef491d1b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned tuple, ndim 2, 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

INIT_ARGS = {
    'num_samples': 8,
    'positive_fraction': 0.5
}

# Create a label tensor with both positive (1) and negative (0) samples
# Using 15 total samples: 7 positive and 8 negative to test sampling logic
label = torch.tensor([1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 0])

ARGS = {
    'label': label
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
BoxCoder Ran
ran on a synthesized input
Okery/PyTorch-Simple-MaskRCNN/pytorch_mask_rcnn/model/mask_rcnn.py
code served (permissive licence) · get_code("1c7d7c29761bd504")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 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 torch
import math

INIT_ARGS = {
    'weights': [1.0, 1.0, 1.0, 1.0],
    'bbox_xform_clip': math.log(1000.0 / 16)
}

ARGS = {
    'reference_box': torch.tensor([
        [10.0, 20.0, 50.0, 80.0],
        [5.0, 15.0, 45.0, 75.0]
    ]),
    'proposal': torch.tensor([
        [12.0, 22.0, 48.0, 78.0],
        [6.0, 16.0, 44.0, 74.0]
    ])
}

METHOD = 'encode'

from torch import nn

class BoxCoder:

    def __init__(self, weights, bbox_xform_clip=math.log(1000.0 / 16)):
        self.weights = weights
        self.bbox_xform_clip = bbox_xform_clip

    def encode(self, reference_box, proposal):
        """
        Encode a set of proposals with respect to some
        reference boxes

        Arguments:
            reference_boxes (Tensor[N, 4]): reference boxes
            proposals (Tensor[N, 4]): boxes to be encoded
        """
        width = proposal[:, 2] - proposal[:, 0]
        height = proposal[:, 3] - proposal[:, 1]
        ctr_x = proposal[:, 0] + 0.5 * width
        ctr_y = proposal[:, 1] + 0.5 * height
        gt_width = reference_box[:, 2] - reference_box[:, 0]
        gt_height = reference_box[:, 3] - reference_box[:, 1]
        gt_ctr_x = reference_box[:, 0] + 0.5 * gt_width
        gt_ctr_y = reference_box[:, 1] + 0.5 * gt_height
        dx = self.weights[0] * (gt_ctr_x - ctr_x) / width
        dy = self.weights[1] * (gt_ctr_y - ctr_y) / height
        dw = self.weights[2] * torch.log(gt_width / width)
        dh = self.weights[3] * torch.log(gt_height / height)
        delta = torch.stack((dx, dy, dw, dh), dim=1)
        return delta

    def decode(self, delta, box):
        """
        From a set of original boxes and encoded relative box offsets,
        get the decoded boxes.

        Arguments:
            delta (Tensor[N, 4]): encoded boxes.
            boxes (Tensor[N, 4]): reference boxes.
        """
        dx = delta[:, 0] / self.weights[0]
        dy = delta[:, 1] / self.weights[1]
        dw = delta[:, 2] / self.weights[2]
        dh = delta[:, 3] / self.weights[3]
        dw = torch.clamp(dw, max=self.bbox_xform_clip)
        dh = torch.clamp(dh, max=self.bbox_xform_clip)
        width = box[:, 2] - box[:, 0]
        height = box[:, 3] - box[:, 1]
        ctr_x = box[:, 0] + 0.5 * width
        ctr_y = box[:, 1] + 0.5 * height
        pred_ctr_x = dx * width + ctr_x
        pred_ctr_y = dy * height + ctr_y
        pred_w = torch.exp(dw) * width
        pred_h = torch.exp(dh) * height
        xmin = pred_ctr_x - 0.5 * pred_w
        ymin = pred_ctr_y - 0.5 * pred_h
        xmax = pred_ctr_x + 0.5 * pred_w
        ymax = pred_ctr_y + 0.5 * pred_h
        target = torch.stack((xmin, ymin, xmax, ymax), dim=1)
        return target
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
Config Ran
ran on a synthesized input
casiopa/Madrid_Rooftops/mrcnn/config.py
pointer only (licence: NONE) · get_code("999f238aed35c849")
How it ran

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

FastRCNNPredictor Ran
ran on a synthesized input
Okery/PyTorch-Simple-MaskRCNN/pytorch_mask_rcnn/model/mask_rcnn.py
code served (permissive licence) · get_code("b3e07db8b30c86d9")
How it ran

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

import torch
import numpy as np
from torch import nn

INIT_ARGS = {
    "in_channels": 4,
    "mid_channels": 8,
    "num_classes": 3,
}

ARGS = {
    "x": torch.randn(2, 4),
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
MaskRCNN Ran
ran on a synthesized input · constructed an object; no result was computed
alexander-pv/maskrcnn_tf2/src/model.py
pointer only (licence: NOASSERTION) · get_code("690138ef9c4b53a9")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, alexander-pv/maskrcnn_tf2 (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.

MaskRCNNPredictor Ran
ran on a synthesized input
Okery/PyTorch-Simple-MaskRCNN/pytorch_mask_rcnn/model/mask_rcnn.py
code served (permissive licence) · get_code("cd857827be084259")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 4, dtype family float, shape (2, 3, 16, 16) 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
from torch import nn
from collections import OrderedDict

class MaskRCNNPredictor(nn.Sequential):

    def __init__(self, in_channels, layers, dim_reduced, num_classes):
        """
        Arguments:
            in_channels (int)
            layers (Tuple[int])
            dim_reduced (int)
            num_classes (int)
        """
        d = OrderedDict()
        next_feature = in_channels
        for layer_idx, layer_features in enumerate(layers, 1):
            d['mask_fcn{}'.format(layer_idx)] = nn.Conv2d(next_feature, layer_features, 3, 1, 1)
            d['relu{}'.format(layer_idx)] = nn.ReLU(inplace=True)
            next_feature = layer_features
        d['mask_conv5'] = nn.ConvTranspose2d(next_feature, dim_reduced, 2, 2, 0)
        d['relu5'] = nn.ReLU(inplace=True)
        d['mask_fcn_logits'] = nn.Conv2d(dim_reduced, num_classes, 1, 1, 0)
        super().__init__(d)
        for name, param in self.named_parameters():
            if 'weight' in name:
                nn.init.kaiming_normal_(param, mode='fan_out', nonlinearity='relu')


INIT_ARGS = {
    'in_channels': 4,
    'layers': (8, 16),
    'dim_reduced': 6,
    'num_classes': 3
}

ARGS = {
    'input': torch.randn(2, 4, 8, 8)
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (2, 3, 16, 16) — shape (2, 3, 16, 16) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
PrRoIPool2D Ran
ran on a synthesized input · constructed an object; no result was computed
Qinhj07/ATOMCode/pytorch/prroi_pool/prroi_pool.py
code served (permissive licence) · get_code("f9314701324398e9")
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, PrRoIPool2D: 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

torch.manual_seed(0)

# The PrRoIPool2D module takes three parameters in __init__:
# - pooled_height: int
# - pooled_width: int
# - spatial_scale: float

# These are simple scalar parameters, so we just need to provide reasonable values
# The forward method expects features and rois tensors, but we're only constructing
# the module itself here, not calling forward.

ARGS = {
    'pooled_height': 7,
    'pooled_width': 7,
    'spatial_scale': 0.0625
}
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 PrRoIPool2D — 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 PrRoIPool2D 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
ROIAlign Ran
ran on a synthesized input
quocdat32461997/Mask_RCNN/models/mask_rcnn.py
code served (permissive licence) · get_code("2923771eb82a595b")
How it ran

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

import tensorflow as tf
import numpy as np

INIT_ARGS = {
    'image_shape': 224,
    'batch_size': 2,
    'crop_size': 7,
    'num_anchors': 9,
    'name': 'ROIAlign'
}

ARGS = {
    'features': tf.random.normal((2, 14, 14, 64)),
    'regions': tf.constant([
        [[0.1, 0.1, 0.3, 0.3], [0.2, 0.2, 0.4, 0.4], [0.3, 0.3, 0.5, 0.5],
         [0.1, 0.4, 0.3, 0.6], [0.2, 0.4, 0.4, 0.6], [0.3, 0.4, 0.5, 0.6],
         [0.1, 0.7, 0.3, 0.9], [0.2, 0.7, 0.4, 0.9], [0.3, 0.7, 0.5, 0.9]],
        [[0.1, 0.1, 0.3, 0.3], [0.2, 0.2, 0.4, 0.4], [0.3, 0.3, 0.5, 0.5],
         [0.1, 0.4, 0.3, 0.6], [0.2, 0.4, 0.4, 0.6], [0.3, 0.4, 0.5, 0.6],
         [0.1, 0.7, 0.3, 0.9], [0.2, 0.7, 0.4, 0.9], [0.3, 0.7, 0.5, 0.9]]
    ], dtype=tf.float32),
    'scores': tf.random.normal((2, 9, 2))
}

METHOD = 'call'

class ROIAlign(tf.keras.layers.Layer):
    """
    ROIAlign - layer to align feature maps with proposed regions
    """

    def __init__(self, image_shape, batch_size, crop_size=7, num_anchors=9, name='ROIAlign'):
        super(ROIAlign, self).__init__()
        self.image_shape = image_shape
        self.batch_size = batch_size
        self.num_anchors = num_anchors
        self.crop_size = crop_size

    def call(self, features, regions, scores):
        """
        Inputs:
            features - CONV feature maps from ResNet
                    in shaep of [batch_size, height, width, filters]
            regions - proposed bounding boxes from RPN
                    in shape of [batch_size, h x w x num_anchors, 4]
            scores- object detection for proposed bounding boxes from RPN
                    in shape of [batch_size, h x w x num_anchors, 2]
        Ouputs:
            features - feature maps aligned with proposed regions
                in shape of [batch_size x h x w x num_anchors, crop_height, crop_width, filters]
            regions - proposed regions
                in shape of [batch_size, h x w x num_anchors, 4]
            scores - object confidence
                in shape of [batch_size, h x w x num_anchors, 2]
        """
        h, w = features.shape[1:3]
        num_boxes = regions.shape[1]
        scale_h, scale_w = (h / self.image_shape, w / self.image_shape)
        '\n        ROIAlign - align region indices by diving [x/strides, y/strides]\n            that strides is the size gap between orgiinal image and\n            input conv feature map. Then, BILINEAR interpolation is performed\n            to align coordinates.\n        '
        box_indices = tf.reshape(tf.tile(tf.expand_dims(tf.range(self.batch_size), axis=-1), multiples=[1, num_boxes]), [-1])
        features = tf.image.crop_and_resize(features, tf.reshape(regions, (-1, 4)), box_indices=box_indices, crop_size=(self.crop_size, self.crop_size), name='cropping_objects')
        return (features, regions, scores)

roi_align = ROIAlign(**INIT_ARGS)
output = roi_align(**ARGS)
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
RPNHead Ran
ran on a synthesized input
Okery/PyTorch-Simple-MaskRCNN/pytorch_mask_rcnn/model/mask_rcnn.py
code served (permissive licence) · get_code("fad9d2935c3035e5")
How it ran

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

import torch
import torch.nn as nn
import torch.nn.functional as F

class RPNHead(nn.Module):

    def __init__(self, in_channels, num_anchors):
        super().__init__()
        self.conv = nn.Conv2d(in_channels, in_channels, 3, 1, 1)
        self.cls_logits = nn.Conv2d(in_channels, num_anchors, 1)
        self.bbox_pred = nn.Conv2d(in_channels, 4 * num_anchors, 1)
        for l in self.children():
            nn.init.normal_(l.weight, std=0.01)
            nn.init.constant_(l.bias, 0)

    def forward(self, x):
        x = F.relu(self.conv(x))
        logits = self.cls_logits(x)
        bbox_reg = self.bbox_pred(x)
        return (logits, bbox_reg)


INIT_ARGS = {
    'in_channels': 4,
    'num_anchors': 3,
}

ARGS = {
    'x': torch.randn(2, 4, 5, 6),
}

if __name__ == '__main__':
    model = RPNHead(**INIT_ARGS)
    output = model(**ARGS)
    print("Output shapes:")
    print(f"  logits: {output[0].shape}")
    print(f"  bbox_reg: {output[1].shape}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
ResNet Ran
ran on a synthesized input · constructed an object; no result was computed
quocdat32461997/Mask_RCNN/models/mask_rcnn.py
code served (permissive licence) · get_code("2f5268f616a76ae8")
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, ResNet: 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

ARGS = {
    'architecture': 'resnet50',
    'stage5': False,
    'train_bn': True,
    'name': 'ResNet'
}
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 ResNet — 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 ResNet 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_iou_types Ran
ran; our contract draft was wrong, not the code
Biantian/MscProject/MaskRCNN/engine.py
pointer only (licence: NONE) · get_code("eb050d9cb7cc6d18")
How it ran

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

apply_mask Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
RituYadav92/Radar-RGB-Attentive-Multimodal-Object-Detection/Radar_RGB_Camera_Object_Detection/mrcnn/visualize.py
code served (permissive licence) · get_code("cdda836085a5b1af")
How it ran

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

import numpy as np

# Create a small test image (height=4, width=3, channels=3)
image = np.random.rand(4, 3, 3).astype(np.float32) * 255

# Create a binary mask (height=4, width=3)
mask = np.array([
    [1, 0, 1],
    [0, 1, 0],
    [1, 1, 0],
    [0, 0, 1]
], dtype=np.int32)

# Define a color (RGB values between 0 and 1)
color = np.array([0.5, 0.3, 0.8])

# Alpha blending factor
alpha = 0.5

ARGS = {
    "image": image,
    "mask": mask,
    "color": color,
    "alpha": alpha
}
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 3, dtype family float, shape (4, 3, 3) — shape (4, 3, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
assign_boxes Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
charlesshang/fastmaskrcnn/libs/layers/assign.py
code served (permissive licence) · get_code("d419a20996a55b4d")
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 1, dtype family int, shape (3,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create a simple test case with ground truth boxes
# Shape (N, 5) where each entry is [x1, y1, x2, y2, cls]
# Create 3 boxes with different sizes to test layer assignment
gt_boxes = np.array([
    [10, 20, 50, 60, 1],      # Small box
    [0, 0, 100, 100, 2],      # Medium box
    [50, 50, 300, 300, 3],    # Large box
], dtype=np.float32)

ARGS = {
    "gt_boxes": gt_boxes,
    "min_k": 2,
    "max_k": 5,
}
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 1, dtype family int, shape (3,) — shape (3,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
batched_nms Ran
ran; our contract draft was wrong, not the code
ErikGDev/instance-segmentation/detectron2/layers/nms.py
pointer only (licence: Apache-2.0) · get_code("0df9d3b583fbc6cb")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, ErikGDev/instance-segmentation, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

bbox_overlaps Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hellohaozheng/maskrcnn-mindspore/dataset/dataset.py
code served (permissive licence) · get_code("877a057aa182bb54")
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, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create small bounding box arrays
# Bboxes are in format (x1, y1, x2, y2)
bboxes1 = np.array([
    [10, 10, 20, 20],
    [30, 30, 50, 50]
], dtype=np.int32)

bboxes2 = np.array([
    [15, 15, 25, 25],
    [40, 40, 60, 60],
    [100, 100, 110, 110]
], dtype=np.int32)

ARGS = {
    'bboxes1': bboxes1,
    'bboxes2': bboxes2,
    'mode': 'iou'
}
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, 3) — shape (2, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
box_iou Ran
ran; our contract draft was wrong, not the code
Okery/PyTorch-Simple-MaskRCNN/pytorch_mask_rcnn/model/mask_rcnn.py
code served (permissive licence) · get_code("46c0d05b31f0858a")
How it ran

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

import torch

torch.manual_seed(0)

# Create two sets of bounding boxes in format [x1, y1, x2, y2]
# box_a: N=2 boxes
box_a = torch.tensor([
    [0.0, 0.0, 10.0, 10.0],
    [5.0, 5.0, 15.0, 15.0]
], dtype=torch.float32)

# box_b: M=3 boxes
box_b = torch.tensor([
    [0.0, 0.0, 5.0, 5.0],
    [7.0, 7.0, 12.0, 12.0],
    [20.0, 20.0, 25.0, 25.0]
], dtype=torch.float32)

ARGS = {
    "box_a": box_a,
    "box_b": box_b
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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, 3) — shape (2, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
box_to_point8 Ran
ran, honoured the contract we drafted
chenwuperth/ClaRAN/common.py
code served (permissive licence) · get_code("59b659c3eb365fb3")
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 (8, 2) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function expects boxes as a tensor with shape (n, 4)
# where each row contains [x1, y1, x2, y2]
boxes = torch.tensor([
    [10.0, 20.0, 30.0, 40.0],
    [5.0, 15.0, 25.0, 35.0]
], dtype=torch.float32)

ARGS = {
    "boxes": boxes
}
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 (8, 2) — shape (8, 2) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
build_coco_results Ran
ran; our contract draft was wrong, not the code
RituYadav92/Radar-RGB-Attentive-Multimodal-Object-Detection/Radar_RGB_Camera_Object_Detection/coco/nucoco.py
code served (permissive licence) · get_code("7f280eb4a7351f25")
How it ran

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

import numpy as np

class MockDataset:
    def get_source_class_id(self, class_id, source):
        # Map class_id to a coco category_id
        # For source 'coco', return the class_id itself or a mapped version
        return class_id + 1

# Create mock arguments
dataset = MockDataset()

# image_ids: list of image identifiers
image_ids = [101, 102]

# rois: numpy array of shape (num_detections, 4) with bounding box coordinates [y1, x1, y2, x2]
rois = np.array([
    [10.0, 20.0, 50.0, 80.0],
    [15.0, 25.0, 55.0, 85.0]
], dtype=np.float32)

# class_ids: numpy array of class IDs for each detection
class_ids = np.array([1, 2], dtype=np.int32)

# scores: numpy array of confidence scores for each detection
scores = np.array([0.95, 0.87], dtype=np.float32)

ARGS = {
    "dataset": dataset,
    "image_ids": image_ids,
    "rois": rois,
    "class_ids": class_ids,
    "scores": scores
}
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 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
calcBoundingBoxParams Ran
ran; our contract draft was wrong, not the code
sbetageri/MaskRCNN/Utils.py
code served (permissive licence) · get_code("a22a6a153ea702d8")
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 math
import torch

torch.manual_seed(0)

# Construct valid arguments for calcBoundingBoxParams
# The function takes two parameters:
# - bbox: tuple of floats (x, y, w, h)
# - anchorBBox: tuple of floats (xa, ya, wa, ha)

bbox = (100.0, 150.0, 50.0, 75.0)
anchorBBox = (80.0, 120.0, 40.0, 60.0)

ARGS = {
    "bbox": bbox,
    "anchorBBox": anchorBBox
}
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 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
calculate_equivalent_diameter Ran
ran, violated the contract we drafted
maxfrei750/DeepParticleNet/dpn/utilities.py
code served (permissive licence) · get_code("b0552e0cd657d297")
How it ran

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

import numpy as np

# Create sample areas as a list of numeric values
areas = [10.0, 25.0, 50.0, 100.0]

ARGS = {
    "areas": areas
}
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 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
color_splash Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
deolipankaj/Stone_Detection_MRCNN/samples/stone/stone.py
code served (permissive licence) · get_code("191fdaa5da6fdd3a")
How it ran

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

import numpy as np
import skimage.color
import skimage.draw

# Create a small RGB image [height, width, 3]
height, width = 4, 5
image = np.random.randint(0, 256, size=(height, width, 3), dtype=np.uint8)

# Create an instance segmentation mask [height, width, instance_count]
# Using 2 instances
instance_count = 2
mask = np.random.rand(height, width, instance_count) > 0.7
mask = mask.astype(np.float32)

ARGS = {
    "image": image,
    "mask": mask,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, skimage — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family int, shape (4, 5, 3) — shape (4, 5, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_backbone_shapes Ran
ran; our contract draft was wrong, not the code
RituYadav92/Radar-RGB-Attentive-Multimodal-Object-Detection/Radar_RGB_Camera_Object_Detection/mrcnn/model.py
pointer only (licence: MIT); the stored copy get_code serves, from yubaoliu/rds-slam, is pointer only (licence: GPL-3.0) · get_code("ae91aee49740c295")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from yubaoliu/rds-slam, and GPL-3.0, as GitHub detects it on that repository, is not in the permissive set Syntology serves inline. 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.

compute_backbone_shapes Ran
ran; our contract draft was wrong, not the code
AKASH2907/bird-species-classification/mask_rcnn/mrcnn/model.py
pointer only (licence: MIT); the stored copy get_code serves, from 2000222/car-damage-detectionv0, is pointer only (licence: NONE) · get_code("fe2cec088a3329de")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from 2000222/car-damage-detectionv0, and GitHub detected no licence in that repository 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.

compute_backbone_shapes Ran
ran on a synthesized input
waspinator/deep-learning-explorer/mask-rcnn/libraries/mrcnn/model.py
code served (permissive licence) · get_code("e109baa006f999cb")
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 int, shape (4, 2) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import math
import numpy as np

class Config:
    def __init__(self):
        self.BACKBONE = 'resnet50'
        self.BACKBONE_STRIDES = [4, 8, 16, 32]

config = Config()
image_shape = (224, 320)

ARGS = {
    'config': config,
    'image_shape': image_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 int, shape (4, 2) — shape (4, 2) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_iou Ran
ran, violated the contract we drafted
RituYadav92/Radar-RGB-Attentive-Multimodal-Object-Detection/Radar_RGB_Camera_Object_Detection/mrcnn/utils.py
code served (permissive licence) · get_code("ae0c5e015d8cf734")
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 1, dtype family float, shape (2,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create sample bounding boxes
# box: 1D vector [y1, x1, y2, x2]
box = np.array([10.0, 20.0, 50.0, 80.0])

# boxes: [boxes_count, (y1, x1, y2, x2)]
boxes = np.array([
    [15.0, 25.0, 60.0, 90.0],
    [5.0, 10.0, 30.0, 40.0]
])

# Calculate box_area (area of the single box)
box_area = (box[2] - box[0]) * (box[3] - box[1])

# Calculate boxes_area (area of each box in boxes array)
boxes_area = (boxes[:, 2] - boxes[:, 0]) * (boxes[:, 3] - boxes[:, 1])

ARGS = {
    "box": box,
    "boxes": boxes,
    "box_area": box_area,
    "boxes_area": boxes_area
}
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 1, dtype family float, shape (2,) — shape (2,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_iou Ran
ran, violated the contract we drafted
itsasimiqbal/SeBRe/utils.py
code served (permissive licence) · get_code("b2aae18de5fa3893")
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 1, dtype family float, shape (2,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create a single box [y1, x1, y2, x2]
box = np.array([10.0, 20.0, 30.0, 40.0])

# Create multiple boxes for comparison
boxes = np.array([
    [12.0, 22.0, 28.0, 38.0],
    [5.0, 15.0, 35.0, 45.0]
])

# Calculate box area: (y2 - y1) * (x2 - x1)
box_area = (box[2] - box[0]) * (box[3] - box[1])

# Calculate areas for each box in boxes
boxes_area = np.array([
    (boxes[0, 2] - boxes[0, 0]) * (boxes[0, 3] - boxes[0, 1]),
    (boxes[1, 2] - boxes[1, 0]) * (boxes[1, 3] - boxes[1, 1])
])

ARGS = {
    "box": box,
    "boxes": boxes,
    "box_area": box_area,
    "boxes_area": boxes_area
}
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 1, dtype family float, shape (2,) — shape (2,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_overlaps Ran
ran, honoured the contract we drafted
deolipankaj/Stone_Detection_MRCNN/mrcnn/utils.py
code served (permissive licence) · get_code("9f81af6c8a2344a3")
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, 2) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create sample bounding boxes in format [y1, x1, y2, x2]
# boxes1: 3 boxes
boxes1 = np.array([
    [10, 20, 50, 60],
    [15, 25, 55, 65],
    [100, 100, 200, 200]
], dtype=np.float32)

# boxes2: 2 boxes
boxes2 = np.array([
    [12, 22, 48, 58],
    [110, 110, 190, 190]
], dtype=np.float32)

ARGS = {
    "boxes1": boxes1,
    "boxes2": boxes2
}
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, 2) — shape (3, 2) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_overlaps Ran
ran, honoured the contract we drafted
itsasimiqbal/SeBRe/utils.py
code served (permissive licence) · get_code("698f3241ee39ad75")
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, 2) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create sample bounding boxes in format [y1, x1, y2, x2]
# boxes1: 3 boxes
boxes1 = np.array([
    [10, 20, 50, 80],
    [30, 40, 70, 100],
    [5, 5, 25, 35]
], dtype=np.float32)

# boxes2: 2 boxes
boxes2 = np.array([
    [15, 25, 60, 90],
    [25, 35, 65, 95]
], dtype=np.float32)

ARGS = {
    "boxes1": boxes1,
    "boxes2": boxes2
}
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, 2) — shape (3, 2) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_overlaps Ran
ran, honoured the contract we drafted
RituYadav92/Radar-RGB-Attentive-Multimodal-Object-Detection/Radar_RGB_Camera_Object_Detection/mrcnn/utils.py
code served (permissive licence) · get_code("ce35a8bfbf575240")
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, 2) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create small bounding box arrays in [y1, x1, y2, x2] format
# boxes1: 3 boxes with format [y1, x1, y2, x2]
boxes1 = np.array([
    [10, 20, 50, 60],
    [15, 25, 55, 65],
    [100, 100, 150, 150]
], dtype=np.float32)

# boxes2: 2 boxes with format [y1, x1, y2, x2]
boxes2 = np.array([
    [12, 22, 48, 58],
    [200, 200, 250, 250]
], dtype=np.float32)

ARGS = {
    "boxes1": boxes1,
    "boxes2": boxes2,
}
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, 2) — shape (3, 2) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
condition Ran
ran; our contract draft was wrong, not the code
jremillard/images-to-osm/QuadKey/quadkey/util.py
code served (permissive licence) · get_code("5b9547b968ed893e")
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 function. 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 functools
import torch

torch.manual_seed(0)

# Define simple check functions for precondition and postcondition
def example_precondition(*args, **kwargs):
    # A precondition that checks if arguments are valid
    return True

def example_postcondition(retval):
    # A postcondition that checks the return value
    return retval is not None

# Define a simple function to decorate
def add_numbers(a, b):
    return a + b

# Test the condition decorator with both precondition and postcondition
ARGS = {
    "precondition": example_precondition,
    "postcondition": example_postcondition,
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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
config_ Ran
ran; our contract draft was wrong, not the code
alililia/ascend_maskrcnn_mobilenetv1/export.py
code served (permissive licence) · get_code("9df462e1d230bc54")
How it ran

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

import re
import numpy as np

class Config:
    def __init__(self):
        self.coco_classes = "person bicycle car dog cat"
        self.feature_shapes = ["128x256", "64x128", "32x64"]

cfg = Config()

ARGS = {
    'cfg': cfg
}
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 Config — a Config output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Config output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
conv_block Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
AKASH2907/bird-species-classification/mask_rcnn/mrcnn/model.py
code served (permissive licence) · get_code("719785e60bebf517")
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 KerasTensor. 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 keras.layers as KL
import numpy as np

# Create a small input tensor (batch_size=2, height=4, width=3, channels=5)
input_tensor = KL.Input(shape=(4, 3, 5))

ARGS = {
    'input_tensor': input_tensor,
    'kernel_size': 3,
    'filters': [16, 32, 64],
    'stage': 2,
    'block': 'a',
    'strides': (2, 2),
    'use_bias': True,
    'train_bn': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
keras, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type KerasTensor — a KerasTensor output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
conv_block Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
waspinator/deep-learning-explorer/mask-rcnn/libraries/mrcnn/model.py
code served (permissive licence) · get_code("918c5de88a445168")
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 KerasTensor. 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 keras
import keras.layers as KL
import numpy as np

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

# Create a small input tensor (batch=2, height=4, width=3, channels=64)
input_tensor = keras.Input(shape=(4, 3, 64))

# Define arguments for conv_block
ARGS = {
    'input_tensor': input_tensor,
    'kernel_size': 3,
    'filters': [64, 64, 256],  # list of 3 integers for nb_filter1, nb_filter2, nb_filter3
    'stage': 2,
    'block': 'a',
    'strides': (2, 2),
    'use_bias': True,
    'train_bn': True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
keras, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type KerasTensor — a KerasTensor output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
conv_block Ran
ran on a synthesized input
itsasimiqbal/SeBRe/model.py
code served (permissive licence) · get_code("f998b7fc598210b3")
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 KerasTensor. 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 keras.layers as KL
import keras
import numpy as np

# Create a small input tensor for the conv_block function
# Shape: (batch_size, height, width, channels)
input_tensor = keras.Input(shape=(8, 8, 3))

ARGS = {
    'input_tensor': input_tensor,
    'kernel_size': 3,
    'filters': [64, 64, 256],
    'stage': 3,
    'block': 'a',
    'strides': (2, 2),
    'use_bias': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
keras, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type KerasTensor — a KerasTensor output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
convert_basic_c2_names Ran
ran; our contract draft was wrong, not the code
ErikGDev/instance-segmentation/detectron2/checkpoint/c2_model_loading.py
pointer only (licence: Apache-2.0) · get_code("e8526a516b4f9206")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, ErikGDev/instance-segmentation, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

convert_bbox_to_z Ran
ran; our contract draft was wrong, not the code
ErikGDev/instance-segmentation/sort.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from chetanchawla/Sort-Tracker, is pointer only (licence: NONE) · get_code("90a45e51733f1779")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, ErikGDev/instance-segmentation, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

convert_c2_detectron_names Ran
ran; our contract draft was wrong, not the code
ErikGDev/instance-segmentation/detectron2/checkpoint/c2_model_loading.py
pointer only (licence: Apache-2.0) · get_code("52810b504f0d1066")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, ErikGDev/instance-segmentation, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

convert_x_to_bbox Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ErikGDev/instance-segmentation/sort.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from chetanchawla/Sort-Tracker, is pointer only (licence: NONE) · get_code("45940bb4051db020")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, ErikGDev/instance-segmentation, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

crop Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
charlesshang/fastmaskrcnn/libs/layers/crop.py
code served (permissive licence) · get_code("db26edf48d62a11f")
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 4, dtype family float, shape (2, 7, 7, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tensorflow as tf
import numpy as np

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

# Create tiny test tensors
batch_size = 2
height = 8
width = 8
channels = 3

# images: shape (N, H, W, C) - batch of 2, height 8, width 8, 3 channels
images = tf.constant(np.random.randn(batch_size, height, width, channels).astype(np.float32))

# boxes: ROIs in original image space, shape (N, 4) where each box is [x1, y1, x2, y2]
# Create 2 boxes with coordinates normalized to image dimensions
boxes = tf.constant([
    [1.0, 1.0, 5.0, 5.0],  # box 1
    [2.0, 2.0, 6.0, 6.0]   # box 2
], dtype=tf.float32)

# batch_inds: indices indicating which image in the batch each box belongs to
# shape (N,) - indicates batch index for each box
batch_inds = tf.constant([0, 1], dtype=tf.int32)

# stride: downsampling factor
stride = 1

# pooled_height: output height after cropping
pooled_height = 7

# pooled_width: output width after cropping
pooled_width = 7

# scope: name scope for the operation
scope = 'ROIAlign'

ARGS = {
    'images': images,
    'boxes': boxes,
    'batch_inds': batch_inds,
    'stride': stride,
    'pooled_height': pooled_height,
    'pooled_width': pooled_width,
    'scope': scope
}
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 4, dtype family float, shape (2, 7, 7, 3) — shape (2, 7, 7, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
crop_ Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
charlesshang/fastmaskrcnn/libs/layers/crop.py
code served (permissive licence) · get_code("5c3346882f6aec8d")
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. 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 small test tensors
batch_size = 2
height = 8
width = 6
channels = 3

# images: shape (N, H, W, C) - batch of 2 images, 8x6 spatial, 3 channels
images = tf.constant(np.random.randn(batch_size, height, width, channels).astype(np.float32))

# boxes: ROIs in original image coordinates [x1, y1, x2, y2]
# Shape (N, 4) where N is number of ROIs
# Create 4 boxes for our 2-image batch
num_boxes = 4
boxes = tf.constant([
    [1.0, 1.0, 4.0, 3.0],
    [2.0, 2.0, 5.0, 4.0],
    [0.5, 0.5, 3.5, 2.5],
    [1.5, 1.5, 4.5, 3.5]
], dtype=tf.float32)

# batch_inds: indices indicating which image in the batch each box belongs to
# Shape (num_boxes,) with values in range [0, batch_size)
batch_inds = tf.constant([0, 0, 1, 1], dtype=tf.int32)

# ih: original image height (integer)
ih = 32

# iw: original image width (integer)
iw = 24

# stride: downsampling stride (default 1)
stride = 1

# pooled_height: output height (default 7)
pooled_height = 7

# pooled_width: output width (default 7)
pooled_width = 7

# scope: name scope (default 'ROIAlign')
scope = 'ROIAlign'

ARGS = {
    'images': images,
    'boxes': boxes,
    'batch_inds': batch_inds,
    'ih': ih,
    'iw': iw,
    'stride': stride,
    'pooled_height': pooled_height,
    'pooled_width': pooled_width,
    'scope': scope
}
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 list — a list output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
draw_box Ran
ran; our contract draft was wrong, not the code
RituYadav92/Radar-RGB-Attentive-Multimodal-Object-Detection/Radar_RGB_Camera_Object_Detection/mrcnn/visualize.py
code served (permissive licence) · get_code("dc05d22f3d39bea6")
How it ran

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

import torch
import numpy as np

torch.manual_seed(0)

# Create a small image array (height=10, width=10, channels=3)
image = np.zeros((10, 10, 3), dtype=np.uint8)

# Define a bounding box as (y1, x1, y2, x2)
box = (1, 2, 7, 8)

# Define a color as a list of 3 RGB values
color = [255, 0, 0]  # red

ARGS = {
    "image": image,
    "box": box,
    "color": color
}
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 ndarray, ndim 3, dtype family int, shape (10, 10, 3) — shape (10, 10, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
euclidean_distance Ran
ran; our contract draft was wrong, not the code
maxfrei750/FibeR-CNN/fibercnn/modeling/losses.py
code served (permissive licence) · get_code("4ec42dd9d2a8b00f")
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 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

torch.manual_seed(0)

# The function expects pt1 and pt2 to be indexable objects with at least 2 elements
# (accessed via [0] and [1]). These are typically 2D points represented as tuples,
# lists, or tensors with 2 coordinates.

pt1 = torch.tensor([1.0, 2.0])
pt2 = torch.tensor([4.0, 6.0])

ARGS = {
    "pt1": pt1,
    "pt2": pt2,
}
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 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
expand_detection Ran
ran; our contract draft was wrong, not the code
Okery/PyTorch-Simple-MaskRCNN/pytorch_mask_rcnn/model/mask_rcnn.py
code served (permissive licence) · get_code("058977fec9eddec0")
How it ran

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

import torch

torch.manual_seed(0)

# mask: a tensor that will be padded
# The function accesses mask.shape[-1], so it needs at least 1 dimension
# It's padded with (padding,) * 4, meaning 2D spatial padding
# Make it a small 2D tensor: batch_size x spatial_dim
mask = torch.randn(2, 8)

# box: tensor of bounding boxes
# The function accesses box[:, 0], box[:, 1], box[:, 2], box[:, 3]
# So it needs shape (N, 4) where N is batch size
# Format is [x0, y0, x1, y1]
box = torch.tensor([
    [10.0, 20.0, 50.0, 80.0],
    [15.0, 25.0, 60.0, 90.0]
], dtype=torch.float32)

# padding: scalar integer for padding amount
padding = 4

ARGS = {
    "mask": mask,
    "box": box,
    "padding": padding
}
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 tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
extract_bbox_boxes Ran
ran, honoured the contract we drafted
RituYadav92/Radar-RGB-Attentive-Multimodal-Object-Detection/Radar_RGB_Camera_Object_Detection/mrcnn/utils.py
code served (permissive licence) · get_code("f5f8fd02f09d1b8a")
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 int, 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 a small test case with 2 instances (num_instances=2)
# Each instance is a 4x5 boolean mask (height=4, width=5)
# Shape will be [num_instances, height, width]

# Instance 1: True values at some coordinates
mask1 = np.zeros((4, 5), dtype=bool)
mask1[1:3, 2:4] = True  # Creates a rectangular region

# Instance 2: True values at different coordinates
mask2 = np.zeros((4, 5), dtype=bool)
mask2[0:2, 1:3] = True  # Creates another rectangular region

# Stack into shape [num_instances, height, width]
bbox = np.stack([mask1, mask2], axis=0)

ARGS = {
    "bbox": bbox
}
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 int, 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
extract_bboxes Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
deolipankaj/Stone_Detection_MRCNN/mrcnn/utils.py
code served (permissive licence) · get_code("d2c9b72e23d9588a")
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 int, 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

# Create a simple test mask with shape [height, width, num_instances]
# Let's use height=5, width=6, num_instances=3
height = 5
width = 6
num_instances = 3

mask = np.zeros((height, width, num_instances), dtype=np.uint8)

# Instance 0: small rectangle in top-left
mask[1:3, 1:3, 0] = 1

# Instance 1: small rectangle in bottom-right
mask[3:5, 4:6, 1] = 1

# Instance 2: single pixel
mask[2, 3, 2] = 1

ARGS = {
    "mask": mask
}
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 int, 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
f1_score Ran
ran, honoured the contract we drafted
AKASH2907/bird-species-classification/evaluate.py
code served (permissive licence) · get_code("7a27a90793b810e0")
How it ran

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

import numpy as np

# Create a small 16x16 confusion matrix for testing
# This represents classification results across 16 classes
np.random.seed(0)
confusion_matrix = np.random.rand(16, 16)
# Normalize to make it more realistic (values between 0-100)
confusion_matrix = (confusion_matrix * 100).astype(int)

# Calculate precision manually
precision_val = 0
for i in range(16):
    tp = confusion_matrix[i][i]
    fp = np.sum(confusion_matrix[:, i])
    if fp != 0:
        precision_val += tp / fp
precision_val = precision_val / 16

# Calculate recall manually
recall_val = 0
for i in range(16):
    tp = confusion_matrix[i][i]
    fn = np.sum(confusion_matrix[i, :])
    if fn != 0:
        recall_val += tp / fn
recall_val = recall_val / 16

ARGS = {
    'precision': precision_val,
    'recall': recall_val
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
fcn_resnet50_imagenet_weights_path Ran
ran on a synthesized input
waspinator/deep-learning-explorer/semantic-segmentation/libraries/semantic/models.py
code served (permissive licence) · get_code("170625e697451c36")
How it ran

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

import os

def fcn_resnet50_imagenet_weights_path(cache_dir='../../data'):
    return os.path.join(cache_dir, 'weights', 'fcn_resnet50_weights_tf_dim_ordering_tf_kernels.h5')

ARGS = {
    'cache_dir': '../../data'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
find_mask_centre Ran
ran, honoured the contract we drafted
SfTI-Robotics/ROS-label-node/ros_colour_node.py
pointer only (licence: Apache-2.0) · get_code("db138f55e11c9fcd")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, SfTI-Robotics/ROS-label-node, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

find_median_depth Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
SfTI-Robotics/ROS-label-node/ros_colour_node.py
pointer only (licence: Apache-2.0) · get_code("a977bdfb32032057")
How it ran

The body of this sample is withheld: Apache-2.0, as GitHub detects it on this paper's repository, SfTI-Robotics/ROS-label-node, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

frechet_distance Ran
ran; our contract draft was wrong, not the code
maxfrei750/FibeR-CNN/fibercnn/modeling/losses.py
code served (permissive licence) · get_code("1c40c7b937c2dee3")
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 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

torch.manual_seed(0)

# P and Q are arrays of 2-element arrays (points)
# Create two simple polygonal lines with 2D points
P = torch.tensor([
    [0.0, 0.0],
    [1.0, 1.0],
    [2.0, 0.5]
], device='cpu')

Q = torch.tensor([
    [0.0, 0.0],
    [1.5, 1.5],
    [2.5, 0.3]
], device='cpu')

device = 'cpu'

ARGS = {
    'P': P,
    'Q': Q,
    'device': device
}
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 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
getBoundingBoxes Ran
ran, honoured the contract we drafted
sbetageri/MaskRCNN/Utils.py
code served (permissive licence) · get_code("758f01cfe36c9503")
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 2, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Construct annotations with bounding boxes
annotations = [
    {'bbox': [10, 20, 100, 150]},
    {'bbox': [50, 60, 200, 250]}
]

ARGS = {
    'annotations': annotations
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, 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
get_ax Ran
ran; our contract draft was wrong, not the code
itsasimiqbal/SeBRe/visualize.py
code served (permissive licence) · get_code("e0532d01052a38df")
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, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import matplotlib.pyplot as plt

ARGS = {
    "rows": 2,
    "cols": 3,
    "size": 16
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib — 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, 3) — shape (2, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_ax Ran
ran; our contract draft was wrong, not the code
RituYadav92/Radar-RGB-Attentive-Multimodal-Object-Detection/Radar_RGB_Camera_Object_Detection/coco/nucoco.py
code served (permissive licence) · get_code("41b8f24cef813f2d")
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, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import matplotlib.pyplot as plt

ARGS = {
    "rows": 2,
    "cols": 3,
    "size": 16
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib — 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, 3) — shape (2, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_ax Ran
ran; our contract draft was wrong, not the code
hellohaozheng/maskrcnn-mindspore/infer.py
code served (permissive licence) · get_code("9bac464cd3083481")
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, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import matplotlib.pyplot as plt

ARGS = {
    "rows": 2,
    "cols": 3,
    "size": 16
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib — 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, 3) — shape (2, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_ax Ran
ran; our contract draft was wrong, not the code
jremillard/images-to-osm/train_shapes.py
code served (permissive licence) · get_code("8cfb49cfabce52c6")
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, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import matplotlib.pyplot as plt

# Define ARGS dict with all parameters for get_ax
ARGS = {
    "rows": 2,
    "cols": 3,
    "size": 8
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib — 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, 3) — shape (2, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_axis Ran
ran; our contract draft was wrong, not the code
maxfrei750/DeepParticleNet/dpn/visualize.py
code served (permissive licence) · get_code("9ba88f2169cec310")
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, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import matplotlib.pyplot as plt

ARGS = {
    "rows": 2,
    "cols": 3,
    "size": 32,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib — 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, 3) — shape (2, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_group_gn Ran
ran on a synthesized input
facebookresearch/maskrcnn-benchmark/maskrcnn_benchmark/modeling/make_layers.py
pointer only (licence: MIT); the stored copy get_code serves, from JoyHuYY1412/LST_LVIS, is pointer only (licence: MIT) · get_code("83c64313d0501174")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, facebookresearch/maskrcnn-benchmark, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_major_bbox_side_length Ran
ran, honoured the contract we drafted
maxfrei750/DeepParticleNet/dpn/utilities.py
code served (permissive licence) · get_code("e035b60ab83add6c")
How it ran

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

import numpy as np

# Construct valid arguments for get_major_bbox_side_length
# The function expects bboxes in format [y1, x1, y2, x2] for each bbox

bboxes = np.array([
    [10.0, 20.0, 50.0, 80.0],  # bbox 1: height=40, width=60 (width is major)
    [5.0, 15.0, 35.0, 45.0],   # bbox 2: height=30, width=30 (equal)
    [0.0, 0.0, 100.0, 30.0],   # bbox 3: height=100, width=30 (height is major)
])

ARGS = {
    "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 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
get_maximum_feret_diameter Ran
ran, honoured the contract we drafted
maxfrei750/DeepParticleNet/dpn/utilities.py
code served (permissive licence) · get_code("e27952fa526b4d8f")
How it ran

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

import numpy as np
from scipy.spatial.distance import pdist
from skimage.morphology import convex_hull_image
from skimage.measure import find_contours

# Create sample masks as numpy arrays
# Masks should be 2D boolean arrays
mask1 = np.zeros((10, 10), dtype=bool)
mask1[2:8, 2:8] = True

mask2 = np.zeros((12, 12), dtype=bool)
mask2[3:9, 3:9] = True

masks = [mask1, mask2]

ARGS = {
    'masks': masks
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, skimage — 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

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

Also present in other papers' code

Of 140 samples lifted from this paper's linked repositories, 140 carry a function identity and 0 do not. Of the 133 distinct functions with an identity, 48 are also present in other papers whose code we hold (20 with at least one paper dated earlier, 2 the same month, 46 later) and 85 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
convert_basic_c2_names 45 other papers
45 later
1804.08864 (2018-04)
Learning to See the Invisible: End-to-End Trainable Amodal Instance Segmentation
1901.08164 (2019-01)
Decoupled Greedy Learning of CNNs
1904.07850 (2019-04)
Objects as Points
and 42 more not named here
interpolate 38 other papers
38 later
1803.03243 (2018-03)
Domain Adaptive Faster R-CNN for Object Detection in the Wild
1807.08865 (2018-07)
StereoNet: Guided Hierarchical Refinement for Real-Time Edge-Aware Depth Prediction
1903.00241 (2019-03)
Mask Scoring R-CNN
and 35 more not named here
convert_c2_detectron_names 29 other papers
29 later
1804.08864 (2018-04)
Learning to See the Invisible: End-to-End Trainable Amodal Instance Segmentation
1901.08164 (2019-01)
Decoupled Greedy Learning of CNNs
1904.07850 (2019-04)
Objects as Points
and 26 more not named here
pad_masks 22 other papers
22 later
1804.08864 (2018-04)
Learning to See the Invisible: End-to-End Trainable Amodal Instance Segmentation
1908.07836 (2019-08)
PubLayNet: largest dataset ever for document layout analysis
2003.05176 (2020-03)
Equalization Loss for Long-Tailed Object Recognition
and 19 more not named here
paste_mask_in_image_old 22 other papers
22 later
1804.08864 (2018-04)
Learning to See the Invisible: End-to-End Trainable Amodal Instance Segmentation
1908.07836 (2019-08)
PubLayNet: largest dataset ever for document layout analysis
2003.05176 (2020-03)
Equalization Loss for Long-Tailed Object Recognition
and 19 more not named here
smooth_l1_loss 16 other papers
16 later
1903.00241 (2019-03)
Mask Scoring R-CNN
1904.01169 (2019-04)
Res2Net: A New Multi-scale Backbone Architecture
1904.01355 (2019-04)
FCOS: Fully Convolutional One-Stage Object Detection
and 13 more not named here
intersect 14 other papers
2 dated earlier, 1 the same month, 11 later
1409.1556 (2014-09)
Very Deep Convolutional Networks for Large-Scale Image Recognition
1512.02325 (2015-12)
SSD: Single Shot MultiBox Detector
1703.07332 (2017-03)
How far are we from solving the 2D & 3D Face Alignment problem? (and a dataset of 230,000 3D facial landmarks)
and 11 more not named here
nms_rotated 14 other papers
14 later
1804.08864 (2018-04)
Learning to See the Invisible: End-to-End Trainable Amodal Instance Segmentation
1908.07836 (2019-08)
PubLayNet: largest dataset ever for document layout analysis
2003.05176 (2020-03)
Equalization Loss for Long-Tailed Object Recognition
and 11 more not named here
batched_nms 12 other papers
12 later
1804.08864 (2018-04)
Learning to See the Invisible: End-to-End Trainable Amodal Instance Segmentation
1908.07836 (2019-08)
PubLayNet: largest dataset ever for document layout analysis
2003.05176 (2020-03)
Equalization Loss for Long-Tailed Object Recognition
and 9 more not named here
batched_nms_rotated 12 other papers
12 later
1804.08864 (2018-04)
Learning to See the Invisible: End-to-End Trainable Amodal Instance Segmentation
1908.07836 (2019-08)
PubLayNet: largest dataset ever for document layout analysis
2003.05176 (2020-03)
Equalization Loss for Long-Tailed Object Recognition
and 9 more not named here
point_form 12 other papers
2 dated earlier, 10 later
1409.1556 (2014-09)
Very Deep Convolutional Networks for Large-Scale Image Recognition
1512.02325 (2015-12)
SSD: Single Shot MultiBox Detector
1901.02446 (2019-01)
Panoptic Feature Pyramid Networks
and 9 more not named here
compute_backbone_shapes 10 other papers
2 dated earlier, 8 later
1612.03242 (2016-12)
StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networks
1702.01983 (2017-02)
Face Aging With Conditional Generative Adversarial Networks
1803.01534 (2018-03)
Path Aggregation Network for Instance Segmentation
and 7 more not named here
center_size 9 other papers
2 dated earlier, 7 later
1409.1556 (2014-09)
Very Deep Convolutional Networks for Large-Scale Image Recognition
1512.02325 (2015-12)
SSD: Single Shot MultiBox Detector
1901.02446 (2019-01)
Panoptic Feature Pyramid Networks
and 6 more not named here
compute_iou 9 other papers
2 dated earlier, 7 later
1612.03242 (2016-12)
StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networks
1702.01983 (2017-02)
Face Aging With Conditional Generative Adversarial Networks
1808.02473 (2018-08)
SketchyScene: Richly-Annotated Scene Sketches
and 6 more not named here
compute_overlaps 9 other papers
2 dated earlier, 7 later
1612.03242 (2016-12)
StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networks
1702.01983 (2017-02)
Face Aging With Conditional Generative Adversarial Networks
1808.02473 (2018-08)
SketchyScene: Richly-Annotated Scene Sketches
and 6 more not named here
extract_bboxes 9 other papers
2 dated earlier, 7 later
1612.03242 (2016-12)
StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networks
1702.01983 (2017-02)
Face Aging With Conditional Generative Adversarial Networks
1808.02473 (2018-08)
SketchyScene: Richly-Annotated Scene Sketches
and 6 more not named here
random_colors 9 other papers
2 dated earlier, 7 later
1612.03242 (2016-12)
StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networks
1702.01983 (2017-02)
Face Aging With Conditional Generative Adversarial Networks
1901.02970 (2019-01)
Normalized Object Coordinate Space for Category-Level 6D Object Pose and Size Estimation
and 6 more not named here
conv_block 8 other papers
2 dated earlier, 6 later
1612.03242 (2016-12)
StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networks
1702.01983 (2017-02)
Face Aging With Conditional Generative Adversarial Networks
1912.08193 (2019-12)
PointRend: Image Segmentation as Rendering
and 5 more not named here
identity_block 8 other papers
2 dated earlier, 6 later
1612.03242 (2016-12)
StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networks
1702.01983 (2017-02)
Face Aging With Conditional Generative Adversarial Networks
1912.08193 (2019-12)
PointRend: Image Segmentation as Rendering
and 5 more not named here
sigmoid_focal_loss_cpu 7 other papers
7 later
1904.01355 (2019-04)
FCOS: Fully Convolutional One-Stage Object Detection
2002.12204 (2020-02)
Visual Commonsense R-CNN
2007.07986 (2020-07)
Boosting Weakly Supervised Object Detection with Progressive Knowledge Transfer
and 4 more not named here

Shown: the 20 functions present in the most other papers. 28 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

We present a conceptually simple, flexible, and general framework for object instance segmentation. Our approach efficiently detects objects in an image while simultaneously generating a high-quality segmentation mask for each instance. The method, called Mask R-CNN, extends Faster R-CNN by adding a branch for predicting an object mask in parallel with the existing branch for bounding box recognition. Mask R-CNN is simple to train and adds only a small overhead to Faster R-CNN, running at 5 fps. Moreover, Mask R-CNN is easy to generalize to other tasks, e.g., allowing us to estimate human poses in the same framework. We show top results in all three tracks of the COCO suite of challenges, including instance segmentation, boundingbox object detection, and person keypoint detection. Without bells and whistles, Mask R-CNN outperforms all existing, single-model entries on every task, including the COCO 2016 challenge winners. We hope our simple and effective approach will serve as a solid baseline and help ease future research in instance-level recognition. Code has been made available at: https://github.com/ facebookresearch/Detectron.

For agents

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

get_harvested_code_for_paper("1703.06870")
get_code_for_paper("1703.06870")
have("1703.06870")

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

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

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

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

Connect an agent — have() is free.