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 764 forks source link

How to convert the output_mat to cv::Mat or android bitmap? #281

Open lishiyuwhu opened 4 years ago

lishiyuwhu commented 4 years ago

I'm using tnn to bulid a styletransfer demo. But I donnot how to convert the output_mat to a image. Is there a func like to_android_bitmap in ncnn? or any tnn-gan demo project which I can learn from it?

BravoLu commented 3 years ago

I have the same problem.

fire717 commented 3 years ago

可以output_mat提取data转数组 然后转cvmat