Giter Site home page Giter Site logo

读Resnet.prototxt错误 about caffe-mobile HOT 6 CLOSED

solrex avatar solrex commented on May 24, 2024
读Resnet.prototxt错误

from caffe-mobile.

Comments (6)

xueyedamo avatar xueyedamo commented on May 24, 2024 2

build-protobuf-3.1.0.sh脚本里面function build-Android 里面缺少了个cd ..造成cmake路径不对,还有这个软连接不对,文件夹名字错了,正确的是ln -sf ../../Linux-protobuf/bin/protoc protoc

from caffe-mobile.

solrex avatar solrex commented on May 24, 2024

@ChangyeGuo 把 prototxt 文件作为附件上传上来吧,我试着看下。

from caffe-mobile.

dimens66 avatar dimens66 commented on May 24, 2024

@solrex 附件没法上传,我分享到了百度网盘了。麻烦看一下。
链接:http://pan.baidu.com/s/1c2zRuy0 密码:mhd0

from caffe-mobile.

solrex avatar solrex commented on May 24, 2024

@ChangyeGuo 抱歉,我当初只关注了 layer_factory.cpp 里列出的 layer,遗漏了一些 resnet 依赖的 layer。我已补充这些 layer 326fe37 ,自测是没问题了,麻烦更新代码再试一下。

from caffe-mobile.

dimens66 avatar dimens66 commented on May 24, 2024

@solrex resnet已经能读取,谢谢。
现更新最新的repo后,编译时发生错误。信息如下:
make[1]: Leaving directory `/home/guocy/caffe-mobile-511/third_party/OpenBLAS-0.2.19'
CMake Error at /usr/share/cmake-2.8/Modules/CMakeDetermineSystem.cmake:99 (message):
Could not find toolchain file:
../third_party/android-cmake/android.toolchain.cmake
Call Stack (most recent call first):

CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER
CMake Error: Could not find cmake module file: /home/guocy/caffe-mobile-511/build_armeabi/CMakeFiles/2.8.12.2/CMakeCCompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER
CMake Error: Could not find cmake module file: /home/guocy/caffe-mobile-511/build_armeabi/CMakeFiles/2.8.12.2/CMakeCXXCompiler.cmake
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!

问题分析:初步分析应该是build-protobuf-3.1.0.sh的136行:
ln -sf ../../protobuf-Linux/bin/protoc protoc 没有软链接成功。我把这一句comment,再把/Linux-protobuf/bin/protoc拷贝到android-protobuf文件夹下,然后就可以编译了。
请修复。
BEST LUCK!!!

from caffe-mobile.

solrex avatar solrex commented on May 24, 2024

Fixed in ca1ac2c

from caffe-mobile.

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.