Skip to content

Image NSFW likelihood scoring as a service

License

BSD-3-Clause, BSD-2-Clause licenses found

Licenses found

BSD-3-Clause
LICENSE.txt
BSD-2-Clause
LICENSE-yahoo.txt
Notifications You must be signed in to change notification settings

mdholloway/nsfwoid

 
 

nsfwoid

This is a fork of the open_nsfw-- project, productionized for Wikimedia. The project is originally based on Yahoo's open_nsfw.

It provides image NSFW likelihood scoring as a service.

Running the service

Quick start

python3 app.py

Dockerization via Blubber

Dockerfile generation and Docker image creation is supported with Blubber.

Note: Currently broken without patching Blubber; see https://phabricator.wikimedia.org/T227919 for details. The Blubber fork at https://github.com/mdholloway/blubber/tree/python-fix is updated to support the use-system-flag declaration used in the Blubberfile here.

API usage

POST the url of an image to /v1/score, and the service will fetch it and return the probability that it's NSFW, expressed as a floating point number between 0 and 1.

curl -d 'url=https://upload.wikimedia.org/wikipedia/commons/thumb/8/80/Wikipedia-logo-v2.svg/263px-Wikipedia-logo-v2.svg.png' localhost:8080/v1/score
0.018645038828253746

About

Image NSFW likelihood scoring as a service

Resources

License

BSD-3-Clause, BSD-2-Clause licenses found

Licenses found

BSD-3-Clause
LICENSE.txt
BSD-2-Clause
LICENSE-yahoo.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%