GithubHelp home page GithubHelp logo

Comments (7)

csharpner avatar csharpner commented on May 18, 2024 9

My model is only 84KB and I have another that's 69KB and I get this error on both of them. Latest version of TensorFlowSharp available in NuGet as of 2019-02-01 and TensorFlow 1.12.0. I've not been able to get TensorFlowSharp to work at all. Is there an alternative way to use a TensorFlow .pb model file from a C# app?

from tensorflowsharp.

khanyuriy avatar khanyuriy commented on May 18, 2024 3

I have the same error, but my model less then 64MB.
How can i be sure, that TensorFlowSharp bindings are compatible with savedmodel file i have got?

from tensorflowsharp.

migueldeicaza avatar migueldeicaza commented on May 18, 2024

Yeah, that seems to be a common problem with Tensorflow and Protobuf. I believe someone suggested a way somewhere to recompile the underlying protocol buffer implementation in libtensorflow with a larger buffer size. I do not recall where I saw that.

This is what stops one of our samples as well, the file is too large.

from tensorflowsharp.

migueldeicaza avatar migueldeicaza commented on May 18, 2024

This is the tensorflow issue, it should be addressed if you upgrade your TensorFlow runtime:

tensorflow/tensorflow#582

from tensorflowsharp.

codingyoutub avatar codingyoutub commented on May 18, 2024

I have the same problem. I made a pb file with a teachable machine, but it seems to be a compatibility problem. I think it's 2.3 version of pb. Did you find a solution?

from tensorflowsharp.

migueldeicaza avatar migueldeicaza commented on May 18, 2024

I recommend you now use TensorFlow.NET which is being actively developed.

from tensorflowsharp.

Nevey avatar Nevey commented on May 18, 2024

I recommend you now use TensorFlow.NET which is being actively developed.

I can't explain why, but it's a pain in the ass getting that library to work in Unity. TensorFlowSharp seems a lot easier to deal with, but I'm also running into the TFException "Invalid GraphDef" issue. You said this has to do with the version of TensorFlow used to create the model? Any tips for me? (I'm running a python project to train data with tf version 2.3.1, then I want to read it in Unity)

from tensorflowsharp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.