SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1907.10164 · 2019

Cap2Det: Learning to Amplify Weak Caption Supervision for Object Detection

arXiv · PDF · Open in the Atlas

Code that ran

5 of 11 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; 0 honoured the contract we drafted, 0 violated it and 5 have no contract verdict; 0 failures of our instrument; 6 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/1907.10164.json · badge: /api/ran/1907.10164.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
yekeren/Cap2Det canonical (classifier label)
classifier basis: census
5 ran · 6 no recorded run
FunctionStatusWhere it lives
area Ran
ran on a synthesized input
yekeren/Cap2Det/core/box_utils.py
code served (permissive licence) · get_code("6ef03b0292d06b27")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned EagerTensor, ndim 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 tensorflow as tf
import numpy as np

# Create a small batch of bounding boxes
# Format: [ymin, xmin, ymax, xmax] for each box
# batch size = 2, 4 coordinates per box
box_data = np.array([
    [0.1, 0.2, 0.5, 0.8],  # box 1: ymin=0.1, xmin=0.2, ymax=0.5, xmax=0.8
    [0.3, 0.1, 0.7, 0.6]   # box 2: ymin=0.3, xmin=0.1, ymax=0.7, xmax=0.6
], dtype=np.float32)

# Convert to TensorFlow tensor
box = tf.constant(box_data)

ARGS = {
    'box': box
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 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
deprecated Ran
ran on a synthesized input
yekeren/Cap2Det/core/utils.py
code served (permissive licence) · get_code("9f0bf8e77b1abe07")
How it ran

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

import functools
import warnings
import tensorflow as tf

def deprecated(func):
    """A decorator which can be used to mark functions as deprecated.
  
  Args:
    func: the actual function.

  Returns:
    new_func: a wrapping of the actual function `func`.
  """

    @functools.wraps(func)
    def new_func(*args, **kwargs):
        warnings.warn('Function `{}` is deprecated.'.format(func.__name__), category=DeprecationWarning, stacklevel=2)
        tf.logging.warn('Function `{}` is deprecated.'.format(func.__name__))
        return func(*args, **kwargs)
    return new_func


def sample_function(x, y=10):
    """A simple sample function to be decorated."""
    return x + y


ARGS = {
    'func': sample_function
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
flip_left_right Ran
ran on a synthesized input
yekeren/Cap2Det/core/box_utils.py
code served (permissive licence) · get_code("b6c57a7a8feef42a")
How it ran

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

import tensorflow as tf
import numpy as np

# Create a small batch of bounding boxes in normalized coordinates [ymin, xmin, ymax, xmax]
# Each value should be between 0 and 1 for normalized box coordinates
box = tf.constant([
    [0.1, 0.2, 0.5, 0.8],
    [0.3, 0.4, 0.7, 0.9]
], dtype=tf.float32)

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

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

import tensorflow as tf

# Create a simple TensorFlow tensor with known static shape
tensor_static = tf.constant([[1.0, 2.0, 3.0, 4.0], 
                             [5.0, 6.0, 7.0, 8.0]])

# Create a tensor with some dynamic dimensions
tensor_dynamic = tf.random.normal([2, 4])

# Create a tensor with unknown dimensions (using placeholder-like behavior)
# In eager mode, we can use tf.random.normal which creates a concrete tensor
tensor_with_dynamic = tf.random.normal([2, 4])

ARGS = {
    'tensor': tensor_static
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
preprocess_func Ran
ran on a synthesized input
yekeren/Cap2Det/core/preprocess.py
code served (permissive licence) · get_code("3b9582df579e4c57")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned EagerTensor, ndim 3, dtype family int, 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 tensorflow as tf

# Create a small test image: [height=4, width=3, channels=3] uint8 tensor
image = tf.constant([
    [[255, 0, 0], [0, 255, 0], [0, 0, 255]],
    [[255, 255, 0], [255, 0, 255], [0, 255, 255]],
    [[128, 64, 32], [32, 64, 128], [64, 32, 128]],
    [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
], dtype=tf.uint8)

# Create a boolean scalar tensor
flip_left_right = tf.constant(True)

ARGS = {
    "image": image,
    "flip_left_right": flip_left_right
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 3, dtype family int, 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
convert_to_heatmap Not yet run
unverified (harvested, no recorded run)
yekeren/Cap2Det/core/plotlib.py
code served (permissive licence) · get_code("3a41de440a471316")
How it ran

no invocation recorded.

draw_caption Not yet run
unverified (harvested, no recorded run)
yekeren/Cap2Det/core/plotlib.py
code served (permissive licence) · get_code("f8f60a78c2de43e1")
How it ran

no invocation recorded.

get_best_model_checkpoint Not yet run
unverified (harvested, no recorded run)
yekeren/Cap2Det/core/training_utils.py
code served (permissive licence) · get_code("4c6055237031fde4")
How it ran

no invocation recorded.

masked_maximum Not yet run
unverified (harvested, no recorded run)
yekeren/Cap2Det/core/utils.py
code served (permissive licence) · get_code("9d288a679f2437bf")
How it ran

no invocation recorded.

random_crop Not yet run
unverified (harvested, no recorded run)
yekeren/Cap2Det/core/preprocess.py
code served (permissive licence) · get_code("54265b15b32a3560")
How it ran

no invocation recorded.

scale_to_new_size Not yet run
unverified (harvested, no recorded run)
yekeren/Cap2Det/core/box_utils.py
code served (permissive licence) · get_code("57546be4901a2405")
How it ran

no invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 later) and 10 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
masked_maximum 1 other paper
1 later
1910.09862 (2019-10)
A Prototypical Triplet Loss for Cover Detection

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

Repositories linked to this paper

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

Abstract

Learning to localize and name object instances is a fundamental problem in vision, but state-of-the-art approaches rely on expensive bounding box supervision. While weakly supervised detection (WSOD) methods relax the need for boxes to that of image-level annotations, even cheaper supervision is naturally available in the form of unstructured textual descriptions that users may freely provide when uploading image content. However, straightforward approaches to using such data for WSOD wastefully discard captions that do not exactly match object names. Instead, we show how to squeeze the most information out of these captions by training a text-only classifier that generalizes beyond dataset boundaries. Our discovery provides an opportunity for learning detection models from noisy but more abundant and freely-available caption data. We also validate our model on three classic object detection benchmarks and achieve state-of-the-art WSOD performance. Our code is available at https://github.com/yekeren/Cap2Det.

For agents

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

get_harvested_code_for_paper("1907.10164")
get_code_for_paper("1907.10164")
have("1907.10164")

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

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

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

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

Connect an agent — have() is free.