Open-weight model
stable-diffusion-safety-checker
by CompVis CompVis/stable-diffusion-safety-checker
This model can be used for identifying NSFW image The CLIP model devlopers note in their model card: We primarily imagine the model will be used by researchers to better understand robustness, generalization, and other capabilities, biases, and constraints of…
Model Card
This model can be used for identifying NSFW image The CLIP model devlopers note in their model card: We primarily imagine the model will be used by researchers to better understand robustness, generalization, and other capabilities, biases, and constraints of computer vision models. The model is not intended to be used with transformers but with diffusers. This model should also not be used to intentionally create hostile or alienating environments for people. Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)). Predictions generated by the model may include disturbing and harmful stereotypes across…
Excerpt from the card by CompVis.
Configuration
- Architecture
- SafetyChecker
- Context length (tokens)
- 77
- Layers
- 12
- Hidden size
- 768
- Feed-forward size
- 3,072
- Attention heads
- 12
- Vocabulary size
- 49,408
- Stored precision
- float32
- Model type
- clip
Identity and Version
- Repository
- CompVis/stable-diffusion-safety-checker
- Publisher
- CompVis
- Task
- Not stated by the source
- Modality
- Other
- Library
- transformers
- Parameters
- Not stated by the source
- Languages
- Not stated by the source
- Revision
- cb41f3a270d63d454d385fc2e4f571c487c253c5
- First published
- 2022-08-22
- Last updated
- 2022-11-25
Files and Weights
5 files, 1.2 GB in total. The weights are 1 file totalling 1.2 GB in bin.
Every file
| File | Type | Size | SHA-256 |
|---|---|---|---|
| pytorch_model.bin | Weights | 1.2 GB | 64b8393f1afd |
| config.json | Configuration | 4.5 KB | — |
| preprocessor_config.json | Configuration | 342 B | — |
| README.md | Documentation | 5.4 KB | — |
| .gitattributes | Repository | 1.3 KB | — |
License and Download
- License
- Not stated by the source
- Access
- Open weights, no gate
- Download size
- 1.2 GB
Released by CompVis through its official repository on Hugging Face.
Built From
- Described by arXiv:1910.09700
- Described by arXiv:2103.00020
Memory Requirements
| Precision | Weights in memory |
|---|---|
| As published | 1.2 GB |
Weights only, from the published parameter count; the key-value cache and runtime add to this.
Questions About stable-diffusion-safety-checker
What is stable-diffusion-safety-checker's context length?
77 tokens, from the maximum position embeddings in its published configuration.