项目作者: qhan1028

项目描述 :
Fully Convolutional Networks for Portrait Matting
高级语言: Python
项目地址: git://github.com/qhan1028/Fully-Convolutional-Networks.git
创建时间: 2017-07-12T02:47:49Z
项目社区:https://github.com/qhan1028/Fully-Convolutional-Networks

开源协议:MIT License

下载


Fully Convolutional Networks for Portrait Matting


Basic Knowledges

Referenced Papers

Referenced Repositories

Data Sets

Model

  • conv1_1~conv5_3: VGG-19
  • pool5~conv_t3: Convolution (replace dense network) and Deconvolution

Directory Structure

  1. .Fully-Convolutional-Networks/
  2. ├── .Data_zoo/
  3. └── .MIT_SceneParsing/
  4. ├── ADEChallengeData2016.zip
  5. ├── MITSceneParsing.pickle
  6. ├── train_data.npz (show up after first train)
  7. ├── val_data.npz (show up after first train)
  8. └── .ADEChallengeData2016/
  9. ├── sceneCategories.txt
  10. ├── .images/
  11. ├── .training/
  12. └── .validation/
  13. └── .annotations/
  14. ├── .training/
  15. └── .validation/
  16. ├── .Model_zoo/
  17. └── imagenet-vgg-verydeep-19.mat
  18. ├── .logs/
  19. ├── checkpoint
  20. ├── model.ckpt-100000.data-00000-of-00001
  21. ├── model.ckpt-100000.meta
  22. └── model.ckpt-100000.index
  23. ├── fcn.py (main program)
  24. ├── augment.py
  25. ├── batch_datset_reader.py
  26. ├── reader.py
  27. ├── tensorflow_utils.py
  28. └── README.md
  • For each data, the filename in image/, annotation/ folder must be same.

Data Augmentations

  • Flip: 50% horizontally
  • Rotation: -90 ~ +90
  • Scale: 0.5 ~ 1.5
  • Shift: -50% ~ +50% horizontally & vertically

Requirements

  • tensorflow-gpu == 1.2.1

Quick Usage

  • Train
    • python3.5 fcn.py -m train
  • Visualize
    • python3.5 fcn.py -m visualize
  • Test
    • python3.5 fcn.py -m test -tl <test_list>
  • To see full usage
    • python3.5 fcn.py --help