GithubHelp home page GithubHelp logo

cnn-km's Introduction

CNN-KM

Convolutional Neural Network for feature extraction with unsupervised feature clustering. Using the Cifar-10 dataset on Caffe.

How to Use

Training

First, following the Caffe Cifar-10 Tutorial, download and convert the data into leveldb format for training the network using the scripts provided in Caffe: /data/cifar10/get_cifar10.sh and /examples/cifar10/create_cifar10.sh. Run these scripts from the root directory of Caffe. This should give a mean.binaryproto file along with the leveldb data, remember the path of this file or copy it somewhere handy since it will be used later. Now, train the network using one of the training scripts in the Caffe examples/cifar10 directory.

Running

After training, you should have a .caffemodel file that holds the weights of the network. It is convenient to copy this and the deploy .prototxt corresponding to whichever training .prototxt you used to this repository's directory along with the mean.binaryproto file from earlier. You will also need the file batches.meta.txt, which contains the label names, this should have come with the data downloaded earlier, and should be able to be found in $CAFFE_ROOT/data/cifar10. You can use the cifar10 train lmdb you generated earlier to supply test images and their labels. Now set all the paths to point to the correct files in main.py and the parameters. Finally, run main.py. After a few minutes, the results should be saved.

cnn-km's People

Contributors

alexevans avatar

Watchers

James Cloos avatar Victor Sahin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.