stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

Update ui.py show megapixels calc

Open sean1138 opened this issue 1 year ago • 2 comments

just an idea i had and was able to actually make this work in my local UI. I'm not proficient in any programming language though so i don't know about making this same change everywhere else in the code base as appropriate.

if this is even something anyone other than myself would like to see.

Description

  • add calculated megapixels value to hires fix info shown in ui
  • added simple and i think correct multiply and divide code to get the expected megapixel vlaue after a hires "upscale by" setting change
  • doesn't really fix any problem, just something i think would be neat to see

Screenshots/videos:

image

Checklist:

sean1138 avatar Jun 19 '23 16:06 sean1138

I don't think the UI needs to be cluttered by 3 decimal places. the nearest megapixel might be more appropriate if this is to be implemented

zrichz avatar Jun 20 '23 08:06 zrichz

I personally don't think this to be useful at least I cannot think of a use case

w-e-w avatar Jun 20 '23 10:06 w-e-w

Similarly to w-e-w I don't think this is useful.

AUTOMATIC1111 avatar Jul 08 '23 12:07 AUTOMATIC1111