llama_core

Function init_sd_context_with_standalone_model

source
pub fn init_sd_context_with_standalone_model(
    model_file: impl AsRef<str>,
    vae: impl AsRef<str>,
    clip_l: impl AsRef<str>,
    t5xxl: impl AsRef<str>,
    lora_model_dir: impl AsRef<str>,
    n_threads: i32,
    ctx: SDContextType,
) -> Result<(), LlamaCoreError>
Expand description

Initialize the stable diffusion context with the given standalone diffusion model

ยงArguments

  • model_file - Path to the standalone diffusion model file.

  • vae - Path to the VAE model file.

  • clip_l - Path to the CLIP model file.

  • t5xxl - Path to the T5-XXL model file.

  • lora_model_dir - Path to the Lora model directory.

  • n_threads - Number of threads to use.

  • ctx - The context type to create.