arisha07 commited on
Commit
84579af
1 Parent(s): f3a6888

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +74 -28
README.md CHANGED
@@ -1,28 +1,56 @@
1
  ---
2
  license: creativeml-openrail-m
 
 
 
 
 
 
 
 
 
3
  ---
 
4
  The original source of this model is : runwayml/stable-diffusion-v1-5.
5
  This model is just optimized and converted to Intermediate Representation (IR) to run on Intel's Hardware - CPU, GPU, NPU.
6
 
7
  We have FP16 and INT8 versions of the model. Please note currently only unet model is quantized to int8.
8
 
9
 
10
- License: The CreativeML OpenRAIL M license is an Open RAIL M license, adapted from the work that BigScience and the RAIL Initiative are jointly carrying in the area of responsible AI licensing. See also the article about the BLOOM Open RAIL license on which our license is based.
 
 
 
 
 
 
 
11
 
 
 
 
 
 
 
 
 
12
 
13
- ## Uses
14
- ### Direct Use
 
 
15
  The model is intended for research purposes only. Possible research areas and tasks include
16
 
17
- Safe deployment of models which have the potential to generate harmful content.
18
- Probing and understanding the limitations and biases of generative models.
19
- Generation of artworks and use in design and other artistic processes.
20
- Applications in educational or creative tools.
21
- Research on generative models.
 
22
  Excluded uses are described below.
23
 
24
  ### Misuse, Malicious Use, and Out-of-Scope Use
25
- Note: This section is taken from the DALLE-MINI model card, but applies in the same way to Stable Diffusion v1.
26
 
27
  The model should not be used to intentionally create or disseminate images that create hostile or alienating environments for people. This includes generating images that people would foreseeably find disturbing, distressing, or offensive; or content that propagates historical or current stereotypes.
28
 
@@ -32,26 +60,44 @@ The model was not trained to be factual or true representations of people or eve
32
  ### Misuse and Malicious Use
33
  Using the model to generate content that is cruel to individuals is a misuse of this model. This includes, but is not limited to:
34
 
35
- Generating demeaning, dehumanizing, or otherwise harmful representations of people or their environments, cultures, religions, etc.
36
- Intentionally promoting or propagating discriminatory content or harmful stereotypes.
37
- Impersonating individuals without their consent.
38
- Sexual content without consent of the people who might see it.
39
- Mis- and disinformation
40
- Representations of egregious violence and gore
41
- Sharing of copyrighted or licensed material in violation of its terms of use.
42
- Sharing content that is an alteration of copyrighted or licensed material in violation of its terms of use.
43
- Limitations and Bias
44
- Limitations
45
- The model does not achieve perfect photorealism
46
- The model cannot render legible text
47
- The model does not perform well on more difficult tasks which involve compositionality, such as rendering an image corresponding to “A red cube on top of a blue sphere”
48
- Faces and people in general may not be generated properly.
49
- The model was trained mainly with English captions and will not work as well in other languages.
50
- The autoencoding part of the model is lossy
51
- The model was trained on a large-scale dataset LAION-5B which contains adult material and is not fit for product use without additional safety mechanisms and considerations.
52
- No additional measures were used to deduplicate the dataset. As a result, we observe some degree of memorization for images that are duplicated in the training data. The training data can be searched at https://rom1504.github.io/clip-retrieval/ to possibly assist in the detection of memorized images.
 
 
 
 
 
53
  ### Bias
54
- While the capabilities of image generation models are impressive, they can also reinforce or exacerbate social biases. Stable Diffusion v1 was trained on subsets of LAION-2B(en), which consists of images that are primarily limited to English descriptions. Texts and images from communities and cultures that use other languages are likely to be insufficiently accounted for. This affects the overall output of the model, as white and western cultures are often set as the default. Further, the ability of the model to generate content with non-English prompts is significantly worse than with English-language prompts.
 
 
 
 
 
 
 
 
 
 
 
 
 
55
 
56
  ### Intel’s Human Rights Disclaimer:
57
  Intel is committed to respecting human rights and avoiding complicity in human rights abuses. See Intel's Global Human Rights Principles. Intel's products and software are intended only to be used in applications that do not cause or contribute to a violation of an internationally recognized human right.
 
1
  ---
2
  license: creativeml-openrail-m
3
+ extra_gated_prompt: |-
4
+ This model is open access and available to all, with a CreativeML OpenRAIL-M license further specifying rights and usage.
5
+ The CreativeML OpenRAIL License specifies:
6
+ 1. You can't use the model to deliberately produce nor share illegal or harmful outputs or content
7
+ 2. Intel claims no rights on the outputs you generate, you are free to use them and are accountable for their use which must not go against the provisions set in the license
8
+ 3. You may re-distribute the weights and use the model commercially and/or as a service. If you do, please be aware you have to include the same use restrictions as the ones in the license and share a copy of the CreativeML OpenRAIL-M to all your users (please read the license entirely and carefully)
9
+ Please read the full license carefully here: https://huggingface.co/spaces/CompVis/stable-diffusion-license
10
+
11
+ extra_gated_heading: Please read the LICENSE to access this model
12
  ---
13
+ # SD v1-5 square Model Card
14
  The original source of this model is : runwayml/stable-diffusion-v1-5.
15
  This model is just optimized and converted to Intermediate Representation (IR) to run on Intel's Hardware - CPU, GPU, NPU.
16
 
17
  We have FP16 and INT8 versions of the model. Please note currently only unet model is quantized to int8.
18
 
19
 
20
+ ## Model Details
21
+ - **Original Developed by:** Robin Rombach, Patrick Esser
22
+ - **Model type:** Diffusion-based text-to-image generation model
23
+ - **Language(s):** English
24
+ - **License:** [The CreativeML OpenRAIL M license](https://huggingface.co/spaces/CompVis/stable-diffusion-license) is an [Open RAIL M license](https://www.licenses.ai/blog/2022/8/18/naming-convention-of-responsible-ai-licenses), adapted from the work that [BigScience](https://bigscience.huggingface.co/) and [the RAIL Initiative](https://www.licenses.ai/) are jointly carrying in the area of responsible AI licensing. See also [the article about the BLOOM Open RAIL license](https://bigscience.huggingface.co/blog/the-bigscience-rail-license) on which our license is based.
25
+ - **Model Description:** This is a model that can be used to generate and modify images based on text prompts. It is a [Latent Diffusion Model](https://arxiv.org/abs/2112.10752) that uses a fixed, pretrained text encoder ([CLIP ViT-L/14](https://arxiv.org/abs/2103.00020)) as suggested in the [Imagen paper](https://arxiv.org/abs/2205.11487).
26
+ - **Resources for more information:** [GitHub Repository](https://github.com/CompVis/stable-diffusion), [Paper](https://arxiv.org/abs/2112.10752).
27
+ - **Cite as:**
28
 
29
+ @InProceedings{Rombach_2022_CVPR,
30
+ author = {Rombach, Robin and Blattmann, Andreas and Lorenz, Dominik and Esser, Patrick and Ommer, Bj\"orn},
31
+ title = {High-Resolution Image Synthesis With Latent Diffusion Models},
32
+ booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
33
+ month = {June},
34
+ year = {2022},
35
+ pages = {10684-10695}
36
+ }
37
 
38
+
39
+ # Uses
40
+
41
+ ## Direct Use
42
  The model is intended for research purposes only. Possible research areas and tasks include
43
 
44
+ - Safe deployment of models which have the potential to generate harmful content.
45
+ - Probing and understanding the limitations and biases of generative models.
46
+ - Generation of artworks and use in design and other artistic processes.
47
+ - Applications in educational or creative tools.
48
+ - Research on generative models.
49
+
50
  Excluded uses are described below.
51
 
52
  ### Misuse, Malicious Use, and Out-of-Scope Use
53
+ _Note: This section is taken from the [DALLE-MINI model card](https://huggingface.co/dalle-mini/dalle-mini), but applies in the same way to Stable Diffusion v1_.
54
 
55
  The model should not be used to intentionally create or disseminate images that create hostile or alienating environments for people. This includes generating images that people would foreseeably find disturbing, distressing, or offensive; or content that propagates historical or current stereotypes.
56
 
 
60
  ### Misuse and Malicious Use
61
  Using the model to generate content that is cruel to individuals is a misuse of this model. This includes, but is not limited to:
62
 
63
+ - Generating demeaning, dehumanizing, or otherwise harmful representations of people or their environments, cultures, religions, etc.
64
+ - Intentionally promoting or propagating discriminatory content or harmful stereotypes.
65
+ - Impersonating individuals without their consent.
66
+ - Sexual content without consent of the people who might see it.
67
+ - Mis- and disinformation
68
+ - Representations of egregious violence and gore
69
+ - Sharing of copyrighted or licensed material in violation of its terms of use.
70
+ - Sharing content that is an alteration of copyrighted or licensed material in violation of its terms of use.
71
+ ## Limitations and Bias
72
+
73
+ ### Limitations
74
+ - The model does not achieve perfect photorealism
75
+ - The model cannot render legible text
76
+ - The model does not perform well on more difficult tasks which involve compositionality, such as rendering an image corresponding to “A red cube on top of a blue sphere”
77
+ - Faces and people in general may not be generated properly.
78
+ - The model was trained mainly with English captions and will not work as well in other languages.
79
+ - The autoencoding part of the model is lossy
80
+ - The model was trained on a large-scale dataset
81
+ [LAION-5B](https://laion.ai/blog/laion-5b/) which contains adult material
82
+ and is not fit for product use without additional safety mechanisms and
83
+ considerations.
84
+ - No additional measures were used to deduplicate the dataset. As a result, we observe some degree of memorization for images that are duplicated in the training data.
85
+ The training data can be searched at [https://rom1504.github.io/clip-retrieval/](https://rom1504.github.io/clip-retrieval/) to possibly assist in the detection of memorized images.
86
  ### Bias
87
+ While the capabilities of image generation models are impressive, they can also reinforce or exacerbate social biases.
88
+ Stable Diffusion v1 was trained on subsets of [LAION-2B(en)](https://laion.ai/blog/laion-5b/),
89
+ which consists of images that are primarily limited to English descriptions.
90
+ Texts and images from communities and cultures that use other languages are likely to be insufficiently accounted for.
91
+ This affects the overall output of the model, as white and western cultures are often set as the default. Further, the
92
+ ability of the model to generate content with non-English prompts is significantly worse than with English-language prompts.
93
+
94
+ ### Safety Module
95
+
96
+ The intended use of this model is with the [Safety Checker](https://github.com/huggingface/diffusers/blob/main/src/diffusers/pipelines/stable_diffusion/safety_checker.py) in Diffusers.
97
+ This checker works by checking model outputs against known hard-coded NSFW concepts.
98
+ The concepts are intentionally hidden to reduce the likelihood of reverse-engineering this filter.
99
+ Specifically, the checker compares the class probability of harmful concepts in the embedding space of the `CLIPTextModel` *after generation* of the images.
100
+ The concepts are passed into the model with the generated image and compared to a hand-engineered weight for each NSFW concept.
101
 
102
  ### Intel’s Human Rights Disclaimer:
103
  Intel is committed to respecting human rights and avoiding complicity in human rights abuses. See Intel's Global Human Rights Principles. Intel's products and software are intended only to be used in applications that do not cause or contribute to a violation of an internationally recognized human right.