How dirtyharrylyl/hake works
Purpose and Scope
This repository is a dataset and metadata distribution for HAKE (Human Activity Knowledge Engine), centered on human body part-state (PaSta) annotations for human–object interaction (HOI) understanding. It does not contain the training/inference implementation; model code is delegated to linked HAKE-Action and related repositories.
Primary Artifacts and Entry Points
Users begin with the top-level dataset documentation in README.md, then select an annotation package under Annotations/:
• Image-level HICO HOI recognition: Annotations/hico-image-level.tar.gz
• Instance-level HICO-DET HOI detection: Annotations/hico-det-instance-level.tar.gz
• HAKE-Large instance-level pretraining: Annotations/hake_large_annotation.tar.gz
Annotations/README.md is the contract for extracted annotation formats.
Annotation Distribution Boundary
Compressed annotation archives are the core deliverables. Extraction produces JSON training labels (as documented by the README), separating label data from images and from downstream model implementations. This makes the repository an offline dataset dependency rather than an executable ML service.
Paths: Annotations/hico-image-level.tar.gz, Annotations/hico-det-instance-level.tar.gz, Annotations/hake_large_annotation.tar.gz.
Supported Learning Granularities
HAKE labels support two task boundaries:
• Image-level: multi-label classification of the HOIs present in a still image; HICO defines 600 categories.
• Instance-level: per-person HOI/action labels, including detection-oriented HICO-DET and pretraining-oriented HAKE-Large.
Part states describe activity across ten body parts and act as fine-grained supervision/features for HOI and action models.
Ontology and Compatibility Metadata
Config/ provides the canonical vocabulary needed to interpret labels and map predictions: HOI categories, objects, verbs, and alternative part-state spaces. misc/76to55.json defines a compatibility mapping between part-state taxonomies.
Paths: Config/hico_hoi_list.txt, Config/hico_obj_list.txt, Config/hico_verb_list.txt, Config/Part_State_76.txt, misc/76to55.json.
Image Acquisition Pipeline
Images are intentionally distributed separately from labels. Curated source image lists identify the dataset/image universe, while a Python downloader resolves and downloads images using URL manifests. The shell script is the operational entry point for batch acquisition.
Paths: Images/download_image/download_dataset.sh, Images/download_image/Download_data.py, Images/download_image/hcvrd_url.json, Images/imagelist/hake_images_20200614.txt.
External Dependencies and Downstream Consumers
Material external sources include HICO/HICO-DET images, image hosting URLs represented in the manifests, and Google Drive-hosted supplemental assets/results. Training, model execution, and evaluation are external: HAKE-Action repositories consume these labels, while HICO evaluation is performed using separately downloaded MATLAB benchmark code. models/README.md documents model-related distribution context without model source in this tree.
Main entry points: hico-image-level.tar.gz HICO image-level labels · hico-det-instance-level.tar.gz HICO-DET instance labels · README.md Dataset guide · Annotations/README.md Format contract
Components 19
Annotation packages
Compressed labels distributed independently of images.
- Format contract · Documents extracted JSON annotation formats.
Annotations/README.md - HICO image-level labels · Multi-label annotations for 600 image-level HOI categories.
Annotations/hico-image-level.tar.gz - HICO-DET instance labels · Per-person detection-oriented HOI labels.
Annotations/hico-det-instance-level.tar.gz - HAKE-Large labels · Instance-level pretraining annotations.
Annotations/hake_large_annotation.tar.gz
Label ontology
Canonical vocabularies and taxonomy compatibility.
- HOI categories
Config/hico_hoi_list.txt - Object vocabulary
Config/hico_obj_list.txt - Verb vocabulary
Config/hico_verb_list.txt - 76-state taxonomy
Config/Part_State_76.txt - 76-to-55 mapping · Maps alternative part-state spaces.
misc/76to55.json
Image acquisition
Image manifests and batch download tooling.
- Curated image list · Defines the HAKE image universe.
Images/imagelist/hake_images_20200614.txt - Image URL manifest
Images/download_image/hcvrd_url.json - Batch download entry point
Images/download_image/download_dataset.sh - Image downloader · Resolves manifests and downloads source images.
Images/download_image/Download_data.py - External source images · HICO and HICO-DET images are obtained separately.
External consumers
Model execution and benchmark evaluation live outside this repository.
- HAKE-Action models · Consumes annotations for training and inference.
- HICO MATLAB evaluation · Separately downloaded evaluation code.
- Model distribution context · Documents linked model-related resources without model source.
models/README.md
Other components
- Dataset guide · Starting point for selecting data packages.
README.md - PaSta supervision · Fine-grained activity states across ten body parts.
Connections 25
- Dataset guide → Format contract: directs users to
- Dataset guide → HICO image-level labels: selects
- Dataset guide → HICO-DET instance labels: selects
- Dataset guide → HAKE-Large labels: selects
- Format contract → HICO image-level labels: defines extracted format
- Format contract → HICO-DET instance labels: defines extracted format
- Format contract → HAKE-Large labels: defines extracted format
- HICO image-level labels → HOI categories: uses labels from
- HICO image-level labels → Object vocabulary: uses
- HICO image-level labels → Verb vocabulary: uses
- HICO-DET instance labels → PaSta supervision: includes
- HAKE-Large labels → PaSta supervision: supervises
- PaSta supervision → 76-state taxonomy: canonicalized by
- 76-state taxonomy → 76-to-55 mapping: converted through
- Batch download entry point → Image downloader: runs
- Image downloader → Image URL manifest: reads URLs
- Curated image list → External source images: identifies required images
- Image URL manifest → External source images: resolves downloads from
- External source images → HICO image-level labels: kept separate from labels
- External source images → HICO-DET instance labels: kept separate from labels
- HICO image-level labels → HAKE-Action models: training input
- HICO-DET instance labels → HAKE-Action models: training input
- HAKE-Large labels → HAKE-Action models: pretraining input
- HICO-DET instance labels → HICO MATLAB evaluation: evaluated by
- Model distribution context → HAKE-Action models: links context for