项目作者: abhishekrana

项目描述 :
Apparel detection using deep learning
高级语言: Python
项目地址: git://github.com/abhishekrana/DeepFashion.git
创建时间: 2017-08-02T11:48:40Z
项目社区:https://github.com/abhishekrana/DeepFashion

开源协议:Apache License 2.0

下载


DEEP FASHION

Setup Environment

  1. # Virtual environment (optional)
  2. sudo apt install -y virtualenv
  3. # Tensorflow (optional)
  4. sudo apt-get install python-pip python-dev python-virtualenv # for Python 2.7
  5. virtualenv --system-site-packages tensorflow121_py27_gpu # for Python 2.7
  6. source tensorflow121_py27_gpu/bin/activate
  7. pip install --upgrade tensorflow-gpu # for Python 2.7 and GPU
  8. # Dependencies
  9. sudo apt install -y python-tk
  10. pip install -r requirements.txt

Download DeepFashion Dataset

  1. # http://mmlab.ie.cuhk.edu.hk/projects/DeepFashion/AttributePrediction.html
  2. ./dataset_download.sh
  3. # The directory structure after downloading and extracting dataset:
  4. # fashion_data/
  5. # ---Anno
  6. # ------list_attr_cloth.txt
  7. # ------list_attr_img.txt
  8. # ------list_bbox.txt
  9. # ------list_category_cloth.txt
  10. # ------list_category_img.txt
  11. # ------list_landmarks.txt
  12. # ---Eval
  13. # ------list_eval_partition.txt
  14. # ---Img
  15. # ------img

Create Dataset

  1. # For images in fashion_data, apply selective search algo to find ROI/bounding boxes. Crop and copy these ROI inside dataset
  2. python dataset_create.py

Train

  1. python train.py

Predict

  1. python predict.py

Misc

dataset - Contains images used for training, validation and testing.

output - Contains trained weights and bottleneck features.

logs - Contains logs and events used by tensorboard.

MODEL

  1. -> Classification Head (Categories)
  2. InputImage -> VGG16 + Layers --
  3. -> Regression Head (Confidnence in the Classification head prediction)

RESULTS

alt text

Acknowledgment