Text-to-Image
Diffusers
stable-diffusion
lora
template:sd-lora
migrated
hair
tool
slider
hair length
Instructions to use ostris/hair-length-slider-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ostris/hair-length-slider-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("runwayml/stable-diffusion-v1-5", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("ostris/hair-length-slider-lora") prompt = "photo of a brunette woman reading a book at a coffee shop, sitting on a sofa, wearing short jean shorts, wearing a blue wool sweater " image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps
- Draw Things
- DiffusionBee
Hair Length Slider - LoRA

- Prompt
- photo of a brunette woman reading a book at a coffee shop, sitting on a sofa, wearing short jean shorts, wearing a blue wool sweater
- Negative Prompt
- white collar, cartoon, cgi, render, illustration, painting, drawing, bad quality, grainy, low resolution

- Prompt
- photo of a redhead woman with black rim glasses
- Negative Prompt
- white collar, cartoon, cgi, render, illustration, painting, drawing, bad quality, grainy, low resolution

- Prompt
- photo of a redhead woman with black rim glasses
- Negative Prompt
- white collar, cartoon, cgi, render, illustration, painting, drawing, bad quality, grainy, low resolution

- Prompt
- photo of a brunette woman reading a book at a coffee shop, sitting on a sofa, wearing short jean shorts, wearing a blue wool sweater
- Negative Prompt
- white collar, cartoon, cgi, render, illustration, painting, drawing, bad quality, grainy, low resolution

- Prompt
- photo of a brunette woman reading a book at a coffee shop, sitting on a sofa, wearing short jean shorts, wearing a blue wool sweater
- Negative Prompt
- white collar, cartoon, cgi, render, illustration, painting, drawing, bad quality, grainy, low resolution
Model description
weight: -8.0 to 8.0 (or more)
positive: longer hair
negative: shorter hair
Simple LoRA to help with adjusting the length of a characters hair. You can swing it both ways pretty far out from -8 to +8 without much distortion. I have taken it out both ways 20 and still got an somewhat decent image, but it was starting to become nonsense.
Download model
Weights for this model are available in Safetensors format.
Download them in the Files & versions tab.
Use it with the 🧨 diffusers library
from diffusers import AutoPipelineForText2Image
import torch
pipeline = AutoPipelineForText2Image.from_pretrained('runwayml/stable-diffusion-v1-5', torch_dtype=torch.float16).to('cuda')
pipeline.load_lora_weights('ostris/hair-length-slider-lora', weight_name='hair_length_slider_v1.safetensors')
image = pipeline('photo of a brunette woman reading a book at a coffee shop, sitting on a sofa, wearing short jean shorts, wearing a blue wool sweater ').images[0]
For more details, including weighting, merging and fusing LoRAs, check the documentation on loading LoRAs in diffusers
- Downloads last month
- 16
Model tree for ostris/hair-length-slider-lora
Base model
runwayml/stable-diffusion-v1-5