Code Monkey home page Code Monkey logo

hypernsfw's Introduction

HyperNSFW-Caffe

Introduction

This is a Caffe implementation of Not Suitable for Work (NSFW) classification deep neural network. This model is now slightly more accurate than Yahoo's Open NSFW. As a bonus, this model executes ~4x faster. We can run classification with this model at 80msec on the mobile phone. For details, please read our blog.

Evaluate Models with a single image

Evaluate HyperNSFW:

For Python Code

python eval_image.py --proto model/mobilenet_v2_deploy.prototxt --model model/HyperNSFW.caffemodel --image ./test.jpg

Expected Outputs:

0.9302 - 'n16000001 sfw'
0.0698 - 'n16000002 nsfw'

For CPP Code

cd Prj-Cpp

Compile detection.cpp with OpenCV 3.4.1 or higher version.

You can also compile ncnn_mobilenet.cpp with ncnn framework.

Then test the code.

Finetuning on your own data

Prepare your own data and use related files in the train folder to Finetune on your own data.

Related Projects

HyperNSFW is trained with the following projects, we recommend you to take a look:

识别APP

Update (2018.12.03)

  • cpp code release.
  • Android Projects release.

hypernsfw's People

Watchers

 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.