SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2208.13196 · 2022

Grounded Affordance from Exocentric View

arXiv · PDF · Open in the Atlas

Code that ran

7 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; 1 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 2 failures of our instrument; 1 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/2208.13196.json · badge: /api/ran/2208.13196.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
lhc1224/cross-view-affordance-grounding canonical (classifier label)
classifier basis not recorded on the link
6 ran · 1 no recorded run
lhc1224/cross-view-ag canonical (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
get_downsampling_layer Ran
ran; our contract draft was wrong, not the code
lhc1224/cross-view-ag/code/cvpr/models/model.py
code served (permissive licence) · get_code("2f3607c0044a571e")
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 Sequential. 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

torch.manual_seed(0)

# Create a stand-in block class that has an expansion attribute
class Block:
    def __init__(self, expansion=4):
        self.expansion = expansion

# Define the arguments
ARGS = {
    "inplanes": 64,
    "block": Block(expansion=4),
    "planes": 256,
    "stride": 2
}
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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 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_hams Ran
ran on a synthesized input
lhc1224/cross-view-affordance-grounding/code/cvpr/AIM/modules/ham.py
code served (permissive licence) · get_code("926979188db87de1")
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 type. 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 torch import nn
import torch.nn.functional as F

torch.manual_seed(0)

class Args:
    """Stand-in config class for NMF2D initialization"""
    def __init__(self):
        self.SPATIAL = True
        self.MD_S = 2
        self.MD_R = 8
        self.TRAIN_STEPS = 2
        self.EVAL_STEPS = 3
        self.INV_T = 1
        self.ETA = 0.9

ARGS = {
    'key': 'NMF'
}
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 type — a type output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a type 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
img_processing Ran
ran on a synthesized input
lhc1224/cross-view-affordance-grounding/code/extension/viz.py
code served (permissive licence) · get_code("0e1108f5056fc0e2")
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 (1, 3, 224, 224) as a later run recorded it. 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, 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 torchvision.transforms as transforms
from PIL import Image
import numpy as np
from io import BytesIO

torch.manual_seed(0)

# Create a small dummy image and save it to a BytesIO object
# We'll create a PIL Image in memory
dummy_image_array = np.random.randint(0, 256, (224, 224, 3), dtype=np.uint8)
dummy_image = Image.fromarray(dummy_image_array)

# Save to BytesIO
img_bytes = BytesIO()
dummy_image.save(img_bytes, format='PNG')
img_bytes.seek(0)

# Save to a temporary path-like string (we'll use a workaround since no file I/O)
# Actually, let's create a proper PIL Image and pass its path
# Since we can't do file I/O, we need to mock the Image.open behavior
# Let's create a simple approach: use a valid image file path that PIL can read

# Create a minimal valid PNG in memory and write it
import tempfile
import os

# Create a temporary directory and file
temp_dir = tempfile.gettempdir()
temp_img_path = os.path.join(temp_dir, "dummy_test_img.png")

# Create and save a small dummy image
dummy_image.save(temp_img_path)

ARGS = {
    "img_path": temp_img_path
}
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 Tensor, ndim 4, dtype family float, shape (1, 3, 224, 224) — shape (1, 3, 224, 224) 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
linear_combination Ran
ran, honoured the contract we drafted
lhc1224/cross-view-affordance-grounding/code/extension/utils/loss.py
pointer only (licence: MIT); the stored copy get_code serves, from tmlr-group/atol, is pointer only (licence: NONE) · get_code("ee5e85cfd16bc5dc")
How it ran

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

reduce_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
lhc1224/cross-view-affordance-grounding/code/extension/utils/loss.py
pointer only (licence: MIT); the stored copy get_code serves, from tmlr-group/atol, is pointer only (licence: NONE) · get_code("9f7b947fbfdaa657")
How it ran

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

remove_layer Ran
ran on a synthesized input
lhc1224/cross-view-affordance-grounding/code/cvpr/util.py
code served (permissive licence) · get_code("51f3cdc830c1af1a")
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 torch
import torch.nn as nn

torch.manual_seed(0)

# Create a sample state_dict similar to what a PyTorch model would have
state_dict = {
    "layer1.weight": torch.randn(4, 3),
    "layer1.bias": torch.randn(4),
    "layer2.weight": torch.randn(5, 4),
    "layer2.bias": torch.randn(5),
    "batch_norm.weight": torch.randn(4),
    "batch_norm.bias": torch.randn(4),
}

keyword = "layer1"

ARGS = {
    "state_dict": state_dict,
    "keyword": keyword,
}
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 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
replace_layer Ran
ran on a synthesized input
lhc1224/cross-view-affordance-grounding/code/cvpr/util.py
code served (permissive licence) · get_code("80e06ed5380fee09")
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 torch
import torch.nn as nn

torch.manual_seed(0)

# Create a sample state_dict with some model parameters
state_dict = {
    'layer1.weight': torch.randn(4, 3),
    'layer1.bias': torch.randn(4),
    'layer2.weight': torch.randn(5, 4),
    'layer2.bias': torch.randn(5),
    'encoder.layer1.weight': torch.randn(3, 2),
    'encoder.layer1.bias': torch.randn(3),
}

keyword1 = 'layer1'
keyword2 = 'new_layer'

ARGS = {
    'state_dict': state_dict,
    'keyword1': keyword1,
    'keyword2': keyword2,
}
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 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
normalize_map Not yet run
unverified (harvested, no recorded run)
lhc1224/cross-view-affordance-grounding/code/extension/viz.py
code served (permissive licence) · get_code("9916b3f90d58fcaf")
How it ran

no invocation recorded.

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, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 2 later) and 6 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
linear_combination 3 other papers
1 dated earlier, 2 later
2103.15808 (2021-03)
CvT: Introducing Convolutions to Vision Transformers
2210.11065 (2022-10)
MovieCLIP: Visual Scene Recognition in Movies
2311.03236 (2023-11)
Out-of-distribution Detection Learning with Unreliable Out-of-distribution Sources
reduce_loss 3 other papers
1 dated earlier, 2 later
2103.15808 (2021-03)
CvT: Introducing Convolutions to Vision Transformers
2210.11065 (2022-10)
MovieCLIP: Visual Scene Recognition in Movies
2311.03236 (2023-11)
Out-of-distribution Detection Learning with Unreliable Out-of-distribution Sources

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

Affordance grounding aims to locate objects' "action possibilities" regions, which is an essential step toward embodied intelligence. Due to the diversity of interactive affordance, the uniqueness of different individuals leads to diverse interactions, which makes it difficult to establish an explicit link between object parts and affordance labels. Human has the ability that transforms the various exocentric interactions into invariant egocentric affordance to counter the impact of interactive diversity. To empower an agent with such ability, this paper proposes a task of affordance grounding from exocentric view, i.e., given exocentric human-object interaction and egocentric object images, learning the affordance knowledge of the object and transferring it to the egocentric image using only the affordance label as supervision. However, there is some "interaction bias" between personas, mainly regarding different regions and different views. To this end, we devise a cross-view affordance knowledge transfer framework that extracts affordance-specific features from exocentric interactions and transfers them to the egocentric view. Specifically, the perception of affordance regions is enhanced by preserving affordance co-relations. In addition, an affordance grounding dataset named AGD20K is constructed by collecting and labeling over 20K images from $36$ affordance categories. Experimental results demonstrate that our method outperforms the representative models regarding objective metrics and visual quality. Code is released at https://github.com/lhc1224/Cross-view-affordance-grounding.

For agents

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

get_harvested_code_for_paper("2208.13196")
get_code_for_paper("2208.13196")
have("2208.13196")

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

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

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

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

Connect an agent — have() is free.