项目作者: RafaelMenesesRibeiro

项目描述 :
Convolutional Neural Network Example - Cat vs Dog
高级语言: Python
项目地址: git://github.com/RafaelMenesesRibeiro/CNN_Cat_vs_Dog.git
创建时间: 2017-08-11T23:25:41Z
项目社区:https://github.com/RafaelMenesesRibeiro/CNN_Cat_vs_Dog

开源协议:MIT License

下载


CNN_Cat_vs_Dog

Convolutional Neural Network to distinguish between cats and dogs given only an image.
Uses Tensorflow library for the CNN model.

screenshot

Requirements

  • Kaggle Dataset - Dogs vs. Cats Redux: Kernels Edition - only train.zip
  • Tensorflow / Tensorflow-gpu
    • CUDA Toolkit 8.0 (optional - to use with the gpu version)
    • cuDNN 7 (optional - to use with the gpu version)
  • TFlearn
  • OpenCV
  • Numpy
  • TQDM (optional - no added functionality or better performance - only for pretty progress bars)

How To Use

  1. #Set TRAIN_DIR in CNN_catdog_train.py:17 to the directory where the downloaded images are.
  2. TRAIN_DIR = ''
  1. #Run CNN_catdog_train.py to train/load the model. Input an image path (to test) when asked.
  2. $ python CNN_catdog_train.py