AlexWortega commited on
Commit
8654536
1 Parent(s): e29215a

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +78 -0
README.md ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ tags:
5
+ - Vintedois (22h) Diffusion model
6
+ - text-to-image
7
+ license: creativeml-openrail-m
8
+ inference: true
9
+ library_name: diffusers
10
+ ---
11
+
12
+ ![image](test.jpeg)
13
+ <sub>pink hair guy in glasses, photograph, sporty body, cinematic lighting, clear eyes, perfect face, blush, beautiful nose, beautiful eyes, detailed eyes</sub>
14
+
15
+
16
+ # Anime Diffusion
17
+
18
+ Anime Diffusion2 is a latent text-to-image diffusion model based on Vintedois (22h) Diffusion model trained on BLIP captions for Danbou set + Demon slayer + arts from 4ch
19
+
20
+
21
+
22
+ ## Model Description
23
+
24
+ ## License
25
+
26
+ This model is open access and available to all, with a CreativeML OpenRAIL-M license further specifying rights and usage.
27
+ The CreativeML OpenRAIL License specifies:
28
+
29
+ 1. You can't use the model to deliberately produce nor share illegal or harmful outputs or content
30
+ 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
31
+ 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)
32
+ [Please read the full license here](https://huggingface.co/spaces/CompVis/stable-diffusion-license)
33
+
34
+ ## Downstream Uses
35
+
36
+ This model can be used for entertainment purposes and as a generative art assistant.
37
+
38
+ ## Example Code
39
+
40
+ ```python
41
+ import torch
42
+ from torch import autocast
43
+ from diffusers import StableDiffusionPipeline
44
+
45
+ pipe = StableDiffusionPipeline.from_pretrained(
46
+ 'AlexWortega/AnimeDiffuion2',
47
+ torch_dtype=torch.float32
48
+ ).to('cuda')
49
+
50
+ negative_prompt = """low-res, duplicate, poorly drawn face, ugly, undetailed face"""
51
+ d = 'white girl'
52
+ prompt = f"pink hair guy in glasses, photograph, sporty body, cinematic lighting, clear eyes, perfect face, blush, beautiful nose, beautiful eyes, detailed eyes"
53
+ num_samples = 1
54
+
55
+ with torch.inference_mode():
56
+ images = pipe([prompt] * num_samples,
57
+ negative_prompt = [negative_prompt]*num_samples,
58
+ height=512, width=512,
59
+ num_inference_steps=50,
60
+ guidance_scale=8,
61
+ ).images
62
+
63
+
64
+
65
+ images[0].save("test.png")
66
+ ```
67
+
68
+ ## Team Member and Acknowledgements
69
+
70
+ This project would not have been possible without the incredible work by the [CompVis Researchers](https://ommer-lab.com/).
71
+
72
+ - [Alex Wortega](https://github.com/AlexWortega)
73
+ <sub>alexwortega@yandex.ru</sub>
74
+
75
+
76
+ In order to reach me, here is my blog:
77
+
78
+ [![My tg channel]](https://t.me/lovedeathtransformers)