Instructions to use JingyeChen22/textdiffuser2_layout_planner with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use JingyeChen22/textdiffuser2_layout_planner with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("JingyeChen22/textdiffuser2_layout_planner", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
|
Download README.md from JingyeChen22/textdiffuser2_layout_planner: direct link, hf CLI and curl.
- Browser
- Download file 421 Bytes
-
https://huggingface.co/JingyeChen22/textdiffuser2_layout_planner/resolve/main/README.md
- Command line
-
hf download hf://JingyeChen22/textdiffuser2_layout_planner/README.md
-
curl -L -o README.md https://huggingface.co/JingyeChen22/textdiffuser2_layout_planner/resolve/main/README.md
421 Bytes
metadata
pipeline_tag: text-to-image
library_name: diffusers
license: mit
Model
This repo contains the layout planner model of the paper TextDiffuser-2: Unleashing the Power of Language Models for Text Rendering.
Usage
The script here can be used to perform inference with the model.