File size: 3,447 Bytes
72c972b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
---
license: other
license_name: bespoke-lora-trained-license
license_link: https://multimodal.art/civitai-licenses?allowNoCredit=True&allowCommercialUse=Image&allowDerivatives=True&allowDifferentLicense=True
tags:
- text-to-image
- stable-diffusion
- lora
- diffusers
- template:sd-lora
- migrated
- hair
- tool
- slider
- hair length

base_model: runwayml/stable-diffusion-v1-5
instance_prompt: 
widget:
- text: '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 '
  parameters:
    negative_prompt: white collar, cartoon, cgi, render, illustration, painting, drawing, bad quality, grainy, low resolution
            
  output:
    url: >-
      1674051.jpeg
- text: 'photo of a redhead  woman with black rim glasses'
  parameters:
    negative_prompt: white collar, cartoon, cgi, render, illustration, painting, drawing, bad quality, grainy, low resolution
            
  output:
    url: >-
      1674079.jpeg
- text: 'photo of a redhead  woman with black rim glasses'
  parameters:
    negative_prompt: white collar, cartoon, cgi, render, illustration, painting, drawing, bad quality, grainy, low resolution
            
  output:
    url: >-
      1674081.jpeg
- text: '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 '
  parameters:
    negative_prompt: white collar, cartoon, cgi, render, illustration, painting, drawing, bad quality, grainy, low resolution
            
  output:
    url: >-
      1674091.jpeg
- text: '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 '
  parameters:
    negative_prompt: white collar, cartoon, cgi, render, illustration, painting, drawing, bad quality, grainy, low resolution
            
  output:
    url: >-
      1674093.jpeg

---

# Hair Length Slider - LoRA 

<Gallery />





## Model description

<ul><li><p>weight: <strong>-8.0 to 8.0</strong> (or more)</p></li><li><p>positive: <strong>longer hair</strong></p></li><li><p>negative: <strong>shorter hair</strong></p></li></ul><p><br /><span style="color:rgb(193, 194, 197)">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.</span><br /></p>



## Download model

Weights for this model are available in Safetensors format.

[Download](/ostris/hair-length-slider-lora/tree/main) them in the Files & versions tab.

## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)

```py
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](https://huggingface.co/docs/diffusers/main/en/using-diffusers/loading_adapters)