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

can't use img2img and highres fix

Open VictorJulianiR opened this issue 2 years ago • 3 comments

Describe the bug If I try to use high-res fix with any new sampler, or, i try to use igm2igm with an image that's not exactly 512x512 (no matter the sampler), I get an error on SwinIR_4x

dev\stable-diffusion-webui\modules\images.py", line 220, in resize assert len(upscalers) > 0, f"could not find upscaler named {opts.upscaler_for_img2img}" AssertionError: could not find upscaler named SwinIR 4x

I have this upscaler in the following path "stable-diffusion-webui\models\SwinIR\SwinIR_4x.pth"

To Reproduce Generate any picture with high-res fix using the new samplers (adapative, karras) or Try img2img with any sampler and any picture that's not 512x512

Expected behavior No erro should occur.

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser Opera
  • Commit hash: f7c787eb7c295c27439f4fbdf78c26b8389560be Fetching updates for K-diffusion... Checking out commint for K-diffusion with hash: f4e99857772fc3a126ba886aadf795a332774878... Installing requirements for Web UI

VictorJulianiR avatar Oct 07 '22 20:10 VictorJulianiR

I am having a similar problem. However, my img2img upscaling seems to be working normally. Describe the bug If I enable Highres.fix and change the resolution to anything other than 512x512, I get the following error:

File "C:\Stable Diffusion\stable-diffusion-webui\modules\images.py", line 220, in resize
    assert len(upscalers) > 0, f"could not find upscaler named {opts.upscaler_for_img2img}"
AssertionError: could not find upscaler named

The Highres.fix option was working correctly yesterday. I tested some images I made yesterday thru the PNG info tab, and I could not reproduce those images without running into the error To Reproduce Run txt2img with the Highres.fix option enabled Expected behavior no errors

Desktop (please complete the following information):

OS: Windows 11 Browser Chrome Commit hash: 432782163ae53e605470bcefc9a6f796c4556912

MrHerty avatar Oct 08 '22 20:10 MrHerty

ok it seems I had a null option chosen in the settings>upscaling>upscaler for img2img dropdown. I chose "None" and it works properly. I also tried some other upscalers and it seems to have solved the issue.

MrHerty avatar Oct 10 '22 14:10 MrHerty

please close the issue if the problems have been fixed in the updates.

ClashSAN avatar Oct 26 '22 17:10 ClashSAN