Skip to content

DeepLearningCode/mosaic

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mosaic: Deep Learning Model for Porngraphic Detection

You have just found Mosaic Models.

Mosaic is a high-level neural networks model, written in Python and capable of running on top of keras with Tensorflow backend .

Now, It was developed with a focus on porngraphic detection.

Use Mosaic Models if you need a deep learning Model that:

  • Allows for easy and fast detecting porngraphic.
  • Design and Fine-tune yourself Network (Mosaic-based).
  • Runs seamlessly on CPU and GPU.

Mosaic is compatible with: Keras 2.0.3 Tensorflow 1.1.0 and Python 2.7.


Guiding principles

  • Easy Usage. Just load the model and weights to predict a image.

  • Work with Python.


Usage:

Download the project and run command(Please download weights file from http://pan.baidu.com/s/1i4POGXB to ./model.):

python mosaic_porngraphic_cnn_demo.py the_path_of_image

the_path_of_image is the input image to be detected.

Output is The PORNGRAPHIC probability.

Example:

Run:

python mosaic_porngraphic_cnn_demo.py ./data/test/22.jpg

Output:

Mosaic: detect porngraghic
=====================================

loading weights..........
load OK!

Try to Predict input images:
=====================================
Input image is: ./data/test/22.jpg
The PORNGRAPHIC probability is: 0.000% 

Also, the model gives JSON Output:

following are return values:
{"results_output": {"porngraphic": "2.15399e-08"}, "image_file_output": "null", "results_file_output": "null"}

Models:

Mosaic Model based on Xception in keras:

  • Input: [128,128,3]
  • Entry Flow: [8,8,728]
  • Middle Flow(repeated 8 times): [8,8,728]
  • Exit Flow: [4,4,2048]
  • Output FC: 1

The accuracy in test datasets is up to 96%.

About

Detect Porngraphic Images by Deep Learning (Using Keras and Tensorflow)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%