CoolFace
Modelpublic

ostris/zoom-slider-lora

sourceHugging Faceotherupdated 2y agoView on Hugging Face
2likes48downloads
Model Card

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 them in the Files & versions tab.

Use it with the 🧨 diffusers library

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