-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
后续是否会支持将 tensorflow pb模型转为ncnn的模型呢? #5
Comments
我也很想要这个转换器 qwq |
TODO |
And Mxnet? |
现在tools目录下的tensorflow,是否已经开始支持tensorflow pb转ncnn? |
@nihui hi, 我编译安装了 tensorflow2ncnn, 但是我尝试解析一个 tf 的 pb 文件时, 提示了这个错误
跟进去看了下, 是函数 |
@Daoctor 我也是报这个问题 我用的是3.4.0的protobuf |
以下repo里的 mnist 和 inception graph 可以正常转换使用了 mnist expert-graph.pb 输入 28x28 灰度图黑底白字 norm_vals[1] = { 1/255.f } inception tensorflow_inception_graph.pb 输入 224x224 RGB图 mean_vals[3] = { 117.f } |
write_graph导出的pb文件用tensorflow2ncnn转换失败,格式解析不对,找不到node里面的input tensor,因为input tensor的类型不是const。是需要用freeze_graph进行固化吗?
|
when compile tensorflow2nccc by qt with protobuf 3.3.0, I encounter the problems as follow: op_def.pb.cc:(.text+0x3884):对‘google::protobuf::internal::WireFormatLite::VerifyUtf8String(char const*, int, google::protobuf::internal::WireFormatLite::Operation, char const*)’未定义的引用 how could I solve them? |
用源码编译出来的tensorflow2ncnn转化了tensorflow_inception_graph.pb,修改源码里带的android demo加载model和param,修改squeezencnn_jni.cpp中为ex.input(0, in);和ex.extract(329, out);测试结果是物体类别识别都是0。请问支持tensorflow转ncnn吗?支持的话,是out设置的不对吗? |
你好, 我按照你这句 “mnist expert-graph.pb 输入 28x28 灰度图黑底白字 norm_vals[1] = { 1/255.f }”,修改了squeezenet.cpp 文件中的这几行,改为如下: |
tensorflow2ncnn 这个工具应该该怎么编译出来? 请问前面的几位大神是怎么编译出来的,能够指导一下,多谢! 我安装了下载了最新的protobuf, 编译可以通过,但是make check failed, 我还是安装了libprotoc 3.5.1, 重新编译上面的tensorflow2ncnn的工具,还是报和上面一样的错误。 求大神们指点迷津啊! |
Hi, 这是不是意味着我需要修改tensorflow的网络模型呢? |
补充一些不支持转换的op |
期待resizebilinear operation支持! |
I found an nice blog about this topic: |
Can you supported BasicLSTMCell op? please. |
https://github.com/hanzy88/tensorflow2ncnn |
Hello, have you already solved this input shape problem? I have met the same problem |
during the conversion i have this error
any solution??? |
针对onnx模型转换的各种问题,推荐使用最新的pnnx工具转换到ncnn pip install pnnx
pnnx model.onnx inputshape=[1,3,224,224] 详细参考文档 |
No description provided.
The text was updated successfully, but these errors were encountered: