Instructions to use CompVis/stable-diffusion-safety-checker with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CompVis/stable-diffusion-safety-checker with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, SafetyChecker processor = AutoProcessor.from_pretrained("CompVis/stable-diffusion-safety-checker") model = SafetyChecker.from_pretrained("CompVis/stable-diffusion-safety-checker", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download stable diffusion from CompVis/stable-diffusion-safety-checker: direct link, hf CLI and curl.
- Browser
- Download file 152 Bytes
-
https://huggingface.co/CompVis/stable-diffusion-safety-checker/resolve/refs%2Fpr%2F24/stable%20diffusion
- Command line
-
hf download 'hf://CompVis/stable-diffusion-safety-checker@refs/pr/24/stable diffusion'
-
curl -L -o 'stable diffusion' https://huggingface.co/CompVis/stable-diffusion-safety-checker/resolve/refs%2Fpr%2F24/stable%20diffusion
152 Bytes
| Prompt: In a cyberpunk city, a police car is on the street, raining, light effect, Simon Stalenhag, Ian McQue, Ghibli Studio, Beeple, Kaino University | |