SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2007.02419 · 2020

Attention-based Joint Detection of Object and Semantic Part

arXiv · PDF · Open in the Atlas

Code that ran

8 of 12 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; 1 honoured the contract we drafted, 0 violated it and 5 have no contract verdict; 2 failures of our instrument; 4 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/2007.02419.json · badge: /api/ran/2007.02419.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
kevalmorabia97/Object-and-Semantic-Part-Detection-pyTorch canonical (classifier label)
classifier basis: census
8 ran · 4 no recorded run
FunctionStatusWhere it lives
all_gather Ran
ran; our contract draft was wrong, not the code
kevalmorabia97/Object-and-Semantic-Part-Detection-pyTorch/references/detection/utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from kellyiss/situformer, is pointer only (licence: NONE) · get_code("aa6da43d05cfaf65")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from kellyiss/situformer, 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.

collate_fn Ran
ran, honoured the contract we drafted
kevalmorabia97/Object-and-Semantic-Part-Detection-pyTorch/references/detection/utils.py
code served (permissive licence) · get_code("90fadec0aec03c1b")
How it ran

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

import torch

torch.manual_seed(0)

# The collate_fn function takes a batch parameter and unpacks it using zip(*batch)
# This is typically used with a DataLoader where batch is a list of samples
# Each sample should be a tuple/list of elements that can be zipped together

# Create a simple batch of data
# Each item in the batch is a tuple of (input, target)
batch = [
    (torch.randn(4, 3), torch.tensor([1, 0, 1, 0])),
    (torch.randn(4, 3), torch.tensor([0, 1, 0, 1])),
]

ARGS = {
    "batch": batch
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
compute_per_class_AP Ran
ran on a synthesized input
kevalmorabia97/Object-and-Semantic-Part-Detection-pyTorch/utils.py
code served (permissive licence) · get_code("36757954520a4642")
How it ran

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

import numpy as np

class MockCocoEval:
    """Mock COCO evaluator object with the structure needed by compute_per_class_AP"""
    def __init__(self):
        # precision shape: [T, R, K, A, M]
        # T=1 (IoU thresholds), R=10 (recall thresholds), K=5 (classes), A=1 (areas), M=3 (metrics)
        # We're accessing [0, :, c, 0, 2] so we need at least:
        # - dim 0: at least 1 (we access index 0)
        # - dim 1: at least 1 (we iterate with :)
        # - dim 2: at least 1 (we iterate c in range(n_classes))
        # - dim 3: at least 1 (we access index 0)
        # - dim 4: at least 3 (we access index 2)
        n_classes = 5  # number of non-background classes
        self.eval = {
            'precision': np.random.rand(1, 10, n_classes, 1, 3).astype(np.float32)
        }

class MockCocoEvaluator:
    """Mock CocoEvaluator with coco_eval attribute"""
    def __init__(self):
        self.coco_eval = {
            'bbox': MockCocoEval()
        }

# Create the coco_evaluator argument
mock_coco_evaluator = MockCocoEvaluator()

ARGS = {
    'coco_evaluator': mock_coco_evaluator
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_area Ran
ran on a synthesized input
kevalmorabia97/Object-and-Semantic-Part-Detection-pyTorch/utils.py
code served (permissive licence) · get_code("1be0d556ab75b233")
How it ran

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

import torch
import numpy as np

torch.manual_seed(0)

# The function get_area takes a box parameter and accesses indices [0], [1], [2], [3]
# It expects box to be indexable (like a list, tuple, or tensor)
# The computation is (box[2] - box[0]) * (box[3] - box[1])
# This suggests a bounding box format: [x_min, y_min, x_max, y_max]

# Create a valid box - a list of 4 coordinates
box = [10, 20, 50, 80]

ARGS = {
    "box": box
}
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
get_bndbox_from_mask Ran
ran on a synthesized input
kevalmorabia97/Object-and-Semantic-Part-Detection-pyTorch/extra/parse_Pascal_VOC_Part_Anno.py
code served (permissive licence) · get_code("7335c4d9a55a6e3a")
How it ran

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

import numpy as np

# Construct a small binary mask with some positive values
# The function looks for coordinates where bin_mask > 0
# Create a 5x7 binary mask with a few positive pixels
bin_mask = np.array([
    [0, 0, 0, 0, 0, 0, 0],
    [0, 1, 1, 0, 0, 0, 0],
    [0, 1, 1, 1, 0, 0, 0],
    [0, 0, 1, 1, 0, 0, 0],
    [0, 0, 0, 0, 0, 0, 0]
])

ARGS = {
    'bin_mask': bin_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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_transforms Ran
ran on a synthesized input
kevalmorabia97/Object-and-Semantic-Part-Detection-pyTorch/transforms.py
code served (permissive licence) · get_code("20a68e0aaa941a54")
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 Compose. 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 random
from PIL import Image
import numpy as np

torch.manual_seed(0)
random.seed(0)

ARGS = {
    "is_train": False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Compose — a Compose output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Compose 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
merge Ran
ran on a synthesized input
kevalmorabia97/Object-and-Semantic-Part-Detection-pyTorch/references/detection/coco_eval.py
code served (permissive licence) · get_code("eb4edcefd813ed1f")
How it ran

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

import numpy as np
from unittest.mock import MagicMock

# Mock the all_gather function since it's not defined in the provided code
# all_gather is typically used in distributed settings to collect data from all processes
def all_gather(data):
    # Simulate gathering from multiple processes
    # Return a list of the data (as if from multiple ranks)
    return [data]

# Inject the mock into the namespace for the merge function
import sys
current_module = sys.modules[__name__]
setattr(current_module, 'all_gather', all_gather)

# Create test data for img_ids parameter
# This should be a list/array of image IDs
img_ids = np.array([1, 2, 3, 2, 1], dtype=np.int64)

# Create test data for eval_imgs parameter
# Based on the function logic, it:
# - concatenates along axis 2 (third dimension)
# - indexes along the last dimension
# So eval_imgs should have shape (..., ..., N) where N is the number of images
eval_imgs = np.random.rand(4, 3, 5).astype(np.float32)

ARGS = {
    'img_ids': img_ids,
    'eval_imgs': eval_imgs
}
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 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
reduce_dict Ran
ran; our contract draft was wrong, not the code
kevalmorabia97/Object-and-Semantic-Part-Detection-pyTorch/references/detection/utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from kellyiss/situformer, is pointer only (licence: NONE) · get_code("05992505df9ef0cd")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from kellyiss/situformer, 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.

evaluate Not yet run
unverified (harvested, no recorded run)
kevalmorabia97/Object-and-Semantic-Part-Detection-pyTorch/references/detection/engine.py
code served (permissive licence) · get_code("8759b128e38116fd")
How it ran

no invocation recorded.

get_FasterRCNN_model Not yet run
unverified (harvested, no recorded run)
kevalmorabia97/Object-and-Semantic-Part-Detection-pyTorch/models.py
code served (permissive licence) · get_code("5032c7169244d3fc")
How it ran

no invocation recorded.

parse_pascal_part_mat_anno Not yet run
unverified (harvested, no recorded run)
kevalmorabia97/Object-and-Semantic-Part-Detection-pyTorch/extra/parse_Pascal_VOC_Part_Anno.py
code served (permissive licence) · get_code("b97da21431b8c92f")
How it ran

no invocation recorded.

train_one_epoch Not yet run
unverified (harvested, no recorded run)
kevalmorabia97/Object-and-Semantic-Part-Detection-pyTorch/references/detection/engine.py
code served (permissive licence) · get_code("5138bda1d3cc8d39")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 4 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 4 later) and 8 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
reduce_dict 33 other papers
2 dated earlier, 31 later
1811.07628 (2018-11)
ATOM: Accurate Tracking by Overlap Maximization
1811.10200 (2018-11)
IDD: A Dataset for Exploring Problems of Autonomous Navigation in Unconstrained Environments
2104.00969 (2021-04)
TubeR: Tubelet Transformer for Video Action Detection
and 30 more not named here
all_gather 30 other papers
2 dated earlier, 28 later
1811.07628 (2018-11)
ATOM: Accurate Tracking by Overlap Maximization
1811.10200 (2018-11)
IDD: A Dataset for Exploring Problems of Autonomous Navigation in Unconstrained Environments
2104.00969 (2021-04)
TubeR: Tubelet Transformer for Video Action Detection
and 27 more not named here
collate_fn 7 other papers
3 dated earlier, 4 later
1405.0312 (2014-05)
Microsoft COCO: Common Objects in Context
1811.10200 (2018-11)
IDD: A Dataset for Exploring Problems of Autonomous Navigation in Unconstrained Environments
1901.07973 (2019-01)
DeepFashion2: A Versatile Benchmark for Detection, Pose Estimation, Segmentation and Re-Identification of Clothing Images
and 4 more not named here
merge 1 other paper
1 later
2207.11103 (2022-07)
DeVIS: Making Deformable Transformers Work for Video Instance Segmentation

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

In this paper, we address the problem of joint detection of objects like dog and its semantic parts like face, leg, etc. Our model is created on top of two Faster-RCNN models that share their features to perform a novel Attention-based feature fusion of related Object and Part features to get enhanced representations of both. These representations are used for final classification and bounding box regression separately for both models. Our experiments on the PASCAL-Part 2010 dataset show that joint detection can simultaneously improve both object detection and part detection in terms of mean Average Precision (mAP) at IoU=0.5.

For agents

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

get_harvested_code_for_paper("2007.02419")
get_code_for_paper("2007.02419")
have("2007.02419")

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

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

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

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

Connect an agent — have() is free.