SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2003.09163 · 2020

Detection in Crowded Scenes: One Proposal, Multiple Predictions

arXiv · PDF · Open in the Atlas

Code that ran

8 of 10 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 8 have no contract verdict; 0 failures of our instrument; 2 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/2003.09163.json · badge: /api/ran/2003.09163.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
megvii-model/CrowdDetection canonical (classifier label)
classifier basis: census
4 ran · 0 no recorded run
Purkialo/CrowdDet community (classifier label)
classifier basis not recorded on the link
4 ran · 2 no recorded run
FunctionStatusWhere it lives
clip_boxes_opr Ran
ran on a synthesized input
megvii-model/CrowdDetection/lib/det_opr/bbox_opr.py
code served (permissive licence) · get_code("60ee506bd75880e6")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 8) 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: tensor of shape (batch, num_boxes_times_4)
# The function uses boxes[:, 0::4], boxes[:, 1::4], boxes[:, 2::4], boxes[:, 3::4]
# These are box coordinates in format [x1, y1, x2, y2, x1, y1, x2, y2, ...]
boxes = torch.tensor([
    [10.5, 20.3, 100.2, 150.7, 5.0, 15.0, 80.0, 120.0],
    [30.0, 40.0, 200.0, 250.0, 50.0, 60.0, 180.0, 200.0]
], dtype=torch.float32)

# im_info: [height, width, ...] or similar
# The function accesses im_info[0] for height and im_info[1] for width
im_info = torch.tensor([256.0, 512.0], dtype=torch.float32)

ARGS = {
    "boxes": boxes,
    "im_info": im_info
}
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, 8) — shape (2, 8) 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
common_process Ran
ran on a synthesized input
megvii-model/CrowdDetection/evaluate/compute_JI.py
code served (permissive licence) · get_code("592f2e1c9759dfd8")
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 math
from multiprocessing import Queue, Process
import numpy as np


def worker_func(result_queue, sample_data):
    """Worker function that processes sample data and puts results in queue."""
    for item in sample_data:
        result_queue.put(item * 2)


# Create a list of simple numeric values to process
cls_list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

ARGS = {
    "func": worker_func,
    "cls_list": cls_list,
    "nr_procs": 3
}
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
compute_APMR Ran
ran on a synthesized input
Purkialo/CrowdDet/lib/evaluate/compute_APMR.py
code served (permissive licence) · get_code("6924df036c046ae9")
How it ran

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

import torch
import numpy as np
from pathlib import Path
import tempfile
import json
import os


class MockDatabase:
    """Stand-in Database class that mimics the expected interface."""
    
    def __init__(self, gt_path, dt_path, target_key, unused_arg, mode):
        self.gt_path = gt_path
        self.dt_path = dt_path
        self.target_key = target_key
        self.mode = mode
        self.comparisons = []
    
    def compare(self):
        """Perform comparison between ground truth and detections."""
        self.comparisons = [
            {"tp": True, "fp": False, "score": 0.95},
            {"tp": False, "fp": True, "score": 0.45},
            {"tp": True, "fp": False, "score": 0.85},
        ]
    
    def eval_AP(self):
        """Evaluate Average Precision."""
        # Return (mAP, details_dict)
        mAP = 0.8567
        details = {"class_ap": [0.85, 0.86]}
        return mAP, details
    
    def eval_MR(self):
        """Evaluate Miss Rate."""
        # Return (mMR, details_dict)
        mMR = 0.1234
        details = {"class_mr": [0.12, 0.13]}
        return mMR, details


# Monkey-patch the Database class in the module scope
import sys
current_module = sys.modules[__name__]
current_module.Database = MockDatabase


# Create temporary file paths for gt and dt
gt_path = "/tmp/gt_data.json"
dt_path = "/tmp/dt_data.json"

# Prepare minimal valid data structures that would be expected
gt_data = {
    "images": [{"id": 1, "name": "img1.jpg"}],
    "annotations": [{"id": 1, "image_id": 1, "category_id": 1, "bbox": [10, 10, 50, 50]}]
}

dt_data = [
    {"image_id": 1, "category_id": 1, "bbox": [11, 11, 49, 49], "score": 0.95}
]

ARGS = {
    "dt_path": dt_path,
    "gt_path": gt_path,
    "target_key": None,
    "mode": 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 tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
filter_boxes_opr Ran
ran on a synthesized input
megvii-model/CrowdDetection/lib/det_opr/bbox_opr.py
code served (permissive licence) · get_code("934447ae71c62cee")
How it ran

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

torch.manual_seed(0)

# boxes: tensor of shape (N, 4) where each row is [x0, y0, x1, y1]
# min_size: integer threshold for minimum box dimension
boxes = torch.tensor([
    [10.0, 20.0, 50.0, 80.0],   # width=41, height=61 (both >= min_size)
    [100.0, 100.0, 105.0, 110.0]  # width=6, height=11
], dtype=torch.float32)

min_size = 10

ARGS = {
    "boxes": boxes,
    "min_size": min_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 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
gather Ran
ran on a synthesized input
megvii-model/CrowdDetection/evaluate/compute_JI.py
code served (permissive licence) · get_code("fabe07d7d0c3a52c")
How it ran

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

import numpy as np

# Create sample results - each result dict needs 'n', 'm', 'ratio', 'cover', 'recall', 'k' keys
results = [
    {
        'n': 10,
        'm': 5,
        'ratio': 0.85,
        'cover': 0.92,
        'recall': 0.88,
        'k': 3
    },
    {
        'n': 15,
        'm': 7,
        'ratio': 0.78,
        'cover': 0.89,
        'recall': 0.91,
        'k': 4
    },
    {
        'n': 0,
        'm': 0,
        'ratio': 0.80,
        'cover': 0.90,
        'recall': 0.87,
        'k': 2
    }
]

ARGS = {
    'results': results
}
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, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_padded_tensor Ran
ran on a synthesized input
Purkialo/CrowdDet/lib/det_oprs/utils.py
code served (permissive licence) · get_code("65810c1b0f4fb989")
How it ran

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

# Test with a 4D tensor (batch, channels, height, width)
tensor_4d = torch.randn(2, 3, 5, 7)

# Test case 1: 4D tensor with multiple_number=8 and default pad_value
ARGS = {
    "tensor": tensor_4d,
    "multiple_number": 8,
    "pad_value": 0
}
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, 3, 8, 8) — shape (2, 3, 8, 8) 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_loss Ran
ran on a synthesized input
Purkialo/CrowdDet/lib/det_oprs/loss_opr.py
code served (permissive licence) · get_code("80e2e1c046be957c")
How it ran

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

torch.manual_seed(0)

# Create small tensors for pred and target
# batch_size=2, feature_dim=4
pred = torch.randn(2, 4)
target = torch.randn(2, 4)

# Create a beta value
beta = 0.5

ARGS = {
    "pred": pred,
    "target": target,
    "beta": beta,
}
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 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
subsample_masks Ran
ran on a synthesized input
Purkialo/CrowdDet/lib/det_oprs/fpn_roi_target.py
code served (permissive licence) · get_code("d5547caab3c5568f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 1, dtype family float, shape (8,) 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 mask tensor with some values
# The function uses masks.eq(sample_value) to find positions
# and masks[negative] = not sample_value to set values
# So we need a tensor with at least some elements equal to sample_value
masks = torch.tensor([1, 0, 1, 1, 0, 1, 1, 0], dtype=torch.bool)

num_samples = 3
sample_value = True

ARGS = {
    "masks": masks,
    "num_samples": num_samples,
    "sample_value": sample_value,
}
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 1, dtype family float, shape (8,) — shape (8,) 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
batch_clip_proposals Not yet run
unverified (harvested, no recorded run)
Purkialo/CrowdDet/lib/det_oprs/bbox_opr.py
code served (permissive licence) · get_code("2727801e3134f32b")
How it ran

no invocation recorded.

focal_loss Not yet run
unverified (harvested, no recorded run)
Purkialo/CrowdDet/lib/det_oprs/loss_opr.py
code served (permissive licence) · get_code("f2466bea04ccb88b")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 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.

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

We propose a simple yet effective proposal-based object detector, aiming at detecting highly-overlapped instances in crowded scenes. The key of our approach is to let each proposal predict a set of correlated instances rather than a single one in previous proposal-based frameworks. Equipped with new techniques such as EMD Loss and Set NMS, our detector can effectively handle the difficulty of detecting highly overlapped objects. On a FPN-Res50 baseline, our detector can obtain 4.9\% AP gains on challenging CrowdHuman dataset and 1.0\% $\text{MR}^{-2}$ improvements on CityPersons dataset, without bells and whistles. Moreover, on less crowed datasets like COCO, our approach can still achieve moderate improvement, suggesting the proposed method is robust to crowdedness. Code and pre-trained models will be released at https://github.com/megvii-model/CrowdDetection.

For agents

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

get_harvested_code_for_paper("2003.09163")
get_code_for_paper("2003.09163")
have("2003.09163")

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

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

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

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

Connect an agent — have() is free.