Safetensors
English
compression
nebulette's picture
Update README.md
c5d8b01 verified
|
Raw History Blame
1.77 kB
---
license: apache-2.0
tags:
- compression
datasets:
- BootsofLagrangian/danbooru-multitier-captions-202606
language:
- en
---
Natural language compression into booru tokens
The refiner model takes a text within 512 tokens, and slices it up, each sentence fragment has a danbooru token in it.
The model reuses the architecture of the blocks and the embeddings of [the linked model](https://huggingface.co/RikkaBotan/NexteraBERT-Mezzoforte-220M-en).
It identifies the variable number of split points within the source sentence, such as:
[1, 11, 21, 29, 43, 47, 73, 78, 85, 96, 104, 108, 122, 133, 139, 143, 161, 165, 175]
The following [text](https://civitai.com/images/144384989) was divided to these fragments:
- 'A young woman with short, choppy white hair',
- ' and striking teal eyes stands against a wall covered',
- ' in large, jagged black graffiti',
- ' letters. She has a bold, playful expression, winking one eye',
- ' and sticking her tongue out',
- ' while raising her hand in a peace sign. She wears a black cross-shaped hair clip, multiple ear piercings,',
- ' a black choker,',
- ' and layered gold necklaces.',
- ' Her outfit is a mix of edgy streetwear:',
- ' an oversized, bright cyan sweatshirt',
- ' with a black skull',
- ' and dragon graphic, worn off one shoulder to reveal a red strap.',
- ' She wears a short, pleated purple plaid skirt',
- ' with a black garter strap',
- ' on her thigh,',
- ' and distressed black thigh-high stockings with large rips. Her chunky black boots',
- ' have red laces',
- ' and accents. A small red and black bag'...
The leading whitespace is due to the tokenizer.
Ideally, this could be developed further so that the diffusion model only takes these compressed tokens and not the entire page of text.