-
install, nodes, ui: restore ad-hoc upscaling (#3800)
发布于
2023-07-19 01:00:17 +00:00 I've opted to leave out any additional upscaling parameters like scale
and denoising strength, which, from my review of the ESRGAN code, don't
do much:- scale just resizes the image using CV2 after the AI upscaling, so
that's not particularly useful - denoising strength is only valid for one class of model, which we are
no longer supporting
If there is demand, we can implement output size/scale UI and handle it
by passing the upscaled image to that a resize/scale node.I also understand we previously had some functionality to blend the
upscaled image with the original. If that is desired, we would need to
implement that as a node that we can pass the upscaled image to.Demo:
https://github.com/invoke-ai/InvokeAI/assets/4822129/32eee615-62a1-40ce-a183-87e7d935fbf1
feat(nodes): add RealESRGAN_x2plus.pth, update upscale
nodes- add
RealESRGAN_x2plus.pthmodel to installer @lstein - add
RealESRGAN_x2plus.pthtorealesrgannode - rename
RealESRGANtoESRGANin nodes - make
scale_factoroptional inimg_scalenode
feat(ui): restore ad-hoc
upscaling- remove face restoration entirely
- add dropdown for ESRGAN model select
- add ad-hoc upscaling graph and workflow
下载附件
- scale just resizes the image using CV2 after the AI upscaling, so