| BatchNorm2d |
Ran ran on a synthesized input · constructed an object; no result was computed |
SharifElfouly/easy-model-zoo/easy_model_zoo/bisenet/bisenet.py code served (permissive licence) · get_code("d3697beae5965412") How it ranRan 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, BatchNorm2d: 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)
use_cuda = False
def BatchNorm2d(out_chan):
if use_cuda:
return nn.SyncBatchNorm.convert_sync_batchnorm(nn.BatchNorm2d(out_chan))
else:
return nn.BatchNorm2d(out_chan)
ARGS = {
"out_chan": 64
}
- 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 BatchNorm2d — 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 BatchNorm2d 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
|
| ConvBlock |
Ran ran on a synthesized input |
xuannianz/EfficientDet/model.py code served (permissive licence) · get_code("a357296d5e1f5ba3") How it ranRan 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 tensorflow as tf
import numpy as np
ARGS = {
'num_channels': 32,
'kernel_size': 3,
'strides': 1,
'name': 'test_block',
'freeze_bn': False
}
- 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 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
|
| anchors_for_shape |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
toandaominh1997/EfficientDet.Pytorch/models/module.py code served (permissive licence) · get_code("940d81699138177c") How it ranRan 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 (56700, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
# Analyze the function to understand what arguments are needed
# anchors_for_shape(image_shape, pyramid_levels=None, ratios=None, scales=None, strides=None, sizes=None, shapes_callback=None)
# Looking at the function body:
# - image_shape is used as image_shape[:2] to extract first 2 elements
# - pyramid_levels is iterated over with enumerate
# - ratios and scales are passed to generate_anchors
# - strides and sizes are indexed by idx (pyramid_levels index)
# - shapes_callback is not used in the body
# Set up basic parameters
image_shape = (640, 480, 3) # height, width, channels
pyramid_levels = [3, 4, 5] # 3 different pyramid levels
ratios = np.array([0.5, 1, 2])
scales = np.array([2 ** 0, 2 ** (1.0 / 3.0), 2 ** (2.0 / 3.0)])
strides = np.array([8, 16, 32]) # stride for each pyramid level
sizes = np.array([32, 64, 128]) # base size for each pyramid level
shapes_callback = None
ARGS = {
'image_shape': image_shape,
'pyramid_levels': pyramid_levels,
'ratios': ratios,
'scales': scales,
'strides': strides,
'sizes': sizes,
'shapes_callback': shapes_callback,
}
- 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 (56700, 4) — shape (56700, 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
|
| aspectaware_resize_padding |
Ran ran on a synthesized input |
SharifElfouly/easy-model-zoo/easy_model_zoo/efficientdet/efficientdetmodel.py code served (permissive licence) · get_code("adbb9cd9ba4e566a") How it ranRan 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 cv2
import numpy as np
# Create a small test image with shape (height, width, channels)
# Using distinct dimensions: 8x6x3 so we can probe the shapes later
image = np.random.randint(0, 256, size=(8, 6, 3), dtype=np.uint8).astype(np.float32)
# Define the arguments
ARGS = {
'image': image,
'width': 16,
'height': 16,
'interpolation': cv2.INTER_LINEAR,
'means': np.array([104.0, 117.0, 123.0], dtype=np.float32)
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- cv2, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type tuple — a tuple output has no array shape of its own; none is stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| batched_nms |
Ran ran on a synthesized input |
GuoQuanhao/EfficientDet-Paddle/utils/batch_nms.py code served (permissive licence) · get_code("50373489e7c21793") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
# Create small sample data for batched_nms
# boxes: (N, 4) array with (x1, y1, x2, y2) format
boxes = np.array([
[10.0, 10.0, 20.0, 20.0],
[15.0, 15.0, 25.0, 25.0],
[100.0, 100.0, 110.0, 110.0],
[105.0, 105.0, 115.0, 115.0]
], dtype=np.float32)
# scores: (N,) array with confidence scores
scores = np.array([0.9, 0.8, 0.85, 0.7], dtype=np.float32)
# idxs: (N,) array with category indices
idxs = np.array([0, 0, 1, 1], dtype=np.int64)
# iou_threshold: float value for IoU threshold
iou_threshold = 0.3
ARGS = {
'boxes': boxes,
'scores': scores,
'idxs': idxs,
'iou_threshold': iou_threshold
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type list, ndim 1, dtype family int — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| batched_nms |
Ran ran on a synthesized input |
lyqcom/efficientdet/src/nms.py code served (permissive licence) · get_code("f7f08e847945b8ea") How it ranRan 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 (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 test data for batched_nms
np.random.seed(0)
# boxes: shape (N, 4) representing bounding boxes [x1, y1, x2, y2]
boxes = np.array([
[10.0, 10.0, 50.0, 50.0],
[15.0, 15.0, 55.0, 55.0],
[100.0, 100.0, 150.0, 150.0],
[105.0, 105.0, 155.0, 155.0]
], dtype=np.float32)
# scores: shape (N,) representing confidence scores
scores = np.array([0.9, 0.8, 0.95, 0.85], dtype=np.float32)
# idxs: shape (N,) representing class indices
idxs = np.array([0, 0, 1, 1], dtype=np.int64)
# iou_threshold: float threshold for NMS
iou_threshold = 0.5
ARGS = {
"boxes": boxes,
"scores": scores,
"idxs": idxs,
"iou_threshold": iou_threshold
}
- 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 (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
|
| bbox_transform_inv |
Ran ran on a synthesized input |
xuannianz/EfficientDet/layers.py code served (permissive licence) · get_code("8a24d71a96af0391") How it ranRan 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 SymbolicTensor. 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
# Create small test tensors for boxes and deltas
boxes = tf.constant([
[10.0, 20.0, 50.0, 60.0],
[30.0, 40.0, 80.0, 100.0]
], dtype=tf.float32)
deltas = tf.constant([
[0.1, 0.2, 0.3, 0.4],
[0.05, 0.15, 0.25, 0.35]
], dtype=tf.float32)
scale_factors = [1.0, 1.0, 1.0, 1.0]
ARGS = {
"boxes": boxes,
"deltas": deltas,
"scale_factors": scale_factors
}
- 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 SymbolicTensor — a SymbolicTensor 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
|
| calc_iou |
Ran ran on a synthesized input |
SharifElfouly/easy-model-zoo/easy_model_zoo/efficientdet/efficientdet/loss.py code served (permissive licence) · get_code("9b3d320614140152") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 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)
# a and b are tensors of bounding boxes in format [x1, y1, x2, y2]
# a has shape (batch_size_a, 4)
# b has shape (batch_size_b, 4)
# The function computes IoU between all pairs of boxes from a and b
a = torch.tensor([
[0.0, 0.0, 2.0, 2.0],
[1.0, 1.0, 3.0, 3.0]
], dtype=torch.float32)
b = torch.tensor([
[0.5, 0.5, 2.5, 2.5],
[1.5, 1.5, 4.0, 4.0]
], dtype=torch.float32)
ARGS = {
'a': a,
'b': b
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Tensor, ndim 2, dtype family float, shape (2, 2) — shape (2, 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
|
| calc_iou |
Ran ran on a synthesized input |
signatrix/efficientdet/src/loss.py code served (permissive licence) · get_code("f4a9f170c94dd553") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 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 small tensor arguments for bounding boxes
# Format: [x_min, y_min, x_max, y_max] for each box
# a: anchor boxes, shape (2, 4)
a = torch.tensor([
[0.0, 0.0, 2.0, 2.0],
[1.0, 1.0, 3.0, 3.0]
], dtype=torch.float32)
# b: ground truth boxes, shape (3, 4)
b = torch.tensor([
[0.5, 0.5, 2.5, 2.5],
[1.5, 1.5, 3.5, 3.5],
[2.0, 2.0, 4.0, 4.0]
], dtype=torch.float32)
ARGS = {
'a': a,
'b': b
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type 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
|
| clipBoxes |
Ran ran on a synthesized input |
lyqcom/efficientdet/src/utils.py code served (permissive licence) · get_code("b1f5f075b76392b9") How it ranRan 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 (2, 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 valid arguments for clipBoxes function
# boxes: ndarray of shape (batch, num_boxes, 4) containing bounding boxes
# img: ndarray of shape (batch, channels, height, width) - image tensor
batch_size = 2
num_boxes = 3
channels = 3
height = 480
width = 640
# Create boxes array with some values that need clipping
# Shape: (batch, num_boxes, 4) - coordinates can be (x1, y1, x2, y2)
boxes = np.array([
[
[-10, -5, 700, 500], # Some values overflow
[10, 20, 630, 470], # Within bounds
[0, 0, 639, 479] # At boundaries
],
[
[5, 10, 645, 490], # x2 overflows width
[100, 100, 200, 200], # Within bounds
[-50, -20, 500, 450] # x1, y1 underflow
]
], dtype=np.float32)
# Create image array with shape (batch, channels, height, width)
img = np.random.randn(batch_size, channels, height, width).astype(np.float32)
ARGS = {
"boxes": boxes,
"img": img
}
- 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 (2, 3, 4) — shape (2, 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
|
| clip_boxes_ |
Ran ran on a synthesized input |
sevakon/efficientdet/utils/anchors.py code served (permissive licence) · get_code("fd3c92ef91740dc0") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 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
torch.manual_seed(0)
# boxes: a tensor of bounding boxes with shape (batch, 4)
# The function calls .clamp(), .min() on it, so it needs to be a torch.Tensor
boxes = torch.tensor([
[1.0, 2.0, 3.0, 4.0],
[0.5, 1.5, 2.5, 3.5]
])
# size: a tensor that will be concatenated with itself
# The function calls torch.cat([size, size], dim=0)
# So size should be 1D tensor with 2 elements
size = torch.tensor([5.0, 6.0])
ARGS = {
"boxes": boxes,
"size": size
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Tensor, ndim 2, dtype family float, shape (2, 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
|
| collater |
Ran ran on a synthesized input |
GuoQuanhao/EfficientDet-Paddle/efficientdet/dataset.py code served (permissive licence) · get_code("1a2f8db3b80e6f37") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
# Create sample data items with the required structure
data_item_1 = {
'img': np.random.randint(0, 256, (4, 5, 3), dtype=np.uint8), # height=4, width=5, channels=3
'annot': np.array([[10.0, 20.0, 30.0, 40.0, 1.0], [50.0, 60.0, 70.0, 80.0, 2.0]], dtype=np.float32), # 2 annotations with 5 values each
'scale': 1.0
}
data_item_2 = {
'img': np.random.randint(0, 256, (4, 5, 3), dtype=np.uint8), # same size
'annot': np.array([[15.0, 25.0, 35.0, 45.0, 1.0]], dtype=np.float32), # 1 annotation
'scale': 1.5
}
data_item_3 = {
'img': np.random.randint(0, 256, (4, 5, 3), dtype=np.uint8),
'annot': np.array([], dtype=np.float32).reshape(0, 5), # 0 annotations
'scale': 2.0
}
# Create batch of data
data = [data_item_1, data_item_2, data_item_3]
ARGS = {
'data': data
}
- 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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| collater |
Ran ran on a synthesized input |
SharifElfouly/easy-model-zoo/easy_model_zoo/efficientdet/efficientdet/dataset.py code served (permissive licence) · get_code("089b0c6b3e840e5f") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import numpy as np
torch.manual_seed(0)
# Create sample data items with the required keys
# Each item needs 'img', 'annot', and 'scale'
# First item: image 4x3 pixels, RGB (3 channels), 2 annotations
img1 = np.random.rand(4, 3, 3).astype(np.float32)
annot1 = torch.tensor([[10.0, 20.0, 30.0, 40.0, 1.0],
[50.0, 60.0, 70.0, 80.0, 2.0]], dtype=torch.float32)
scale1 = 1.0
item1 = {
'img': img1,
'annot': annot1,
'scale': scale1
}
# Second item: image 4x3 pixels, RGB (3 channels), 1 annotation
img2 = np.random.rand(4, 3, 3).astype(np.float32)
annot2 = torch.tensor([[15.0, 25.0, 35.0, 45.0, 3.0]], dtype=torch.float32)
scale2 = 0.5
item2 = {
'img': img2,
'annot': annot2,
'scale': scale2
}
# Create batch data
data = [item1, item2]
ARGS = {
'data': data
}
- 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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| compute_shape |
Ran ran, violated the contract we drafted |
signatrix/efficientdet/src/utils.py code served (permissive licence) · get_code("ba85bbf2855c2ff4") How it ranRan 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 numpy as np
# Construct arguments for compute_shape function
image_shape = (480, 640, 3) # Height, Width, Channels - typical image shape
pyramid_levels = [0, 1, 2, 3] # Levels for image pyramid (downsampling factors)
ARGS = {
'image_shape': image_shape,
'pyramid_levels': pyramid_levels
}
- 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 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
|
| compute_shape |
Ran ran, violated the contract we drafted |
toandaominh1997/EfficientDet.Pytorch/models/module.py code served (permissive licence) · get_code("1ef84ea5e6566d69") How it ranRan 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 numpy as np
# Construct arguments for compute_shape function
image_shape = (480, 640, 3) # height, width, channels - typical image shape
pyramid_levels = [0, 1, 2, 3] # different pyramid levels for downsampling
ARGS = {
"image_shape": image_shape,
"pyramid_levels": pyramid_levels,
}
- 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 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
|
| construct_backbone |
Ran ran on a synthesized input |
SharifElfouly/easy-model-zoo/easy_model_zoo/yolact/backbone.py code served (permissive licence) · get_code("87523070b15ff05c") How it ranRan 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 SimpleBackbone. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import torch.nn as nn
class SimpleBackbone(nn.Module):
def __init__(self, input_dim=4, hidden_dim=8):
super().__init__()
self.layers = nn.ModuleList()
self.input_dim = input_dim
self.hidden_dim = hidden_dim
# Initialize with one layer
self.layers.append(nn.Linear(input_dim, hidden_dim))
def add_layer(self):
"""Add a new layer to the backbone."""
self.layers.append(nn.Linear(self.hidden_dim, self.hidden_dim))
def forward(self, x):
for layer in self.layers:
x = layer(x)
return x
class BackboneConfig:
def __init__(self, type_class, args, selected_layers):
self.type = type_class
self.args = args
self.selected_layers = selected_layers
torch.manual_seed(0)
cfg = BackboneConfig(
type_class=SimpleBackbone,
args=(4, 8), # input_dim, hidden_dim
selected_layers=[0, 1, 2] # Request layers 0, 1, 2 (so max is 2, need 3 layers total)
)
ARGS = {
"cfg": cfg
}
- 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 SimpleBackbone — a SimpleBackbone output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SimpleBackbone 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
|
| conv3x3 |
Ran ran; our contract draft was wrong, not the code |
SharifElfouly/easy-model-zoo/easy_model_zoo/bisenet/bisenet.py pointer only (licence: MIT); the stored copy get_code serves, from lixiaotong97/DSU, is pointer only (licence: NONE) · get_code("fac5364e2f53c6db") How it ranThe 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 lixiaotong97/DSU, 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. |
| create_layer_basic |
Ran ran; our contract draft was wrong, not the code |
SharifElfouly/easy-model-zoo/easy_model_zoo/bisenet/bisenet.py code served (permissive licence) · get_code("c968417c62505b67") How it ranRan 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 Sequential. 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)
ARGS = {
'in_chan': 3,
'out_chan': 64,
'bnum': 2,
'stride': 1
}
- 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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 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
|
| cxcywh_to_ltrb |
Ran ran on a synthesized input |
Jintao-Huang/EfficientDet_PyTorch/models/utils.py code served (permissive licence) · get_code("60dce678f58929c7") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 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
torch.manual_seed(0)
# Create a small tensor with shape (2, 4) representing 2 boxes in (cx, cy, w, h) format
boxes = torch.tensor([
[10.0, 20.0, 4.0, 6.0], # center_x=10, center_y=20, width=4, height=6
[30.0, 40.0, 8.0, 12.0] # center_x=30, center_y=40, width=8, height=12
])
ARGS = {
"boxes": boxes,
"as_tuple": False
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Tensor, ndim 2, dtype family float, shape (2, 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
|
| decode_box_outputs |
Ran ran on a synthesized input |
sevakon/efficientdet/utils/anchors.py code served (permissive licence) · get_code("219e3c611cd54c68") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 3, dtype family float, shape (2, 4, 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
torch.manual_seed(0)
# rel_codes: batched box regression targets
# Shape: (batch_size, num_boxes, 4) where 4 represents [ty, tx, th, tw]
rel_codes = torch.randn(2, 4, 4)
# anchors: batched anchors on all feature levels
# Shape: (batch_size, num_boxes, 4) where 4 represents [y_min, x_min, y_max, x_max]
anchors = torch.tensor([
[[10.0, 10.0, 50.0, 50.0],
[20.0, 20.0, 60.0, 60.0],
[30.0, 30.0, 70.0, 70.0],
[40.0, 40.0, 80.0, 80.0]],
[[15.0, 15.0, 55.0, 55.0],
[25.0, 25.0, 65.0, 65.0],
[35.0, 35.0, 75.0, 75.0],
[45.0, 45.0, 85.0, 85.0]]
])
ARGS = {
"rel_codes": rel_codes,
"anchors": anchors,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Tensor, ndim 3, dtype family float, shape (2, 4, 4) — shape (2, 4, 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
|
| detection_collate |
Ran ran on a synthesized input |
toandaominh1997/EfficientDet.Pytorch/datasets/augmentation.py code served (permissive licence) · get_code("91497d83c3b331c3") How it ranRan 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
import numpy as np
torch.manual_seed(0)
# Build a batch of detection samples
# Each sample needs 'image', 'bboxes', and 'category_id' keys
sample1 = {
'image': torch.randn(3, 32, 32), # 3-channel image
'bboxes': np.array([[10, 20, 30, 40], [50, 60, 70, 80]], dtype=np.float32), # 2 bboxes with 4 coords each
'category_id': np.array([1, 2], dtype=np.int32) # 2 category IDs
}
sample2 = {
'image': torch.randn(3, 32, 32), # 3-channel image
'bboxes': np.array([[5, 15, 25, 35]], dtype=np.float32), # 1 bbox
'category_id': np.array([0], dtype=np.int32) # 1 category ID
}
batch = [sample1, sample2]
ARGS = {
'batch': batch
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type tuple — 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
|
| drop_connect |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
sevakon/efficientdet/model/efficientnet/utils.py pointer only (licence: MIT); the stored copy get_code serves, from yoctta/multiple-attention, is pointer only (licence: NONE) · get_code("2dd5dfa94542911e") How it ranThe 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 yoctta/multiple-attention, 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. |
| drop_connect |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
Jintao-Huang/EfficientDet_PyTorch/models/efficientnet.py code served (permissive licence) · get_code("53d13d88994382df") How it ranRan 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 4, dtype family float, shape (2, 4, 3, 5) 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)
# Construct a small 4D tensor (batch=2, channels=4, height=3, width=5)
x = torch.randn(2, 4, 3, 5, dtype=torch.float32)
# drop_p: probability of dropping a connection (0 < drop_p < 1)
drop_p = 0.2
# training: boolean flag indicating whether in training mode
training = True
ARGS = {
"x": x,
"drop_p": drop_p,
"training": training,
}
- 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 4, dtype family float, shape (2, 4, 3, 5) — shape (2, 4, 3, 5) 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
|
| encode_boxes |
Ran ran on a synthesized input |
Jintao-Huang/EfficientDet_PyTorch/models/utils.py code served (permissive licence) · get_code("08a96253f661fedd") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 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
torch.manual_seed(0)
# Create small tensors for boxes and anchors
# boxes shape: (2, 4) - (left, top, right, bottom) format
boxes = torch.tensor([
[10.0, 20.0, 50.0, 80.0],
[15.0, 25.0, 60.0, 90.0]
], dtype=torch.float32)
# anchors shape: (2, 4) - (left, top, right, bottom) format
anchors = torch.tensor([
[5.0, 10.0, 55.0, 85.0],
[10.0, 15.0, 65.0, 95.0]
], dtype=torch.float32)
ARGS = {
"boxes": boxes,
"anchors": anchors
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Tensor, ndim 2, dtype family float, shape (2, 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
|
| encode_boxes_to_anchors |
Ran ran on a synthesized input |
sevakon/efficientdet/utils/anchors.py code served (permissive licence) · get_code("c605a8151aab62c5") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 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
torch.manual_seed(0)
# boxes: ground truth boxes in corner format [y1, x1, y2, x2]
# Shape: (N, 4) where N is number of boxes
boxes = torch.tensor([
[10.0, 20.0, 50.0, 80.0],
[15.0, 25.0, 60.0, 90.0]
], dtype=torch.float32)
# anchors: anchor boxes in corner format [y1, x1, y2, x2]
# Shape: (M, 4) where M is number of anchors
anchors = torch.tensor([
[5.0, 15.0, 55.0, 85.0],
[12.0, 22.0, 62.0, 92.0]
], dtype=torch.float32)
# eps: small number for numerical stability
eps = 1e-08
ARGS = {
"boxes": boxes,
"anchors": anchors,
"eps": eps
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Tensor, ndim 2, dtype family float, shape (2, 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
|
| filter_detections |
Ran ran on a synthesized input |
xuannianz/EfficientDet/layers.py code served (permissive licence) · get_code("90d221581bcaf7c7") How it ranRan 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 seed for reproducibility
tf.random.set_seed(0)
np.random.seed(0)
# Create small tensors for testing
num_boxes = 5
num_classes = 3
# boxes: (num_boxes, 4) in (x1, y1, x2, y2) format
boxes = tf.constant([
[10.0, 10.0, 50.0, 50.0],
[20.0, 20.0, 60.0, 60.0],
[30.0, 30.0, 70.0, 70.0],
[40.0, 40.0, 80.0, 80.0],
[50.0, 50.0, 90.0, 90.0],
], dtype=tf.float32)
# classification: (num_boxes, num_classes) with scores between 0 and 1
classification = tf.constant([
[0.8, 0.1, 0.1],
[0.05, 0.85, 0.1],
[0.1, 0.1, 0.8],
[0.7, 0.2, 0.1],
[0.3, 0.5, 0.2],
], dtype=tf.float32)
# alphas: (num_boxes, 4) - used when detect_quadrangle=True
alphas = tf.constant([
[0.1, 0.2, 0.3, 0.4],
[0.2, 0.3, 0.4, 0.5],
[0.3, 0.4, 0.5, 0.6],
[0.4, 0.5, 0.6, 0.7],
[0.5, 0.6, 0.7, 0.8],
], dtype=tf.float32)
# ratios: (num_boxes,) - used when detect_quadrangle=True
ratios = tf.constant([1.0, 1.1, 1.2, 1.3, 1.4], dtype=tf.float32)
ARGS = {
'boxes': boxes,
'classification': classification,
'alphas': alphas,
'ratios': ratios,
'class_specific_filter': True,
'nms': True,
'score_threshold': 0.1,
'max_detections': 10,
'nms_threshold': 0.5,
'detect_quadrangle': False,
}
- 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
|
| focal |
Ran ran on a synthesized input |
xuannianz/EfficientDet/losses.py code served (permissive licence) · get_code("c1389040930b96b7") How it ranRan 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 tensorflow as tf
import numpy as np
# Create small dummy tensors for y_true and y_pred
# y_true shape: (B, N, num_classes) where last channel is anchor_state
# y_pred shape: (B, N, num_classes)
batch_size = 2
num_anchors = 3
num_classes = 4
# y_true: (2, 3, 4) - last column is anchor_state
y_true = tf.constant(np.array([
[[1.0, 0.0, 0.0, 1.0],
[0.0, 1.0, 0.0, 1.0],
[0.0, 0.0, 1.0, -1.0]],
[[1.0, 0.0, 0.0, 1.0],
[0.0, 1.0, 0.0, 0.0],
[0.0, 0.0, 1.0, 1.0]]
]), dtype=tf.float32)
# y_pred: (2, 3, 3) - predictions for num_classes-1 classes
y_pred = tf.constant(np.array([
[[0.8, 0.1, 0.1],
[0.2, 0.7, 0.1],
[0.1, 0.2, 0.7]],
[[0.9, 0.05, 0.05],
[0.3, 0.6, 0.1],
[0.1, 0.1, 0.8]]
]), dtype=tf.float32)
ARGS = {
"alpha": 0.25,
"gamma": 1.5
}
- 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 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
|
| freeze_vars |
Ran ran; our contract draft was wrong, not the code |
google/automl/efficientdet/efficientdet_arch.py code served (permissive licence) · get_code("ceea6e679b6af5bc") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) 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 torch
import torch.nn as nn
torch.manual_seed(0)
# Create a simple stand-in class for variables that have a 'name' attribute
class Variable:
def __init__(self, name):
self.name = name
# Create a list of variables with different names
variables = [
Variable("efficientnet_layer1_weight"),
Variable("efficientnet_layer2_bias"),
Variable("fpn_cells_conv1_weight"),
Variable("fpn_cells_conv2_bias"),
Variable("decoder_layer1_weight"),
Variable("decoder_layer2_bias"),
Variable("head_conv_weight"),
Variable("head_conv_bias"),
]
# Pattern to match efficientnet and fpn_cells variables
pattern = ".*(efficientnet|fpn_cells).*"
ARGS = {
"variables": variables,
"pattern": pattern
}
- Setup block drafted by
- a language model, Claude Sonnet 4.5, prompt python_fixture_v1
- Imports
- absl, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type list, ndim 1, dtype family 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
|
| freeze_vars |
Ran ran; our contract draft was wrong, not the code |
lvweiwolf/efficientdet/efficientdet_arch.py pointer only (licence: NONE) · get_code("3af301f87fe2c911") How it ranThe body of this sample is withheld: GitHub detected no licence in this paper's repository, lvweiwolf/efficientdet when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded. |
| generate_anchors |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
toandaominh1997/EfficientDet.Pytorch/models/module.py code served (permissive licence) · get_code("1279986e0f62b111") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family float, shape (9, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
ARGS = {
"base_size": 16,
"ratios": np.array([0.5, 1, 2]),
"scales": np.array([2 ** 0, 2 ** (1.0 / 3.0), 2 ** (2.0 / 3.0)])
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ndarray, ndim 2, dtype family float, shape (9, 4) — shape (9, 4) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| generate_anchors |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
signatrix/efficientdet/src/utils.py code served (permissive licence) · get_code("5b3a9cef8ec8c746") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family float, shape (9, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
# Define ARGS dictionary with all parameters for generate_anchors
ARGS = {
'base_size': 16,
'ratios': np.array([0.5, 1, 2]),
'scales': np.array([2 ** 0, 2 ** (1.0 / 3.0), 2 ** (2.0 / 3.0)])
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ndarray, ndim 2, dtype family float, shape (9, 4) — shape (9, 4) as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| get_color_pallete |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
SharifElfouly/easy-model-zoo/easy_model_zoo/bisenet/vis.py code served (permissive licence) · get_code("f218af101f9b0acd") How it ranRan 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 Image. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
from PIL import Image
# Create a small test image array
# The function expects a numpy array with shape H, W (single channel)
# Create a small 4x3 image with values in range [0, 255]
np.random.seed(0)
npimg = np.random.randint(0, 19, size=(4, 3), dtype=np.int64)
ARGS = {
'npimg': npimg,
'dataset': 'citys'
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- PIL, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Image — a Image output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Image output the recorded ndim 2 and dtype family int 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_lr_cosine |
Ran ran on a synthesized input |
lyqcom/efficientdet/src/lr_schedule.py code served (permissive licence) · get_code("cad8943a75251ca7") How it ranRan 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 (1000,) 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
# Analyze the function signature and body:
# get_lr_cosine(init_lr, steps_per_epoch, warmup_epochs, max_epoch, t_max, eta_min)
#
# The function calls warmup_cosine_annealing_lr which:
# - Takes numeric parameters: lr, steps_per_epoch, warmup_epochs, max_epoch, t_max, eta_min
# - Uses them in arithmetic operations and loops
# - Returns a numpy array
#
# All parameters are numeric values (floats/ints)
ARGS = {
"init_lr": 0.1,
"steps_per_epoch": 100,
"warmup_epochs": 2,
"max_epoch": 10,
"t_max": 8,
"eta_min": 0.0001
}
- 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 (1000,) — shape (1000,) 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_lr_exponential |
Ran ran on a synthesized input |
lyqcom/efficientdet/src/lr_schedule.py code served (permissive licence) · get_code("edf1fc6be4a7628c") How it ranRan 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 (10000,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
ARGS = {
"init_lr": 0.1,
"lr_epochs": [30, 60],
"steps_per_epoch": 100,
"warmup_epochs": 5,
"max_epoch": 100,
"lr_gamma": 0.1,
}
- 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 (10000,) — shape (10000,) 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_same_padding |
Ran ran, honoured the contract we drafted |
Jintao-Huang/EfficientDet_PyTorch/models/efficientnet.py code served (permissive licence) · get_code("ce78adffe6b7cfbf") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import math
def get_same_padding(in_size, kernel_size, stride):
"""'Same 'same' operation with tensorflow
notice:padding=(0, 1, 0, 1) and padding=(1, 1, 1, 1) are different
padding=(1, 1, 1, 1):
out(H, W) = (in + [2 * padding] −\u2005kernel_size) // stride\u2005+\u20051
'same' padding=(0, 1, 0, 1):
out(H, W) = (in + [2 * padding] −\u2005kernel_size) / stride\u2005+\u20051
:param in_size: Union[int, tuple(in_h, in_w)]
:param kernel_size: Union[int, tuple(kernel_h, kernel_w)]
:param stride: Union[int, tuple(stride_h, stride_w)]
:return: padding: tuple(left, right, top, bottom)
"""
in_h, in_w = (in_size, in_size) if isinstance(in_size, int) else in_size
kernel_h, kernel_w = (kernel_size, kernel_size) if isinstance(kernel_size, int) else kernel_size
stride_h, stride_w = (stride, stride) if isinstance(stride, int) else stride
out_h, out_w = (math.ceil(in_h / stride_h), math.ceil(in_w / stride_w))
pad_h = max((out_h - 1) * stride_h + kernel_h - in_h, 0)
pad_w = max((out_w - 1) * stride_w + kernel_w - in_w, 0)
return (pad_w // 2, pad_w - pad_w // 2, pad_h // 2, pad_h - pad_h // 2)
ARGS = {
"in_size": 32,
"kernel_size": 3,
"stride": 1
}
- 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 tuple, ndim 1, dtype family int — a tuple output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| linear_warmup_lr |
Ran ran, honoured the contract we drafted |
lyqcom/efficientdet/src/lr_schedule.py code served (permissive licence) · get_code("56d39004d57cb3a2") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import numpy as np
# Analyze the function:
# - current_step: int, used in arithmetic
# - warmup_steps: int/float, used in division
# - base_lr: float, used in arithmetic
# - init_lr: float, used in arithmetic
ARGS = {
"current_step": 500,
"warmup_steps": 1000,
"base_lr": 0.1,
"init_lr": 0.0
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| ltrb_to_cxcywh |
Ran ran on a synthesized input |
Jintao-Huang/EfficientDet_PyTorch/models/utils.py code served (permissive licence) · get_code("16b53a145d567a1a") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 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
torch.manual_seed(0)
# Create a small tensor with shape (2, 4) representing boxes in (left, top, right, bottom) format
boxes = torch.tensor([
[10.0, 20.0, 30.0, 40.0],
[5.0, 15.0, 25.0, 35.0]
])
ARGS = {
"boxes": boxes,
"as_tuple": False
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Tensor, ndim 2, dtype family float, shape (2, 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
|
| make_loc_conf |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
kentaroy47/efficientdet.pytorch/utils/efficientdet.py code served (permissive licence) · get_code("d93c6090474e0d1a") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned tuple, ndim 3, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import torch.nn as nn
torch.manual_seed(0)
# The function has two parameters with defaults:
# - num_classes: an integer (default 21)
# - bbox_aspect_num: a list of 6 integers (default [4, 6, 6, 6, 4, 4])
# We can use the defaults or provide custom values
# Let's use custom values to demonstrate the setup
ARGS = {
'num_classes': 10,
'bbox_aspect_num': [3, 5, 5, 5, 3, 3]
}
- Setup block drafted by
- a language model, Claude Sonnet 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 tuple, ndim 3, 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
|
| name_map |
Ran ran on a synthesized input |
lyqcom/efficientdet/src/convert_weight.py code served (permissive licence) · get_code("88acb93cc8aa1c27") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
torch.manual_seed(0)
# The function iterates over keys in ckpt dict and performs string replacements
# It returns a mapping from transformed names to original names
# ckpt should be a dict-like object with string keys
ckpt = {
'backbone._conv_stem.weight': torch.randn(3, 3),
'backbone.depthwise_conv.weight': torch.randn(3, 3),
'backbone._depthwise_conv.bias': torch.randn(3),
'backbone.pointwise_conv.weight': torch.randn(3, 3),
'backbone._expand_conv.weight': torch.randn(3, 3),
'backbone._se_reduce.weight': torch.randn(3, 3),
'backbone._se_expand.bias': torch.randn(3),
'neck.p5_down_channel.0.weight': torch.randn(3, 3),
'neck.p4_down_channel.0.bias': torch.randn(3),
'neck.p3_down_channel.0.weight': torch.randn(3, 3),
'neck.p5_to_p6.0.weight': torch.randn(3, 3),
'neck.p4_down_channel_2.0.bias': torch.randn(3),
'neck.p5_down_channel_2.0.weight': torch.randn(3, 3),
'head.bn.moving_mean': torch.randn(3),
'head.bn.moving_variance': torch.randn(3),
'head.gamma': torch.randn(3),
'head.beta': torch.randn(3),
'_project_conv.weight': torch.randn(3, 3),
}
ARGS = {
'ckpt': ckpt
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| nms |
Ran ran on a synthesized input |
signatrix/efficientdet/src/model.py code served (permissive licence) · get_code("f35355d03c1b823d") How it ranRan 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 1, dtype family int, 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 torch
from torchvision.ops.boxes import nms as nms_torch
torch.manual_seed(0)
# Create a small tensor of detections with shape (2, 5)
# First 4 columns are box coordinates [x1, y1, x2, y2]
# Last column is confidence score
dets = torch.tensor([
[10.0, 20.0, 30.0, 40.0, 0.9],
[15.0, 25.0, 35.0, 45.0, 0.8]
], dtype=torch.float32)
thresh = 0.5
ARGS = {
"dets": dets,
"thresh": thresh
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type Tensor, ndim 1, dtype family int, 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
|
| nms |
Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
GuoQuanhao/EfficientDet-Paddle/utils/batch_nms.py code served (permissive licence) · get_code("35cb2fd811f8eb66") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
# Create small sample data for NMS (Non-Maximum Suppression)
# dets: bounding boxes in format [x1, y1, x2, y2]
dets = np.array([
[10.0, 20.0, 50.0, 60.0],
[15.0, 25.0, 55.0, 65.0],
[100.0, 100.0, 150.0, 150.0],
[105.0, 105.0, 155.0, 155.0],
], dtype=np.float32)
# scores: confidence scores for each detection
scores = np.array([0.9, 0.8, 0.85, 0.7], dtype=np.float32)
# thresh: IoU threshold for suppression
thresh = 0.3
ARGS = {
"dets": dets,
"scores": scores,
"thresh": thresh,
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type list, ndim 1, dtype family int — a list output has no array shape of its own; none is stated
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| nms |
Ran ran on a synthesized input |
lyqcom/efficientdet/src/nms.py code served (permissive licence) · get_code("12e01fa98323c582") How it ranRan 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 sample bounding boxes in format [x1, y1, x2, y2]
all_boxes = np.array([
[10, 20, 50, 60],
[12, 22, 52, 62],
[100, 100, 150, 150],
[5, 5, 40, 40]
], dtype=np.float32)
# Create corresponding confidence scores
all_scores = np.array([0.9, 0.85, 0.8, 0.75], dtype=np.float32)
# NMS threshold for IoU overlap
thres = 0.3
ARGS = {
"all_boxes": all_boxes,
"all_scores": all_scores,
"thres": thres
}
- 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
|
| normalize |
Ran ran, honoured the contract we drafted |
ManfredGonzalez/multispectral-pineapple-detection/pre-processing/homography_align_SIFT.py pointer only (licence: NONE) · get_code("34900df21ccd3b4f") How it ranThe body of this sample is withheld: GitHub detected no licence in this paper's repository, ManfredGonzalez/multispectral-pineapple-detection when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded. |
| preprocess |
Ran ran on a synthesized input |
SharifElfouly/easy-model-zoo/easy_model_zoo/efficientdet/efficientdetmodel.py code served (permissive licence) · get_code("78a46cad2c35f09d") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
# Create sample images with shape (height, width, channels)
# Using distinct dimensions: 64x48x3 and 80x60x3
img1 = np.random.randint(0, 256, (64, 48, 3), dtype=np.uint8)
img2 = np.random.randint(0, 256, (80, 60, 3), dtype=np.uint8)
ori_imgs = [img1, img2]
ARGS = {
"ori_imgs": ori_imgs,
"max_size": 512,
"mean": (0.406, 0.456, 0.485),
"std": (0.225, 0.224, 0.229),
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- cv2, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type tuple — a tuple output has no array shape of its own; none is stated
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| remove_variables |
Ran ran; our contract draft was wrong, not the code |
shivam-raj/detector/efficientdet_arch.py pointer only (licence: NONE) · get_code("4982146c641543d1") How it ranThe body of this sample is withheld: GitHub detected no licence in this paper's repository, shivam-raj/detector 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. |
| round_filters |
Ran ran, honoured the contract we drafted |
GuoQuanhao/EfficientDet-Paddle/efficientnet/utils.py pointer only (licence: MIT); the stored copy get_code serves, from yoctta/multiple-attention, is pointer only (licence: NONE) · get_code("826e2e91d6a9ec09") How it ranThe 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 yoctta/multiple-attention, 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. |
| round_filters |
Ran ran on a synthesized input |
xuannianz/EfficientDet/efficientnet.py code served (permissive licence) · get_code("00c946065068bd77") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import torch
import numpy as np
# Define arguments for round_filters function
ARGS = {
"filters": 32,
"width_coefficient": 1.2,
"depth_divisor": 8
}
- 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 int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| round_repeats |
Ran ran, honoured the contract we drafted |
GuoQuanhao/EfficientDet-Paddle/efficientnet/utils.py pointer only (licence: MIT); the stored copy get_code serves, from yoctta/multiple-attention, is pointer only (licence: NONE) · get_code("4d8e794b593d34a0") How it ranThe 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 yoctta/multiple-attention, 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. |
| round_repeats |
Ran ran, honoured the contract we drafted |
xuannianz/EfficientDet/efficientnet.py code served (permissive licence) · get_code("6cc796a8212b5586") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import math
def round_repeats(repeats, depth_coefficient):
"""Round number of repeats based on depth multiplier."""
return int(math.ceil(depth_coefficient * repeats))
ARGS = {
"repeats": 4,
"depth_coefficient": 1.2
}
- 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 int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
- dtype family
- int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
- Environment
- image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
|
| shift |
Ran ran on a synthesized input |
signatrix/efficientdet/src/utils.py code served (permissive licence) · get_code("7abc112d283442c7") How it ranRan 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 (36, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import numpy as np
# Construct valid arguments for the shift function
shape = (3, 4) # (height, width) - small grid shape
stride = 16 # stride value
anchors = np.array([
[-11., -11., 11., 11.],
[-16., -16., 16., 16.],
[-23., -23., 23., 23.]
], dtype=np.float32) # 3 anchors, each with 4 coordinates
ARGS = {
'shape': shape,
'stride': stride,
'anchors': anchors
}
- 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 (36, 4) — shape (36, 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
|
| smooth_l1 |
Ran ran on a synthesized input |
xuannianz/EfficientDet/losses.py code served (permissive licence) · get_code("eb88cc992d53c796") How it ranRan 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 tensorflow as tf
from tensorflow import keras
import numpy as np
# Set seeds for reproducibility
tf.random.set_seed(0)
np.random.seed(0)
# Create sample data for the smooth_l1 loss function
# y_true shape: (B, N, 5) where last dimension is [dx, dy, dw, dh, anchor_state]
# y_pred shape: (B, N, 4) where dimensions are [dx, dy, dw, dh]
batch_size = 2
num_anchors = 3
# Create y_true: (2, 3, 5)
# First 4 values are regression targets, last value is anchor state (0=ignore, 1=positive)
y_true = tf.constant([
[[0.1, 0.2, 0.3, 0.4, 1.0],
[0.15, 0.25, 0.35, 0.45, 1.0],
[0.05, 0.15, 0.25, 0.35, 0.0]],
[[0.2, 0.3, 0.4, 0.5, 1.0],
[0.12, 0.22, 0.32, 0.42, 0.0],
[0.08, 0.18, 0.28, 0.38, 1.0]]
], dtype=tf.float32)
# Create y_pred: (2, 3, 4)
y_pred = tf.constant([
[[0.12, 0.22, 0.32, 0.42],
[0.16, 0.26, 0.36, 0.46],
[0.06, 0.16, 0.26, 0.36]],
[[0.21, 0.31, 0.41, 0.51],
[0.13, 0.23, 0.33, 0.43],
[0.09, 0.19, 0.29, 0.39]]
], dtype=tf.float32)
# Test data to verify the loss function works
test_data = (y_true, y_pred)
ARGS = {
'sigma': 3.0
}
- 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 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
|
| smooth_l1_quad |
Ran ran on a synthesized input |
xuannianz/EfficientDet/losses.py code served (permissive licence) · get_code("36844f48b65fa098") How it ranRan 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 tensorflow as tf
import numpy as np
# Set seed for reproducibility
tf.random.set_seed(0)
np.random.seed(0)
# Create small test tensors
batch_size = 2
num_anchors = 3
# y_true shape: (B, N, 5) - last value is anchor state (0=ignore, 1=positive, -1=negative)
# First 4 values are regression targets, last value is anchor state
y_true = tf.constant([
[[0.1, 0.2, 0.3, 0.4, 1.0],
[0.15, 0.25, 0.35, 0.45, 1.0],
[0.0, 0.0, 0.0, 0.0, 0.0]],
[[0.05, 0.15, 0.25, 0.35, 1.0],
[0.12, 0.22, 0.32, 0.42, 1.0],
[0.0, 0.0, 0.0, 0.0, -1.0]]
], dtype=tf.float32)
# y_pred shape: (B, N, 9) - 4 bbox coords + 5 extra (4 alpha + 1 ratio)
y_pred = tf.constant([
[[0.11, 0.21, 0.31, 0.41, 0.1, 0.2, 0.3, 0.4, 0.5],
[0.14, 0.24, 0.34, 0.44, 0.15, 0.25, 0.35, 0.45, 0.55],
[0.02, 0.02, 0.02, 0.02, 0.0, 0.0, 0.0, 0.0, 0.0]],
[[0.06, 0.16, 0.26, 0.36, 0.05, 0.15, 0.25, 0.35, 0.45],
[0.13, 0.23, 0.33, 0.43, 0.12, 0.22, 0.32, 0.42, 0.52],
[0.01, 0.01, 0.01, 0.01, 0.0, 0.0, 0.0, 0.0, 0.0]]
], dtype=tf.float32)
ARGS = {
"sigma": 3.0
}
- 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 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
|
| visualize |
Ran ran on a synthesized input |
toandaominh1997/EfficientDet.Pytorch/datasets/visual_aug.py code served (permissive licence) · get_code("43fbbcaf0aa13b99") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 3, dtype family int, shape (100, 150, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import cv2
import numpy as np
# Create a simple test image (BGR format, as used by cv2)
test_image = np.zeros((100, 150, 3), dtype=np.uint8)
test_image[10:50, 20:80] = [200, 100, 50] # Add some color to make it visible
# Define category mapping
category_id_to_name = {
0: "cat",
1: "dog",
2: "bird"
}
# Create annotations dictionary with required structure
annotations = {
'image': test_image,
'bboxes': [
(20, 10, 80, 50), # x_min, y_min, x_max, y_max for first object
(30, 15, 70, 45), # x_min, y_min, x_max, y_max for second object
],
'category_id': [0, 1] # category IDs for the two bboxes
}
ARGS = {
'annotations': annotations,
'category_id_to_name': category_id_to_name
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- cv2, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ndarray, ndim 3, dtype family int, shape (100, 150, 3) — shape (100, 150, 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
|
| visualize_bbox |
Ran ran on a synthesized input |
toandaominh1997/EfficientDet.Pytorch/datasets/visual_aug.py code served (permissive licence) · get_code("206ff4c637a23abe") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 3, dtype family int, shape (100, 120, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
import cv2
import numpy as np
BOX_COLOR = (255, 0, 0)
def visualize_bbox(img, bbox, class_id, class_idx_to_name, color=BOX_COLOR, thickness=2):
x_min, y_min, x_max, y_max = bbox
x_min, x_max, y_min, y_max = (int(x_min), int(x_max), int(y_min), int(y_max))
cv2.rectangle(img, (x_min, y_min), (x_max, y_max), color=color, thickness=thickness)
return img
# Create a small image (BGR format for OpenCV)
img = np.zeros((100, 120, 3), dtype=np.uint8)
# Create bounding box coordinates
bbox = (10, 20, 50, 80)
# Class ID
class_id = 0
# Mapping from class index to class name
class_idx_to_name = {0: "cat", 1: "dog", 2: "bird"}
# Color for bounding box
color = (0, 255, 0)
# Thickness of bounding box lines
thickness = 2
ARGS = {
"img": img,
"bbox": bbox,
"class_id": class_id,
"class_idx_to_name": class_idx_to_name,
"color": color,
"thickness": thickness
}
- Setup block drafted by
- a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
- Imports
- cv2, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
- Returned
- type ndarray, ndim 3, dtype family int, shape (100, 120, 3) — shape (100, 120, 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
|
| weighted_binary_focal_loss |
Ran ran on a synthesized input |
Jintao-Huang/EfficientDet_PyTorch/models/loss.py code served (permissive licence) · get_code("f93cdbff3f79254b") How it ranRan 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)
# Create small tensors for pred and target
# pred should be sigmoid outputs (values between 0 and 1)
# target should be binary values (0, 1, or -1 for ignored samples)
pred = torch.sigmoid(torch.randn(2)) # shape (2,), values in [0,1]
target = torch.tensor([0.0, 1.0]) # shape (2,), binary targets
alpha = 0.25
gamma = 2.0
ARGS = {
"pred": pred,
"target": target,
"alpha": alpha,
"gamma": gamma,
}
- 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
|
| SeparableConvBlock |
Not yet run unverified (harvested, no recorded run) |
xuannianz/EfficientDet/model.py code served (permissive licence) · get_code("4b223f0c5774a3a3") How it ran |
| bbox_transform |
Not yet run unverified (harvested, no recorded run) |
lyqcom/efficientdet/src/utils.py code served (permissive licence) · get_code("80ef81417a6a01c0") How it ran |
| collater |
Not yet run unverified (harvested, no recorded run) |
sevakon/efficientdet/dataloader.py code served (permissive licence) · get_code("d87e7e82b72f38f3") How it ran |
| collater |
Not yet run unverified (harvested, no recorded run) |
signatrix/efficientdet/src/dataset.py code served (permissive licence) · get_code("07db8d49de7cb1cf") How it ran |
| collater |
Not yet run unverified (harvested, no recorded run) |
toandaominh1997/EfficientDet.Pytorch/datasets/augmentation.py code served (permissive licence) · get_code("f82f955d16ba9998") How it ran |