Text-to-Image
Diffusers
TensorBoard
Safetensors
English
StableDiffusionPipeline
diffusers-training
lora
template:sd-lora
stable-diffusion-xl
stable-diffusion-xl-diffusers
Instructions to use ZB-Tech/Text-to-Image with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ZB-Tech/Text-to-Image with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("ZB-Tech/Text-to-Image") prompt = "Draw a picture of two female boxers fighting each other." image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Download tokenizer/vocab.json from ZB-Tech/Text-to-Image: direct link, hf CLI and curl.
- Browser
- Download file 1.06 MB
-
https://huggingface.co/ZB-Tech/Text-to-Image/resolve/main/tokenizer/vocab.json
- Command line
-
hf download hf://ZB-Tech/Text-to-Image/tokenizer/vocab.json
-
curl -L -o vocab.json https://huggingface.co/ZB-Tech/Text-to-Image/resolve/main/tokenizer/vocab.json
1.06 MB
File too large to display, you can check the raw version instead.