Skip to content

A TensorFlow use CNN to identify dog or cat in images, trained from a Kaggle competition data

Notifications You must be signed in to change notification settings

DexterYan/tensorflowCatVsDog

Repository files navigation

1. What is this

It is a classifer of reconizing the cat or dog based on convolutional neural net, using tensorflow

2. Installation

First, you have to follow the Tensorflow Setup to install a tensorflow environment. Second, install these library by pip

Third, download the dataset from kaggle. Put the train image into train folder

3. Usage

Active the tensorflow To train the neural network, run

python classifier.py
  • To do the predicate the image, run
python predict.py

make sure you have put some image in the test folder, by default, I have train a neurial work for you, you can directly run predicate

4. Folder Struture

  • test/ (you can put your image for testing)
  • train/ (dataset from kraggle.com)
  • tmp/ (log file)

5. Something missing? Fork!

fork this repo; send a pull request!; My email yanshaocong@gmail.com

MIT

Copyright (c) 2016 Dexter Yan

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE

About

A TensorFlow use CNN to identify dog or cat in images, trained from a Kaggle competition data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages