AAA56y65 commited on
Commit
49909ba
·
verified ·
1 Parent(s): db179b7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +65 -3
README.md CHANGED
@@ -1,3 +1,65 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: openrail++
3
+ library_name: diffusers
4
+ tags:
5
+ - text-to-image
6
+ - diffusers-training
7
+ - diffusers
8
+ - lora
9
+ - template:sd-lora
10
+ - stable-diffusion-xl
11
+ - stable-diffusion-xl-diffusers
12
+ base_model: stabilityai/stable-diffusion-xl-base-1.0
13
+ instance_prompt: a photo of TOK dog
14
+ widget:
15
+ - text: Draw a picture of two female boxers fighting each other.
16
+ output:
17
+ url: images/example_9xsyd09gw.png
18
+ datasets:
19
+ - ZB-Tech/DreamXL
20
+ language:
21
+ - en
22
+
23
+ ---
24
+
25
+ <!-- This model card has been generated automatically according to the information the training script had access to. You
26
+ should probably proofread and complete it, then remove this comment. -->
27
+
28
+
29
+ # SDXL LoRA Fine-tuning - ZB-Tech/Text-To-Image
30
+
31
+ <Gallery />
32
+
33
+ ## Model description
34
+
35
+ These are ZB-Tech/Text-to-Image LoRA adaption weights for stabilityai/stable-diffusion-xl-base-1.0.
36
+
37
+ LoRA for the text encoder was enabled: False.
38
+
39
+ Special VAE used for training: madebyollin/sdxl-vae-fp16-fix.
40
+
41
+ ##### How to use
42
+
43
+ ```python
44
+ import requests
45
+
46
+ API_URL = "https://api-inference.huggingface.co/models/ZB-Tech/Text-to-Image"
47
+ headers = {"Authorization": "Bearer HF_API_KEY"}
48
+
49
+ def query(payload):
50
+ response = requests.post(API_URL, headers=headers, json=payload)
51
+ return response.content
52
+ image_bytes = query({
53
+ "inputs": "Astronaut riding a horse",
54
+ })
55
+ # You can access the image with PIL.Image for example
56
+ import io
57
+ from PIL import Image
58
+ image = Image.open(io.BytesIO(image_bytes))
59
+ ```
60
+
61
+ ## Download model
62
+
63
+ Weights for this model are available in Safetensors format.
64
+
65
+ [Download](suryasuri/Surya/tree/main) them in the Files & versions tab.