txt2img

Generate an image from a text prompt using a diffusion pipeline

Description

Generate an image from a text prompt using a diffusion pipeline

Usage

txt2img(prompt, model_name = c("sd21", "sdxl", "flux1", "flux2"), ...)

Arguments

  • prompt: A character string prompt describing the image to generate.
  • model_name: Name of the model to use (e.g., "sd21").
  • ...: Additional parameters passed to the diffusion process.

Value

A tensor or image object, depending on implementation.

Examples

img <- txt2img("a cat wearing sunglasses in space", device = "cuda")