GithubHelp home page GithubHelp logo

vasu081098 / nsfw-classifier Goto Github PK

View Code? Open in Web Editor NEW

This project forked from deepanshu-yadav/nsfw-classifier

0.0 0.0 0.0 4.47 MB

An AWS Sagemaker Model developed for Nudity / NSFW Images Classification. This Model was developed during my Machine Learning Engineer Nanodegree.

License: MIT License

Jupyter Notebook 99.83% Python 0.17%

nsfw-classifier's Introduction

NSFW-Classifier

An AWS Sagemaker Model developed for Nudity / NSFW Images Classification

This is project done for the fullfillment of Udacity Machine Learning Engineer NanoDegree. I have build a model that classifies input image into five categories.

  1. Nude
  2. Semi Nude
  3. Animated
  4. Porn
  5. Safe For Work

Demo

The model is deployed on aws check it yourself by downloading this repository , then going to demo folder and running index.html.

Contents

  1. classification_tool.ipynb
  2. clean and prepare data.ipynb
  3. nsfw-training_built_in_aws.ipynb
  4. nsfw_deploy.ipynb
  5. batch_transform.ipynb
  6. benchmark.ipynb
  7. analyze_bench.ipynb
  8. Metrics.ipynb
  9. analyze_results.ipynb
  10. Capstone_Project_Report.pdf
  11. Project_Proposal.pdf
  12. results.csv
  13. results_bench.csv

Data Collection And Organization

The following guys had collected the data

  1. B Praneeth 's Data . He did an awesome job in collection of data . The data is for three classes
    • Nude
    • Sexy
    • Safe
    1. But the problem is I need more categories for my problem . So I made a simple tool that is helpful for sub classifying the above Nude Images. You just keep all the training samples in one folder and run and run it in a jupyter notebook. I classified a few thousands of these , but then i realized that it would take a while to gather huge data. For class Safe For Work i sampled randomly from his huge dataset.
    2. Further More I also made a tool that takes a screenshot of the screen and saves it into a folder. It becomes handy when you want to deliberately put difficult examples in your dataset.

The above tools proved helpful but did not solved the problem of gathering large number of examples for training. Therefore scraping was necessary.

  1. Bazarov 's Dataset . For collecting set of nude images I included the the sub category in the list he provided namely:
    • Female genitalia
    • Male genitalia
    • Breasts
      By now I had enough examples of class nude.

3. Alex's Dataset . For classes animated and porn i scraped the data from here.

  1. Instagram Scrapper For class Semi Nude I used his tool to scrape few Instagram pages that regularly post arousing images of men and women.

nsfw-classifier's People

Contributors

deepanshu-yadav 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.