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

[Bug]: In Img2img Scale Factor of 1 working different than higher factors producing slow results #15741

Open
3 of 6 tasks
FireFoxUser2222222225 opened this issue May 8, 2024 · 0 comments
Labels
bug-report Report of a bug, yet to be confirmed

Comments

@FireFoxUser2222222225
Copy link

FireFoxUser2222222225 commented May 8, 2024

Checklist

  • The issue exists after disabling all extensions
  • The issue exists on a clean installation of webui
  • The issue is caused by an extension, but I believe it is caused by a bug in the webui
  • The issue exists in the current version of the webui
  • The issue has not been reported before recently
  • The issue has been reported before but has not been fixed yet

What happened?

A scale factor of 1 causes the second phase of the process to be much higher than the steps specified in the img2img, with 9 steps for a 1024x1024 image this is increased to 81 in the second step, 512x512 set for the tile size of ESRGAN, the img2img resolution is set to 1024x1024. After this phase finishes, a third phase emerges with thousands of steps required, requiring multiple minutes for this phase.

Steps to reproduce the problem

  1. Create an image that's 512x512..
  2. Highres upscale it to 1024x1024 with ESRGAN 4x+ Anime6B.
  3. Send to img2image tab.
  4. Select SD Upscale in scripts.
  5. Set model to ESRGAN 4x+ Anime6B.
  6. Set scale factor to 1.
  7. Adjust settings to match VRAM, optimally set image height and width to 1024x1024.
  8. Run the generation.

What should have happened?

The image should be produced with the same amount of steps as any other scale factor.

What browsers do you use to access the UI ?

Mozilla Firefox

Sysinfo

sysinfo-2024-05-08-20-43.json

Console logs

SD upscaling will process a total of 4 images tiled as 2x2 per upscale in a total of 4 batches.
tiled upscale: 100%|█████████████████████████████████████████████████████████████████████| 9/9 [00:31<00:00,  3.55s/it]
tiled upscale: 100%|███████████████████████████████████████████████████████████████████| 81/81 [04:40<00:00,  3.46s/it]
tiled upscale:   1%|| 6/1089 [00:20<1:02:19,  3.45s/it]

Additional information

Changing scale factor to 1.001 provides a temporary fix for this problem.
No response

@FireFoxUser2222222225 FireFoxUser2222222225 added the bug-report Report of a bug, yet to be confirmed label May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Report of a bug, yet to be confirmed
Projects
None yet
Development

No branches or pull requests

1 participant