Skip to content

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

License

Notifications You must be signed in to change notification settings

iyume/safety-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Languages