Text-to-Image
Diffusers
Safetensors
Swedish
moss-image
handwriting
historical-documents
archives
htr
synthetic-data
Instructions to use Gabriel/diffu-moss-above with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Gabriel/diffu-moss-above with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Gabriel/diffu-moss-above", 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
The demo Space is not public yet: its link taken out for now
Browse files
README.md
CHANGED
|
@@ -22,10 +22,6 @@ sample page**. It is a drawing model of [diffu](https://github.com/Borg93/diffu2
|
|
| 22 |
page-level handwriting recognition: a page layout (a PAGE/ALTO file, or the lines' boxes as JSON), the text to write in
|
| 23 |
it and a sample page go in; a page image and its exact ALTO and PAGE labels come out.
|
| 24 |
|
| 25 |
-
**Try it:** the [diffu archive pages](https://huggingface.co/spaces/Gabriel/diffu-archive-pages) Space draws pages
|
| 26 |
-
with this model from a layout of boxes (or a template), your text and a sample page, and returns each page with its
|
| 27 |
-
ALTO and PAGE labels.
|
| 28 |
-
|
| 29 |
The model reads a MOSS Layout prompt, one text item per line with its exact text and its box, and a sample page given
|
| 30 |
as extra image tokens. Only the DiT is in this repository. The text encoder, tokenizer, VAE and scheduler are
|
| 31 |
MOSS-Image-Base's, unchanged.
|
|
|
|
| 22 |
page-level handwriting recognition: a page layout (a PAGE/ALTO file, or the lines' boxes as JSON), the text to write in
|
| 23 |
it and a sample page go in; a page image and its exact ALTO and PAGE labels come out.
|
| 24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
The model reads a MOSS Layout prompt, one text item per line with its exact text and its box, and a sample page given
|
| 26 |
as extra image tokens. Only the DiT is in this repository. The text encoder, tokenizer, VAE and scheduler are
|
| 27 |
MOSS-Image-Base's, unchanged.
|