Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output resolution changed when using "scale from image size" #126

Open
gachapengames opened this issue Sep 21, 2023 · 3 comments
Open

Output resolution changed when using "scale from image size" #126

gachapengames opened this issue Sep 21, 2023 · 3 comments

Comments

@gachapengames
Copy link

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.

@Quidam2k
Copy link

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.

@Quidam2k
Copy link

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

@dendenis82
Copy link

dendenis82 commented Jun 22, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants