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)
| File | Size | Uploaded | |
|---|---|---|---|
| safety_checker-0.5.tar.gz | 6.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|