TianZerL / Anime4KCPP

A high performance anime upscaler
MIT License
1.76k stars 138 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 8 months ago

seiya-git commented 2 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 2 years ago

Resolved in master branch