Search Results for

    Show / Hide Table of Contents

    Diffusers

    Run diffusion models for image generation with Unity Inference Engine: Stable Diffusion 1.5, 2.1 and XL, SDXL fine-tunes, FLUX.2 [klein] and FLUX.3 [klein]. The pipelines, models and schedulers follow Hugging Face diffusers.

    using Doji.AI.Diffusers;
    
    var pipe = await StableDiffusionXLPipeline.FromSingleFileAsync(
        "RunDiffusion/Juggernaut-XI-v11", "Juggernaut-XI-byRunDiffusion.safetensors",
        config: "RunDiffusion/Juggernaut-XI-v11");
    using var output = await pipe.GenerateAsync(new StableDiffusionXLParameters { Prompt = "A photo of a red fox in a snowy forest" });
    output.SaveAsPng("fox.png");
    

    Manual

    • Loading Models

    API Reference

    • Scripting API
    In this article
    Back to top Generated by DocFX