craftzdog / caffe-ios-sample Goto Github PK
View Code? Open in Web Editor NEWAn example of XCode project using Caffe: a fast open framework for deep learning
License: BSD 2-Clause "Simplified" License
An example of XCode project using Caffe: a fast open framework for deep learning
License: BSD 2-Clause "Simplified" License
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
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?
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.
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?
the Xcode told me :
1 caffe-ios-sample-master/caffe/bin/protoc: No such file or directory
2 Library/Developer/Xcode/DerivedData/CaffeApp-bxiundasswcioecorfljnxviuqcn/Build/Intermediates/CaffeApp.build/Debug-iphonesimulator/CaffeApp.build/DerivedSources/caffe/proto/caffe.pb.h: No such file or directory
Thanks for your project.
I use Xcode 7.1 and meet this error.
Any ideas?
Best!
/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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.