• Stars
    star
    157
  • Rank 237,006 (Top 5 %)
  • Language
    Python
  • License
    Apache License 2.0
  • Created about 6 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Person segmentation with Keras (SegNet, Unet, etc.)

Person-Segmentation-Keras

Person segmentation with Keras (SegNet, Unet, etc.)

Dataset

Person segmentation

HumanParsing-Dataset is adopted in this repo.

Origin HumanParsing-Dataset contains 16+1 object classes. But in this repo, i just segment person which is a binary classification task.

I generate new label images by my self, you can download new label imgages at https://pan.baidu.com/s/1Y6bKUznsVc7xNWb9tqWaHA passwd: p8ks

Of course you can generate label images by yourself using convert_labels.py , gen_train_test_list.py.

I use 12706 images of HumanParsing-Dataset as training set, the remaining images as test set.

During training, i resize images with unchanged aspect ratio using padding, for details you can see this script.

Human parsing

Origin HumanParsing-Dataset contains 16+1 object classes.

background     0
hat            1
hair           2 
sunglass       3
upper-clothes  4
skirt          5
pants          6
dress          7
belt           8
left-shoe      9
right-shoe     10
face           11
left-leg       12
right-leg      13
left-arm       14
right-arm      15
bag            16
scarf          17

I have simplified the parsing task. Now it contains 4 + 1 classes.

background     0 (background, bag)
head           1 (hat, hair, sunglass, face, scarf)
upper body     2 (upper-clothes)
both hands     3 (left-arm, right-arm)
lower body     4 (skirt, pants, dress, belt, left-shoe, right-shoe, left-leg, right-leg)

New label images can be downloaded from this link https://pan.baidu.com/s/1jhqpOn8oBmiJiwzohhkfww passwd: gamc

Usage

All models are defined in 'models' directory.

An example for training Unet.

python train_segmentation.py --model='unet'

For visiualsizing the predictions, you can use the follow command

python predict.py --model='unet'

Results

Unet

Person segmentation

mIU: 0.8918

Origin images, ground truth images and predictions.

predictions

Val accuracy during training.

val acc unet

Val loss during training.

val loss unet

Human parsing

Part mIoU
Unet head 0.66476
upper body 0.48639
both hands 0.27016
lower body 0.66536
mean 0.52167

Origin images, ground truth images and predictions.

predictions

SegNet

Todo

Reference

image-segmentation-keras

SegNet-Tutorial

More Repositories

1

Real-Time-Action-Recognition

Real-time pose estimation and action recognition
Python
388
star
2

awesome-SynthText

A curated list of awesome synthetic data for text location and recognition
299
star
3

C3D-keras

train C3D with keras for action recognition
Python
122
star
4

Tensorflow-quantization-test

Tensorflow quantization (float32-->int8) inference test
Python
73
star
5

keras-FP16-test

Evaluating deep learning models with float16 dtype in Keras, float16 inference
Python
49
star
6

3D-ConvNets-for-Action-Recognition

3D ConvNets for Action Recognition with Keras (3d ResNet, 3d DenseNet, 3d Inception, C3D, 3d dense resnet)
Python
41
star
7

Multi-3DCNN-for-action-recognition

Multi 3DCNN for action recognition using global and local information
Python
37
star
8

Shanghai-House-Hunting

利用Python爬虫+高德api选择租房
HTML
31
star
9

PointNet-Keras

Implementating PointNet with Keras
Python
29
star
10

Dataset-maker-for-action-recognition

generate action data using openpose or SSD
Python
29
star
11

Unet-for-Person-Segmentation

Person segmentation using Unet
Python
24
star
12

Model-Compression-Keras

cnn compression for keras
Python
21
star
13

text2image

生成用于训练CRNN的图片数据
Python
19
star
14

3D-Dense-Residual-Network-for-Action-Recognition

3D Dense Residual Network for Action Recognition
Python
16
star
15

Network-Slimming-Keras

Implementation of "Learning Efficient Convolutional Networks through Network Slimming" (ICCV2017)
Python
12
star
16

OCR_REST_api

深度学习OCR REST api (Flask+Redis+Keras)
Python
11
star
17

PSMNet-TensorFlow

A TensorFlow port of Pyramid Stereo Matching Network (CVPR2018)
Python
10
star
18

Python3-Spiders

一些python爬虫程序
Python
6
star
19

Residual-Networks-with-Dense-Block

ResNets with Dense Block
Python
4
star
20

caffe_kld_loss

caffe KL Divergence Loss layer for matching prob distribution
C++
3
star
21

Incremental-object-recognition

利用inception v4 提取特征,构建了一个简易增量式图片识别程序
Python
3
star
22

Multi-Person-Tracking-Using-SSD-Detector

Multi-Person-Tracking-Using-SSD-Detector
Python
2
star
23

Awesome-Model-Compression

A curated list of awesome model compression method for CNNs
1
star
24

AocNet

Build CNN only use 1*1 conv
Python
1
star