These are ZB-Tech/Text-to-Image LoRA adaption weights for stabilityai/stable-diffusion-xl-base-1.0.
LoRA for the text encoder was enabled: False.
Special VAE used for training: madebyollin/sdxl-vae-fp16-fix.
1import requests
2
3API_URL = "https://api-inference.huggingface.co/models/ZB-Tech/Text-to-Image"
4headers = {"Authorization": "Bearer HF_API_KEY"}
5
6def query(payload):
7 response = requests.post(API_URL, headers=headers, json=payload)
8 return response.content
9image_bytes = query({
10 "inputs": "Astronaut riding a horse",
11})
12# You can access the image with PIL.Image for example
13import io
14from PIL import Image
15image = Image.open(io.BytesIO(image_bytes))
Weights for this model are available in Safetensors format.
Download them in the Files & versions tab.