# yahoo/open_nsfw

Not Suitable for Work (NSFW) classification using deep neural network Caffe models.

Repository: https://github.com/yahoo/open_nsfw
Canonical: https://ross.abutalabs.com/products/open_nsfw
Language: Python
License: BSD-2-Clause
License Family: permissive
Archived: true
Last push: 2018-11-21T03:15:32+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3669, "days_push": 2842, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6012, forks 1046 (observed 2026-08-28T04:09:34.244265+00:00)

## What it is
A Python library from Yahoo that runs a Caffe deep neural network to classify images as Not Suitable for Work (NSFW), outputting a probability score between 0 and 1. It focuses specifically on detecting pornographic images for content filtering purposes.

## Use cases
- filter adult images from user-generated content uploads
- score images for NSFW probability before publishing
- pre-screen images for content moderation pipelines
- classify whether a photo is safe for work
- build an image filtering service for a website
- fine-tune an NSFW classifier for a custom dataset

## When to choose
- you need to filter pornographic images at scale using a pre-trained model
- your stack already uses Caffe or CaffeOnSpark
- you want a simple score-based image safety classifier you can fine-tune

## When to avoid
- you need detection of cartoons, sketches, text, or graphic violence - the model only covers pornographic imagery
- you need actively maintained software - the last release was in 2018 and Caffe itself is largely deprecated
- you prefer modern PyTorch or TensorFlow-based moderation models
- you require guaranteed accuracy without human moderation for edge cases

## Facets
- artifact type: library
- maturity: abandoned
- function: machine-learning, deep-learning, computer-vision, image-processing
- domain: machine-learning, computer-vision, image-processing, artificial-intelligence
- platform: python
- tags: nsfw-detection, caffe, image-classification, content-moderation, deep-neural-network, linux, macos

## Member repositories
- yahoo/open_nsfw (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:34.244265+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-29T17:49:46.891418+00:00, confidence not recorded.
  - readme: https://github.com/yahoo/open_nsfw (fetched 2026-08-28T04:09:34.244265+00:00, sha e10eb75fb98b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
