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
Model card: the template test's result
Browse files
README.md
CHANGED
|
@@ -108,8 +108,13 @@ Letter size and line spacing stay with the layout, as they should: the line boxe
|
|
| 108 |
sample's but keeps much of a generic hand for the period.
|
| 109 |
- **The placement is fixed:** the sample has to be placed above the page (see above). Older diffu code and other
|
| 110 |
MOSS-Image pipelines place it over the page.
|
| 111 |
-
-
|
| 112 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 113 |
- Every line has to be checked: diffu reads each drawn line back and marks a line it cannot confirm as unclear in the
|
| 114 |
labels.
|
| 115 |
- Trained on Swedish archival handwriting; printed forms and other kinds of pages are untested.
|
|
|
|
| 108 |
sample's but keeps much of a generic hand for the period.
|
| 109 |
- **The placement is fixed:** the sample has to be placed above the page (see above). Older diffu code and other
|
| 110 |
MOSS-Image pipelines place it over the page.
|
| 111 |
+
- **New layouts** (the template test: 18 templates of letters, certificates, forms, lists, tables and registers, each
|
| 112 |
+
with sample pages from two unseen volumes, 30 pages at 2 MP, beside r6b's drawings of the same at 1 MP): 24 drawn,
|
| 113 |
+
the layouts and their text followed as r6b follows them, the paper and scan (colour or grey) taken from the sample
|
| 114 |
+
more often than r6b takes them. The hand moves toward the sample's pen weight but stays a tidy hand of the period on
|
| 115 |
+
most pages: a sample in a rough 17th-century hand does not make a 19th-century certificate rough. One page drew
|
| 116 |
+
table rules the template does not have, and one copied a page number like the sample's. The other 6 are dense
|
| 117 |
+
registers whose prompts are longer than the text encoder's 4,096 tokens: such a page has to be drawn in parts.
|
| 118 |
- Every line has to be checked: diffu reads each drawn line back and marks a line it cannot confirm as unclear in the
|
| 119 |
labels.
|
| 120 |
- Trained on Swedish archival handwriting; printed forms and other kinds of pages are untested.
|