Skip to main content

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

Release files for safety-checker 0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for safety-checker 0.5
File Size Uploaded
safety_checker-0.5.tar.gz 6.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for safety-checker 0.5
File Interpreter ABI Platform
safety_checker-0.5-py3-none-any.whl Python 3 none any Details

Total release size: 14.1 kB

Release files / safety_checker-0.5.tar.gz

Download URL safety_checker-0.5.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9f9c209b58ca51ad9d600d6ef0fd0e29419750f883c5c28da3661b70cd5a4ee3
BLAKE2b-256 checksum
How to use checksums
a9387612c6955aaf10758a758fb8205ea79f98b41f2f17e5b5566c890b1f7091
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.15.4 CPython/3.11.4 Linux/5.15.146.1-microsoft-standard-WSL2

Release files / safety_checker-0.5-py3-none-any.whl

Download URL safety_checker-0.5-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
251151db480c3da8371f4a1e327884170d770967988a5a9aa773f15465755263
BLAKE2b-256 checksum
How to use checksums
9575ee145e8cbeaedec59f0d72a6b20dc8fbcb561414584985c3473f08ac1219
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.15.4 CPython/3.11.4 Linux/5.15.146.1-microsoft-standard-WSL2

Release history Release notifications | RSS feed

This release

0.5 This release

2 release files

0.4

2 release files

0.3

2 release files

0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page