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
Use: the example draws at --guidance 2
Browse files
README.md
CHANGED
|
@@ -57,7 +57,8 @@ hf download Gabriel/diffu-moss-above --local-dir dit
|
|
| 57 |
git clone https://github.com/Borg93/diffu2 && cd diffu2 && uv sync --all-packages
|
| 58 |
uv run diffu-moss-init --base ../base --transformer ../dit --out ../moss-diffu
|
| 59 |
uv run diffu-generate --model ../moss-diffu --templates templates/0105.xml --text-from text.txt \
|
| 60 |
-
--reference samples/court-sample.jpg --reference-caption sample --whole-page --page-megapixels 2
|
|
|
|
| 61 |
```
|
| 62 |
|
| 63 |
The sample page is an ordinary scan (JPEG or PNG) of a page whose paper, ink and hand the drawn page should have.
|
|
|
|
| 57 |
git clone https://github.com/Borg93/diffu2 && cd diffu2 && uv sync --all-packages
|
| 58 |
uv run diffu-moss-init --base ../base --transformer ../dit --out ../moss-diffu
|
| 59 |
uv run diffu-generate --model ../moss-diffu --templates templates/0105.xml --text-from text.txt \
|
| 60 |
+
--reference samples/court-sample.jpg --reference-caption sample --whole-page --page-megapixels 2 \
|
| 61 |
+
--guidance 2 --out pages
|
| 62 |
```
|
| 63 |
|
| 64 |
The sample page is an ordinary scan (JPEG or PNG) of a page whose paper, ink and hand the drawn page should have.
|