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
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| safety_checker-0.5.tar.gz | 6.6 kB | Without provenance | Details for safety_checker-0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| safety_checker-0.5-py3-none-any.whl | Python 3 | none | any | Details for safety_checker-0.5-py3-none-any.whl |
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
|
Security for safety-checker 0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.