diffuseR: Functional Interface to Diffusion Models in R

A native R implementation of diffusion models providing a functional interface to state-of-the-art generative AI. Inspired by the 'Python' library 'diffusers' from 'Hugging Face' <https://huggingface.co/>, 'diffuseR' generates and manipulates images from text prompts using models such as 'Stable Diffusion', with no 'Python' dependency. Supports multiple diffusion schedulers and device acceleration.

Version: 0.2.2
Imports: torch, jsonlite, grid, png, jpeg
Suggests: av, hfhub, safetensors, simplermarkdown, tinytest
Published: 2026-08-08
DOI: 10.32614/CRAN.package.diffuseR (may not be active yet)
Author: Troy Hernandez ORCID iD [aut, cre], cornball.ai [cph], The HuggingFace Team [cph] (portions ported from the diffusers library (Apache-2.0); see inst/COPYRIGHTS), Lightricks Ltd. [cph] (LTX checkpoint layout and pipeline constants; see inst/COPYRIGHTS)
Maintainer: Troy Hernandez <troy at cornball.ai>
BugReports: https://github.com/cornball-ai/diffuseR/issues
License: Apache License (≥ 2)
Copyright: see file COPYRIGHTS
URL: https://github.com/cornball-ai/diffuseR
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: diffuseR results

Documentation:

Reference manual: diffuseR.html , diffuseR.pdf
Vignettes: Performance Levers (source)

Downloads:

Package source: diffuseR_0.2.2.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): diffuseR_0.2.2.tgz, r-oldrel (arm64): diffuseR_0.2.2.tgz, r-release (x86_64): diffuseR_0.2.2.tgz, r-oldrel (x86_64): diffuseR_0.2.2.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=diffuseR to link to this page.