Text-to-Image
Diffusers
Trained with AutoTrain
stable-diffusion
stable-diffusion-diffusers
lora
template:sd-lora
Run this model with HF Jobs
Run stablediffusionapi/my-stablediffusion-lora-4303 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/stablediffusionapi/my-stablediffusion-lora-4303. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/stablediffusionapi/my-stablediffusion-lora-4303 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use stablediffusionapi/my-stablediffusion-lora-4303 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use stablediffusionapi/my-stablediffusion-lora-4303 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("stablediffusionapi/dreamshaperv8", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("stablediffusionapi/my-stablediffusion-lora-4303") prompt = "photo of sruthi" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
ModelsLab LoRA DreamBooth Training - stablediffusionapi/my-stablediffusion-lora-4303
These are LoRA adaption weights for stablediffusionapi/dreamshaperv8. The weights were trained on photo of sruthi using ModelsLab. LoRA for the text encoder was enabled: False.
Use it with the 🧨 diffusers library
!pip install -q transformers accelerate peft diffusers
from diffusers import DiffusionPipeline
import torch
pipe_id = "Lykon/DreamShaper"
pipe = DiffusionPipeline.from_pretrained(pipe_id, torch_dtype=torch.float16).to("cuda")
pipe.load_lora_weights("stablediffusionapi/my-stablediffusion-lora-4303", weight_name="pytorch_lora_weights.safetensors", adapter_name="abc")
prompt = "abc of a hacker with a hoodie"
lora_scale = 0.9
image = pipe(
prompt,
num_inference_steps=30,
cross_attention_kwargs={"scale": 0.9},
generator=torch.manual_seed(0)
).images[0]
image
- Downloads last month
- 23
Model tree for stablediffusionapi/my-stablediffusion-lora-4303
Base model
stablediffusionapi/dreamshaperv8