Skip to content

Commit

Permalink
fix bug open-mmlab#292
Browse files Browse the repository at this point in the history
  • Loading branch information
yysijie committed May 22, 2020
1 parent 6594153 commit 96a172c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
11 changes: 9 additions & 2 deletions doc/GETTING_STARTED.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,20 @@ d. Install mmskeleton:
python setup.py develop
```

e. [Optional] Install mmdetection for person detection:
e. [Optional] Install nms for person estimation:
``` shell
cd mmskeleton/ops/nms/
python setup_linux.py develop
cd ../../../
```

f. [Optional] Install mmdetection for person detection:
``` shell
python setup.py develop --mmdet
```
In the event of a failure installation, please install [mmdetection](https://github.com/open-mmlab/mmdetection/blob/master/docs/INSTALL.md) manually.

f. To verify that mmskeleton and mmdetection installed correctly, use:
g. To verify that mmskeleton and mmdetection installed correctly, use:
```shell
python mmskl.py pose_demo [--gpus $GPUS]
# or "python mmskl.py pose_demo_HD [--gpus $GPUS]" for a higher accuracy
Expand Down
18 changes: 9 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,15 +177,15 @@ def make_cuda_ext(name, module, sources, include_dirs=[]):
'https://github.com/open-mmlab/mmdetection/tarball/v1.0rc1/#egg=mmdet-v1.0rc1'
],
install_requires=install_requires,
ext_modules=[
make_cython_ext(name='cpu_nms',
module='mmskeleton.ops.nms',
sources=['cpu_nms.pyx']),
make_cuda_ext(name='gpu_nms',
module='mmskeleton.ops.nms',
sources=['nms_kernel.cu', 'gpu_nms.pyx'],
include_dirs=[np.get_include()]),
],
# ext_modules=[
# make_cython_ext(name='cpu_nms',
# module='mmskeleton.ops.nms',
# sources=['cpu_nms.pyx']),
# make_cuda_ext(name='gpu_nms',
# module='mmskeleton.ops.nms',
# sources=['nms_kernel.cu', 'gpu_nms.pyx'],
# include_dirs=[np.get_include()]),
# ],
cmdclass={
'build_ext': BuildExtension,
},
Expand Down

0 comments on commit 96a172c

Please sign in to comment.