Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 controlnet-depth quantized Model Card
|
14 |
+
The original source of this model is : [lllyasviel/control_v11p_sd15_canny](https://huggingface.co/lllyasviel/control_v11p_sd15_canny).
|
15 |
+
This model is just optimized and converted to Intermediate Representation (IR) using OpenVino's Model Optimizer and POT tool 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 |
+
## Original Model Details
|
21 |
+
- **Developed by:** Lvmin Zhang, Maneesh Agrawala
|
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 |
+
- **Resources for more information:** [GitHub Repository](https://github.com/lllyasviel/ControlNet), [Paper](https://arxiv.org/abs/2302.05543).
|
26 |
+
- **Cite as:**
|
27 |
+
|
28 |
+
@misc{zhang2023adding,
|
29 |
+
title={Adding Conditional Control to Text-to-Image Diffusion Models},
|
30 |
+
author={Lvmin Zhang and Maneesh Agrawala},
|
31 |
+
year={2023},
|
32 |
+
eprint={2302.05543},
|
33 |
+
archivePrefix={arXiv},
|
34 |
+
primaryClass={cs.CV}
|
35 |
+
}
|
36 |
+
|
37 |
+
|
38 |
+
# Uses
|
39 |
+
|
40 |
+
## Direct Use
|
41 |
+
The model is intended for research purposes only. Possible research areas and tasks include
|
42 |
+
|
43 |
+
- Safe deployment of models which have the potential to generate harmful content.
|
44 |
+
- Probing and understanding the limitations and biases of generative models.
|
45 |
+
- Generation of artworks and use in design and other artistic processes.
|
46 |
+
- Applications in educational or creative tools.
|
47 |
+
- Research on generative models.
|
48 |
+
|
49 |
+
Excluded uses are described below.
|
50 |
+
|
51 |
+
### Misuse, Malicious Use, and Out-of-Scope Use
|
52 |
+
_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_.
|
53 |
+
|
54 |
+
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.
|
55 |
+
|
56 |
+
### Out-of-Scope Use
|
57 |
+
The model was not trained to be factual or true representations of people or events, and therefore using the model to generate such content is out-of-scope for the abilities of this model.
|
58 |
+
|
59 |
+
### Misuse and Malicious Use
|
60 |
+
Using the model to generate content that is cruel to individuals is a misuse of this model. This includes, but is not limited to:
|
61 |
+
|
62 |
+
- Generating demeaning, dehumanizing, or otherwise harmful representations of people or their environments, cultures, religions, etc.
|
63 |
+
- Intentionally promoting or propagating discriminatory content or harmful stereotypes.
|
64 |
+
- Impersonating individuals without their consent.
|
65 |
+
- Sexual content without consent of the people who might see it.
|
66 |
+
- Mis- and disinformation
|
67 |
+
- Representations of egregious violence and gore
|
68 |
+
- Sharing of copyrighted or licensed material in violation of its terms of use.
|
69 |
+
- Sharing content that is an alteration of copyrighted or licensed material in violation of its terms of use.
|
70 |
+
## Limitations and Bias
|
71 |
+
|
72 |
+
### Limitations
|
73 |
+
- The model does not achieve perfect photorealism
|
74 |
+
- The model cannot render legible text
|
75 |
+
- 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”
|
76 |
+
- Faces and people in general may not be generated properly.
|
77 |
+
- The model was trained mainly with English captions and will not work as well in other languages.
|
78 |
+
- The autoencoding part of the model is lossy
|
79 |
+
- The model was trained on a large-scale dataset
|
80 |
+
[LAION-5B](https://laion.ai/blog/laion-5b/) which contains adult material
|
81 |
+
and is not fit for product use without additional safety mechanisms and
|
82 |
+
considerations.
|
83 |
+
- 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.
|
84 |
+
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.
|
85 |
+
### Bias
|
86 |
+
While the capabilities of image generation models are impressive, they can also reinforce or exacerbate social biases.
|
87 |
+
Stable Diffusion v1 was trained on subsets of [LAION-2B(en)](https://laion.ai/blog/laion-5b/),
|
88 |
+
which consists of images that are primarily limited to English descriptions.
|
89 |
+
Texts and images from communities and cultures that use other languages are likely to be insufficiently accounted for.
|
90 |
+
This affects the overall output of the model, as white and western cultures are often set as the default. Further, the
|
91 |
+
ability of the model to generate content with non-English prompts is significantly worse than with English-language prompts.
|
92 |
+
|
93 |
+
### Safety Module
|
94 |
+
|
95 |
+
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.
|
96 |
+
This checker works by checking model outputs against known hard-coded NSFW concepts.
|
97 |
+
The concepts are intentionally hidden to reduce the likelihood of reverse-engineering this filter.
|
98 |
+
Specifically, the checker compares the class probability of harmful concepts in the embedding space of the `CLIPTextModel` *after generation* of the images.
|
99 |
+
The concepts are passed into the model with the generated image and compared to a hand-engineered weight for each NSFW concept.
|
100 |
+
|
101 |
+
### Intel’s Human Rights Disclaimer:
|
102 |
+
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.
|