Tencent / TNN

TNN: developed by Tencent Youtu Lab and Guangying Lab, a uniform deep learning inference framework for mobile、desktop and server. TNN is distinguished by several outstanding features, including its cross-platform capability, high performance, model compression and code pruning. Based on ncnn and Rapidnet, TNN further strengthens the support and performance optimization for mobile devices, and also draws on the advantages of good extensibility and high performance from existed open source efforts. TNN has been deployed in multiple Apps from Tencent, such as Mobile QQ, Weishi, Pitu, etc. Contributions are welcome to work in collaborative with us and make TNN a better framework.
Other
4.37k stars 765 forks source link

ocr android demo使用gpu会crash #1800

Open xspring14 opened 1 year ago

xspring14 commented 1 year ago

1. 环境(environment)

xspring14 commented 1 year ago

自己调试了下,发现是执行到输入预处理ProcessSDKInputMat这行发生了crash,注释掉后能顺利运行,但是结果为空。 看了下,应该是继承的ProcessSDKInputMat方法里面有问题。

xspring14 commented 1 year ago

ocr demo 中的textbox_detector代码有点垃圾,这里面报错是因为resize时检查了srt和dst的device_type,两者不一致