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
Commit History
-
Model Car
Hi! 👋 This PR has a preliminary model card, based on the format we are using as part of our effort to standardise model cards at Hugging Face. It is generated automatically using our [our tool](https://huggingface.co/spaces/huggingface/Model_Cards_Writing_Tool), as we're testing our automatic Model Card generation abilities and running a study to see the effects of model cards on models. Initial evidence suggests that model cards increase usage. Please take a look when you get a chance, feel free to merge if you are ok with the changes or incorporate any additional information 🤗8875554
-
add weights
4bb648a -
initial commit
e311038