Giter VIP home page Giter VIP logo

Comments (6)

czy2014hust avatar czy2014hust commented on May 19, 2024

Could you upgrade protobuf? Probably protobuf version result in this error, you can try protobuf [email protected].

from mnn.

li-qing avatar li-qing commented on May 19, 2024

it's not a protobuf problem. we include a copy of protobuf in 3rd_party folder, and which is used in generating headers from protos.

run schema/generate.sh before building converter, and make sure no error occurs.

from mnn.

whatlas avatar whatlas commented on May 19, 2024

it's not a protobuf problem. we include a copy of protobuf in 3rd_party folder, and which is used in generating headers from protos.

run schema/generate.sh before building converter, and make sure no error occurs.

I run this script and got these errors

./schema/generate.sh: line 9: pushd: ../3rd_party/flatbuffers: No such file or directory
./schema/generate.sh: line 17: popd: directory stack empty
*** cleaning up ***
*** generating fbs under default ***
find: ‘../default/*.fbs’: No such file or directory
../../3rd_party/flatbuffers/tmp/flatc: error: missing input files

but I can still compile MNN root folder without any problem, this issue only occurs in converter folder

from mnn.

li-qing avatar li-qing commented on May 19, 2024

I see ...

please follow install.md's guide -- "cd schema && ./generate.sh && cd ..",

not "./schema/generate.sh", so that path error will be fixed.

consider to make the shell compatible later.

from mnn.

whatlas avatar whatlas commented on May 19, 2024

I see ...

please follow install.md's guide -- "cd schema && ./generate.sh && cd ..",

not "./schema/generate.sh", so that path error will be fixed.

consider to make the shell compatible later.

thks, now cmake in root folder makes no misktake ,BUT the converter folder cannot be compiled yet, just as i wrote in this issue, MNN/tools/converter/source/tensorflow/SplitTf.cpp:106:53: error: no match for ‘operator[]’ (operand types are ‘const google::protobuf::RepeatedField<int>’ and ‘int’), it looks definitely like a protobuf problem

from mnn.

whatlas avatar whatlas commented on May 19, 2024

solved this problem by changing file tools\converter\source\tensorflow\SplitTf.cpp line 106

splitvParam->axis = value.tensor().int_val()[0];

to

splitvParam->axis = value.tensor().int_val(0);

now everything works.

from mnn.

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.