ONNX Model Zoo

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

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

onnx stable-diffusion stable-diffusion-xl onnxruntime text-to-image en base_model:stabilityai/stable-diffusion-xl-refiner-1.0 base_model:quantized:stabilityai/stable-diffusion-xl-refiner-1.0 license:openrail++ region:us
↓ 0 ♥ 0

Created: 2023-12-31

Updated: 2023-12-31

View on Hugging Face

Files (14)

.gitattributes
README.md
model_index.json
scheduler/scheduler_config.json
text_encoder_2/model.onnx ONNX
text_encoder_2/model.onnx.data
tokenizer_2/merges.txt
tokenizer_2/special_tokens_map.json
tokenizer_2/tokenizer_config.json
tokenizer_2/vocab.json
unet/model.onnx ONNX
unet/model.onnx.data
vae_decoder/model.onnx ONNX
vae_encoder/model.onnx ONNX

Related models