Skip to content

This is the unofficial implementation of the "CenterNet:Objects as Points".Just a simple try with self-modified shufflenetv2 and yolov3.If you want better results, you need more experiments.

License

Notifications You must be signed in to change notification settings

monoloxo/centernet_tensorflow_wilderface_voc

 
 

Repository files navigation

centernet_tensorflow_wilderface_voc

1. Introduction

2. My experimental environment

  • anaconda3、pycharm-community、python3.6、numpy1.14
  • tensorflow1.12、slim
  • cuda9.0、cudnn7.3
  • opencv-python4.1
  • gtx1080ti*1

3. datasets

  • For single-target detection, trained on wilderface dataset with 12876 training images.
  • For multi-target detection, trained on pascal-voc2012 dataset with 17125 training images.

4. Experimental result

4.1 Face detection

input_size:512x512
downsample_ratio:4.0
batch_size:14
global_steps:14800
epochs≈16
train_time≈3.7 hours
4.1.1 Network

4.1.2 result

4.2 Multi-target detection

input_size:512x512
downsample_ratio:8.0
batch_size:8
global_steps:70000
epochs≈32
train_time≈9.7 hours
4.2.1 Network

4.2.2 result(on training set,not very good on the test set)

4.3 inference time

environment:python3.6 gtx1080ti*1 intel-i7-8700k
model_name   			avg_time(ms)    input_size	 model_size(.pb)	
shufflenet-face			21.37		512x512		 20.5MB
yolo3_centernet_voc		25.23		512x512		 230MB

5. Run test demo(still need more work to get good results)

download ckpt filehttps://pan.baidu.com/s/1VrHv5U1wF1UP_r7JICbeZAcode:qqwx,and put them to ./shufflenet_face/ and ./yolo3_centernet_voc/,then run test_on_images.py

6.Create tfrecords to train

  • The function about how to create and parse tfrecords is under folder img2tfrecords_detection.
  • You only need to modify the following variables:img_path, txt_path, tfrecords.
  • Then run img2tfrecords_pad.py to create tfrecords and parse it by parse-tfrecords.py.
  • For detailed implementation, please see the relevant code under folder img2tfrecords_detection.

About

This is the unofficial implementation of the "CenterNet:Objects as Points".Just a simple try with self-modified shufflenetv2 and yolov3.If you want better results, you need more experiments.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%