Skip to content

Commit beef29d

Browse files
committed
Change range of scaling to 0 to 8.
1 parent 7c726ed commit beef29d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ So, interpolating between the noise from two seeds will not only look cool as a
5353

5454
`Upscaler`: Choose upscale method to be applied to the images before made into a video.
5555

56-
`Upscale ratio`: How much the images should be upscaled. A value of 1 will disable scaling.
56+
`Upscale ratio`: How much the images should be upscaled. A value of 0 or 1 will disable scaling.
5757

5858
`Bump seed`: If this is set higher than 0, instead of traveling to the destination seeds you will get a number of images based on the initial seed, mixed with the destination seeds. Perfect for when you have an almost perfect image but want to nudge it a little to see if you can improve it.
5959

scripts/seed_travel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def ui(self, is_img2img):
3838
lead_inout = gr.Number(label='Number of frames for lead in/out', value=0)
3939
with gr.Row():
4040
upscale_meth = gr.Dropdown(label='Upscaler', value=lambda: DEFAULT_UPSCALE_METH, choices=CHOICES_UPSCALER)
41-
upscale_ratio = gr.Slider(label='Upscale ratio', value=lambda: DEFAULT_UPSCALE_RATIO, minimum=1.0, maximum=4.0, step=0.1)
41+
upscale_ratio = gr.Slider(label='Upscale ratio', value=lambda: DEFAULT_UPSCALE_RATIO, minimum=0.0, maximum=8.0, step=0.1)
4242
bump_seed = gr.Slider(label='Bump seed (If > 0 do a Compare Paths but only one image. No video will be generated.)', value=0.0, minimum=0, maximum=1, step=0.01)
4343
use_cache = gr.Checkbox(label='Use cache', value=True)
4444
show_images = gr.Checkbox(label='Show generated images in ui', value=True)
@@ -210,7 +210,7 @@ def run(self, p, rnd_seed, seed_count, dest_seed, steps, unsinify, loopback, sav
210210

211211
# upscale - copied from https://github.com/Kahsolt/stable-diffusion-webui-prompt-travel
212212
tgt_w, tgt_h = round(p.width * upscale_ratio), round(p.height * upscale_ratio)
213-
if upscale_meth != 'None' and upscale_ratio > 1.0:
213+
if upscale_meth != 'None' and upscale_ratio != 1.0 and upscale_ratio != 0.0:
214214
image = [resize_image(0, proc.images[0], tgt_w, tgt_h, upscaler_name=upscale_meth)]
215215
else:
216216
image = proc.images

0 commit comments

Comments
 (0)