Lykon commited on
Commit
0a7b115
1 Parent(s): 3d529c0

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +52 -0
README.md ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: openrail++
5
+ tags:
6
+ - stable-diffusion
7
+ - stable-diffusion-diffusers
8
+ - stable-diffusion-xl
9
+ - stable-diffusion-xl-turbo
10
+ - text-to-image
11
+ - art
12
+ - artistic
13
+ - diffusers
14
+ - anime
15
+ - dreamshaper
16
+ - turbo
17
+ duplicated_from: lykon/dreamshaper-xl-turbo
18
+ ---
19
+
20
+ # Dreamshaper SDXL-Turbo
21
+
22
+ `lykon/dreamshaper-xl-turbo` is a Stable Diffusion model that has been fine-tuned on [stabilityai/stable-diffusion-xl-base-1.0](https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0).
23
+
24
+ Please consider supporting me:
25
+ - on [Patreon](https://www.patreon.com/Lykon275)
26
+ - or [buy me a coffee](https://snipfeed.co/lykon)
27
+
28
+ ## Diffusers
29
+
30
+ For more general information on how to run text-to-image models with 🧨 Diffusers, see [the docs](https://huggingface.co/docs/diffusers/using-diffusers/conditional_image_generation).
31
+
32
+ 1. Installation
33
+
34
+ ```
35
+ pip install diffusers transformers accelerate
36
+ ```
37
+
38
+ 2. Run
39
+ ```py
40
+ from diffusers import AutoPipelineForText2Image, DPMSolverMultistepScheduler
41
+ import torch
42
+
43
+ pipe = AutoPipelineForText2Image.from_pretrained('lykon/dreamshaper-xl-turbo', torch_dtype=torch.float16, variant="fp16")
44
+ pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
45
+ pipe = pipe.to("cuda")
46
+
47
+ prompt = "portrait photo of muscular bearded guy in a worn mech suit, light bokeh, intricate, steel metal, elegant, sharp focus, soft lighting, vibrant colors"
48
+
49
+ generator = torch.manual_seed(0)
50
+ image = pipe(prompt, num_inference_steps=10, guidance_scale=2).images[0]
51
+ image.save("./image.png")
52
+ ```