Instructions to use ariG23498/trained-sana-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ariG23498/trained-sana-lora with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Efficient-Large-Model/Sana_1600M_1024px_diffusers", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("ariG23498/trained-sana-lora") prompt = "A photo of sks dog in a bucket" image = pipe(prompt).images[0] - Sana
How to use ariG23498/trained-sana-lora 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://ariG23498/trained-sana-lora") 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
- Draw Things
- DiffusionBee
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("Efficient-Large-Model/Sana_1600M_1024px_diffusers", dtype=torch.bfloat16, device_map="cuda")
pipe.load_lora_weights("ariG23498/trained-sana-lora")
prompt = "A photo of sks dog in a bucket"
image = pipe(prompt).images[0]Sana DreamBooth LoRA - ariG23498/trained-sana-lora

- Prompt
- A photo of sks dog in a bucket

- Prompt
- A photo of sks dog in a bucket

- Prompt
- A photo of sks dog in a bucket

- Prompt
- A photo of sks dog in a bucket
Model description
These are ariG23498/trained-sana-lora DreamBooth LoRA weights for Efficient-Large-Model/Sana_1600M_1024px_diffusers.
The weights were trained using DreamBooth with the Sana diffusers trainer.
Trigger words
You should use a photo of sks dog to trigger the image generation.
Download model
Download the *.safetensors LoRA in the Files & versions tab.
Use it with the 🧨 diffusers library
TODO
For more details, including weighting, merging and fusing LoRAs, check the documentation on loading LoRAs in diffusers
License
TODO
Intended uses & limitations
How to use
# TODO: add an example code snippet for running this diffusion pipeline
Limitations and bias
[TODO: provide examples of latent issues and potential remediations]
Training details
[TODO: describe the data used to train the model]
- Downloads last month
- 8
Model tree for ariG23498/trained-sana-lora
Unable to build the model tree, the base model loops to the model itself. Learn more.