Instructions to use dtaddis/stable-diffusion-xl-refiner-1.0-onnx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- unity-sentis
How to use dtaddis/stable-diffusion-xl-refiner-1.0-onnx with unity-sentis:
string modelName = "[Your model name here].sentis"; Model model = ModelLoader.Load(Application.streamingAssetsPath + "/" + modelName); IWorker engine = WorkerFactory.CreateWorker(BackendType.GPUCompute, model); // Please see provided C# file for more details
- Notebooks
- Google Colab
- Kaggle
Stable Diffusion XL Refiner 1.0 (Unity Sentis ONNX)
This repository contains the ONNX export of the Stable Diffusion XL Refiner 1.0 model by Stability AI, specifically prepared for compatibility with Unity Sentis.
Why this repository?
Official ONNX exports of SDXL models often include ONNX Runtime (ORT) specific fusions (such as the com.microsoft.Attention operator). These proprietary operations are not supported by standard ONNX inference engines like Unity Sentis, resulting in import errors.
This repository provides an unfused, standard math ONNX export, allowing the model to be natively imported and run entirely inside the Unity game engine using Sentis.
Model Details
- Original Model: stabilityai/stable-diffusion-xl-refiner-1.0
- Task: Image-to-Image (Refining latents generated by the SDXL Base model)
- Format: ONNX (Unfused)
- Target Engine: Unity Sentis (v3.0+)
Usage in Unity
This repository is designed to be downloaded directly into a Unity project. Ensure your Unity downloader script is configured to download the following file extensions:
.onnx(Model Graph).data(External Model Weights).json(Model Configurations & Tokenizer Vocab).txt(Tokenizer Merges)
Important: When importing into Unity, ensure the .onnx and .onnx.data files remain in the exact same folder with identical base names so Sentis can link the external weights.
License
This model inherits the CreativeML Open RAIL++-M License from the original Stability AI release. Please review the full license before use.
- Downloads last month
- -
Model tree for dtaddis/stable-diffusion-xl-refiner-1.0-onnx
Base model
stabilityai/stable-diffusion-xl-refiner-1.0