SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2003.06975 · 2020

TACO: Trash Annotations in Context for Litter Detection

arXiv · PDF · Open in the Atlas

Code that ran

8 of 9 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 1 violated it and 1 has no contract verdict; 4 failures of our instrument; 1 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2003.06975.json · badge: /api/ran/2003.06975.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
pedropro/TACO canonical (classifier label)
classifier basis: census
8 ran · 1 no recorded run
FunctionStatusWhere it lives
apply_mask Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
pedropro/TACO/detector/visualize.py
code served (permissive licence) · get_code("cdda836085a5b1af")
How it ran

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

import numpy as np

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

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

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

# Alpha blending factor
alpha = 0.5

ARGS = {
    "image": image,
    "mask": mask,
    "color": color,
    "alpha": alpha
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family float, shape (4, 3, 3) — shape (4, 3, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_backbone_shapes Ran
ran on a synthesized input
pedropro/TACO/detector/model.py
code served (permissive licence) · get_code("e109baa006f999cb")
How it ran

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

import math
import numpy as np

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

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

ARGS = {
    'config': config,
    'image_shape': image_shape
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family int, shape (4, 2) — shape (4, 2) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_iou Ran
ran, violated the contract we drafted
pedropro/TACO/detector/utils.py
code served (permissive licence) · get_code("b2aae18de5fa3893")
How it ran

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

import numpy as np

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

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

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

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

ARGS = {
    "box": box,
    "boxes": boxes,
    "box_area": box_area,
    "boxes_area": boxes_area
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (2,) — shape (2,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_overlaps Ran
ran, honoured the contract we drafted
pedropro/TACO/detector/utils.py
code served (permissive licence) · get_code("698f3241ee39ad75")
How it ran

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

import numpy as np

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

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

ARGS = {
    "boxes1": boxes1,
    "boxes2": boxes2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (3, 2) — shape (3, 2) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
conv_block Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
pedropro/TACO/detector/model.py
code served (permissive licence) · get_code("918c5de88a445168")
How it ran

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

import keras
import keras.layers as KL
import numpy as np

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

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

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

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

import torch
import numpy as np

torch.manual_seed(0)

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

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

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

ARGS = {
    "image": image,
    "box": box,
    "color": color
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family int, shape (10, 10, 3) — shape (10, 10, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
extract_bboxes Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
pedropro/TACO/detector/utils.py
code served (permissive licence) · get_code("d2c9b72e23d9588a")
How it ran

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

import numpy as np

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

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

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

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

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

ARGS = {
    "mask": mask
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family int, shape (3, 4) — shape (3, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
random_colors Ran
ran, honoured the contract we drafted
pedropro/TACO/detector/visualize.py
code served (permissive licence) · get_code("a9d0cf3b71fefa32")
How it ran

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

def random_colors(N, bright=True):
    """
    Generate random colors.
    To get visually distinct colors, generate them in HSV space then
    convert to RGB.
    """
    brightness = 1.0 if bright else 0.7
    hsv = [(i / N, 1, brightness) for i in range(N)]
    colors = list(map(lambda c: colorsys.hsv_to_rgb(*c), hsv))
    random.shuffle(colors)
    return colors


ARGS = {
    "N": 5,
    "bright": True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, 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
identity_block Not yet run
unverified (harvested, no recorded run)
pedropro/TACO/detector/model.py
code served (permissive licence) · get_code("b2617f9b70d02ce1")
How it ran

no invocation recorded.

Also present in other papers' code

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

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

FunctionAlso present inEarliest-datedOthers named
compute_iou 9 other papers
6 dated earlier, 3 later
1612.03242 (2016-12)
StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networks
1702.01983 (2017-02)
Face Aging With Conditional Generative Adversarial Networks
and 6 more not named here
compute_overlaps 9 other papers
6 dated earlier, 3 later
1612.03242 (2016-12)
StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networks
1702.01983 (2017-02)
Face Aging With Conditional Generative Adversarial Networks
and 6 more not named here
extract_bboxes 9 other papers
6 dated earlier, 3 later
1612.03242 (2016-12)
StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networks
1702.01983 (2017-02)
Face Aging With Conditional Generative Adversarial Networks
and 6 more not named here
random_colors 9 other papers
4 dated earlier, 5 later
1612.03242 (2016-12)
StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networks
1702.01983 (2017-02)
Face Aging With Conditional Generative Adversarial Networks
and 6 more not named here
conv_block 8 other papers
5 dated earlier, 3 later
1612.03242 (2016-12)
StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networks
1702.01983 (2017-02)
Face Aging With Conditional Generative Adversarial Networks
and 5 more not named here
identity_block 8 other papers
5 dated earlier, 3 later
1612.03242 (2016-12)
StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networks
1702.01983 (2017-02)
Face Aging With Conditional Generative Adversarial Networks
and 5 more not named here
apply_mask 6 other papers
4 dated earlier, 2 later
1612.03242 (2016-12)
StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networks
1702.01983 (2017-02)
Face Aging With Conditional Generative Adversarial Networks
and 3 more not named here
draw_box 6 other papers
4 dated earlier, 2 later
1612.03242 (2016-12)
StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networks
1702.01983 (2017-02)
Face Aging With Conditional Generative Adversarial Networks
and 3 more not named here
compute_backbone_shapes 1 other paper
1 dated earlier
1703.06870 (2017-03)
Mask R-CNN

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

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

Abstract

TACO is an open image dataset for litter detection and segmentation, which is growing through crowdsourcing. Firstly, this paper describes this dataset and the tools developed to support it. Secondly, we report instance segmentation performance using Mask R-CNN on the current version of TACO. Despite its small size (1500 images and 4784 annotations), our results are promising on this challenging problem. However, to achieve satisfactory trash detection in the wild for deployment, TACO still needs much more manual annotations. These can be contributed using: http://tacodataset.org/

For agents

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

get_harvested_code_for_paper("2003.06975")
get_code_for_paper("2003.06975")
have("2003.06975")

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

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

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

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

Connect an agent — have() is free.