Skip to content

Commit 351fc4c

Browse files
committed
rename mobilenet
1 parent e1d0a82 commit 351fc4c

9 files changed

+38
-23
lines changed

README.md

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
# DeepPose-pytorch
2-
Reproduce Google's [DeepPose](https://arxiv.org/pdf/1312.4659.pdf) with Resnet18 by Pytorch
1+
# MobilePose
2+
3+
MobilePose is a **Tiny** PyTorch implementation of single person 2D pose estimation framework. The aim is to provide the interface of the training/inference/evaluation, and the dataloader with various data augmentation options. And final trained model can satisfy basic requirements(speed+size+accuracy) for mobile device.
4+
5+
Some codes for mobilenetV2 and display are brought from [pytorch-mobilenet-v2](https://github.com/tonylins/pytorch-mobilenet-v2) and [tf-pose-estimation](https://github.com/ildoonet/tf-pose-estimation). Thanks to the original authors.
36

47
## Functionality
58

@@ -8,16 +11,20 @@ Reproduce Google's [DeepPose](https://arxiv.org/pdf/1312.4659.pdf) with Resnet18
811
3. **Accurate** keypoint estimation (75~85mAP(0.5IoU))
912

1013
## Requirements:
14+
1115
- Python 3.6.2
1216
- Pytorch 0.2.0\_3
17+
- imgaug 0.2.5
1318

1419
## Todo List:
15-
- [x] accuracy(mAP) evaluation script
16-
- [x] multi-scales training
17-
- [x] data augmentation(rotate/shift/flip/multi-scale)
18-
- [x] support LSP dataset
19-
- [x] adding weighted loss(coco keypoints weight)
20-
- [x] support Macbook camera realtime skeleton display demo
20+
21+
- [x] multi-thread dataloader
22+
- [x] training and inference
23+
- [x] performance evaluation
24+
- [x] multi-scale training
25+
- [x] support resnet18/mobilenetV2
26+
- [x] data augmentation(rotate/shift/flip/multi-scale/noise)
27+
- [x] Macbook camera realtime display script
2128

2229
## Usage
2330

@@ -27,10 +34,18 @@ export CUDA_VISIBLE_DEVICES=0; python training.py --model=mobilenet/resnet --gpu
2734
```
2835
2. Evaluation
2936
```shell
30-
python eval.py --model=mobilenet/resnet
37+
export CUDA_VISIBLE_DEVICES=0; python eval.py --model=mobilenet/resnet
3138
```
3239
4. Realtime visualization:
3340
```shell
3441
python run_webcam.py --model=mobilenet/resnet
3542
```
3643

44+
## Contributors
45+
46+
MobilePose is developed and maintained by [Yuliang Xiu](http://xiuyuliang.cn/about/), [Zexin Chen](https://github.com/ZexinChen) and [Yinghong Fang](https://github.com/Fangyh09).
47+
48+
## License
49+
50+
MobilePose is freely available for free non-commercial use. For commercial queries, please contact [Cewu Lu](http://www.mvig.org/) or [SightPlus Co. Ltd](https://www.sightp.com/).
51+

coco_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'''
22
File: coco_utils.py
3-
Project: DeepPose
3+
Project: MobilePose
44
File Created: Saturday, 3rd March 2018 7:04:57 pm
55
Author: Yuliang Xiu ([email protected])
66
-----

dataloader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'''
22
File: dataloader.py
3-
Project: DeepPose
3+
Project: MobilePose
44
File Created: Thursday, 8th March 2018 3:00:27 pm
55
Author: Yuliang Xiu ([email protected])
66
-----

estimator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'''
22
File: estimator.py
3-
Project: DeepPose
3+
Project: MobilePose
44
File Created: Thursday, 8th March 2018 3:02:01 pm
55
Author: Yuliang Xiu ([email protected])
66
-----

eval.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# coding: utf-8
22
'''
33
File: eval.py
4-
Project: DeepPose
4+
Project: MobilePose
55
File Created: Thursday, 8th March 2018 1:54:07 pm
66
Author: Yuliang Xiu ([email protected])
77
-----
@@ -42,7 +42,7 @@
4242

4343
if __name__ == '__main__':
4444

45-
parser = argparse.ArgumentParser(description='deeppose demo')
45+
parser = argparse.ArgumentParser(description='MobilePose Demo')
4646
parser.add_argument('--model', type=str, default="resnet")
4747
args = parser.parse_args()
4848
modeltype = args.model
@@ -53,9 +53,9 @@
5353

5454
PATH_PREFIX = "./results/{}".format(modeltype)
5555
full_name="./models/{}/{}".format(modeltype, filename)
56-
# full_name = "/home/yuliang/code/DeepPose-pytorch/models/demo/mobilenetv2_224x224-robust.t7"
57-
# full_name = "/home/yuliang/code/DeepPose-pytorch/models/demo/resnet18_227x227.t7"
58-
# full_name = "/home/yuliang/code/DeepPose-pytorch/models/demo/mobilenet-best.t7"
56+
# full_name = "/home/yuliang/code/MobilePose-pytorch/models/demo/mobilenetv2_224x224-robust.t7"
57+
# full_name = "/home/yuliang/code/MobilePose-pytorch/models/demo/resnet18_227x227.t7"
58+
# full_name = "/home/yuliang/code/MobilePose-pytorch/models/demo/mobilenet-best.t7"
5959
# ROOT_DIR = "/home/yuliang/code/deeppose_tf/datasets/mpii"
6060
ROOT_DIR = "../deeppose_tf/datasets/mpii"
6161

mobilenetv2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'''
22
File: mobilenetv2.py
3-
Project: DeepPose
3+
Project: MobilePose
44
File Created: Thursday, 8th March 2018 2:51:18 pm
55
Author: Yuliang Xiu ([email protected])
66
-----

networks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'''
22
File: networks.py
3-
Project: DeepPose
3+
Project: MobilePose
44
File Created: Thursday, 8th March 2018 2:59:28 pm
55
Author: Yuliang Xiu ([email protected])
66
-----

run_webcam.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'''
22
File: run_webcam.py
3-
Project: DeepPose
3+
Project: MobilePose
44
File Created: Thursday, 8th March 2018 2:19:39 pm
55
Author: Yuliang Xiu ([email protected])
66
-----
@@ -28,7 +28,7 @@
2828

2929
if __name__ == '__main__':
3030

31-
parser = argparse.ArgumentParser(description='deeppose realtime webcam.')
31+
parser = argparse.ArgumentParser(description='MobilePose Realtime Webcam.')
3232
parser.add_argument('--model', type=str, default='resnet', help='mobilenet|resnet')
3333
parser.add_argument('--camera', type=int, default=0)
3434

training.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
'''
44
File: training.py
5-
Project: DeepPose
5+
Project: MobilePose
66
File Created: Thursday, 8th March 2018 2:50:11 pm
77
Author: Yuliang Xiu ([email protected])
88
-----
@@ -29,7 +29,7 @@
2929

3030
if __name__ == '__main__':
3131

32-
parser = argparse.ArgumentParser(description='deeppose demo')
32+
parser = argparse.ArgumentParser(description='MobilePose Demo')
3333
parser.add_argument('--model', type=str, default="resnet")
3434
parser.add_argument('--gpu', type=str, default="0")
3535
args = parser.parse_args()

0 commit comments

Comments
 (0)