text_to_image

class TextToImageGenerationTask(task, model, **kwargs)[source]

Bases: paddlenlp.taskflow.task.Task

The text_to_image generation model to generate the image. :param task: The name of task. :type task: string :param model: The model name in the task. :type model: string :param kwargs: Additional keyword arguments passed along to the specific task. :type kwargs: dict, optional

class TextToImageDiscoDiffusionTask(task, model, **kwargs)[source]

Bases: paddlenlp.taskflow.task.Task

The text_to_image disco diffusion model to generate the image. :param task: The name of task. :type task: string :param model: The model name in the task. :type model: string :param kwargs: Additional keyword arguments passed along to the specific task. :type kwargs: dict, optional

class TextToImageStableDiffusionTask(task, model, **kwargs)[source]

Bases: paddlenlp.taskflow.task.Task

The text_to_image diffusion model to generate the image. :param task: The name of task. :type task: string :param model: The model name in the task. :type model: string :param kwargs: Additional keyword arguments passed along to the specific task. :type kwargs: dict, optional