Unity and tensorflowsharp integration issue
mage-sh opened this issue · comments
I am developing an AR application using unity.it should detect objects and display model on it.
I trained a tensorflow model in google colab. For using the model with unity, i am using tensorflowsharp unity plugin.
- OS: windows 10
- TFVersion 1.15.0 for training the model
-unityversion: 2019.2.17f1
When i try to run the application in unity, it says,
tensorFlow.TFException: NodeDef mentions attr 'explicit_paddings' not in Op<name=Conv2D; signature=input:T, filter:T -> output:T; attr=T:type,allowed=[DT_HALF, DT_BFLOAT16, DT_FLOAT, DT_DOUBLE]; 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"]; attr=dilations:list(int),default=[1, 1, 1, 1]>; NodeDef: {{node conv1/convolution}} = Conv2D[T=DT_FLOAT, data_format="NHWC", dilations=[1, 1, 1, 1], explicit_paddings=[], padding="SAME", strides=[1, 1, 1, 1], use_cudnn_on_gpu=true](conv1_input, conv1/kernel/read).
(Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.).
I googled various solutions, and i think it might be a version compatibility issue with tensorflow used for training the model(1.15.0) and tensorflowsharp plugin . However, i couldnt find the tensorflow version being currently used in the latest tensorflow plugin.