Skip to content
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

Unity and tensorflowsharp integration issue #477

Open
mage-sh opened this issue Feb 22, 2020 · 0 comments
Open

Unity and tensorflowsharp integration issue #477

mage-sh opened this issue Feb 22, 2020 · 0 comments

Comments

@mage-sh
Copy link

mage-sh commented Feb 22, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant