Instructions to use Vimoo-AI/Vimoo-1.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Vimoo-AI/Vimoo-1.0 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Vimoo-AI/Vimoo-1.0", 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
Download glyph_source.json from Vimoo-AI/Vimoo-1.0: direct link, hf CLI and curl.
- Browser
- Download file 954 Bytes
-
https://huggingface.co/Vimoo-AI/Vimoo-1.0/resolve/main/glyph_source.json
- Command line
-
hf download hf://Vimoo-AI/Vimoo-1.0/glyph_source.json
-
curl -L -o glyph_source.json https://huggingface.co/Vimoo-AI/Vimoo-1.0/resolve/main/glyph_source.json
954 Bytes
| { | |
| "weights": { | |
| "repo": "nlpcvcode/Glyph-SDXL-v2", | |
| "revision": "a5aac7f492e85819208e7ed14aa4402d9c0b1b65", | |
| "file": "checkpoints/byt5_model.pt" | |
| }, | |
| "config_and_base_tokenizer": { | |
| "repo": "google/byt5-small", | |
| "revision": "68377bdc18a2ffec8a0533fef03b1c513a4dd49d" | |
| }, | |
| "vocab_size": 1510, | |
| "conversion": "Prefix T5Stack keys with encoder.; share embedding without changing values", | |
| "tokenizer_extensions": { | |
| "repo": "nlpcvcode/Glyph-SDXL-v2", | |
| "revision": "a5aac7f492e85819208e7ed14aa4402d9c0b1b65", | |
| "files": [ | |
| "assets/color_idx.json", | |
| "assets/multilingual_10-lang_idx.json" | |
| ], | |
| "order": "125 base extra IDs, followed by colors, then multilingual fonts in JSON order" | |
| }, | |
| "preparation": { | |
| "script": "https://github.com/Vimoo-AI/Vimoo-1.0/blob/main/tools/convert_byt5.py", | |
| "format": "diffusers", | |
| "outputs": [ | |
| "text_encoder_2/model.safetensors", | |
| "tokenizer_2" | |
| ] | |
| } | |
| } | |