# GantMan/nsfw_model

Keras model of NSFW detector

Repository: https://github.com/GantMan/nsfw_model
Canonical: https://ross.abutalabs.com/products/nsfw_model
Language: Python
License: NOASSERTION
License Family: other
Topics: keras, nsfw-data, machine-learning, machinelearning, inceptionv3, inception-v3
Last push: 2024-02-26T07:28:05+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2782, "days_push": 919, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2085, forks 302 (observed 2026-08-28T04:06:11.921667+00:00)

## What it is
A Keras/TensorFlow deep learning model that classifies images into NSFW categories (drawings, hentai, neutral, porn, sexy) with ~93% accuracy. It ships as a Python package with a CLI and pretrained model weights based on Inception V3 and MobileNet architectures.

## Use cases
- detect nsfw images in user uploads
- classify images as safe for work or not
- moderate content on a website or app
- filter pornographic images from a dataset
- batch classify a directory of images for adult content
- power a browser or mobile nsfw detector like nsfwjs

## When to choose
- you need pretrained image safety classification without training your own model
- you want a Python library or CLI for NSFW detection
- you need model weights in Keras, TensorFlow, or TensorFlowJS formats

## When to avoid
- you need video or text content moderation
- you require a permissively licensed model (license is non-standard)
- you need actively developed features or recent research models
- you need real-time detection on edge devices with strict latency budgets

## Facets
- artifact type: library
- maturity: maintenance
- function: machine-learning, image-processing, computer-vision
- domain: machine-learning, image-processing, artificial-intelligence
- platform: python, cross-platform
- tags: nsfw-detection, keras, inception-v3, mobilenet, image-classification, content-moderation, tensorflow

## Member repositories
- GantMan/nsfw_model (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:11.921667+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:55:49.545870+00:00, confidence not recorded.
  - readme: https://github.com/GantMan/nsfw_model (fetched 2026-08-28T04:06:11.921667+00:00, sha 0d2e46621f67)
- Data as of 2026-08-30T08:39:29.467469+00:00.
