Practical overview
When it fits
Use P-HAR when you need a developer-oriented action-recognition workflow for adult video and can work with its Python and model-library setup.
Who it is for
- Developers building video-analysis workflows for adult content.
- Researchers or practitioners exploring deep-learning action recognition across video, pose and audio inputs.
Documented uses
- Classify action categories in video clips.
- Generate prediction results and timestamps to help locate actions in a video.
- Derive leading tags from prediction JSON for a tagging workflow.
Requirements & limits
The project is publicly available on GitHub under the Apache-2.0 license. The README also says trained models are available through an API.
- The documented local stack includes Python 3.8+, PyTorch, MMCV, MMAction2, MMPose and MMDetection.
- The multi-stream approach combines RGB, skeleton and audio predictions through late fusion.
- The README reports over 94% accuracy in an update for 20 categories, while its earlier multi-model description reports about 75% and discusses a small dataset; these figures refer to different README contexts.
- The README documents prediction, timestamp and tag workflows, while content filtering is listed as TODO.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Install P-HAR for local video analysis
Prepare the documented manual-installation environment for P-HAR.
Before you start
- Clone the repository and its submodules.
- Python 3.8 or later.
- PyTorch and an MMCV build matched to the installed CUDA and Torch versions.
- MMAction2, MMPose, MMDetection and the extra requirements.
Steps
Clone the repository with its submodules and create a Python 3.8+ environment.
Install PyTorch, then install the MMCV version appropriate for the CUDA and Torch setup.
Install MMAction2, MMPose and MMDetection.
Install the packages listed in requirements/extra.txt.
Expected outcome
The README’s manual installation prerequisites and libraries are in place for the project’s documented workflows.
Guide limitations
- CUDA and cuDNN are recommended, not stated as mandatory.
- The README gives Ubuntu-oriented instructions and says they should also work on Windows WSL.
- This setup guide does not claim a successful installation or video-analysis run.
Generate video predictions, timestamps and tags
Use the documented demo commands to create predictions, optional timestamps and top tags.
Before you start
- A prepared P-HAR environment and the required model checkpoints.
- An input video file.
Steps
Place the human detector, pose model and HAR model checkpoints in the checkpoints/har folder, or use the documented Docker image.
Run the multimodal demo on a video to produce a demo output; the default prediction interval is every seven seconds.
For JSON results with timestamps, run the demo with the --timestamps flag.
Pass the resulting JSON file to src/top_tags.py to obtain the top tags.
Expected outcome
The documented workflow produces video predictions, timestamped JSON when requested, and top tags from the JSON results.
Guide limitations
- The guide follows the repository’s documented command workflow and does not claim that it was executed.
- Content filtering is marked as TODO in the README.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 20 November 2026
- Original website title
- rlleshi/phar · Official homepage title · retained in its source language

