Giter Club home page Giter Club logo

classification_image's Introduction

training_model_VGGface(Pour mon dossier vggface)

  1. copy ce dossier vggface et le ficher vggface.prototxt dans le dossier caffe (Remarque: Le fichier vggface.prototxt doit être en dehors du dossier vggface,vous devez aussi ajouter le VGG_FACE.caffemodel par vous-même dans mon dossier vggface)
  2. cd caffe
  3. sh vggface/create-lmdb.sh
  4. build/tools/compute_image_mean vggface/train_lmdb vggface/mean.binaryproto
  5. ./build/tools/caffe train
    --solver=vggface/solver.prototxt
    --weights=vggface/VGG_FACE.caffemodel

classification_image_HF(Pour mon dossier modelHF)

1.Download img_align_celeba.zip and list_attr_celeba.txt.

2.Delete the first line of list_attr_celeba.txt.(If we keep the first line it will lead the error of index out of range beacause we couldn't read the 21th colone(attribute "male") of the first line.)

3.Put the 5 files (gender_net.caffemodel,deploy_gender.prototxt,mean.binaryproto,list_attr_celeba.txt,model.py) in the directory img_align_celeba.

4.run model.py (python model.py)

5.You will find a new file called prediction.txt, in this file you will find all the prediction of label orderly(the first is the label of 000001.jpg, the seconde is the label of 000002.jpg,the third is the label of 000003.jpg)

6.You will find the accuracy in the terminal.

classification_image's People

Contributors

tangyuan1994 avatar

Watchers

James Cloos avatar  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.