8000 GitHub - mahong125/nsfw_detector: Solution for checking if images contain NSFW content, based on Docker.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Solution for checking if images contain NSFW content, based on Docker.

License

Notifications You must be signed in to change notification settings

mahong125/nsfw_detector

 
 

Repository files navigation

NSFW Detector

中文指南 | 日本語ガイド

Introduction

This is an NSFW content detector based on Falconsai/nsfw_image_detection.
Model: google/vit-base-patch16-224-in21k

You can try it online(using Public API): NSFW Detector

Compared to other common NSFW detectors, this detector has the following advantages:

  • AI-based, providing better accuracy.
  • Supports CPU-only inference, can run on most servers.
  • Automatically utilizes multiple CPUs to accelerate inference.
  • Simple classification with only two categories: nsfw and normal.
  • Provides service via API, making it easier to integrate with other applications.
  • Docker-based deployment, suitable for distributed deployment.
  • Purely local, protecting your data security.

Performance Requirements

Running this model requires up to 2GB of memory. No GPU support is needed.
When handling a large number of requests simultaneously, more memory may be required.

Supported File Types

This detector supports checking the following file types:

  • ✅ Images (supported)
  • ✅ PDF files (supported)
  • ✅ Videos (supported)
  • ✅ Files in compressed packages (supported)

Quick Start

Start the API Server

docker run -d -p 3333:3333 --name nsfw-detector vxlink/nsfw_detector:latest

Supported architectures: x86_64, ARM64.

Use the API for Content Checking

# Detection
curl -X POST -F "file=@/path/to/image.jpg" http://localhost:3333/check

Use the Built-in Web Interface for Detection

Visit: http://localhost:3333

Public API

You can use the public API service provided by vx.link.

# Detect files, automatically recognize file types
curl -X POST -F "file=@/path/to/image.jpg" https://vx.link/public/nsfw
  • Your submitted images will not be saved.
  • Please note that the API rate limit is 30 requests per minute.

License

This project is open-source under the Apache 2.0 license.

About

Solution for checking if images contain NSFW content, based on Docker.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 68.2%
  • HTML 23.9%
  • Shell 7.9%
0