| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
A robust pose classification evaluation framework based on MediaPipe Pose and SemiUHPE (Head Model). This project is designed to address common failures in monocular 2D pose estimation, such as Z-axis collapse and mirror ambiguity, by implementing a hierarchical logic correction strategy .
The inference pipeline consists of three main stages:
Ground Truth Generation: The system takes an image and its corresponding text prompt as input. The text prompt (e.g., "looks to his right") is mapped to a standard pose class label (e.g., Head_Turn_Right) using a predefined dictionary. This rule-based mapping serves as the Ground Truth (GT) for evaluation.
Pose Estimation:
Logic Correction & Classification: The raw angles are processed through the algorithm. This stage applies heuristic rules (e.g., Smart Sign Correction, Back-View Thresholding) to correct geometric inconsistencies before outputting the final prediction.
This project uses Conda for environment management.
git clone [https://github.com/jianlin0828/pose.git](https://github.com/jianlin0828/pose.git)
cd pose
2. Create and activate the environment: ```bash conda env create -f environment.yml conda activate <env_name>
Due to file size limitations, the pretrained head model is hosted externally.
Please download the .pth file and place it in the checkpoints/ directory:
pose/
└── checkpoints/
└── DAD-WildHead-EffNetV2-S-best.pth
To run the evaluation script on your dataset:
python eval_pose_v2.py \
--img-dir "data/test_images" \
--out-dir "output/result" \
--checkpoint "checkpoints/DAD-WildHead-EffNetV2-S-best.pth" \
--prompts-file "data/prompts.csv"
The core logic implements several strategies to overcome 2D estimation limitations:
The script generates a CSV file (pose_classification_v_final.csv) with the following fields:
| Back | FazBrowse Home | New Git URL |