Giter Club home page Giter Club logo

caffe-ios-sample's People

Contributors

craftzdog avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

caffe-ios-sample's Issues

No type "Moments" in namespace "cv"

Facing problems with building your project.
After adding opencv2.framework(made from opencv 3.0.0) into project and running build it interrupts with errors like:
"~/projects/opencv2.framework/Headers/imgproc/types_c.h:405:21: No type named 'Moments' in namespace 'cv'; did you mean 'CvMoments'?", but replacing it to 'CvMoments' didn't helped.

also I get
Semantic Issues like "~/projects/opencv2.framework/Headers/imgproc/imgproc_c.h:994:42: Redefinition of default argument" in imgproc_c.h's
CVAPI(void) cvLine( CvArr* img, CvPoint pt1, CvPoint pt2,
CvScalar color, int thickness CV_DEFAULT(1),
int line_type CV_DEFAULT(8), int shift CV_DEFAULT(0) );

I'm a bit new to iOS programming so I couldn't find the solution. Maybe I'm using wrong version of opencv? Which have you used? Or, maybe, you know which caused such errors.
Would appreciate any help. Thanks.

BTW. For some reason "git clone --recursive [email protected]:noradaiko/caffe-ios-sample.git" - haven't worked. So i had to separately clone your repo, aleph7's caffe and xcconfigs and revert them to needed versions

Out of memory issue

When I use the given model with the given image, the app runs out of memory on both iPhone 5s and 6. Did you encounter this, too?

cannot not find "opencv2/opencv.hpp"

After I added opencv2 (2.4.11) framework. I fail to build the project.
The error message is "Lexical or Preprocessor Issue Group: caffe-ios-sample/CaffeApp/Classifier.h:11:9: 'opencv2/opencv.hpp' file not found"

Is there anything I should do before building project? Thanks.

Exporting project

Hello,

Thank you for your project who helped me a lot. Now that my model works properly i'm trying to export it into another app, unfortunatly, i'm facing some problems. All the files a compiled but the app cannot be launch. The following issues are thrown by xcode:

ld: warning: ignoring file /Users/actimage/Documents/Actelin/Actelin/caffe/lib/libprotoc.a, file was built for archive which is not the architecture being linked (armv7): /Users/actimage/Documents/Actelin/Actelin/caffe/lib/libprotoc.a
Undefined symbols for architecture armv7:
  "_cblas_dcopy", referenced from:
      void caffe::caffe_cpu_scale<double>(int, double, double const*, double*) in math_functions.o
  "_cblas_scopy", referenced from:
      void caffe::caffe_cpu_scale<float>(int, float, float const*, float*) in math_functions.o
  "_cblas_sasum", referenced from:
      float caffe::caffe_cpu_asum<float>(int, float const*) in math_functions.o
  "_cblas_dgemm", referenced from:
      void caffe::caffe_cpu_gemm<double>(CBLAS_TRANSPOSE, CBLAS_TRANSPOSE, int, int, int, double, double const*, double const*, double, double*) in math_functions.o
  "_cblas_sgemv", referenced from:
      void caffe::caffe_cpu_gemv<float>(CBLAS_TRANSPOSE, int, int, float, float const*, float const*, float, float*) in math_functions.o
  "_cblas_sscal", referenced from:
      void caffe::caffe_scal<float>(int, float, float*) in math_functions.o
      void caffe::caffe_cpu_scale<float>(int, float, float const*, float*) in math_functions.o
      cblas_saxpby(int, float, float const*, int, float, float*, int) in math_functions.o
  "_cblas_daxpy", referenced from:
      void caffe::caffe_axpy<double>(int, double, double const*, double*) in math_functions.o
      cblas_daxpby(int, double, double const*, int, double, double*, int) in math_functions.o
  "_cblas_ddot", referenced from:
      double caffe::caffe_cpu_strided_dot<double>(int, double const*, int, double const*, int) in math_functions.o
  "_cblas_saxpy", referenced from:
      void caffe::caffe_axpy<float>(int, float, float const*, float*) in math_functions.o
      cblas_saxpby(int, float, float const*, int, float, float*, int) in math_functions.o
  "_cblas_dgemv", referenced from:
      void caffe::caffe_cpu_gemv<double>(CBLAS_TRANSPOSE, int, int, double, double const*, double const*, double, double*) in math_functions.o
  "_cblas_dscal", referenced from:
      void caffe::caffe_scal<double>(int, double, double*) in math_functions.o
      void caffe::caffe_cpu_scale<double>(int, double, double const*, double*) in math_functions.o
      cblas_daxpby(int, double, double const*, int, double, double*, int) in math_functions.o
  "_cblas_sgemm", referenced from:
      void caffe::caffe_cpu_gemm<float>(CBLAS_TRANSPOSE, CBLAS_TRANSPOSE, int, int, int, float, float const*, float const*, float, float*) in math_functions.o
  "_cblas_dasum", referenced from:
      double caffe::caffe_cpu_asum<double>(int, double const*) in math_functions.o
  "_cblas_sdot", referenced from:
      float caffe::caffe_cpu_strided_dot<float>(int, float const*, int, float const*, int) in math_functions.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Any idea?

https://github.com/aleph7/caffe links are not cloned properly

screen shot 2015-07-20 at 4 14 20 pm

/bin/sh: line 3: /Users/Macpro_ios_v2/caffe-ios-sample/caffe/bin/protoc: No such file or directory
cp: /Users/Macpro_ios_v2/Library/Developer/Xcode/DerivedData/CaffeApp-bbuyrkgpjrhlgeeafrxxurevjtxq/Build/Intermediates/CaffeApp.build/Debug-iphonesimulator/CaffeApp.build/DerivedSources/caffe/proto/caffe.pb.h: No such file or directory

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.