Open quartollo77 opened 3 months ago
Yes, it does, but nobody from devs wants to fix it. And it's reasonable, ldsr is very slow (100 steps), and quality is not better then stablesr for example. Which works extremely fast with sd2 turbo. Also DAT and HAT upscalers are very good, but they have not diffusion
thanks for the answer, it's true LDSR is very slow but it was very useful and quality in the upscaling for small portions of image like in the faceswap. anyway there will be other solutions for quality upscaling... I will follow yours suggestions...
I'm having the same problem.
LDSR is not working on extras tab, but it works in txt2img tab, which cannot make it usable for any image.
This seems to be very simple fix, as it's just a casting issue. Just replace line 137 of ./extensions-builtin/LDSR/ldsr_model_arch.py
:
logs = self.run(model["model"], im_padded, diffusion_steps, eta)
with:
with devices.autocast():
logs = self.run(model["model"], im_padded, diffusion_steps, eta)
Be sure to keep the correct indenting.
I'm not too familiar with the codebase, nor am I developer on this project, but it works for me in all scenarios. Hopefully someone with more experience will see it and make a proper fix.
This seems to be very simple fix, as it's just a casting issue. Just replace line 137 of
./extensions-builtin/LDSR/ldsr_model_arch.py
:
logs = self.run(model["model"], im_padded, diffusion_steps, eta)
with:
with devices.autocast(): logs = self.run(model["model"], im_padded, diffusion_steps, eta)
Be sure to keep the correct indenting.
I'm not too familiar with the codebase, nor am I developer on this project, but it works for me in all scenarios. Hopefully someone with more experience will see it and make a proper fix.
I tested it. That change made it work in my installation. Thanks you
Checklist
What happened?
there is a problem/error in upscaling with LDSR it crashes and does not upscale
message error is: RuntimeError: mat1 and mat2 must have the same dtype, but got Half and Float
I know I can fix with --no-half but the generation of images becomes very slow
before the webui 1.10 update everything was working fine
Steps to reproduce the problem
1 go to extras menu 2 try to make LDSR upscale
What should have happened?
LDSR upscale it crashes and does not upscale
What browsers do you use to access the UI ?
Mozilla Firefox
Sysinfo
sysinfo-2024-08-04-09-21.json
Console logs
Additional information
No response