SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2003.05541 · 2020

VSGNet: Spatial Attention Network for Detecting Human Object Interactions Using Graph Convolutions

arXiv · PDF · Open in the Atlas

Code that ran

8 of 8 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; 0 no recorded run), measured 2026-11-21; 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.05541.json · badge: /api/ran/2003.05541.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
ASMIftekhar/VSGNet canonical (classifier label)
classifier basis: census
8 ran · 0 no recorded run
FunctionStatusWhere it lives
compute_ap Ran
ran on a synthesized input
ASMIftekhar/VSGNet/scripts_hico/HICO_eval/compute_map.py
code served (permissive licence) · get_code("c9b8d2d5da5a251d")
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 float64, 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 numpy as np

# Create small numpy arrays for precision and recall
# precision and recall are 1D arrays used with indexing and np.max
precision = np.array([0.9, 0.85, 0.8, 0.75, 0.7, 0.65, 0.6, 0.55, 0.5, 0.45, 0.4])
recall = np.array([0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.85, 0.9, 0.95])

ARGS = {
    "precision": precision,
    "recall": recall
}
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 float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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_area Ran
ran on a synthesized input
ASMIftekhar/VSGNet/scripts_hico/HICO_eval/bbox_utils.py
code served (permissive licence) · get_code("5f8551dd0fb2cf55")
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

torch.manual_seed(0)

# bbox is a tuple of 4 coordinates (x1, y1, x2, y2)
bbox = (10, 20, 30, 40)

# invalid is the value to return if the bbox is invalid (x2 <= x1 or y2 <= y1)
invalid = None

ARGS = {
    "bbox": bbox,
    "invalid": invalid,
}
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 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
compute_area_batch Ran
ran on a synthesized input
ASMIftekhar/VSGNet/scripts_hico/HICO_eval/bbox_utils.py
code served (permissive licence) · get_code("5c81f0f6cf474579")
How it ran

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

import numpy as np

# Create a small batch of bounding boxes
# Format: [x1, y1, x2, y2] for each box
# batch_size = 2, each box has 4 coordinates
bbox = np.array([
    [10.0, 20.0, 50.0, 80.0],  # valid box
    [100.0, 150.0, 90.0, 140.0]  # invalid box (x2 < x1, y2 < y1)
], dtype=np.float32)

ARGS = {
    "bbox": bbox
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (2,) — shape (2,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_iou Ran
ran on a synthesized input
ASMIftekhar/VSGNet/scripts_hico/HICO_eval/bbox_utils.py
code served (permissive licence) · get_code("d342aa66e09cb8a9")
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 float, ndim 0, dtype family float, 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 compute_iou takes two bounding boxes and an optional verbose flag
# bbox1 and bbox2 are expected to be unpacked as x1, y1, x2, y2
# They should be iterables/tuples with 4 elements

bbox1 = [10, 20, 50, 60]  # x1, y1, x2, y2 for first box
bbox2 = [30, 40, 70, 80]  # x1, y1, x2, y2 for second box

ARGS = {
    "bbox1": bbox1,
    "bbox2": bbox2,
    "verbose": False,
}
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 float, ndim 0, dtype family float, 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
compute_pr Ran
ran on a synthesized input
ASMIftekhar/VSGNet/scripts_hico/HICO_eval/compute_map.py
code served (permissive licence) · get_code("7eba67cf40d2079c")
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 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Analyze the function:
# - y_true: list or array-like of boolean/binary values
# - y_score: list or array-like of scores (same length as y_true)
# - npos: integer representing number of positive samples

# Create small test data
y_true = [True, False, True, False, True]
y_score = [0.9, 0.2, 0.8, 0.3, 0.7]
npos = 3

ARGS = {
    "y_true": y_true,
    "y_score": y_score,
    "npos": npos
}
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 2, 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
dumps_json_object Ran
ran on a synthesized input
ASMIftekhar/VSGNet/scripts_hico/HICO_eval/load.py
code served (permissive licence) · get_code("6c82cba89895242a")
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 str. 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 json
import numpy as np

class NumpyAwareJSONEncoder(json.JSONEncoder):

    def default(self, obj):
        if isinstance(obj, np.ndarray):
            if obj.ndim == 1:
                return obj.tolist()
            else:
                return [self.default(obj[i]) for i in range(obj.shape[0])]
        elif isinstance(obj, np.int64):
            return int(obj)
        elif isinstance(obj, np.int32):
            return int(obj)
        elif isinstance(obj, np.int16):
            return int(obj)
        elif isinstance(obj, np.float64):
            return float(obj)
        elif isinstance(obj, np.float32):
            return float(obj)
        elif isinstance(obj, np.float16):
            return float(obj)
        elif isinstance(obj, np.uint64):
            return int(obj)
        elif isinstance(obj, np.uint32):
            return int(obj)
        elif isinstance(obj, np.uint16):
            return int(obj)
        return json.JSONEncoder.default(self, obj)

def dumps_json_object(dump_object, indent=4):
    data = json.dumps(dump_object, cls=NumpyAwareJSONEncoder, sort_keys=True, indent=indent)
    return data

# Create test data with various numpy types
dump_object = {
    "int64_val": np.int64(42),
    "int32_val": np.int32(10),
    "int16_val": np.int16(5),
    "float64_val": np.float64(3.14),
    "float32_val": np.float32(2.71),
    "float16_val": np.float16(1.5),
    "uint64_val": np.uint64(100),
    "uint32_val": np.uint32(50),
    "uint16_val": np.uint16(25),
    "array_1d": np.array([1, 2, 3, 4]),
    "array_2d": np.array([[1, 2], [3, 4], [5, 6]]),
    "nested": {
        "inner_array": np.array([7, 8, 9]),
        "inner_value": np.float32(1.23)
    },
    "list": [1, 2, "string", np.int64(99)],
    "string": "test",
    "number": 42
}

indent_value = 2

ARGS = {
    "dump_object": dump_object,
    "indent": indent_value
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
load_json_object Ran
ran on a synthesized input
ASMIftekhar/VSGNet/scripts_hico/HICO_eval/load.py
code served (permissive licence) · get_code("fbb293b5e43e3fa4")
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 json
import gzip
import tempfile
import os

# Create a temporary directory for test files
temp_dir = tempfile.mkdtemp()

# Create a simple JSON file (uncompressed)
uncompressed_file = os.path.join(temp_dir, "test.json")
test_data = {"key": "value", "number": 42, "list": [1, 2, 3]}
with open(uncompressed_file, 'w') as f:
    json.dump(test_data, f)

# Create a compressed JSON file
compressed_file = os.path.join(temp_dir, "test.json.gz")
with gzip.open(compressed_file, 'wb') as f:
    f.write(json.dumps(test_data).encode('utf8'))

# Define ARGS for the function
ARGS = {
    'file_name': uncompressed_file,
    'compress': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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
load_pickle_object Ran
ran on a synthesized input
ASMIftekhar/VSGNet/scripts_hico/HICO_eval/load.py
code served (permissive licence) · get_code("f9531bd8a2f31c23")
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 pickle
import gzip
import tempfile
import os

# Create a temporary directory for test files
temp_dir = tempfile.mkdtemp()

# Create test data to pickle
test_data = {
    'key1': 'value1',
    'key2': [1, 2, 3],
    'key3': {'nested': 'dict'}
}

# Create a compressed pickle file
compressed_file = os.path.join(temp_dir, 'test_compressed.pkl.gz')
with gzip.open(compressed_file, 'wb') as f:
    f.write(pickle.dumps(test_data))

# Create an uncompressed pickle file
uncompressed_file = os.path.join(temp_dir, 'test_uncompressed.pkl')
with open(uncompressed_file, 'wb') as f:
    f.write(pickle.dumps(test_data))

# Define arguments for the function
ARGS = {
    'file_name': compressed_file,
    'compress': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type 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

Also present in other papers' code

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

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

FunctionAlso present inEarliest-datedOthers named
compute_area 2 other papers
2 later
2007.08728 (2020-07)
Detecting Human-Object Interactions with Action Co-occurrence Priors
2112.08647 (2021-12)
QAHOI: Query-Based Anchors for Human-Object Interaction Detection
compute_area_batch 1 other paper
1 later
2007.08728 (2020-07)
Detecting Human-Object Interactions with Action Co-occurrence Priors
compute_iou 1 other paper
1 later
2007.08728 (2020-07)
Detecting Human-Object Interactions with Action Co-occurrence Priors
dumps_json_object 1 other paper
1 later
2007.08728 (2020-07)
Detecting Human-Object Interactions with Action Co-occurrence Priors
load_json_object 1 other paper
1 later
2007.08728 (2020-07)
Detecting Human-Object Interactions with Action Co-occurrence Priors
load_pickle_object 1 other paper
1 later
2007.08728 (2020-07)
Detecting Human-Object Interactions with Action Co-occurrence Priors

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-21.

Repositories linked to this paper

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

Abstract

Comprehensive visual understanding requires detection frameworks that can effectively learn and utilize object interactions while analyzing objects individually. This is the main objective in Human-Object Interaction (HOI) detection task. In particular, relative spatial reasoning and structural connections between objects are essential cues for analyzing interactions, which is addressed by the proposed Visual-Spatial-Graph Network (VSGNet) architecture. VSGNet extracts visual features from the human-object pairs, refines the features with spatial configurations of the pair, and utilizes the structural connections between the pair via graph convolutions. The performance of VSGNet is thoroughly evaluated using the Verbs in COCO (V-COCO) and HICO-DET datasets. Experimental results indicate that VSGNet outperforms state-of-the-art solutions by 8% or 4 mAP in V-COCO and 16% or 3 mAP in HICO-DET.

For agents

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

get_harvested_code_for_paper("2003.05541")
get_code_for_paper("2003.05541")
have("2003.05541")

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

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

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

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

Connect an agent — have() is free.