ehristoforu commited on
Commit
a107fb8
1 Parent(s): a6589ff

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +49 -4
README.md CHANGED
@@ -2,12 +2,57 @@
2
  license: creativeml-openrail-m
3
  tags:
4
  - text-to-image
5
- - stable-diffusion
 
 
 
 
 
 
 
6
  ---
7
- ### Open-Diffusion-V2 Dreambooth model trained by ehristoforu with [TheLastBen's fast-DreamBooth](https://colab.research.google.com/github/TheLastBen/fast-stable-diffusion/blob/main/fast-DreamBooth.ipynb) notebook
8
 
 
9
 
10
- Test the concept via A1111 Colab [fast-Colab-A1111](https://colab.research.google.com/github/TheLastBen/fast-stable-diffusion/blob/main/fast_stable_diffusion_AUTOMATIC1111.ipynb)
11
 
12
- Sample pictures of this concept:
13
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  license: creativeml-openrail-m
3
  tags:
4
  - text-to-image
5
+ - open-diffusion
6
+ - od-v2
7
+ - openskyml
8
+ language:
9
+ - en
10
+ - fr
11
+ - ru
12
+ pipeline_tag: text-to-image
13
  ---
 
14
 
15
+ # Open Diffusion V2
16
 
17
+ Generate cool images with OpenDiffusion V2 (OD-v2)
18
 
19
+ ## Model Details
20
 
21
+ ### Model Description
22
+
23
+ - **Developed by:** [OpenSkyML](https://huggingface.co/openskyml)
24
+ - **Model type:** [Multimodal (Text-to-Image)](https://huggingface.co/models?pipeline_tag=text-to-image)
25
+ - **License:** [CreativeML-Openrail-m](https://huggingface.co/models?license=license%3Acreativeml-openrail-m)
26
+
27
+ ### Model Sources
28
+
29
+ - **Repository:** [click](https://huggingface.co/openskyml/open-diffusion-v1/tree/main)
30
+ - **Demo [optional]:** In developed ...
31
+
32
+
33
+ ## Uses
34
+
35
+ ### In Free Inference API:
36
+ ```py
37
+ import requests
38
+ HF_READ_TOKEN = "..."
39
+ API_URL = "https://api-inference.huggingface.co/models/openskyml/open-diffusion-v2"
40
+ headers = {"Authorization": f"Bearer {HF_READ_TOKEN}"}
41
+
42
+ def query(payload):
43
+ response = requests.post(API_URL, headers=headers, json=payload)
44
+ return response.content
45
+ image_bytes = query({
46
+ "inputs": "Astronaut riding a horse",
47
+ })
48
+ # You can access the image with PIL.Image for example
49
+ import io
50
+ from PIL import Image
51
+ image = Image.open(io.BytesIO(image_bytes))
52
+ ```
53
+ ### In Spaces:
54
+ ```py
55
+ import gradio as gr
56
+
57
+ gr.load("models/openskyml/open-diffusion-v2").launch()
58
+ ```