Skip to content

Commit 7956f49

Browse files
authored
Cliff (#93)
* Create README.MD * code and data link * Update README.MD Update README.MD
1 parent e31e1f7 commit 7956f49

38 files changed

+2496
-14
lines changed

CLIFF/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (C) 2022. Huawei Technologies Co., Ltd. All rights reserved.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

CLIFF/README.MD

Lines changed: 63 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,28 @@
11
# CLIFF [ECCV 2022 Oral]
22

3+
<img src="assets/teaser.gif" width="100%">
34

5+
*(This testing video is from the 3DPW testset, and processed frame by frame without temporal smoothing.)*
46

5-
This repo contains the CLIFF demo code,
7+
## Introduction
8+
This repo contains the demo code,
69
and the pseudo-GT SMPL parameters used in the training for the paper:
710

8-
**CLIFF: Carrying Location Information in Full Frames into Human Pose and Shape Estimation**
11+
**CLIFF: Carrying Location Information in Full Frames into Human Pose and Shape Estimation**.
912

1013
## Installation
1114
```bash
1215
conda create -n cliff python=3.10
1316
pip install -r requirements.txt
1417
```
1518

16-
1. Download [the SMPL models](https://smpl.is.tue.mpg.de/) for rendering the reconstructed meshes
17-
2. Download [pytorch-yolo-v3](https://github.com/ayooshkathuria/pytorch-yolo-v3), unzip it under the `lib` directory, and change the folder name to **"pytorch_yolo_v3_master"**
18-
2. Download the pretrained checkpoints and some testing samples to run the demo [[Google Drive]()]
19-
3. Download the CLIFF pseudo-GT for the in-the-wild datasets [[Google Drive]()]
19+
1. Download [the SMPL models](https://smpl.is.tue.mpg.de) for rendering the reconstructed meshes
20+
2. Download [pytorch-yolo-v3](https://github.com/ayooshkathuria/pytorch-yolo-v3),
21+
unzip it under the `lib` directory, and change the folder name to **"pytorch_yolo_v3_master"**
22+
3. Download the pretrained checkpoints and some testing samples to run the demo [[Google Drive](
23+
https://drive.google.com/drive/folders/1EmSZwaDULhT9m1VvH7YOpCXwBWgYrgwP?usp=sharing)]
24+
4. Download the CLIFF pseudo-GT for the in-the-wild datasets [[Google Drive](
25+
https://drive.google.com/drive/folders/1EmSZwaDULhT9m1VvH7YOpCXwBWgYrgwP?usp=sharing)]
2026

2127
Finally put these data following the directory structure as below:
2228
```
@@ -26,38 +32,81 @@ ${ROOT}
2632
|-- mpii_cliffGT.npz
2733
|-- data
2834
|-- ckpt
29-
|-- hr48-PA43.0_MJE69.0_MVE81.2_3dpw-PA32.6_MJE47.6_MVE60.1_h36m-p2.pt
30-
|-- res50-PA45.7_MJE72.0_MVE85.3_3dpw-PA35.7_MJE52.8_MVE63.2_h36m-p2.pt
35+
|-- hr48-PA43.0_MJE69.0_MVE81.2_3dpw.pt
36+
|-- res50-PA45.7_MJE72.0_MVE85.3_3dpw.pt
37+
|-- yolov3.weights
3138
|-- smpl
3239
|-- SMPL_FEMALE.pkl
3340
|-- SMPL_MALE.pkl
3441
|-- SMPL_NEUTRAL.pkl
3542
|-- lib
3643
|-- pytorch_yolo_v3_master
37-
|-- yolov3.weights
3844
```
3945

40-
4146
## Demo
4247
```shell
4348
sh scripts/run_demo.sh
4449
```
45-
Change the options in the scripts.
46-
See the option description in the bottom lines of `demo.py`
50+
51+
<p float="left">
52+
<img src="assets/im08036/im08036.png" width="24%">
53+
<img src="assets/im08036/im08036_bbox.jpg" width="24%">
54+
<img src="assets/im08036/im08036_front_view_cliff_hr48.jpg" width="24%">
55+
<img src="assets/im08036/im08036_side_view_cliff_hr48.jpg" width="24%">
56+
</p>
57+
58+
<p float="left">
59+
<img src="assets/im00492/im00492.png" width="24%">
60+
<img src="assets/im00492/im00492_bbox.jpg" width="24%">
61+
<img src="assets/im00492/im00492_front_view_cliff_hr48.jpg" width="24%">
62+
<img src="assets/im00492/im00492_side_view_cliff_hr48.jpg" width="24%">
63+
</p>
64+
65+
The results will be saved in the same directory as the input, including the detected bbox,
66+
the front-view and side-view rendering of the reconstructed meshes,
67+
and the npz file containing all the estimation information.
68+
69+
One can change the demo options in the script.
70+
Please see the option description in the bottom lines of `demo.py`.
4771

4872
## Pseudo-GT
73+
74+
Run the script to visualize the pseudoGT, press the `<-` and `->` button to the next sample, and `esc` to exit.
75+
4976
```shell
5077
sh scripts/run_cliffGT_visualization.sh
5178
```
5279

80+
<p float="left">
81+
<img src="assets/visualized_cliffGT/viz_cliffGT_perImg-COCO_sample.jpg" width="49%">
82+
<img src="assets/visualized_cliffGT/viz_cliffGT_perSubject-MPII_sample.jpg" width="49%">
83+
</p>
5384

85+
Data format:
86+
```
87+
'imgname': # image name, e.g., images/015601864.jpg, train2014/COCO_train2014_000000044474.jpg
88+
'center': # bbox center, [x, y]
89+
'scale': # bbox scale, bbox_size_in_pixel / 200.
90+
'part': # 2D keypoint annotation, shape (24, 3), [x, y, conf], see common/skeleton_drawer.py for the order
91+
'annot_id': # annotation ID, only available for the COCO dataset
92+
'pose': # SMPL pose parameters in axis-angle, shape (72,)
93+
'shape': # SMPL shape parameters, shape (10,)
94+
'has_smpl': # whether the smpl parameters are available (true for all samples)
95+
'global_t': # Pelvis translation in the camera coordinate system w.r.t the original full-frame image
96+
'focal_l': # estimated focal length for the original image, np.sqrt(img_w ** 2 + img_h ** 2)
97+
'S': # 3D joints with Pelvis aligned at (0, 0, 0), shape (24, 4), [x, y, z, conf], same order as 'part'
98+
```
99+
100+
## Issues
101+
When submitting an issue, please add **"[CLIFF]"** before the title, e.g., `[CLIFF] your issue title`.
102+
This is for clarifying which subproject the issue points to.
54103

55104
## Citing
56105
```
57-
@Inproceedings{li_2022_eccv_cliff,
106+
@Inproceedings{li2022cliff,
58107
Title = {CLIFF: Carrying Location Information in Full Frames into Human Pose and Shape Estimation},
59108
Author = {Li, Zhihao and Liu, Jianzhuang and Zhang, Zhensong and Xu, Songcen and Yan, Youliang},
60109
Booktitle = {ECCV},
61110
Year = {2022}
62111
}
63-
```
112+
```
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
Please note we provide an open source software notice for the third party open source software along with this software and/or this software component contributed by Huawei (in the following just “this SOFTWARE”). The open source software licenses are granted by the respective right holders.
2+
3+
Warranty Disclaimer
4+
THE OPEN SOURCE SOFTWARE IN THIS SOFTWARE IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
5+
6+
Copyright Notice and License Texts
7+
Software: SPIN (https://github.com/nkolot/SPIN)
8+
Copyright notice:
9+
Copyright (c) 2019,
10+
University of Pennsylvania,
11+
Max Planck Institute for Intelligent Systems
12+
All rights reserved.
13+
14+
Redistribution and use in source and binary forms, with or without
15+
modification, are permitted provided that the following conditions are
16+
met:
17+
18+
1. Redistributions of source code must retain the above copyright
19+
notice, this list of conditions and the following disclaimer.
20+
21+
2. Redistributions in binary form must reproduce the above
22+
copyright notice, this list of conditions and the following
23+
disclaimer in the documentation and/or other materials provided
24+
with the distribution.
25+
26+
3. The names of the contributors may not be used to endorse or
27+
promote products derived from this software without specific
28+
prior written permission.
29+
30+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
31+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
32+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
33+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
34+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
35+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
36+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
37+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
38+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
39+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
40+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
41+
42+
Copyright Notice and License Texts
43+
Software: HRNet-Image-Classification (https://github.com/HRNet/HRNet-Image-Classification)
44+
Copyright notice:
45+
MIT License
46+
47+
Copyright (c) 2019 Microsoft Corporation
48+
49+
Permission is hereby granted, free of charge, to any person obtaining a copy
50+
of this software and associated documentation files (the "Software"), to deal
51+
in the Software without restriction, including without limitation the rights
52+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
53+
copies of the Software, and to permit persons to whom the Software is
54+
furnished to do so, subject to the following conditions:
55+
56+
The above copyright notice and this permission notice shall be included in all
57+
copies or substantial portions of the Software.
58+
59+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
60+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
61+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
62+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
63+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
64+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
65+
SOFTWARE.

CLIFF/assets/im00492/im00492.png

206 KB
Loading
68.3 KB
Loading
67.7 KB
Loading
6.31 KB
Loading

CLIFF/assets/im08036/im08036.png

403 KB
Loading
121 KB
Loading
115 KB
Loading

0 commit comments

Comments
 (0)