Giter VIP home page Giter VIP logo

animefaceclassifier's Introduction

Anime Face Classifier using Keras

Classification Japanese Anime Character.

Miku Detected

Hatsune Miku / Crypton Future Media inc. / CC BY-NC

Detectable Character List : https://github.com/abars/AnimeFaceClassifier/blob/master/animeface_tag.txt

Requirements

Keras2

Python 2.7

OpenCV3

Plaidml (Train)

Pretrained model

Download pretrained model.

Recommended : http://www.abars.biz/keras/animeface_small_cnn.hdf5 (946MB)

Small CNN model. Train 2days using Mac Pro 2013.

loss: 0.6173 - acc: 0.8140 - val_loss: 1.2487 - val_acc: 0.7019

Experimental : http://www.abars.biz/keras/animeface_vgg16.hdf5 (93MB)

VGG16 fine tuning model. Train 3days using Mac Pro 2013.

loss: 0.0557 - acc: 0.9836 - val_loss: 1.0058 - val_acc: 0.8178

Predict

Predict from face image.

python predict.py images/miku_face.jpg

Recognize

Recognize from several image.

python recognize.py images/miku.png

Download dataset

Download animeface-character-dataset and put in the same folder.

http://www.nurs.or.jp/~nagadomi/animeface-character-dataset/README.html

Create train folder and validation folder.

perl separate.pl

Train

python train.py

Output is train_animeface_*.hdf5.

Acknowledgement

https://github.com/nagadomi/lbpcascade_animeface

https://spjai.com/keras-fine-tuning/

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.