HubCloneHubClone
Tasks

Text-to-Image

Text-to-image models generate an image from a written description.

Inputs

Input

A lighthouse at dusk, painted in gouache

Text-to-Image Model

Output

Output
Generated gouache lighthouse

About Text-to-Image

Text-to-image models generate an image from a written description. Browse text-to-image models on HubClone to compare checkpoints, or open a Space to try one in the browser.

Use Cases

Concept art

Explore visual ideas from short prompts.

Marketing visuals

Create illustrations for campaigns.

Inference

You can run text-to-image models locally with the Diffusers library.

import torch
from diffusers import DiffusionPipeline

pipe = DiffusionPipeline.from_pretrained("<model-id>", torch_dtype=torch.float16)
pipe.to("cuda")
result = pipe("A lighthouse at dusk, painted in gouache")

Useful Resources

Want to dig deeper into the topic? Great! Here is a hand-picked list of resources we found helpful.

Documentation

  • Text-to-Image task guide
  • Pipelines reference

Notebooks

  • Fine-tuning a text-to-image model