cpuimage commited on
Commit
7c2be7d
·
verified ·
1 Parent(s): 69f5ae3

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +16 -3
README.md CHANGED
@@ -1,3 +1,16 @@
1
- ---
2
- license: openrail++
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ```python
2
+ from diffusers import StableDiffusionXLPipeline
3
+ import torch
4
+
5
+ # download from https://huggingface.co/cpuimage/mapo-beta/sd_xl_mapo-beta.safetensors
6
+
7
+ safetensors_file = "sd_xl_mapo-beta.safetensors"
8
+
9
+ pipeline = StableDiffusionXLPipeline.from_single_file(safetensors_file, torch_dtype=torch.float16).to("cuda")
10
+
11
+ prompt = "A lion with eagle wings coming out of the sea , digital Art, Greg rutkowski, Trending artstation, cinematographic, hyperrealistic"
12
+ image = pipeline(prompt=prompt, num_inference_steps=30).images[0]
13
+ ```
14
+ ---
15
+ license: openrail++
16
+ ---