wzyforgit
wzyforgit
v3版的目前推荐先转pytorch再用pnnx转ncnn v2版的可以直接走ONNX转过来
> > v3版的目前推荐先转pytorch再用pnnx转ncnn v2版的可以直接走ONNX转过来 > > 想问一下pnnx有没有比较详细的编译教程,或者转换脚本,还有pnnx转ncnn有没有教程。 去bing搜 nihui 知乎 pnnx
if your train framework is Pytorch, please use PNNX to convert your model to ncnn
> Thank you, but it looks like pnnx is not formally included in the tools CMake project yet ? You are wrong, PNNX is the most important tool to convert...
> I mean the pnnx tool under ncnn/tools, after having built ncnn, pnnx is not found under tools, and checked the CMakeLists.txt under tools, pnnx directory is not included. Yes...
> Why CMakeLists.txt does not include pnnx? is pnnx still not a stable? 非常的stable啊,你們哪裏感覺它不stable的? 不加進去估計是因爲編譯需要依賴libtorch,那個東西有點大
> 不是pytorch模型的可以用pnnx吗 明显不行啊,PNNX就是专门针对Pytorch设计的,它的输入只能是Pytorch的torchscript格式
1.其余文件丢了就行,保留带ncnn后缀的即可 2.bin文件大就大呗,一般不会比原始的torchscript文件大 3.这个估计得进代码调试一下
楼主你可以多提点优化pr把它弄快点
另外建议重新用新版NCNN导出一下模型,因为中间有过一次不兼容的算子升级