Code Monkey home page Code Monkey logo

caffe-sandbox's Introduction

Sanzio_01_Plato_Aristotle.jpg

show_result.py

VGG

wget https://upload.wikimedia.org/wikipedia/commons/9/98/Sanzio_01_Plato_Aristotle.jpg
source $CAFFE_HOME/data/ilsvrc12/get_ilsvrc_aux.sh
convert -crop 224x224+130+40 Sanzio_01_Plato_Aristotle.jpg crop.jpg
$CAFFE_HOME/python/classify.py --raw_scale 224 --model_def VGG_ILSVRC_16_layers_deploy.prototxt --pretrained_model VGG_ILSVRC_16_layers.caffemodel --mean_file '' ./crop.jpg result.npz
python show_result.py $CAFFE_HOME/data/ilsvrc12/synset_words.txt result.npy.npy
#1 | n04584207 wig | 63.5%
#2 | n02895154 breastplate, aegis, egis | 12.9%
#3 | n02113799 standard poodle |  2.1%

resnet

pyenv shell anaconda2-4.3.1
for req in $(cat ../caffe/python/requirements.txt); do pip install $req; done 
conda install libgcc
../caffe/python/classify.py --raw_scale 224 --model_def ResNet-50-deploy.prototxt --pretrained_model ResNet-50-model.caffemodel --mean_file '' ./crop.jpg result.npz

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.