|
--- |
|
license: other |
|
license_name: sai-nc-community |
|
license_link: https://huggingface.co/stabilityai/sdxl-turbo/blob/main/LICENSE.TXT |
|
language: |
|
- en |
|
- ru |
|
- fr |
|
library_name: diffusers |
|
pipeline_tag: text-to-image |
|
tags: |
|
- text2image |
|
- sdxl |
|
- sdlx-turbo |
|
- turbo |
|
- kviai |
|
- stable diffusion xl |
|
widget: |
|
- text: astronaut riding a horse |
|
output: |
|
url: https://github.com/woctezuma/stable-diffusion-colab/wiki/img/astronaut_2xl.jpg |
|
- text: a cute cat |
|
output: |
|
url: https://lh3.googleusercontent.com/proxy/mZL2Ls9NjwuvPaVlOKnHAl8wXlRzPwM0uH6Df5dWStLXVjMqK1ct2WP6kdJtUQyO-dfRHbMDp7K6CSBQWSZptABAJ2s3SHWGdjGYdzaZpjAB1cl4SBm8PQ |
|
base_model: stabilityai/sdxl-turbo |
|
instance_prompt: <lora:lcm-lora-sdxl-turbo:1> |
|
--- |
|
|
|
# SDXL-Turbo |
|
|
|
It is lora fine-tuned model based on stabilityai/sdxl-turbo |
|
|
|
## Examples |
|
|
|
<Gallery /> |
|
|
|
## Usage |
|
|
|
You can use it via interface api: |
|
```Python |
|
import requests |
|
import io |
|
from PIL import Image |
|
|
|
API_URL = "https://api-inference.huggingface.co/models/kviai/sdxl-turbo" |
|
headers = {"Authorization": "Bearer YOUR_HF_API_TOKEN"} |
|
|
|
def query(payload): |
|
response = requests.post(API_URL, headers=headers, json=payload) |
|
return response.content |
|
image_bytes = query({ |
|
"inputs": "Astronaut riding a horse", |
|
}) |
|
|
|
image = Image.open(io.BytesIO(image_bytes)) |
|
``` |
|
Or you can download model from Files and Versions tab |