Skip to content
This repository was archived by the owner on Jun 29, 2026. It is now read-only.

brainboxdotcc/beholder-nsfw-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker container for NSFW scan server

Important

Although this has been re-licensed to Apache 2.0, this repository is archived and this code is not required. It has been replaced with a much improved C++ based version within the main beholder repository. Please do not use this code in production. It will not scale, it is slow, and memory hungry and has leaks that can't be fixed, only worked around.

Description

  • POST an image as raw binary
  • Returns JSON: {"sexy":0,"neutral":0,"porn":0,"drawing":0,"hentai":0}
    • sexy: Suggestive pictures
    • neutral: Safe for work
    • Porn: Pornographic images
    • Hentai: Hentai images
    • Drawing: Safe-for-work drawings
  • The score for each is a normalised floating point value between 0 and 1, where 1 is 100% confidence and 0 is 0% confidence.

Dependencies

  • Docker
  • nsfwjs
  • Tensorflow
  • @tensorflow/tfjs
  • @tensorflow/tfjs-node
  • express
  • sharp
  • ImageMagick

Starting

cd server
npm i --legacy-peer-deps
cd ..
docker compose up -d

Testing

curl --request POST localhost:6969/ --header 'Content-Type: application/octet-stream' --data-binary @/path/to/image.jpg

About

NSFW Image Scan server docker container using https://github.com/GantMan/nsfw_model

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors