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.
-
Easy Usage. Just load the model and weights to predict a image.
-
Work with Python.
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_imagethe_path_of_image is the input image to be detected.
Output is The PORNGRAPHIC probability.
Run:
python mosaic_porngraphic_cnn_demo.py ./data/test/22.jpgOutput:
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"}
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%.