hearmeneigh commited on
Commit
ccaa367
1 Parent(s): a6da21e

Create INSTALL.md

Browse files
Files changed (1) hide show
  1. INSTALL.md +29 -0
INSTALL.md ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Installation
2
+ E621 Rising V3 is ready to use with Stable Diffusion WebUI, Python, and anything else that can load SDXL `safetensors` files.
3
+
4
+ ## Using with Stable Diffusion WebUI
5
+ ### Setting Up
6
+ 1. Install [Stable Diffusion WebUI](https://github.com/AUTOMATIC1111/stable-diffusion-webui)
7
+ 2. Download [`e621-rising-v3-epoch27.fp16.safetensors`](https://huggingface.co/hearmeneigh/e621-rising-v3-safetensors/resolve/main/e621-rising-v3-epoch-27.fp16.safetensors)
8
+ 3. Copy/move the file to `<stable-diffusion-webui>/models/Stable-diffusion`
9
+ 4. Reload WebUI checkpoints
10
+ 5. (Recommended) [Install Tag Autocomplete for WebUI](https://huggingface.co/hearmeneigh/e621-rising-v3/blob/main/AUTOCOMPLETE.md)
11
+
12
+ For more information, [see here](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Features#basic-models).
13
+
14
+
15
+ ## Using with Python
16
+
17
+ ```python
18
+ from diffusers import DiffusionPipeline
19
+ import torch
20
+
21
+ pipe = DiffusionPipeline.from_pretrained("hearmeneigh/e621-rising-v3", torch_dtype=torch.float16, use_safetensors=True, variant="fp16")
22
+ pipe.to("cuda")
23
+
24
+ # if using torch < 2.0
25
+ # pipe.enable_xformers_memory_efficient_attention()
26
+
27
+ prompt = "An astronaut riding a green horse"
28
+ images = pipe(prompt=prompt).images[0]
29
+ ```