tlwu/stable-diffusion-xl-refiner-1.0-onnxruntime
By tlwu · ↓ 0 · ♥ 0 · Updated 2023-12-31
What's in this repo
This page lists the files in tlwu/stable-diffusion-xl-refiner-1.0-onnxruntime, including model.onnx and more.
- 4 ONNX models (.onnx files)
- 14 files, including 5 .json, 4 .onnx, 2 .data, 1 .md, 1 .txt
- Last updated 2023-12-31
ONNX files
| File | Size | Download |
|---|---|---|
| text_encoder_2/model.onnx | — | Download |
| unet/model.onnx | — | Download |
| vae_decoder/model.onnx | — | Download |
| vae_encoder/model.onnx | — | Download |
How to use
These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.
README
Stable Diffusion XL 1.0 for ONNX Runtime CUDA provider
Introduction
This repository hosts the optimized versions of Stable Diffusion XL Refiner 1.0 to accelerate inference with ONNX Runtime CUDA execution provider.
The models are generated by Olive with command like the following:
python stable_diffusion_xl.py --provider cuda --optimize --use_fp16_fixed_vae --model_id stabilityai/stable-diffusion-xl-refiner-1.0
Model Description
- Developed by: Stability AI
- Model type: Diffusion-based text-to-image generative model
- License: CreativeML Open RAIL++-M License
- Model Description: This is a conversion of the SDXL refiner 1.0 models for ONNX Runtime inference with CUDA execution provider.
The VAE decoder is converted from sdxl-vae-fp16-fix. There are slight discrepancies between its output and that of the original VAE, but the decoded images should be close enough for most purposes.
Model info
Created: 2023-12-31
Updated: 2023-12-31
View on Hugging Face