justinpinkney commited on
Commit
22426be
1 Parent(s): 6e4dc28

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +20 -0
README.md CHANGED
@@ -1,3 +1,23 @@
1
  ---
2
  license: creativeml-openrail-m
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: creativeml-openrail-m
3
  ---
4
+
5
+ ## Usage
6
+
7
+ ```python
8
+ from diffusers import StableDiffusionPipeline
9
+
10
+ pipe = StableDiffusionPipeline.from_pretrained("lambdalabs/miniSD-diffusers")
11
+ pipe = pipe.to("cuda")
12
+
13
+ prompt = "a photograph of an wrinkly hold man laughing"
14
+ image = pipe(prompt, width=256, height=256).images[0]
15
+ image.save('test.jpg')
16
+ ```
17
+
18
+ ## License
19
+ This model is open access and available to all, with a CreativeML OpenRAIL-M license further specifying rights and usage. The CreativeML OpenRAIL License specifies:
20
+
21
+ - You can't use the model to deliberately produce nor share illegal or harmful outputs or content
22
+ - The authors claims no rights on the outputs you generate, you are free to use them and are accountable for their use which must not go against the provisions set in the license
23
+ - You may re-distribute the weights and use the model commercially and/or as a service. If you do, please be aware you have to include the same use restrictions as the ones in the license and share a copy of the CreativeML OpenRAIL-M to all your users (please read the license entirely and carefully) Please read the full license here