CivArchive
    Zoom Slider - LoRA - v1.0
    Preview 1680148
    Preview 1680193
    Preview 1680194
    Preview 1680197
    Preview 1680210
    Preview 1680230
    Preview 1680232
    • weight: -7.0 to 7.0

    • positive: zoom in (face close up)

    • negative: zoom out (full body)

    This is NOT 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.

    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.

    Description

    FAQ

    Comments (37)

    NewToAI2Jul 23, 2023· 5 reactions
    CivitAI

    Nice one! I've been waiting for someone to make a decent version of this. In my brief tests, this works better than the other background/distance Lora that I have tried.

    crawlingratJul 23, 2023· 27 reactions
    CivitAI

    I swear all you do is spend your time making insanely useful Lora.

    beardobreado749Jul 23, 2023· 13 reactions
    CivitAI

    This is a must have built in feature on any SD UI

    greg_wilsonJul 23, 2023· 2 reactions
    CivitAI

    Could you do the usual LECO process, but instead of matching to latents from a different prompt: decode to an RGB image, zoom in a little bit, encode it, and use that for the loss?

    ostris
    Author
    Jul 23, 2023

    That is very close to how I trained my HD helper https://civitai.com/models/110071/hd-helper . It doesnt use LECO process. I did something I call seed locking which I also did on my nighttime LoRA https://civitai.com/models/99957 . For HD helper, I generated noise with a specific seed at 1024 / 8 . then I scaled that in half using nearest neighbor interpolation, generated with that noise at 512, high res fixed up to 1024 and saved. I did this with over 10,000 wide concept prompts. Then I had a contextual enlarged image essentially which was the same content it would generate at 512 butt at a resolution of 1024. Then I trained at 1024 at with those images with the same seed. Nightime LoRA I generated 500 images at a fixed noise from a specific seed, and a few hundred "night time" images. I converted the daytime ones to night using stable diffusion with a few controlnet modules, and trained on those with the same generation noise, while using the nighttime original images as regularization images.

    All of this is to say that yes, that should be possible, but it takes a lot of images to do it. for hd helper, I tried with 1,000 first and it started overfitting before it converged. However, there may be a way to do it on the fly purely in the latent space similar to how the LECO works.

    greg_wilsonJul 23, 2023

    @Ostris perhaps it would be best as a script or extension, rather than a lora? Something like how the hires fix works iirc, where it goes through a few steps at a smaller size and then decode to RGB image and stretch it and encide it and continue the remaining steps. But instead crop the RGB image in a little and stretch it out, effectively zooming in.

    But it might impact the composition more than details like perspective distortion / faces looking different at different distances.

    In which case perhaps a LoRA not for a zoom, but anti wide-angle as a concept would impart the correct details? Maybe Stable Diffusion has a good enough understanding of camera lens lengths for that to be useful with your current training method: using 50mm as an average embedding, 200mm or so as a positive embedding, and 30mm or so as a negative embedding? Could use all sorts of numbers rather than any specific values, unless some end up being particularly useful in a prompt. Hopefully flattening out the image and having the effect of a "dolly zoom" as the LoRA's strength changes.

    This would at least break the problem of zooming in down into different parts, one of composition, and one of style. Unless just using lens lengths for embeddings covers both parts just fine.

    qietingfengyinJul 25, 2023
    CivitAI

    how to use it?

    luxspb125Jul 26, 2023

    add to directory "models->lora" and use <lora:zoom_slider_v1:-5> for example in your promt

    kurodahuga843Jul 27, 2023· 4 reactions
    CivitAI

    A type of LORA that was in demand but not in supply. good is the author.

    The author says it can go from -7 to about 7, but I personally think it's about -5 to 5. Once you try +10, you'll understand why the author doesn't recommend it.

    If you've ever been mad at SD for not approaching you at all even though you've specified close-up, I recommend it.

    I got angry over 100 times myself.

    151451Jul 29, 2023

    With high numbers (I haven't tried the -ve) you need to make sure the prompt is all about he feature being zoomed in on.

    SlurpeyJul 30, 2023
    CivitAI

    Can I ask how you made this? The approach? I know how to train LoRa but my brain hurts trying to figure out how you gave it the zoom concept?

    gausssidorov928Aug 12, 2023

    My guess is that I initially took a photo in large growth and then in Photoshop I made an increase in resolution with each step, I think there were 7-10 steps

    ostris
    Author
    Aug 12, 2023· 10 reactions

    https://github.com/ostris/ai-toolkit#lora-slider-trainer That is my repo for training sliders. It has some more info there. Basic concept is finding out a few good prompts for far away and close up shots that the model understands, and spread the concepts with the slider training process. This one took a while because the model doesn't really understand the concept so I had to get a little creative with it to get it to lock on.

    sgqw0n8ib243Sep 24, 2023· 7 reactions
    CivitAI

    You say it's not perfect, but it's still amazing. I know it's an older model but I wanted to comment on how much it's appreciated. THank you so much!

    rob52840Nov 2, 2023· 15 reactions
    CivitAI

    Super! Are you planning to make a version for XL? - would be even more needed there!

    cyptoRabbitNov 10, 2023· 2 reactions

    yeah,strongly!!!!~~~

    otterpuppJan 5, 2024

    yes please! There’s a new method for SDXL https://sliders.baulab.info

    AgathornJan 26, 2024· 3 reactions

    Honestly it is the fact that I use a batch of these sliders on most of my images that has prevented me from moving to SDXL. Would love to see these (along with others like Breast Slider, Hair Length Slider, etc) adapted over

    malik_killianDec 20, 2023· 4 reactions
    CivitAI

    Might have some of the same challenges as a zoom slider but I'd love it if you could pull off a "Directional Slider" (i.e. a slider that helps with where the subject is looking). Getting images where the subject is looking completely away from the camera (no face whatsoever) is actually really hard without ControlNet.

    1487554139385Dec 24, 2023

    Me too

    camerique701Jan 10, 2024

    Try weights of "candid".

    saeedkhaliliFeb 17, 2024· 6 reactions
    CivitAI

    didn't work on Foocus

    jtk1996606Feb 24, 2024· 6 reactions

    so what?

    saeedkhaliliFeb 25, 2024· 1 reaction

    @jtk1996606 what so what?! so don't use it in Fooocus

    LeeAeronFeb 25, 2024
    CivitAI

    Thank You!

    kalisopwithMar 11, 2024
    CivitAI

    OMG IT WORKS!!!!! Thanks so much! Tried every prompt and was still getting face closeups!

    crawlingratMar 12, 2024· 6 reactions
    CivitAI

    Could you perhaps remake this for SDXL? I've been using envyZoomXL but I swear it doesn't work the way this one did. :(

    masterzedJun 7, 2024· 5 reactions
    CivitAI

    good bye, far long shot, close up, etc.. etc...

    blueeyedtex627Jun 14, 2024· 2 reactions
    CivitAI

    Tried this out the other day and was pleasantly surprised. I personally haven't had any weird issues at all. It works as advertised. Of course, I've only used it on about 3 checkpoints and I'm sure some are varied.

    Where I'm liking this is I can get consistent fully body shots without prompting for it (which only works once in a while). I'm a leg man, so legs and heels is where it's at for me. :-)

    blueeyedtex627Sep 22, 2024· 2 reactions
    CivitAI

    Lately I've been having trouble with this on certain checkpoints. When I go minus (for a zoom-out), the subject is mostly standing sideways. No prompting seems to stop it. Anybody have a fix for this?

    bugsbeOct 23, 2024

    same

    SWHLJan 13, 2025

    mark

    OverlonerOct 25, 2024· 2 reactions
    CivitAI

    i am looking into your sliders and see so many useful loras, amazing work, I haven't checked them out yet, but I really need a lora for skin color, like green or blue, that would save me so much pain,

    pony and sdxl ether one is good, if anyone knows any skin color lora I would appreciate it

    rainfallbrillianceSep 24, 2025· 2 reactions
    CivitAI

    Is there something similar for Illustrious???

    Been trying to get whole body photos for a LONG time.... :(

    robb781Nov 9, 2025
    CivitAI

    download only gives me a flux version instead of a sd 1.5

    joakimkunzdesign128Nov 21, 2025
    CivitAI

    Uhh, okay, this definitely needs more explanation. Never had it even remotely make the same person, just random individuals.

    yesimreal5576Feb 27, 2026

    Was that a feature that this promoted? I'm not sure you commented in the right place. This seems to be for controlling how close the subject is in the images you generate not for making the person from the sample images.