|
--- |
|
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) |
|
|
|
|