Coyote-A/ultimate-upscale-for-automatic1111

Output resolution changed when using "scale from image size"

gachapengames opened this issue · 3 comments

On certain resolutions, the output will change when using "scale from image size". For example 1120x984 x2 will output to 2240x1984, adding 16 pixels to the height. Using "img2img settings" or "custom size" outputs the resolution properly.

Came here looking for info on a similar (or same) issue, where I upscale something but the output isn't as big as it's supposed to be. Here's the generation info:

Steps: 20, Sampler: DPM++ SDE Karras, CFG scale: 5.5, Seed: 2176715509, Size: 10368x7296, Model hash: 36c349ec18, Model: 0.7(picx_10) + 0.3(0.5(arteyou_alpha1) + 0.5(hardcoreHentai_v11)), VAE hash: 735e4c3a44, VAE: vae-ft-mse-840000-ema-pruned.safetensors, Denoising strength: 0.4, Clip skip: 2, Ultimate SD upscale upscaler: 4x-UltraSharp, Ultimate SD upscale tile_width: 512, Ultimate SD upscale tile_height: 512, Ultimate SD upscale mask_blur: 8, Ultimate SD upscale padding: 32, Template: "a majestic stargate covered in ivy, set in a redwood forest, golden hour, intricate details, haunting atmosphere, concept art", Negative Template: "bad-artist, bad-hands-5, bad_prompt_version2, badhandsv5-neg, easynegative, FastNegativeEmbedding, ng_deepnegative_v1_75t, verybadimagenegative_v1.3", ControlNet 0: "Module: tile_resample, Model: control_v11f1e_sd15_tile [a371b31b], Weight: 1, Resize Mode: Crop and Resize, Low Vram: False, Threshold A: 1, Guidance Start: 0, Guidance End: 1, Pixel Perfect: False, Control Mode: ControlNet is more important, Hr Option: Both, Save Detected Map: True", Version: v1.7.0

But the file itself is
image

I'll try using img2img settings or custom size and see if that fixes it.

I resolved my problem (looks like it was different from yours) by unchecking "Save copy of large images as JPG
(if the file size is above the limit, or either width or height are above the limit)".

I confirm this bug : I have 1288x1000px image, but after I run USDU in "scale from image size" mode x2 it's size is 2624x2048px instead of 2576x2000px. But still can get exact x2 size in custom size mode, if I set it manually.
In other words, USDU generates an extra 48 pixels on each side.