SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · aaai_16243 · AAAI · 2021

Progressive One-Shot Human Parsing

Dacheng Tao, Jing Zhang, Haoyu He, Bhavani Thuraisingham

Open in the Atlas

Code that ran

4 of 5 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 3 have no contract verdict; 1 failure of our instrument; 1 no recorded run), measured 2026-11-22; 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/aaai_16243.json · badge: /api/ran/aaai_16243.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
Charleshhy/One-shot-Human-Parsing canonical (classifier label)
classifier basis: census
4 ran · 1 no recorded run
FunctionStatusWhere it lives
as_numpy Ran
ran; our contract draft was wrong, not the code
Charleshhy/One-shot-Human-Parsing/sync_batchnorm/unittest.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from chenhongruixuan/i3pe, is pointer only (licence: NONE) · get_code("6b37c8eb77e486dc")
How it ran

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

fixed_padding Ran
ran on a synthesized input
Charleshhy/One-shot-Human-Parsing/networks/deeplab_xception_synBN.py
code served (permissive licence) · get_code("abced7209036f0c9")
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, 4, 7, 7) 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 torch.nn.functional as F

torch.manual_seed(0)

# The function takes:
# - inputs: a tensor that will be padded (expects 4D tensor for 2D spatial padding)
# - kernel_size: an integer for the kernel size
# - rate: an integer for the dilation rate

# Create a small 4D tensor (batch=2, channels=4, height=3, width=3)
inputs = torch.randn(2, 4, 3, 3)

# Define kernel_size and rate
kernel_size = 3
rate = 2

ARGS = {
    "inputs": inputs,
    "kernel_size": kernel_size,
    "rate": rate
}
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, 4, 7, 7) — shape (2, 4, 7, 7) 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
generate_fgmask Ran
ran on a synthesized input
Charleshhy/One-shot-Human-Parsing/dataloaders/oshp_loader.py
code served (permissive licence) · get_code("cebad00b4254ea2f")
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 int, 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 numpy as np

# Create a small target array with class labels
target = np.array([0, 1, 2, 3, 1, 2, 0, 3], dtype=np.int32)

# Number of classes
classes = 4

ARGS = {
    "target": target,
    "classes": classes,
}
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 int, 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
model_mask Ran
ran on a synthesized input
Charleshhy/One-shot-Human-Parsing/networks/popnet.py
code served (permissive licence) · get_code("c0ed8c3115b02f5c")
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, 4) 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

torch.manual_seed(0)

# Create a small mask tensor with class indices
# Shape: (2, 4) - batch size 2, spatial/feature dimension 4
mask = torch.randint(0, 5, (2, 4))

# Create a set of class indices to delete
delete_class_set = {1, 3}

ARGS = {
    "mask": mask,
    "delete_class_set": delete_class_set,
}
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, 4) — shape (2, 4) 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
patch_replication_callback Not yet run
unverified (harvested, no recorded run)
Charleshhy/One-shot-Human-Parsing/sync_batchnorm/replicate.py
code served (permissive licence) · get_code("27e207fe8a74c3e7")
How it ran

no invocation recorded.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 2 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
patch_replication_callback 16 other papers
9 dated earlier, 5 later, 2 same year, order not determinable
1612.01105 (2016-12)
Pyramid Scene Parsing Network
1807.10221 (2018-07)
Unified Perceptual Parsing for Scene Understanding
1904.01941 (2019-04)
Character Region Awareness for Text Detection
and 13 more not named here
as_numpy 5 other papers
1 dated earlier, 3 later, 1 same year, order not determinable
2006.00212 (2020-06)
Complex Sequential Understanding through the Awareness of Spatial and Temporal Concepts
2111.04426 (2021-11)
3D Siamese Voxel-to-BEV Tracker for Sparse Point Clouds
2203.16787 (2022-03)
Reflection and Rotation Symmetry Detection via Equivariant Learning
and 2 more not named here
fixed_padding 1 other paper
1 dated earlier
1810.01993 (2018-10)
Exascale Deep Learning for Climate Analytics

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

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

Abstract

Prior human parsing models are limited to parsing humans into classes pre-defined in the training data, which is not flexible to generalize to unseen classes, e.g., new clothing in fashion analysis. In this paper, we propose a new problem named one-shot human parsing (OSHP) that requires to parse human into an open set of reference classes defined by any single reference example. During training, only base classes defined in the training set are exposed, which can overlap with part of reference classes. In this paper, we devise a novel Progressive One-shot Parsing network (POPNet) to address two critical challenges , i.e., testing bias and small sizes. POPNet consists of two collaborative metric learning modules named Attention Guidance Module and Nearest Centroid Module, which can learn representative prototypes for base classes and quickly transfer the ability to unseen classes during testing, thereby reducing testing bias. Moreover, POPNet adopts a progressive human parsing framework that can incorporate the learned knowledge of parent classes at the coarse granularity to help recognize the descendant classes at the fine granularity, thereby handling the small sizes issue. Experiments on the ATR-OS benchmark tailored for OSHP demonstrate POPNet outperforms other representative one-shot segmentation models by large margins and establishes a strong baseline. Source code can be found at https://github.com/Charleshhy/One-shot-Human-Parsing.

For agents

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

get_harvested_code_for_paper("aaai_16243")
get_code_for_paper("aaai_16243")
have("aaai_16243")

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

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

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

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

Connect an agent — have() is free.