/open_nsfw

Tensorflow Implementation of Yahoo's Open NSFW Model

Primary LanguagePythonOtherNOASSERTION

This model has been integrated with ai_integration for seamless portability across hosting providers.

Overview

This repository contains an implementation of Yahoo's Open NSFW Classifier rewritten in tensorflow.

Nvidia-Docker is required to run this image.

The original caffe weights have been extracted using Caffe to TensorFlow.

For more details, and an enhanced version, see NSFW Detector on Deep AI

Quick Start

docker pull deepaiorg/nsfw-detector

HTTP

nvidia-docker run --rm -it -e MODE=http -p 5000:5000 deepaiorg/nsfw-detector

Open your browser to localhost:5000 (or the correct IP address)

Command Line

Save your image as content.jpg in the current directory.

nvidia-docker run --rm -it -v `pwd`:/shared -e MODE=command_line deepaiorg/nsfw-detector --image /shared/content.jpg --output /shared/output.jpg

Docker build

docker build -t nsfw-detector .

Simplification, streamlining, and updating to work in the year 2019 by DeepAI.