Image-Text-to-Image
Image-text-to-image models edit or restyle an input image following a text instruction.
Inputs
Input
Image-Text-to-Image Model
Output
Output
About Image-Text-to-Image
Image-text-to-image models edit or restyle an input image following a text instruction. Browse image-text-to-image models on HubClone to compare checkpoints, or open a Space to try one in the browser.
Use Cases
Instruction-based editing
Turn a daytime photo into a night scene.
Product imagery
Swap the background of a product shot.
Inference
You can run image-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("fox.png")Useful Resources
Want to dig deeper into the topic? Great! Here is a hand-picked list of resources we found helpful.
Documentation
- Image-Text-to-Image task guide
- Pipelines reference
Notebooks
- Fine-tuning a image-text-to-image model