CoolFace
Modelpublic

ZB-Tech/Text-to-Image

sourceHugging Faceopenrail++updated 2y agoView on Hugging Face
98likes195downloads
README.md65 linesDownload Raw Back to root
1---2license: openrail++3library_name: diffusers4tags:5- text-to-image6- diffusers-training7- diffusers8- lora9- template:sd-lora10- stable-diffusion-xl11- stable-diffusion-xl-diffusers12base_model: stabilityai/stable-diffusion-xl-base-1.013instance_prompt: a photo of TOK dog14widget:15- text: Draw a picture of two female boxers fighting each other.16  output:17    url: images/example_9xsyd09gw.png18datasets:19- ZB-Tech/DreamXL20language:21- en22 23---24 25<!-- This model card has been generated automatically according to the information the training script had access to. You26should probably proofread and complete it, then remove this comment. -->27 28 29# SDXL LoRA Fine-tuning - ZB-Tech/Text-To-Image30 31<Gallery />32 33## Model description34 35These are ZB-Tech/Text-to-Image LoRA adaption weights for stabilityai/stable-diffusion-xl-base-1.0.36 37LoRA for the text encoder was enabled: False.38 39Special VAE used for training: madebyollin/sdxl-vae-fp16-fix.40 41##### How to use42 43```python44import requests45 46API_URL = "https://api-inference.huggingface.co/models/ZB-Tech/Text-to-Image"47headers = {"Authorization": "Bearer HF_API_KEY"}48 49def query(payload):50	response = requests.post(API_URL, headers=headers, json=payload)51	return response.content52image_bytes = query({53	"inputs": "Astronaut riding a horse",54})55# You can access the image with PIL.Image for example56import io57from PIL import Image58image = Image.open(io.BytesIO(image_bytes))59```60 61## Download model62 63Weights for this model are available in Safetensors format.64 65[Download](suryasuri/Surya/tree/main) them in the Files & versions tab.