SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2303.05675 · CVPR · 2023

HumanBench: Towards General Human-centric Perception with Projector Assisted Pretraining

Yi Li, Feng Zhu, Rui Zhao, Lei Bai, Wanli Ouyang, Yizhou Wang, Meilin Chen, Cheng Chen, Shixiang Tang, Qingsong Xie, Haiyang Yang, Yuanzheng Ci

arXiv · PDF · Open in the Atlas

Code that ran

15 of 25 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 7 have no contract verdict; 7 failures of our instrument; 10 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/2303.05675.json · badge: /api/ran/2303.05675.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
OpenGVLab/HumanBench community
Papers with Code archive
15 ran · 10 no recorded run
FunctionStatusWhere it lives
NestedTensor Ran
ran on a synthesized input · constructed an object; no result was computed
OpenGVLab/HumanBench/PATH/core/models/backbones/vitdet_for_ladder_attention_share_pos_embed.py
code served (permissive licence) · get_code("39af89396152713c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned NestedTensor: the class was constructed and called, and the call returned an instance of its own class. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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
from typing import Optional

class NestedTensor(object):

    def __init__(self, tensors, mask: Optional[torch.Tensor]):
        self.tensors = tensors
        self.mask = mask

    def to(self, device):
        cast_tensor = self.tensors.to(device)
        mask = self.mask
        if mask is not None:
            assert mask is not None
            cast_mask = mask.to(device)
        else:
            cast_mask = None
        return NestedTensor(cast_tensor, cast_mask)

    def decompose(self):
        return (self.tensors, self.mask)

    def cuda(self):
        return self.to('cuda')

    def __repr__(self):
        return str(self.tensors)


INIT_ARGS = {
    'tensors': torch.randn(2, 4, 3),
    'mask': torch.ones(2, 4, 3, dtype=torch.bool)
}

ARGS = {
    'device': 'cpu'
}

METHOD = 'to'

if __name__ == '__main__':
    nested = NestedTensor(**INIT_ARGS)
    result = nested.to(**ARGS)
    print(result)
    print("decompose:", result.decompose())
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type NestedTensor — the call returned an instance of its own class, which has no array shape; none is stated — the instrument coerces any output to an array; for a NestedTensor 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
PatchEmbed Ran
ran on a synthesized input
OpenGVLab/HumanBench/PATH/core/models/backbones/vitdet_for_ladder_attention_share_pos_embed.py
code served (permissive licence) · get_code("9af8e85813684a76")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) 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 torch.nn as nn
import torch.nn.functional as F
from timm.models.layers import drop_path, to_2tuple, trunc_normal_

class PatchEmbed(nn.Module):
    """ Image to Patch Embedding
    """

    def __init__(self, img_size=224, patch_size=16, in_chans=3, embed_dim=768):
        super().__init__()
        img_size = to_2tuple(img_size)
        patch_size = to_2tuple(patch_size)
        self.patch_shape = (img_size[0] // patch_size[0], img_size[1] // patch_size[1])
        self.num_patches = self.patch_shape[0] * self.patch_shape[1]
        self.img_size = img_size
        self.patch_size = patch_size
        self.proj = nn.Conv2d(in_chans, embed_dim, kernel_size=patch_size, stride=patch_size)

    def forward(self, x, mask=None, **kwargs):
        x = self.proj(x)
        Hp, Wp = (x.shape[2], x.shape[3])
        x = x.flatten(2).transpose(1, 2)
        if mask is not None:
            mask = F.interpolate(mask[None].float(), size=(Hp, Wp)).to(torch.bool)[0]
        return (x, (Hp, Wp), mask)


INIT_ARGS = {
    'img_size': 32,
    'patch_size': 8,
    'in_chans': 3,
    'embed_dim': 4,
}

ARGS = {
    'x': torch.randn(2, 3, 32, 32),
    'mask': torch.ones(2, 32, 32),
}

if __name__ == '__main__':
    model = PatchEmbed(**INIT_ARGS)
    output = model(**ARGS)
    print("Output shapes:")
    print(f"  Embedded patches: {output[0].shape}")
    print(f"  Patch grid: {output[1]}")
    print(f"  Mask shape: {output[2].shape if output[2] is not None else None}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
timm, 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
autocast Ran
ran; our contract draft was wrong, not the code
OpenGVLab/HumanBench/PATH/core/models/backbones/vitdet_for_ladder_attention_share_pos_embed.py
code served (permissive licence) · get_code("69b9d45d322d1680")
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 _GeneratorContextManager. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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
from contextlib import contextmanager

torch.manual_seed(0)

ARGS = {
    "enabled": True
}
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 _GeneratorContextManager — a _GeneratorContextManager output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a _GeneratorContextManager 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
enable_checkpointing Ran
ran on a synthesized input
OpenGVLab/HumanBench/PATH/core/models/backbones/vitdet_for_ladder_attention_share_pos_embed.py
code served (permissive licence) · get_code("68e7a844f6a217c9")
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 _GeneratorContextManager. 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
from contextlib import contextmanager
from dataclasses import dataclass
import threading
from typing import Generator

@dataclass
class ThreadLocalCheckpointingState(threading.local):
    is_checkpointing: bool = False
    is_recomputing: bool = False
    is_checkpointing_disabled: bool = False

thread_local = ThreadLocalCheckpointingState()

@contextmanager
def enable_checkpointing() -> Generator[None, None, None]:
    """Makes :func:`is_checkpointing` return :data:`True` within a context."""
    orig = thread_local.is_checkpointing
    thread_local.is_checkpointing = True
    try:
        yield
    finally:
        thread_local.is_checkpointing = orig

# Test setup - enable_checkpointing takes no parameters
ARGS = {}
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 _GeneratorContextManager — a _GeneratorContextManager output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a _GeneratorContextManager 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
enable_recomputing Ran
ran on a synthesized input
OpenGVLab/HumanBench/PATH/core/models/backbones/vitdet_for_ladder_attention_share_pos_embed.py
code served (permissive licence) · get_code("d32957ea95e1f955")
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 _GeneratorContextManager. 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 threading
from contextlib import contextmanager
from dataclasses import dataclass
from typing import Generator

torch.manual_seed(0)

@dataclass
class ThreadLocalCheckpointingState(threading.local):
    is_checkpointing: bool = False
    is_recomputing: bool = False
    is_checkpointing_disabled: bool = False

thread_local = ThreadLocalCheckpointingState()

@contextmanager
def enable_recomputing() -> Generator[None, None, None]:
    """Makes :func:`is_recomputing` return :data:`True` within a context."""
    orig = thread_local.is_recomputing
    thread_local.is_recomputing = True
    try:
        yield
    finally:
        thread_local.is_recomputing = orig

# The function enable_recomputing() takes no parameters
ARGS = {}
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 _GeneratorContextManager — a _GeneratorContextManager output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a _GeneratorContextManager 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_2d_sincos_pos_embed Ran
ran, honoured the contract we drafted
OpenGVLab/HumanBench/PATH/core/models/backbones/vitdet_for_ladder_attention_share_pos_embed.py
code served (permissive licence) · get_code("0973dbf09d2066c7")
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 ndarray, ndim 2, dtype family float, shape (16, 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 numpy as np
from timm.models.layers import to_2tuple

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

# Define arguments for get_2d_sincos_pos_embed
ARGS = {
    "embed_dim": 8,  # Must be even; small value for testing
    "grid_size": 4,  # Small grid size
    "cls_token": False  # Test without cls_token
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, timm — 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 (16, 8) — shape (16, 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
get_abs_pos Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
OpenGVLab/HumanBench/PATH/core/models/backbones/vitdet_for_ladder_attention_share_pos_embed.py
code served (permissive licence) · get_code("8dc7dc2bedef1191")
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 Tensor, ndim 3, dtype family float, shape (1, 17, 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
import math

torch.manual_seed(0)

# Test case 1: with cls_token, no resizing needed
# abs_pos shape: (1, num_position, C) where num_position includes cls token
# For a 4x4 grid with cls token: 1 + 16 = 17 positions
abs_pos_1 = torch.randn(1, 17, 8)  # 1 cls token + 4x4 grid, embedding dim 8
has_cls_token_1 = True
hw_1 = (4, 4)

ARGS = {
    "abs_pos": abs_pos_1,
    "has_cls_token": has_cls_token_1,
    "hw": hw_1,
}
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 Tensor, ndim 3, dtype family float, shape (1, 17, 8) — shape (1, 17, 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
is_autocast_enabled Ran
ran on a synthesized input
OpenGVLab/HumanBench/PATH/core/models/backbones/vitdet_for_ladder_attention_share_pos_embed.py
code served (permissive licence) · get_code("a88ee7f6d338ad8d")
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 bool, ndim 0, 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

torch.manual_seed(0)

# This function takes no parameters, so ARGS should be an empty dict
ARGS = {}
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 bool, ndim 0, dtype family float — no output shape is stated: observe_signature.py could not observe it (no_inputs)
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
is_checkpointing Ran
ran on a synthesized input
OpenGVLab/HumanBench/PATH/core/models/backbones/vitdet_for_ladder_attention_share_pos_embed.py
code served (permissive licence) · get_code("dfb3581e62456ff2")
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 bool, ndim 0, 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
from dataclasses import dataclass
import threading

# Define the thread-local state class
@dataclass
class ThreadLocalCheckpointingState(threading.local):
    is_checkpointing: bool = False
    is_recomputing: bool = False
    is_checkpointing_disabled: bool = False

thread_local = ThreadLocalCheckpointingState()

# Define the functions
def is_recomputing() -> bool:
    """Whether the current forward propagation is under checkpoint
    recomputation."""
    return thread_local.is_recomputing

def is_checkpointing() -> bool:
    """Whether the current forward propagation is under checkpointing."""
    return thread_local.is_checkpointing

# Test setup - no parameters needed for is_checkpointing()
ARGS = {}
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 bool, ndim 0, dtype family float — no output shape is stated: observe_signature.py could not observe it (no_inputs)
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
is_recomputing Ran
ran on a synthesized input
OpenGVLab/HumanBench/PATH/core/models/backbones/vitdet_for_ladder_attention_share_pos_embed.py
code served (permissive licence) · get_code("60a3f862716c1212")
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 bool, ndim 0, 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 threading
from dataclasses import dataclass

torch.manual_seed(0)

@dataclass
class ThreadLocalCheckpointingState(threading.local):
    is_checkpointing: bool = False
    is_recomputing: bool = False
    is_checkpointing_disabled: bool = False

thread_local = ThreadLocalCheckpointingState()

def is_recomputing() -> bool:
    """Whether the current forward propagation is under checkpoint
    recomputation. Use this to prevent duplicated side-effects at forward
    propagation::
        class Counter(nn.Module):
            def __init__(self):
                super().__init__()
                self.counter = 0
            def forward(self, input):
                if not is_recomputing():
                    self.counter += 1
                return input
    Returns:
        bool: :data:`True` if it's under checkpoint recomputation.
    """
    return thread_local.is_recomputing

# The function is_recomputing() takes no parameters
ARGS = {}
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 bool, ndim 0, dtype family float — no output shape is stated: observe_signature.py could not observe it (no_inputs)
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
pack_kwargs Ran
ran; our contract draft was wrong, not the code
OpenGVLab/HumanBench/PATH/core/models/backbones/vitdet_for_ladder_attention_share_pos_embed.py
code served (permissive licence) · get_code("87cadb13cda1c63e")
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
import numpy as np
from typing import Any, Tuple

torch.manual_seed(0)

# The function pack_kwargs takes *args and **kwargs
# It converts positional arguments and keyword arguments into two tuples:
# - kwarg_keys: tuple of keyword argument names
# - flat_args: tuple of all positional args followed by all keyword arg values

# Test with various argument types
ARGS = {
    "args": (1, 2, "hello", torch.tensor([1.0, 2.0, 3.0])),
    "kwargs": {
        "a": 3,
        "b": 4.5,
        "c": [1, 2, 3],
        "d": {"nested": "dict"}
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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
patch_batchnorm Ran
ran; our contract draft was wrong, not the code
OpenGVLab/HumanBench/PATH/core/models/backbones/vitdet_for_ladder_attention_share_pos_embed.py
code served (permissive licence) · get_code("37dc7bc4f8eea14d")
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 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 module with various batchnorm layers
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.bn1d = nn.BatchNorm1d(4)
        self.bn2d = nn.BatchNorm2d(3)
        self.bn3d = nn.BatchNorm3d(2)
        self.linear = nn.Linear(4, 4)
    
    def forward(self, x):
        return x

# Instantiate the model
module = SimpleModel()

# Define ARGS dictionary with the required parameter
ARGS = {
    "module": module
}
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 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
split_non_tensors Ran
ran; our contract draft was wrong, not the code
OpenGVLab/HumanBench/PATH/core/models/backbones/vitdet_for_ladder_attention_share_pos_embed.py
code served (permissive licence) · get_code("c0b365b386a2ce5a")
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
from typing import Optional, List, Any, Callable, Dict, NamedTuple, Set, Tuple, Union, cast, Generator

torch.manual_seed(0)

# Test case 1: Single tensor input
single_tensor = torch.randn(2, 4)

# Test case 2: Tuple with mixed tensors and non-tensors
tensor1 = torch.randn(2, 4)
tensor2 = torch.randn(3, 5)
non_tensor1 = None
non_tensor2 = 42
non_tensor3 = "hello"
mixed_tuple = (tensor1, tensor2, non_tensor1, non_tensor2, non_tensor3)

# Define ARGS with both test cases
ARGS = {
    "mixed": single_tensor
}
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
unpack_kwargs Ran
ran; our contract draft was wrong, not the code
OpenGVLab/HumanBench/PATH/core/models/backbones/vitdet_for_ladder_attention_share_pos_embed.py
code served (permissive licence) · get_code("c577116b3b35c1c3")
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
from typing import Any, Tuple, Dict

torch.manual_seed(0)

# Analyze the function:
# - kwarg_keys: Tuple[str, ...] - a tuple of strings representing keyword argument names
# - flat_args: Tuple[Any, ...] - a tuple of values to be unpacked
# The function splits flat_args into positional args and kwargs based on kwarg_keys

# Test case 1: Basic usage with some kwargs
kwarg_keys_1 = ("key1", "key2")
flat_args_1 = (1, 2, 3, "value1", "value2")

# Test case 2: No kwargs
kwarg_keys_2 = ()
flat_args_2 = (1, 2, 3)

# Test case 3: All args are kwargs
kwarg_keys_3 = ("a", "b", "c")
flat_args_3 = ("x", "y", "z")

# Test case 4: Mixed types including tensors
tensor_val = torch.tensor([1.0, 2.0])
kwarg_keys_4 = ("tensor_kwarg", "int_kwarg")
flat_args_4 = (42, 3.14, tensor_val, 100)

# Use the first test case as the main ARGS
ARGS = {
    "kwarg_keys": ("key1", "key2"),
    "flat_args": (1, 2, 3, "value1", "value2")
}
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
unpack_non_tensors Ran
ran; our contract draft was wrong, not the code
OpenGVLab/HumanBench/PATH/core/models/backbones/vitdet_for_ladder_attention_share_pos_embed.py
code served (permissive licence) · get_code("e9cfd29d0d37ed43")
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 torch
from typing import Optional, List, Dict, Any, Tuple

torch.manual_seed(0)

# Create small tensors for the tuple
tensor1 = torch.randn(2, 4)
tensor2 = torch.randn(3, 4)
tensor3 = torch.randn(1, 4)
tensors = (tensor1, tensor2, tensor3)

# Create packed_non_tensors dict with the structure expected by the function
# The function expects:
# - 'is_tensor': a list of booleans indicating if each position is a tensor
# - 'objects': a list of non-tensor objects
packed_non_tensors = {
    'is_tensor': [True, False, True, False, True],
    'objects': [
        {'key': 'value1'},
        [1, 2, 3]
    ]
}

ARGS = {
    'tensors': tensors,
    'packed_non_tensors': packed_non_tensors
}
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 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
Attention Not yet run
unverified (harvested, no recorded run)
OpenGVLab/HumanBench/PATH/core/models/backbones/vitdet_for_ladder_attention_share_pos_embed.py
code served (permissive licence) · get_code("d2b8be1e94eca236")
How it ran

no invocation recorded.

Block Not yet run
unverified (harvested, no recorded run)
OpenGVLab/HumanBench/PATH/core/models/backbones/vitdet_for_ladder_attention_share_pos_embed.py
code served (permissive licence) · get_code("344d0eb15f2cb514")
How it ran

no invocation recorded.

CheckpointFunction Not yet run
unverified (harvested, no recorded run)
OpenGVLab/HumanBench/PATH/core/models/backbones/vitdet_for_ladder_attention_share_pos_embed.py
code served (permissive licence) · get_code("8e99c11a4e7efdd5")
How it ran

no invocation recorded.

ViT Not yet run
unverified (harvested, no recorded run)
OpenGVLab/HumanBench/PATH/core/models/backbones/vitdet_for_ladder_attention_share_pos_embed.py
code served (permissive licence) · get_code("c8bcf97bcffa2bfd")
How it ran

no invocation recorded.

WindowAttention Not yet run
unverified (harvested, no recorded run)
OpenGVLab/HumanBench/PATH/core/models/backbones/vitdet_for_ladder_attention_share_pos_embed.py
code served (permissive licence) · get_code("fc286c766c71de79")
How it ran

no invocation recorded.

_checkpointed_forward Not yet run
unverified (harvested, no recorded run)
OpenGVLab/HumanBench/PATH/core/models/backbones/vitdet_for_ladder_attention_share_pos_embed.py
code served (permissive licence) · get_code("839f42723dc179f9")
How it ran

no invocation recorded.

calc_rel_pos_spatial Not yet run
unverified (harvested, no recorded run)
OpenGVLab/HumanBench/PATH/core/models/backbones/vitdet_for_ladder_attention_share_pos_embed.py
code served (permissive licence) · get_code("37c5cac4e0bae684")
How it ran

no invocation recorded.

checkpoint_wrapper Not yet run
unverified (harvested, no recorded run)
OpenGVLab/HumanBench/PATH/core/models/backbones/vitdet_for_ladder_attention_share_pos_embed.py
code served (permissive licence) · get_code("5de1a5737d6af117")
How it ran

no invocation recorded.

get_rng_state Not yet run
unverified (harvested, no recorded run)
OpenGVLab/HumanBench/PATH/core/models/backbones/vitdet_for_ladder_attention_share_pos_embed.py
code served (permissive licence) · get_code("f6675e1e59cce43a")
How it ran

no invocation recorded.

set_rng_state Not yet run
unverified (harvested, no recorded run)
OpenGVLab/HumanBench/PATH/core/models/backbones/vitdet_for_ladder_attention_share_pos_embed.py
code served (permissive licence) · get_code("9deeaa92c6fb18e5")
How it ran

no invocation recorded.

Also present in other papers' code

Of 25 samples lifted from this paper's linked repositories, 25 carry a function identity and 0 do not. Of the 25 distinct functions with an identity, 2 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 2 later) and 23 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
calc_rel_pos_spatial
brick of this paper's assembly: model
2 other papers
1 dated earlier, 1 later
2208.03987 (2022-08)
Advancing Plain Vision Transformer Towards Remote Sensing Foundation Model
2403.13430 (2024-03)
MTP: Advancing Remote Sensing Foundation Model via Multi-Task Pretraining
get_2d_sincos_pos_embed
brick of this paper's assembly: helper
1 other paper
1 later
2405.16273 (2024-05)
M 3 GPT: An Advanced Multimodal, Multitask Framework for Motion Comprehension and Generation

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

Human-centric perceptions include a variety of vision tasks, which have widespread industrial applications, including surveillance, autonomous driving, and the metaverse. It is desirable to have a general pretrain model for versatile human-centric downstream tasks. This paper forges ahead along this path from the aspects of both benchmark and pretraining methods. Specifically, we propose a HumanBench based on existing datasets to comprehensively evaluate on the common ground the generalization abilities of different pretraining methods on 19 datasets from 6 diverse downstream tasks, including person ReID, pose estimation, human parsing, pedestrian attribute recognition, pedestrian detection, and crowd counting. To learn both coarse-grained and fine-grained knowledge in human bodies, we further propose a Projector AssisTed Hierarchical pretraining method (PATH) to learn diverse knowledge at different granularity levels. Comprehensive evaluations on HumanBench show that our PATH achieves new state-of-the-art results on 17 downstream datasets and on-par results on the other 2 datasets. The code will be publicly at https://github.com/OpenGVLab/HumanBench.

For agents

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

get_harvested_code_for_paper("2303.05675")
get_code_for_paper("2303.05675")
have("2303.05675")

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

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

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

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

Connect an agent — have() is free.