Skip to main content

Integrate stable diffusion safety checker / NSFW image detection into web service like FastAPI.

Project description

Safety Checker

Safety checker is a model used in stable diffusion pipeline, aimed to identify NSFW image. Here is the official description.

This project extracts its safety checker into a independent function to provide a conventional way to detect NSFW image in deep neural network.

See test_imgs.py to get start.

TODO

  • add standalone safety checker implementation that depends on pytorch only. provide strength config (if possible) for NSFW detection
  • add FastAPI integration

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

safety_checker-0.5.tar.gz (6.6 kB view hashes)

Uploaded Source

Built Distribution

safety_checker-0.5-py3-none-any.whl (7.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page