valhalla commited on
Commit
f1b1b3e
1 Parent(s): 3a4c7e1

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +58 -0
README.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ tags:
5
+ - stable-diffusion
6
+ - text-to-image
7
+ license: bigscience-bloom-rail-1.0
8
+ inference: false
9
+
10
+ ---
11
+
12
+ # stable diffusion finetuned on emoji dataset
13
+
14
+ emoji-diffusion is a stable diffusion model fine-tuned on the [russian-emoji dataset](https://www.kaggle.com/datasets/shonenkov/russian-emoji) to generate emoji images.
15
+ Below are some samples generated using the model.
16
+
17
+ <img src="https://huggingface.co/valhalla/emoji-diffusion/resolve/main/emoji.png">
18
+
19
+
20
+ ## Usage
21
+
22
+ This model can be used just like any other Stable Diffusion model. For more information,
23
+ please have a look at the [Stable Diffusion](https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion).
24
+
25
+ You can also export the model to [ONNX](https://huggingface.co/docs/diffusers/optimization/onnx), [MPS](https://huggingface.co/docs/diffusers/optimization/mps) and/or [FLAX/JAX]().
26
+
27
+ **To get the best result use the text "emoji" at beginning or end of the prompt.**
28
+
29
+ ```python
30
+ import torch
31
+ from diffusers import StableDiffusionPipeline, EulerDiscreteScheduler
32
+
33
+ pipe = StableDiffusionPipeline.from_pretrained(
34
+ "valhalla/emoji-diffusion",
35
+ torch_dtype=torch.float16,
36
+ ).to("cuda")
37
+ euler = EulerDiscreteScheduler.from_config(pipe.scheduler.config)
38
+ pipe.scheduler = euler
39
+
40
+ prompt = "a unicorn lama emoji"
41
+ image = pipe(prompt, num_inference_steps=30).images[0]
42
+
43
+ image.save("lama_emoji.png")
44
+ ```
45
+
46
+ ## License
47
+
48
+ This model is open access and available to all, with a CreativeML OpenRAIL-M license further specifying rights and usage.
49
+ The CreativeML OpenRAIL License specifies:
50
+
51
+ 1. You can't use the model to deliberately produce nor share illegal or harmful outputs or content
52
+ 2. The authors 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
53
+ 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)
54
+ [Please read the full license here](https://huggingface.co/spaces/CompVis/stable-diffusion-license)
55
+
56
+ ## Downstream Uses
57
+
58
+ This model can be used for entertainment purposes and as a generative art assistant.