# Stable Diffusion Image Generation

## Documentation for package ‘sd2R’ version 0.1.9

- DESCRIPTION file.
- Package NEWS.

## Help Pages

LORA_APPLY_MODE | LoRA apply modes
PREDICTION | Prediction types
RNG_TYPE | RNG types
SAMPLE_METHOD | Sampling methods
SCHEDULER | Schedulers
sd_api_start | Start sd2R REST API server
sd_api_stop | Stop sd2R REST API server
sd_app | Launch sd2R Shiny GUI
SD_CACHE_MODE | Cache modes
sd_cache_params | Create cache configuration for step caching
sd_convert | Convert model to different quantization format
sd_ctx | Create a Stable Diffusion context
sd_generate | Generate images (unified entry point)
sd_generate_multi_gpu | Parallel generation across multiple GPUs
sd_image_to_array | Convert SD image to R numeric array
sd_img2img | Generate images with img2img
sd_list_models | List registered models
sd_load_image | Load image from file as SD image
sd_load_model | Load a registered model
sd_load_pipeline | Load pipeline from JSON
sd_node | Create a pipeline node
sd_pipeline | Create a pipeline from nodes
sd_profile_get | Get raw profile events
sd_profile_start | Start profiling
sd_profile_stop | Stop profiling
sd_profile_summary | Build a profile summary from raw events
sd_register_model | Register a model in the sd2R model registry
sd_remove_model | Remove a model from the registry
sd_run_pipeline | Run a pipeline
sd_save_image | Save SD image to PNG file
sd_save_pipeline | Save pipeline to JSON
sd_scan_models | Scan a directory for models and register them
sd_system_info | Get system information
sd_txt2img | Generate images from text prompt
sd_txt2img_highres | High-resolution image generation via patch-based pipeline
sd_txt2img_tiled | Tiled diffusion sampling (MultiDiffusion)
SD_TYPE | Weight types (ggml quantization types)
sd_unload_all | Unload all models from memory
sd_unload_model | Unload a model from memory
sd_upscale_image | Upscale an image using ESRGAN
sd_vulkan_device_count | Get number of Vulkan GPU devices