not-lain commited on
Commit
e255ac8
1 Parent(s): a83ea38

Update README.md

Browse files

added how to run and a colab tutorial with a gradio interface

Files changed (1) hide show
  1. README.md +19 -0
README.md CHANGED
@@ -5,6 +5,25 @@ license: mit
5
  Trainer: ChrisC
6
 
7
  Rem from Re:zero
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
 
9
  # Dataset
10
  >Training: 22 images
 
5
  Trainer: ChrisC
6
 
7
  Rem from Re:zero
8
+ # How to run
9
+
10
+ ```python
11
+ from diffusers import StableDiffusionPipeline
12
+ import torch
13
+ pipeline = StableDiffusionPipeline.from_single_file(
14
+ "https://huggingface.co/waifu-research-department/Rem/blob/main/rem_3k.ckpt",
15
+ ).to("cuda")
16
+
17
+ pipeline.safety_checker = None # disable safety content, delete this line if you want a safe for work content
18
+
19
+ postive_prompt = "rem"
20
+ negative_prompt = ""
21
+ image = pipeline(postive_prompt,negative_prompt=negative_prompt).images[0]
22
+
23
+ ```
24
+
25
+ or you can run in [colab](https://colab.research.google.com/drive/1uRc6W1xNeSie1RoeSpBemcssbZOfBZ4k?usp=sharing)
26
+
27
 
28
  # Dataset
29
  >Training: 22 images