TaiMing commited on
Commit
c7645de
1 Parent(s): 858167a

Add docker installation docs. (#17)

Browse files
Files changed (3) hide show
  1. README.md +5 -4
  2. docker-compose.yaml +19 -0
  3. docs/installation-docker.md +80 -0
README.md CHANGED
@@ -26,7 +26,8 @@
26
  <a href="https://cupy.dev/"><img alt="cupy" src="https://img.shields.io/badge/-Cupy-46C02B?logo=numpy&logoColor=white"></a>
27
  <a href="https://twitter.com/yuliangxiu"><img alt='Twitter' src="https://img.shields.io/twitter/follow/yuliangxiu?label=%40yuliangxiu"></a>
28
  <br></br>
29
- <a href='https://colab.research.google.com/drive/1YRgwoRCZIrSB2e7auEWFyG10Xzjbrbno?usp=sharing' style='padding-left: 0.5rem;'><img src='https://colab.research.google.com/assets/colab-badge.svg' alt='Google Colab'></a><br></br>
 
30
  <a href="https://arxiv.org/abs/2212.07422">
31
  <img src='https://img.shields.io/badge/Paper-PDF-green?style=for-the-badge&logo=adobeacrobatreader&logoWidth=20&logoColor=white&labelColor=66cc00&color=94DD15' alt='Paper PDF'>
32
  </a>
@@ -45,8 +46,8 @@ ECON is designed for "Human digitization from a color image", which combines the
45
 
46
  ## News :triangular_flag_on_post:
47
 
48
- - [2023/01/06] [Justin John](https://github.com/justinjohn0306) and [
49
- Carlos Barreto](https://github.com/carlosedubarreto) creates [install-on-windows](docs/installation-windows.md) for ECON .
50
  - [2022/12/22] <a href='https://colab.research.google.com/drive/1YRgwoRCZIrSB2e7auEWFyG10Xzjbrbno?usp=sharing' style='padding-left: 0.5rem;'><img src='https://colab.research.google.com/assets/colab-badge.svg' alt='Google Colab'></a> is now available, created by [Aron Arzoomand](https://github.com/AroArz).
51
  - [2022/12/15] Both <a href="#demo">demo</a> and <a href="https://arxiv.org/abs/2212.07422">arXiv</a> are available.
52
 
@@ -80,6 +81,7 @@ Carlos Barreto](https://github.com/carlosedubarreto) creates [install-on-windows
80
 
81
  ## Instructions
82
 
 
83
  - See [installion doc for Windows](docs/installation-windows.md) to install all the required packages and setup the models on _Windows_
84
  - See [installion doc for Ubuntu](docs/installation-ubuntu.md) to install all the required packages and setup the models on _Ubuntu_
85
  - See [magic tricks](docs/tricks.md) to know a few technical tricks to further improve and accelerate ECON
@@ -152,7 +154,6 @@ Some images used in the qualitative examples come from [pinterest.com](https://w
152
 
153
  This project has received funding from the European Union’s Horizon 2020 research and innovation programme under the Marie Skłodowska-Curie grant agreement No.860768 ([CLIPE Project](https://www.clipe-itn.eu)).
154
 
155
-
156
  ## Contributors
157
 
158
  Kudos to all of our amazing contributors! ECON thrives through open-source. In that spirit, we welcome all kinds of contributions from the community.
 
26
  <a href="https://cupy.dev/"><img alt="cupy" src="https://img.shields.io/badge/-Cupy-46C02B?logo=numpy&logoColor=white"></a>
27
  <a href="https://twitter.com/yuliangxiu"><img alt='Twitter' src="https://img.shields.io/twitter/follow/yuliangxiu?label=%40yuliangxiu"></a>
28
  <br></br>
29
+ <a href='https://colab.research.google.com/drive/1YRgwoRCZIrSB2e7auEWFyG10Xzjbrbno?usp=sharing'><img src='https://colab.research.google.com/assets/colab-badge.svg' alt='Google Colab'></a>
30
+ <a href='https://github.com/YuliangXiu/ECON/blob/master/docs/installation-docker.md'><img src='https://img.shields.io/badge/Run%20the%20Docker-9cf.svg?logo=Docker' alt='Docker'></a><br></br>
31
  <a href="https://arxiv.org/abs/2212.07422">
32
  <img src='https://img.shields.io/badge/Paper-PDF-green?style=for-the-badge&logo=adobeacrobatreader&logoWidth=20&logoColor=white&labelColor=66cc00&color=94DD15' alt='Paper PDF'>
33
  </a>
 
46
 
47
  ## News :triangular_flag_on_post:
48
 
49
+ - [2023/01/08] [Teddy Huang](https://github.com/Teddy12155555) creates [install-with-docker](docs/installation-docker.md) for ECON .
50
+ - [2023/01/06] [Justin John](https://github.com/justinjohn0306) and [Carlos Barreto](https://github.com/carlosedubarreto) creates [install-on-windows](docs/installation-windows.md) for ECON .
51
  - [2022/12/22] <a href='https://colab.research.google.com/drive/1YRgwoRCZIrSB2e7auEWFyG10Xzjbrbno?usp=sharing' style='padding-left: 0.5rem;'><img src='https://colab.research.google.com/assets/colab-badge.svg' alt='Google Colab'></a> is now available, created by [Aron Arzoomand](https://github.com/AroArz).
52
  - [2022/12/15] Both <a href="#demo">demo</a> and <a href="https://arxiv.org/abs/2212.07422">arXiv</a> are available.
53
 
 
81
 
82
  ## Instructions
83
 
84
+ - See [installion doc for Docker](docs/installation-docker.md) to run a docker container with pre-built image for ECON demo
85
  - See [installion doc for Windows](docs/installation-windows.md) to install all the required packages and setup the models on _Windows_
86
  - See [installion doc for Ubuntu](docs/installation-ubuntu.md) to install all the required packages and setup the models on _Ubuntu_
87
  - See [magic tricks](docs/tricks.md) to know a few technical tricks to further improve and accelerate ECON
 
154
 
155
  This project has received funding from the European Union’s Horizon 2020 research and innovation programme under the Marie Skłodowska-Curie grant agreement No.860768 ([CLIPE Project](https://www.clipe-itn.eu)).
156
 
 
157
  ## Contributors
158
 
159
  Kudos to all of our amazing contributors! ECON thrives through open-source. In that spirit, we welcome all kinds of contributions from the community.
docker-compose.yaml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # build Image from Docker Hub
2
+ version: "2.4"
3
+ services:
4
+ econ:
5
+ container_name: econ-container
6
+ image: teddy12155555/econ:v1
7
+ runtime: nvidia
8
+ environment:
9
+ - NVIDIA_VISIBLE_DEVICES=all
10
+ - DISPLAY=${DISPLAY}
11
+ stdin_open: true
12
+ tty: true
13
+ volumes:
14
+ - .:/root/code
15
+ - /tmp/.X11-unix:/tmp/.X11-unix
16
+ ports:
17
+ - "8000:8000"
18
+ privileged: true
19
+ command: "bash"
docs/installation-docker.md ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## Getting started
2
+
3
+ Start by cloning the repo:
4
+
5
+ ```bash
6
+ git clone --depth 1 git@github.com:YuliangXiu/ECON.git
7
+ cd ECON
8
+ ```
9
+ ## Environment
10
+ - **GPU Memory > 12GB**
11
+
12
+ start with [docker compose](https://docs.docker.com/compose/)
13
+ ```bash
14
+ # you can change your container name by passing --name "parameter"
15
+ docker compose run [--name myecon] econ
16
+ ```
17
+
18
+ ## Docker container's shell
19
+ ```bash
20
+ # activate the pre-build env
21
+ cd code
22
+ conda activate econ
23
+
24
+ # install libmesh & libvoxelize
25
+ cd lib/common/libmesh
26
+ python setup.py build_ext --inplace
27
+ cd ../libvoxelize
28
+ python setup.py build_ext --inplace
29
+ ```
30
+
31
+ ## Register at [ICON's website](https://icon.is.tue.mpg.de/)
32
+
33
+ ![Register](../assets/register.png)
34
+ Required:
35
+
36
+ - [SMPL](http://smpl.is.tue.mpg.de/): SMPL Model (Male, Female)
37
+ - [SMPL-X](http://smpl-x.is.tue.mpg.de/): SMPL-X Model, used for training
38
+ - [SMPLIFY](http://smplify.is.tue.mpg.de/): SMPL Model (Neutral)
39
+ - [PIXIE](https://icon.is.tue.mpg.de/user.php): PIXIE SMPL-X estimator
40
+
41
+ :warning: Click **Register now** on all dependencies, then you can download them all with **ONE** account.
42
+
43
+ ## Downloading required models and extra data
44
+
45
+ ```bash
46
+ cd ~/code
47
+ bash fetch_data.sh # requires username and password
48
+ ```
49
+ ## :whale2: **todo**
50
+ - **Image Environment Infos**
51
+ - Ubuntu 18
52
+ - CUDA = 11.3
53
+ - Python = 3.8
54
+ - [X] pre-built image with docker compose
55
+ - [ ] docker run command, Dockerfile
56
+ - [ ] verify on WSL (Windows)
57
+
58
+ ## Citation
59
+
60
+ :+1: Please consider citing these awesome HPS approaches: PyMAF-X, PIXIE
61
+
62
+
63
+ ```
64
+ @article{pymafx2022,
65
+ title={PyMAF-X: Towards Well-aligned Full-body Model Regression from Monocular Images},
66
+ author={Zhang, Hongwen and Tian, Yating and Zhang, Yuxiang and Li, Mengcheng and An, Liang and Sun, Zhenan and Liu, Yebin},
67
+ journal={arXiv preprint arXiv:2207.06400},
68
+ year={2022}
69
+ }
70
+
71
+
72
+ @inproceedings{PIXIE:2021,
73
+ title={Collaborative Regression of Expressive Bodies using Moderation},
74
+ author={Yao Feng and Vasileios Choutas and Timo Bolkart and Dimitrios Tzionas and Michael J. Black},
75
+ booktitle={International Conference on 3D Vision (3DV)},
76
+ year={2021}
77
+ }
78
+
79
+
80
+ ```