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

[Feature Request]: Old high-res fix mode

Open IkariDevGIT opened this issue 2 years ago • 19 comments
trafficstars

Is there an existing issue for this?

  • [X] I have searched the existing issues and checked the recent builds/commits

What would your feature do ?

add a option to make use of the old high-res fix.

Proposed workflow

  1. Go to settings
  2. Press "old high-res fix"
  3. use old high-res fix in the txt2img tab

Additional information

No response

IkariDevGIT avatar Jan 03 '23 16:01 IkariDevGIT

or you could add the old selection menu, for the higher fix + the new upscaler thingie(with the first pass size and so on)

IkariDevGIT avatar Jan 03 '23 17:01 IkariDevGIT

Not opposed to this, but what exactly are you trying to do? Old hires. fix made it very easy to commit errors, and it had only a few upsides - like repeating canvases from selecting a high width & height.

There seem to be some differences in how the scaler works, maybe even the first generation pass too, which also are influencing things.

EdHerdman avatar Jan 03 '23 17:01 EdHerdman

2023-01-04 03_01_45- 52% ETA_ 53s  Stable Diffusion — Mozilla Firefox-Copy Yes this is like forcing to use latent upscaler,and even when using other upscalers,it takes a lot of time to produce results and most of the time UI gets stuck when you press cancel and only way to get it back to working is to reset the UI and you lose your prompt,settings etc. Old behavior was much better and giving faster results. (at least defaults needs to be changed)

FlowDownTheRiver avatar Jan 04 '23 00:01 FlowDownTheRiver

The latent scaler is how it used to work too - the problem is that there seems to be some other things changed as well. There's a bunch of issues and some of them are being fixed up, like the hanging problem - I had that earlier, but it seems to be fixed. Try out the new updates, you might like them.

EdHerdman avatar Jan 04 '23 00:01 EdHerdman

The latent scaler is how it used to work too - the problem is that there seems to be some other things changed as well. There's a bunch of issues and some of them are being fixed up, like the hanging problem - I had that earlier, but it seems to be fixed. Try out the new updates, you might like them.

I still have the hanging problem(it is annoying getting stuck when you try to cancel) and using the latest commit. I am not sure what has been changed with the high res fix or is it just the defaults was different? So we are having some problem...

FlowDownTheRiver avatar Jan 04 '23 00:01 FlowDownTheRiver

Old images aren't the same with this new highres when using the same settings, that's already a reason to get the option. With my tests the gens look considerably different and seem to take longer.

trihardseven avatar Jan 04 '23 01:01 trihardseven

Also anyone knows which version I should revert my installation to get the old hires?

trihardseven avatar Jan 04 '23 01:01 trihardseven

One major benefit to the old high res fix was I could use it to generate a 768x768, then upscale to a much larger resolution AND a different aspect ratio while preserving the subject.

One issue with generating images larger than 768x768 at a 2:3 or 3:2 aspect ratio for instance is long necks, multiple heads or stacked torsos etc... Now most of the images I generate have those odd artifacts that just get upscaled into the final image.

joelmeaders avatar Jan 04 '23 02:01 joelmeaders

Repeating myself again, but: If you are having long generations or multiples, check that you are setting the width * height as if it's the firstpass value from the old hires. fix. Because that's what it is now. Use the multiplier to get your final canvas value.

EdHerdman avatar Jan 04 '23 07:01 EdHerdman

Repeating myself again, but: If you are having long generations or multiples, check that you are setting the width * height as if it's the firstpass value from the old hires. fix. Because that's what it is now. Use the multiplier to get your final canvas value.

Either you're wrong or PNG info/Image Browser isn't working properly with the update, since sending the images straight from them results in different images in the newest commit.

trihardseven avatar Jan 04 '23 09:01 trihardseven

first pass res is the main res now.. u set upscaler multiply to set the final resolution when using new highres fix. it fixes the hassle to calculate aspect ratio or crop ins.. but still there is a lot of bugs now .. it can not find the upscaler sometimes.. u have to set img2img upscaler from settings then... progress bar is broken

x-legion avatar Jan 04 '23 09:01 x-legion

Also anyone knows which version I should revert my installation to get the old hires?

This commit introduces the 'hires fix rework' changes: https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/ef27a18b6b7cb1a8eebdc9b2e88d25baf2c2414d

Here is a discussion about a defects in that commit: https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/ef27a18b6b7cb1a8eebdc9b2e88d25baf2c2414d#comments

if you want to revert to the last commit before the 'highres fxi rework', this is it: https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/fd4461d44c7256d56889f5b5ed9fb660a859172f

also, I too find the image coherence and speed to be drastically impaired by the new hires fix rework, when it does manage not to hang my a1111 instance.

spinferno avatar Jan 04 '23 11:01 spinferno

Repeating myself again, but: If you are having long generations or multiples, check that you are setting the width * height as if it's the firstpass value from the old hires. fix. Because that's what it is now. Use the multiplier to get your final canvas value.

Either you're wrong or PNG info/Image Browser isn't working properly with the update, since sending the images straight from them results in different images in the newest commit.

I didn't say you're guaranteed to get identical results. There seem to be some other changes to basic image generation and the scaler too, but that's not anything to do with changing how you select the first pass and canvas values.

@spinferno: I'm actually getting better images sometimes. Slowness could be bugs, could also be setting the width * height too high as that's first pass values now.

EdHerdman avatar Jan 04 '23 13:01 EdHerdman

@AUTOMATIC1111 , please change it to what it looked like before, I don't wanna do math every time I wanna change my res

IkariDevGIT avatar Jan 04 '23 16:01 IkariDevGIT

Old hires. fix made it very easy to commit errors

Old hires. fix was incredibly easy to use without trouble. You set the resolution you wanted, ticked the box, and it just worked. The floating buildings, double-torsos and heads, and so on mostly went away. With the new version, it seems like it's just upscaling an incoherent image instead of making it more coherent.

anonymous721 avatar Jan 04 '23 17:01 anonymous721

the old style of the ui(instead of this new "scale by thing"), not how the scaling works

IkariDevGIT avatar Jan 04 '23 18:01 IkariDevGIT

the old style of the ui(instead of this new "scale by thing"), not how the scaling works

https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/ef27a18b6b7cb1a8eebdc9b2e88d25baf2c2414d#commitcomment-95019921 check this. Maybe this would help.. just type the 1st pass value from high res fix in main resolution section.. select the upscaler you like. Set upscale by how many times. For upscale by 2 I would recommend .45 denoising strength. image like this image would generate this quality image 01093-1217261210-molly millions, closeup portrait of a young beautiful cyberpunk woman, mirror eye implants, black hair in a rough bun, sunset, n

x-legion avatar Jan 04 '23 19:01 x-legion

https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/81490780949fffed77493b4bd741e96ec737fe27

giga-bytes-dev avatar Jan 04 '23 20:01 giga-bytes-dev

Repeating myself again, but: If you are having long generations or multiples, check that you are setting the width * height as if it's the firstpass value from the old hires. fix. Because that's what it is now. Use the multiplier to get your final canvas value.

Either you're wrong or PNG info/Image Browser isn't working properly with the update, since sending the images straight from them results in different images in the newest commit.

I didn't say you're guaranteed to get identical results. There seem to be some other changes to basic image generation and the scaler too, but that's not anything to do with changing how you select the first pass and canvas values.

@spinferno: I'm actually getting better images sometimes. Slowness could be bugs, could also be setting the width * height too high as that's first pass values now.

hey I really appreciate the effort you are putting in to help us in this issue!! if I wanted to replicate the old hires fix, what upscaler model do i select? my current results are super grainy

spinferno avatar Jan 05 '23 03:01 spinferno

d4fd2418efb0986a8226add0b800fb5c73ffb58c

missionfloyd avatar May 20 '23 07:05 missionfloyd