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.25k stars 267 forks source link

Fixed ONNX size req padding #2918

Closed RunDevelopment closed 1 month ago

RunDevelopment commented 1 month ago

size += size % model.size_requirements.multiple_of does not make size a multiple of multiple_of. E.g. for size=3 and multiple_of=4, this will result in a value of 6 for size at the end.

It was also wrong in that it didn't account for the minimum size.