invoke-ai / InvokeAI

InvokeAI is a leading creative engine for Stable Diffusion models, empowering professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry leading WebUI, supports terminal use through a CLI, and serves as the foundation for multiple commercial products.
https://invoke-ai.github.io/InvokeAI/
Apache License 2.0
22.78k stars 2.35k forks source link

Embiggen works on M1 but not well #586

Closed heurihermilab closed 1 year ago

heurihermilab commented 1 year ago

MacBook Pro 14" 16MB, M1 Pro CPU

Embiggen is working on the M1 but not well. Doing an x4 on a 1344 x 768 input file took 22,618 sec (6 1/4+ hrs), and one of the 25 tiles was fully black.

I have an installation of Real-ESRGAN elsewhere on the same machine that does the same in 4.5 seconds.

I'm happy to do further testing to help resolve this.

heurihermilab commented 1 year ago

Supplemental —

banana sushi -s30 -W512 -H512 -n1 -save_orig -embiggen 4 0.75 0.1 -I outputs/banana-sushi.png executed in 1781 seconds (~30 min). 000002 1498778674

travco commented 1 year ago

Embiggen doesn't function like ESRGAN and it doesn't do the same, it's putting the image back though Img2Img in sections. Taking much longer than ESRGAN isn't just expected, it's basically guaranteed. Also much like Img2Img, you probably want to specify a lower strength -f 0.4 (default is all the way up at 0.75) so it preserves more of the original, that might also help you with the black square.