Coder Social home page Coder Social logo

hhhhhxm / jianhuang Goto Github PK

View Code? Open in Web Editor NEW

This project forked from armon2023/nsfw-image-classification

0.0 0.0 0.0 26.96 MB

基于tensorflow Inception V3模型迁移学习的图片鉴定分类程序(鉴黄、鉴血腥)

Python 97.80% PureBasic 2.20%

jianhuang's Introduction

nsfw

项目文件压缩包:http://speedtail.fun/download/nsfw-image-classification.zip

introduction

  • 基于tensorflow Inception V3模型迁移学习的图片鉴定程序

  • 色情图片鉴定

  • 血腥图片鉴定

    代码是在官网的代码基础上更改后的,由于python水平有限,因此比较乱. 图片分类的最终正确率在95%左右,该模型在1W张图片之内就达到了极限,过多次的重复训练会导致过拟合.

Required Packages

此程序运行需要安装几个Python包。这些包及版本如下(目前代码中使用的是cpu版本的tensorflow):

  • tensorflow 1.13.1
  • numpy 1.16.2
  • Python 3.5.0
  • tornado 5.1.1

安装时最好对应版本,否则会有很多坑(py大神随意吧!)

Running the model

命令行进入对应主目录输入

python ./label_image.py

启动成功后在浏览器输入

http://127.0.0.1:{port}/porn?image={imageUrl} || http://127.0.0.1:{port}/bloody?image={imageUrl}

可以看到输出的json概率

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.