The "Continuous Integration" workflow (Performance Tests + API Documentation jobs) has failed on every main commit since the API start path was exercised: pose_service._initialize_models() called `DensePoseHead()` with no args, but DensePoseHead.__init__ requires a config dict → "TypeError: DensePoseHead.__init__() missing 1 required positional argument: 'config'" → uvicorn "Application startup failed". Pass a config: input_channels=256 (matches the modality translator's output), num_body_parts=24 (DensePose standard), num_uv_coordinates=2. Both call sites (with/without pose_model_path) fixed. Verified locally: DensePoseHead(config) + ModalityTranslationNetwork(config) both construct + eval, clearing the startup TypeError. |
||
|---|---|---|
| .. | ||
| data | ||
| docs | ||
| scripts | ||
| src | ||
| tests | ||
| README.md | ||
| __init__.py | ||
| requirements-lock.txt | ||
| setup.py | ||
| test_application.py | ||
| test_auth_rate_limit.py | ||
README.md
WiFi-DensePose v1 (Python Implementation)
This directory contains the original Python implementation of WiFi-DensePose.
Structure
v1/
├── src/ # Python source code
│ ├── api/ # REST API endpoints
│ ├── config/ # Configuration management
│ ├── core/ # Core processing logic
│ ├── database/ # Database models and migrations
│ ├── hardware/ # Hardware interfaces
│ ├── middleware/ # API middleware
│ ├── models/ # Neural network models
│ ├── services/ # Business logic services
│ └── tasks/ # Background tasks
├── tests/ # Test suite
├── docs/ # Documentation
├── scripts/ # Utility scripts
├── data/ # Data files
├── setup.py # Package setup
├── test_application.py # Application tests
└── test_auth_rate_limit.py # Auth/rate limit tests
Requirements
- Python 3.10+
- PyTorch 2.0+
- FastAPI
- PostgreSQL/SQLite
Installation
cd v1
pip install -e .
Usage
# Start API server
python -m src.main
# Run tests
pytest tests/
Note
This is the legacy Python implementation. For the new Rust implementation with improved performance, see /v2/.