Skip to main content

text2tags

Text2tags is a Python library that uses a finetune of Llama-7b and llama cpp to predict Danbooru tags from natural text.

Installation

Use the package manager [pip]

pip install text2tags-lib

Usage

from text2tags import TaggerLlama

model = TaggerLlama()

tags = model.predict_tags("Minato Aqua from hololive with pink and blue twintails in a blue maid outfit")

print(', '.join(tags))

Demos

Open In Colab Spaces

Other links

License

MIT

Release files for text2tags-lib 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for text2tags-lib 0.0.7
File Size Uploaded
text2tags-lib-0.0.7.tar.gz 75.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for text2tags-lib 0.0.7
File Interpreter ABI Platform
text2tags_lib-0.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 149.7 kB

Release files / text2tags-lib-0.0.7.tar.gz

Download URL text2tags-lib-0.0.7.tar.gz
Size 75.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0b676dae26c0cd668638c0dfa162f062e1c5504ef70260cbe61674866c0c8c69
BLAKE2b-256 checksum
How to use checksums
9fc8c4bba5b4bcc672c1095d9ad966ca2491e4b0fac2b97cfba513ed986f9e1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Release files / text2tags_lib-0.0.7-py3-none-any.whl

Download URL text2tags_lib-0.0.7-py3-none-any.whl
Size 74.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9a4e32f5cb1fa5cce5f1fadb315f01eaa30fdcec7479723c7bcc304ed5837455
BLAKE2b-256 checksum
How to use checksums
e16834cb65c52774a20f40fc95f93d29a48c1de611f3fc18bc42cd1158b4d74d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Release history Release notifications | RSS feed

This release

0.0.7 This release

2 release files

0.0.6

2 release files

0.0.4

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page