- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
using tensorflow 1.6.0
keras 2.2.4
ncsdk 1
The model is from keras, and it is MobileNet, which is called using keras.application. (ps. I didn't make any changes to the model.)
I converted the model into a protobuf file and tried to covert it into graph using mvNCCompile, getting this error.
Is there any idea why this error happen?
Is it caused by the version of tensorflow? if so, which version is the best one for compiling to graph?
error:
InvalidArgumentError (see above for traceback): NodeDef mentions attr 'dilations' not in Op output:T; attr=T:type,allowed=[DT_HALF, DT_FLOAT];
attr=strides:list(int); attr=use_cudnn_on_gpu:bool,default=true; attr=padding:string,allowed=["SAME", "VALID"];
attr=data_format:string,default="NHWC",allowed=["NHWC", "NCHW"]>;
NodeDef: conv1/convolution = Conv2D[T=DT_FLOAT, data_format="NHWC", dilations=[1, 1, 1, 1], padding="VALID",
strides=[1, 2, 2, 1], use_cudnn_on_gpu=true, _device="/job:localhost/replica:0/task:0/device:CPU:0"]
(conv1_pad/Pad, conv1/kernel).
(Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.).
[[Node: conv1/convolution = Conv2D[T=DT_FLOAT, data_format="NHWC",
dilations=[1, 1, 1, 1], padding="VALID", strides=[1, 2, 2, 1], use_cudnn_on_gpu=true,
_device="/job:localhost/replica:0/task:0/device:CPU:0"](conv1_pad/Pad, conv1/kernel)]]
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @kyle
We have seen issues in the past when converting Keras models due to unsupported layers but this error looks different. Could you provide me a link of the model you are trying to convert as well as the commands used?
Also, which version of the ncsdk are you using?
Regards,
Jesus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Jesus_at_Intel
Thank you for replying!! This is my model and also the code I generate it. https://drive.google.com/drive/folders/1ubF1ODT124XAPVLq1tNfTsNlHzpVd5zg?usp=sharing
I am using ncsdk 1
Best,
Kyle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @kyle
I apologize for the delay in my response. I was not able to convert your model using the NCSDK. Have you tried to convert the Keras model using the OpenVINO toolkit?
Regards,
Jesus
![](/skins/images/B7BA37F9CE4B52FF7CAE1FB0388839C8/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page