chaiNNer-org / chaiNNer

A node-based image processing GUI aimed at making chaining image processing tasks easy and customizable. Born as an AI upscaling application, chaiNNer has grown into an extremely flexible and powerful programmatic image processing application.
https://chaiNNer.app
GNU General Public License v3.0
4.44k stars 278 forks source link

PyTorch: RealESRGAN_x2plus error on upscale #985

Closed 0x4E69676874466F78 closed 1 year ago

0x4E69676874466F78 commented 1 year ago

https://github.com/xinntao/Real-ESRGAN/releases/download/v0.2.1/RealESRGAN_x2plus.pth

An error occurred in a PyTorch Upscale Image node:

pixel_unshuffle expects height to be divisible by downscale_factor, but input.size(-2)=337 is not divisible by 2

Input values (partial):
• Image: RGB image 543x337
• Number of Tiles: Auto
joeyballentine commented 1 year ago

This is a known issue. Since RealESRGAN x2 uses pixel unshuffle, we need to pad the image to be even dimensions.

0x4E69676874466F78 commented 1 year ago

I understand, I added so that it would not be forgotten.

joeyballentine commented 1 year ago

Thank you