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
| { | |
| "_class_name": "AutoencoderKL", | |
| "_diffusers_version": "0.25.0.dev0", | |
| "_name_or_path": "/root/.cache/huggingface/hub/models--darkstorm2150--Protogen_x3.4_Official_Release/snapshots/f2e5e212b41ddc7a71a5972346c6b0978bf7b7a2/vae", | |
| "act_fn": "silu", | |
| "block_out_channels": [ | |
| 128, | |
| 256, | |
| 512, | |
| 512 | |
| ], | |
| "down_block_types": [ | |
| "DownEncoderBlock2D", | |
| "DownEncoderBlock2D", | |
| "DownEncoderBlock2D", | |
| "DownEncoderBlock2D" | |
| ], | |
| "force_upcast": true, | |
| "in_channels": 3, | |
| "latent_channels": 4, | |
| "layers_per_block": 2, | |
| "norm_num_groups": 32, | |
| "out_channels": 3, | |
| "sample_size": 512, | |
| "scaling_factor": 0.18215, | |
| "up_block_types": [ | |
| "UpDecoderBlock2D", | |
| "UpDecoderBlock2D", | |
| "UpDecoderBlock2D", | |
| "UpDecoderBlock2D" | |
| ] | |
| } | |