All Projects → stephen-v → tensorflow_alexnet_classify

stephen-v / tensorflow_alexnet_classify

Licence: Apache-2.0 license
tensorflow_alexnet_classify (details http://www.cnblogs.com/vipyoumay/p/7686230.html)

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to tensorflow alexnet classify

visual-search
A toy project for visual search, based on deep learning.
Stars: ✭ 45 (-55.88%)
Mutual labels:  alexnet
AlexNet
AlexNet model from ILSVRC 2012
Stars: ✭ 35 (-65.69%)
Mutual labels:  alexnet
DeepNetModel
记录每一个常用的深度模型结构的特点(图和代码)
Stars: ✭ 25 (-75.49%)
Mutual labels:  alexnet
image space
Interactive Image similarity and Visual Search and Retrieval application
Stars: ✭ 91 (-10.78%)
Mutual labels:  alexnet
tensorflow-classification-network
实现遇到的分类网络(持续更新)
Stars: ✭ 19 (-81.37%)
Mutual labels:  alexnet
alexnet
custom implementation alexnet with tensorflow
Stars: ✭ 21 (-79.41%)
Mutual labels:  alexnet
alexnet-pytorch
Pytorch Implementation of AlexNet
Stars: ✭ 87 (-14.71%)
Mutual labels:  alexnet
Tensorrtx
Implementation of popular deep learning networks with TensorRT network definition API
Stars: ✭ 3,456 (+3288.24%)
Mutual labels:  alexnet
AD Prediction
Alzheimer's Disease Prediction by using ResNet, AlexNet
Stars: ✭ 118 (+15.69%)
Mutual labels:  alexnet
CNN-Series-Getting-Started-and-PyTorch-Implementation
我的笔记和Demo,包含分类,检测、分割、知识蒸馏。
Stars: ✭ 49 (-51.96%)
Mutual labels:  alexnet
AgeEstimateAdience
Age and Gender Estimation Using Convolutional Neural Network
Stars: ✭ 42 (-58.82%)
Mutual labels:  alexnet
SpeechEmoRec
Speech Emotion Recognition Using Deep Convolutional Neural Network and Discriminant Temporal Pyramid Matching
Stars: ✭ 44 (-56.86%)
Mutual labels:  alexnet
Near-Duplicate-Video-Detection
Detecting near-duplicate videos by aggregating features from intermediate CNN layers
Stars: ✭ 90 (-11.76%)
Mutual labels:  alexnet
alexnet-architecture.tensorflow
Unofficial TensorFlow implementation of "AlexNet" architecture.
Stars: ✭ 15 (-85.29%)
Mutual labels:  alexnet
AU Recognition
AU_Recognition based on CKPlus/CK database
Stars: ✭ 21 (-79.41%)
Mutual labels:  alexnet
python cv AI ML
用python做计算机视觉,人工智能,机器学习,深度学习等
Stars: ✭ 73 (-28.43%)
Mutual labels:  alexnet
miopen-benchmark
benchmarking miopen
Stars: ✭ 17 (-83.33%)
Mutual labels:  alexnet

tensorflow_alexnet_classify

This repository aims to implement a alexnet with tensorflow. The train file contains 25000 images (cat and dog). We built this AlexNet in Windows , it's very convenient for most of you to train the net.

Requirements

  • Python 3.5
  • TensorFlow 1.8.0
  • Numpy
  • cat and dog images here

Usage

1' Make sure that you have already changed file directory to the right format.

example:

/path/to/train/cat/cat_1.jpg

/path/to/train/cat/cat_2.jpg

/path/to/train/dog/dog_1.jpg

/path/to/train/dog/dog_2.jpg

/path/to/test/cat/cat_1.jpg

/path/to/test/dog/dog_1.jpg

2' Modify parameters of the beginning of main function in the main_alexnet.py file.

example:

learning_rate = 1e-3
num_epochs = 17  
train_batch_size = 1000 
test_batch_size = 100
dropout_rate = 0.5
num_classes = 2  
display_step = 2 

filewriter_path = "./tmp/tensorboard" 
checkpoint_path = "./tmp/checkpoints"  

image_format = 'jpg' 
file_name_of_class = ['cat',
                      'dog']
train_dataset_paths = ['G:/Lab/Data_sets/catanddog/train/cat/', 
                       'G:/Lab/Data_sets/catanddog/train/dog/'] 
test_dataset_paths = ['G:/Lab/Data_sets/catanddog/test/cat/',
                      'G:/Lab/Data_sets/catanddog/test/dog/'] 

Notes:

  • The alexnet.py and datagenerator.py files have been builded, you don't have to modify it. But if you have more concise or effective codes, please do share them with us.
  • The main_alexnet.py is aimed to tune the weights and bias in the alexnet.
  • This model is easily transfered into a multi-class classification model. All you need to do is modifying parameters of the beginning of main function in the main_alexnet.py file.

Example output:

We choosed ten pictures from the internet to validate the AlexNet, there were three being misidentified, the accuracy is about 70%, which is similar to the accuracy we tested before. But, On the whole, the AlexNet is not as good as we expected, the reason may have something to do with the datesets. If you have more than One hundred thousand dataset, the accuracy must be better than we trained. See the results below:

2017-10-18-10-16-50

2017-10-18-10-18-37

2017-10-18-10-19-57

2017-10-18-10-21-22

2017-10-18-10-23-09

2017-10-18-10-27-53

2017-10-18-10-26-36

2017-10-18-10-29-58

2017-10-18-10-33-15 2017-10-18-10-38-02

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].