Text-to-Image
Diffusers
TensorBoard
Safetensors
Sana
StableDiffusionPipeline
stable-diffusion
stable-diffusion-diffusers
dreambooth
diffusers-training
lora
sana-diffusers
template:sd-lora
Instructions to use ainjarts/output with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ainjarts/output with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("darkstorm2150/Protogen_x3.4_Official_Release", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("ainjarts/output") prompt = "a photo of ohwx woman" image = pipe(prompt).images[0] - Sana
How to use ainjarts/output with Sana:
# Load the model and infer image from text import torch from app.sana_pipeline import SanaPipeline from torchvision.utils import save_image sana = SanaPipeline("configs/sana_config/1024ms/Sana_1600M_img1024.yaml") sana.from_pretrained("hf://ainjarts/output") image = sana( prompt='a cyberpunk cat with a neon sign that says "Sana"', height=1024, width=1024, guidance_scale=5.0, pag_guidance_scale=2.0, num_inference_steps=18, ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Download tokenizer/tokenizer_config.json from ainjarts/output: direct link, hf CLI and curl.
- Browser
- Download file 704 Bytes
-
https://huggingface.co/ainjarts/output/resolve/main/tokenizer/tokenizer_config.json
- Command line
-
hf download hf://ainjarts/output/tokenizer/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/ainjarts/output/resolve/main/tokenizer/tokenizer_config.json
704 Bytes
| { | |
| "add_prefix_space": false, | |
| "added_tokens_decoder": { | |
| "49406": { | |
| "content": "<|startoftext|>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "49407": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "bos_token": "<|startoftext|>", | |
| "clean_up_tokenization_spaces": true, | |
| "do_lower_case": true, | |
| "eos_token": "<|endoftext|>", | |
| "errors": "replace", | |
| "model_max_length": 77, | |
| "pad_token": "<|endoftext|>", | |
| "tokenizer_class": "CLIPTokenizer", | |
| "unk_token": "<|endoftext|>" | |
| } | |