https://github.com/open-mmlab/mmpose-webcam-demo
https://github.com/open-mmlab/mmpose-webcam-demo
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/open-mmlab/mmpose-webcam-demo
- Owner: open-mmlab
- License: apache-2.0
- Created: 2022-06-02T09:56:29.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-06T09:32:16.000Z (almost 3 years ago)
- Last Synced: 2025-04-05T11:34:20.003Z (2 months ago)
- Language: Python
- Size: 91.8 KB
- Stars: 28
- Watchers: 7
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mmpose-webcam-demo
简体中文 | [English](/README_en.md)
基于 MMPose Webcam API 开发应用或 demo 的项目模板
![]()
## 配置环境
### 创建虚拟环境
```shell
conda create -n mmpose-demo python=3.9 pytorch=1.10 cudatoolkit=11.3 torchvision -c pytorch -y
conda activate mmpose-demo
```### 安装 MMCV 和 MMDetection
```shell
pip install openmim
mim install mmcv-full
pip install mmdet
```### 安装 MMPose
为了能随时同步最新的 MMPose 代码,我们推荐将 MMPose 克隆到本地,并通过开发模式安装
```shell
cd ..
git clone clone https://github.com/open-mmlab/mmpose.git
cd mmpose
pip install -e .
```测试 MMPose 安装成功
```shell
python -c "from mmpose.apis import webcam"
```### 配置 pre-commit hook
```shell
# 在 mmpose-webcam-demo 目录中执行以下操作
pip install pre-commit
pre-commit install
```## 运行示例
```shell
# use GPU
python run.py --config configs/pose_estimation/pose_estimation.py# use CPU
python run.py --config configs/pose_estimation/pose_estimation.py --cpu# use debug mode
python run.py --config configs/pose_estimation/pose_estimation.py --debug
```## 相关链接
- 关于摄像头应用接口(MMPose Webcam API)
- [教程文档](https://mmpose.readthedocs.io/zh_CN/latest/tutorials/7_webcam_api.html)
- [API 查询](https://mmpose.readthedocs.io/zh_CN/latest/api.html#mmpose-apis-webcam)
- 关于 MMPose
- [代码仓库](https://github.com/open-mmlab/mmpose)
- [使用文档](https://mmpose.readthedocs.io/zh_CN/latest/)
- [模型池](https://mmpose.readthedocs.io/zh_CN/latest/modelzoo.html)
- 关于 “万物生姿” MMPose 姿态估计创意 Demo 大赛
- [活动主页](https://openmmlab.com/community/mmpose-demo)
- [作品提交](https://github.com/open-mmlab/mmpose/issues/1407)