File size: 3,791 Bytes
5389fa2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
---
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
- portrait
- tool
- zoom
- slider

base_model: runwayml/stable-diffusion-v1-5
instance_prompt: 
widget:
- text: 'photo of a woman, blonde hair, smiling, in the woods '
  parameters:
    negative_prompt: cartoon, cgi, render, illustration, painting, drawing, bad quality, grainy, low resolution
            
  output:
    url: >-
      1680148.jpeg
- text: 'photo of a woman, red hair, smiling, in the woods '
  parameters:
    negative_prompt: cartoon, cgi, render, illustration, painting, drawing, bad quality, grainy, low resolution
            
  output:
    url: >-
      1680193.jpeg
- text: 'photo of a woman, red hair, smiling, in the woods '
  parameters:
    negative_prompt: cartoon, cgi, render, illustration, painting, drawing, bad quality, grainy, low resolution
            
  output:
    url: >-
      1680194.jpeg
- text: 'photo of a woman, red hair, smiling, in the woods '
  parameters:
    negative_prompt: cartoon, cgi, render, illustration, painting, drawing, bad quality, grainy, low resolution
            
  output:
    url: >-
      1680197.jpeg
- text: 'photo of a woman, red hair, smiling, in the woods '
  parameters:
    negative_prompt: cartoon, cgi, render, illustration, painting, drawing, bad quality, grainy, low resolution
            
  output:
    url: >-
      1680210.jpeg
- text: 'photo of a woman, red hair, smiling, in the woods '
  parameters:
    negative_prompt: cartoon, cgi, render, illustration, painting, drawing, bad quality, grainy, low resolution
            
  output:
    url: >-
      1680230.jpeg
- text: 'photo of a woman, red hair, smiling, in the woods '
  parameters:
    negative_prompt: cartoon, cgi, render, illustration, painting, drawing, bad quality, grainy, low resolution
            
  output:
    url: >-
      1680232.jpeg

---

# Zoom Slider - LoRA 

<Gallery />





## Model description

<ul><li><p>weight: <strong>-7.0 to 7.0</strong> </p></li><li><p>positive: <strong>zoom in (face close up)</strong></p></li><li><p>negative: <strong>zoom out (full body)</strong></p></li></ul><p></p><p>This is <strong>NOT</strong> perfect. I have tried to make this for a very long time using a dozen different methods and nothing worked. My slider training script was finally able to kick something out that is decently functional. I will continue to work on it because this is the slider I want more than anything else.</p><p></p><p>The slide in and out is not always smooth, it will hit points that "hang" where the clothing mostly changes for 1-3 weight steps without changing zoom, but it will break through if you keep pushing it. Let me know if you find any thing that can use improvement. </p>



## Download model

Weights for this model are available in Safetensors format.

[Download](/ostris/zoom-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/zoom-slider-lora', weight_name='zoom_slider_v1.safetensors')
image = pipeline('photo of a woman, red hair, smiling, in the woods ').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)