Instructions to use JingyeChen22/textdiffuser2-full-ft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use JingyeChen22/textdiffuser2-full-ft 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-full-ft", 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
- Draw Things
- DiffusionBee
Add link to paper, tags
#1
by nielsr HF Staff - opened
README.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pipeline_tag: text-to-image
|
| 3 |
+
library_name: diffusers
|
| 4 |
+
license: mit
|
| 5 |
+
---
|
| 6 |
+
|
| 7 |
+
# Model
|
| 8 |
+
|
| 9 |
+
This repo contains the full fine-tuned model of the paper [TextDiffuser-2: Unleashing the Power of Language Models for Text Rendering](https://huggingface.co/papers/2311.16465).
|
| 10 |
+
|
| 11 |
+
# Usage
|
| 12 |
+
|
| 13 |
+
The script [here](https://github.com/microsoft/unilm/tree/master/textdiffuser-2#firecracker-inference) can be used to perform inference with the model.
|