<?xml version="1.0" encoding="UTF-8"?>
<oai_dc:dc xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
  <dc:title>Stable Diffusion Image Generation</dc:title>
  <dc:title>R package sd2R version 0.1.7</dc:title>
  <dc:description>Provides Stable Diffusion image generation in R using the 'ggmlR'
    tensor library. Supports text-to-image and image-to-image generation with
    multiple model versions (SD 1.x, SD 2.x, 'SDXL', Flux). Implements the
    full inference pipeline including CLIP text encoding, 'UNet' noise removal,
    and 'VAE' encoding/decoding. Unified sd_generate() entry point with
    automatic strategy selection (direct, tiled sampling, high-resolution fix)
    based on output resolution and available 'VRAM'. High-resolution generation
    (2K, 4K+) via tiled 'VAE' decoding, tiled diffusion sampling
    ('MultiDiffusion'), and classic two-pass refinement (text-to-image, then
    upscale with image-to-image). Multi-GPU parallel generation via
    sd_generate_multi_gpu(). Multi-GPU model parallelism via 'device_layout'
    in sd_ctx(): distribute diffusion, text encoders, and 'VAE' across
    separate 'Vulkan' devices. Built-in profiling (sd_profile_start(),
    sd_profile_summary()) for per-stage timing of text encoding, sampling,
    and 'VAE' decode. Supports CPU and 'Vulkan' GPU. No 'Python' or external
    API dependencies required. Cross-platform: Linux, macOS, Windows.</dc:description>
  <dc:type>Software</dc:type>
  <dc:relation>Depends: R (&gt;= 4.1.0)</dc:relation>
  <dc:relation>Imports: Rcpp (&gt;= 1.0.0), ggmlR (&gt;= 0.5.0)</dc:relation>
  <dc:relation>LinkingTo: Rcpp, ggmlR</dc:relation>
  <dc:relation>Suggests: testthat (&gt;= 3.0.0), callr, png, plumber, base64enc, jsonlite</dc:relation>
  <dc:creator>Yuri Baramykov &lt;lbsbmsu@mail.ru&gt;</dc:creator>
  <dc:publisher>Comprehensive R Archive Network (CRAN)</dc:publisher>
  <dc:contributor>Yuri Baramykov [aut, cre],
  Georgi Gerganov [ctb, cph] (Author of the GGML library),
  leejet [ctb, cph] (Author of stable-diffusion.cpp),
  stduhpf [ctb] (Core contributor to stable-diffusion.cpp),
  Green-Sky [ctb] (Contributor to stable-diffusion.cpp),
  wbruna [ctb] (Contributor to stable-diffusion.cpp),
  akleine [ctb] (Contributor to stable-diffusion.cpp),
  Martin Raiber [cph] (Copyright holder in miniz.h),
  Rich Geldreich [cph] (Author of miniz.h),
  RAD Game Tools [cph] (Copyright holder in miniz.h),
  Valve Software [cph] (Copyright holder in miniz.h),
  Alex Evans [cph] (PNG writing code in miniz.h),
  Sean Barrett [cph] (Author of stb_image.h),
  Jorge L Rodriguez [cph] (Author of stb_image_resize.h),
  Niels Lohmann [cph] (Author of json.hpp (nlohmann/json)),
  Susumu Yata [cph] (Author of darts.h (darts-clone)),
  Kuba Podgorski [cph] (Author of zip.h/zip.c (kuba--/zip)),
  Meta Platforms Inc. [cph] (rng_mt19937.hpp (ported from PyTorch)),
  Google Inc. [cph] (Sentencepiece tokenizer code in t5.hpp)</dc:contributor>
  <dc:rights>MIT + file LICENSE (https://CRAN.R-project.org/package=sd2R/LICENSE)</dc:rights>
  <dc:date>2026-03-30</dc:date>
  <dc:format>application/tgz</dc:format>
  <dc:identifier>https://CRAN.R-project.org/package=sd2R</dc:identifier>
  <dc:identifier>doi:10.32614/CRAN.package.sd2R</dc:identifier>
</oai_dc:dc>
