TianZerL / Anime4KCPP

A high performance anime upscaler
GNU General Public License v3.0
1.82k stars 139 forks source link

error: (-215:Assertion failed) mv[i].size == mv[0].size && mv[i].depth() == depth in function 'cv::merge' #83

Closed seiya-git closed 1 year ago

seiya-git commented 3 years ago

Some images with preserving alpha cannot be resized if zoom factor is double

command:

Anime4KCPP_CLI --CNNMode --HDN --HDNLevel 1 --zoomFactor 1.75 --alpha --GPUMode --GPGPUModel cuda -i "test.png"

error: OpenCV(4.5.0) C:\build\master_winpack-build-win64-vc15\opencv\modules\core\src\merge.dispatch.cpp:129: error: (-215:Assertion failed) mv[i].size == mv[0].size && mv[i].depth() == depth in function 'cv::merge'

Test image: test.png

TianZerL commented 3 years ago

Resolved in master branch