How cesaredavidepace/poseidon works
Project Type and Purpose
• This is a research‐oriented deep learning codebase for multi‐frame human pose estimation (“Poseidon”), built on top of ViT (Vision Transformer) and the MMPose/ MMEngine ecosystem.
• It includes complete pipelines for:
• Data preprocessing and formatting (JHMDB, PoseTrack18/21)
• Model definition (ViTPose backbone extended with Adaptive Frame Weighting, Multi-Scale Feature Fusion, Cross-Attention)
• Training (train.py + engine defaults + configs)
• Validation (val.py + poseval evaluation code)
• Inference (inference.py integrating YOLOv8 detection + Poseidon model)
Relationships & Data Flow
• Raw Video/Image Data → Data Preparation Notebooks →
→ Datasets + Transforms → DataLoader
→ train.py / val.py
→ Engine (MMEngine) orchestrates Training Loop:
• Build Model (from config)
• Build Optimizer & Loss (core/optimizer.py, core/loss.py)
• Forward Pass → compute loss → backward → update
• Logging & Visualization (core/vis_helper.py, utils_logger)
• Checkpointing
→ Validation uses poseval (datasets/zoo/posetrack_utils/poseval)
Architectural Patterns & Design Principles
• Modular Configuration: YAML files + centralized argument parser
• Data Abstraction: custom Dataset classes + transforms + target generators
• Plugin Architecture via registries in utils/utils_registry.py
• Reuse of MMPose & MMEngine patterns (hooks, builder API)
• Separation of concerns:
• Data I/O vs. Model vs. Training Engine vs. Inference