发布

  • install, nodes, ui: restore ad-hoc upscaling (#3800)

    frostbyte_neo 发布于 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.pth model to installer @lstein
    • add RealESRGAN_x2plus.pth to realesrgan node
    • rename RealESRGAN to ESRGAN in nodes
    • make scale_factor optional in img_scale node

    feat(ui): restore ad-hoc
    upscaling

    • remove face restoration entirely
    • add dropdown for ESRGAN model select
    • add ad-hoc upscaling graph and workflow
    下载附件