Stable Diffusion Image Generation
Overview
Provides Stable Diffusion image generation using the 'ggmlR' library, with no 'Python' or external API dependencies. Supports text-to-image and image-to-image generation for SD 1.x, SD 2.x, 'SDXL', Flux, and 'FLUX.2'. A single sd_generate() function handles the entire pipeline, including sampling and high-resolution output. Features multi-GPU support, a 'Shiny' GUI, and runs on CPU or 'Vulkan' GPU across Linux, macOS, and Windows.
- e-mail update
---
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-07-11
- WARNING12 OK, 1 WARNING2026-07-10
- OK13 OK2026-04-30
Show 3 earlier changesHide 3 earlier changes
- ERROR10 OK, 2 NOTE, 1 ERROR2026-04-16
- NOTE11 OK, 2 NOTE2026-04-11
- ERROR4 OK, 1 NOTE, 2 ERROR2026-03-31
Documentation
- Help pages
- 86 (25 internal)
- Examples that run
- 8%1 run in a plain check · 11 never run
- Exported functions with examples
- 20%
- Documented parameters
- 95%
- Return-value docs
- 87%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- not measured
- Median days to close, 50 most recently updated closed issues
- 63
- Median days to close, 50 most recently updated closed PRs
- not measured
Stars over time
Releases over time
Issues over time
Commits over time
3 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/zabis13/sd2r on 2026-10-11.
Dependencies
Code & Tests
People & History
Show 4 more copyright holdersHide 4 copyright holders
Pick two releases to compare their code metrics.
- 0.2.1.1Latest
- 0.2.12026-06-19 · diff ↗ ·
added 21 exports
PREVIEW, sd_decode_latent, sd_default_params, sd_denoise_step, sd_destroy_context, sd_download_model, sd_encode_image, sd_encode_text, sd_generate_multiref, sd_inverse_noise_scale, sd_load_mask, sd_noise_scale, sd_preview_start, sd_preview_stop, sd_read_preview, sd_sample, sd_sample_stepwise, sd_sampler_begin, sd_sampler_end, sd_sampler_sigmas, sd_supports_ref_images - RR 4.6.0 released · 2026-04-24
- 0.1.9
- 0.1.72026-03-30
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2026-03-30
- Total releases
- 4 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1.0
- Download size
- 1.7 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("sd2R")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.