dataautogpt3 commited on
Commit
089a403
·
verified ·
1 Parent(s): 1b1dc34

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +44 -1
README.md CHANGED
@@ -45,4 +45,47 @@ Experience the convenience and power of having the Midjourney aesthetic at your
45
  # Settings
46
  - CFG: 1.5
47
  - Sampler: Euler Ancestral
48
- - Steps: 30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  # Settings
46
  - CFG: 1.5
47
  - Sampler: Euler Ancestral
48
+ - Steps: 30
49
+ - Resolution: 1280x1280
50
+
51
+
52
+ # Use it with 🧨 diffusers
53
+
54
+ ```python
55
+ import torch
56
+ from diffusers import (
57
+ StableDiffusionXLPipeline,
58
+ AutoencoderKL
59
+ )
60
+
61
+ # Load VAE component
62
+ vae = AutoencoderKL.from_pretrained(
63
+ "madebyollin/sdxl-vae-fp16-fix",
64
+ torch_dtype=torch.float16
65
+ )
66
+
67
+ # Configure the pipeline
68
+ pipe = StableDiffusionXLPipeline.from_pretrained(
69
+ "Corcelio/openvision",
70
+ vae=vae,
71
+ torch_dtype=torch.float16
72
+ )
73
+ pipe.to('cuda')
74
+
75
+ # Define prompts and generate image
76
+ prompt = "a cat wearing sunglasses in the summer"
77
+ negative_prompt = ""
78
+
79
+ image = pipe(
80
+ prompt,
81
+ negative_prompt=negative_prompt,
82
+ width=1280,
83
+ height=1280,
84
+ guidance_scale=1.5,
85
+ num_inference_steps=30
86
+ ).images[0]
87
+ ```
88
+
89
+ # Credits
90
+
91
+ Made by Corcel [ https://corcel.io/ ]