Skip to content

Instantly share code, notes, and snippets.

/usr/local/include/boost/network/uri/uri.hpp:310:19: error: expected expression
[&seed](boost::network::uri::uri::value_type v) {
^
/usr/local/include/boost/network/uri/builder.hpp:9:10: fatal error: 'asio/ip/address.hpp' file not found
#include <asio/ip/address.hpp>
^~~~~~~~~~~~~~~~~~~~~
1 error generated.
Install the project...
/usr/local/Cellar/cmake/3.9.3_1/bin/cmake -P cmake_install.cmake
-- Install configuration: ""
-- Up-to-date: /usr/local/include/boost
-- Up-to-date: /usr/local/include/boost/network
-- Installing: /usr/local/include/boost/network/protocol.hpp
-- Installing: /usr/local/include/boost/network/message_fwd.hpp
-- Up-to-date: /usr/local/include/boost/network/traits
-- Installing: /usr/local/include/boost/network/traits/istringstream.hpp
-- Installing: /usr/local/include/boost/network/traits/vector.hpp
Install the project...
/usr/local/Cellar/cmake/3.9.3_1/bin/cmake -P cmake_install.cmake
-- Install configuration: ""
-- Up-to-date: /usr/local/include/boost
-- Installing: /usr/local/include/boost/network
-- Installing: /usr/local/include/boost/network/protocol.hpp
-- Installing: /usr/local/include/boost/network/message_fwd.hpp
-- Installing: /usr/local/include/boost/network/traits
-- Installing: /usr/local/include/boost/network/traits/istringstream.hpp
-- Installing: /usr/local/include/boost/network/traits/vector.hpp
@zealinux
zealinux / gist:915c1864993bb293c64eb7b4a362ef3d
Created September 26, 2017 03:37
mac make caffe in gpu erros (无解)
/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vBasicOps.h(377): error: argument of type "vUInt16" is incompatible with parameter of type "__m128i"
/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vBasicOps.h(377): error: argument of type "vUInt16" is incompatible with parameter of type "__m128i"
/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vBasicOps.h(377): error: return value type does not match the function type
/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vBasicOps.h(402): error: argument of type "vSInt16" is incompatible with parameter of type "__m128i"
/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/vBasicOps.h(402): error: argument of type "vSInt16" is incompatible with parameter of type "__m128i"
init FaceVerificationCore at current thread Version: FaceVerification_v1.0.0_20170628
FaceVerification_v1.0.0_20170628
F0921 11:05:21.812355 30833 syncedmem.hpp:39] Check failed: error == cudaSuccess (29 vs. 0) driver shutting down
*** Check failure stack trace: ***
@ 0x7f4d26e2c4a0 google::LogMessage::Fail()
@ 0x7f4d26e2c3fc google::LogMessage::SendToLog()
@ 0x7f4d26e2bd80 google::LogMessage::Flush()
@ 0x7f4d26e2ee21 google::LogMessageFatal::~LogMessageFatal()
@ 0x7f4d26be564b caffe::SyncedMemory::~SyncedMemory()
@ 0x7f4d26c82c12 boost::detail::sp_counted_impl_p<>::dispose()
@zealinux
zealinux / no-blas-in-caffe.log 
Created September 20, 2017 22:26
编译出错
[100%] Linking CXX executable FaceVerificationDemo
libFaceVerification.so: undefined reference to `cblas_sgemv(CBLAS_ORDER, CBLAS_TRANSPOSE, int, int, float, float const*, int, float const*, int, float, float*, int)'
libFaceVerification.so: undefined reference to `cblas_sgemm(CBLAS_ORDER, CBLAS_TRANSPOSE, CBLAS_TRANSPOSE, int, int, int, float, float const*, int, float const*, int, float, float*, int)'
collect2: error: ld returned 1 exit status
CMakeFiles/FaceVerificationDemo.dir/build.make:133: recipe for target 'FaceVerificationDemo' failed
make[2]: *** [FaceVerificationDemo] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/FaceVerificationDemo.dir/all' failed
make[1]: *** [CMakeFiles/FaceVerificationDemo.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
curl -X POST \
http://52.80.80.183:8888/faceCompare \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-d '{
"image1": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxITEhUSEhIVFhUXEhUVEBUQFQ8PDxUQFRUWFhUVFRUYHSggGBolGxUVITEhJSkrLi4uFx8zODMtNygtLisBCgoKDg0OFxAQFy0dHR0tLS0tKy0tLS0rLS0tLS0tLS0rLS0tKzctLS0tLS0tLSsrLS0tKystKy0tKy0rLS0rN//AABEIAQwAvAMBIgACEQEDEQH/xAAcAAABBQEBAQAAAAAAAAAAAAAEAAIDBQYHAQj/xAA9EAABAgQEAwUGAwgBBQAAAAABAAIDBBEhBRIxQQZRcSJhgZGhBxMyscHRI0LwFDNSYnKC4fEVFiRDU8L/xAAZAQADAQEBAAAAAAAAAAAAAAABAgMEAAX/xAAgEQEBAAIDAQADAQEAAAAAAAAAAQIRAyExEhNBUWEi/9oADAMBAAIRAxEAPwCCCjoIVkME7lI3CSpTJooWEETDapW4e4KRsq4J9p01oUrWpCC7knUIRAnEAVOm6z2JzmZ1/hboNie9GY1O5RlGps3x38AsvMRq6abd55p8Y5V4/Pn4RqeWw71S/s9AC65N6fdWMRozEm5/Me/YDuCYGfmdqdB9AquAvh+viSmsZui3s1J8e7+Ud6gea/YfJLRiaXmMt/VW0HEajLlJ3ygU8XHZZ+hrfy5KxloxDaaDkNXHlXklptIp+IS6tGtobBvrc3U4jOyVPjsR1Gn0Q07DdQEjTYXUMtMFoy7H4Tv0XQLDI8Yi+3y6KL3i8jCh7ioAdkRSRRv5q14YnxDjBr/3b+y/cUNq+CqGOXmhtsbIWb6F3XA45LSxxqWWPeNneIA9VaELCcJYnVsOJXQCHE72E9g9WkkdFvGl
@zealinux
zealinux / core-dump.log
Created September 20, 2017 01:33
error for multi-threads in caffe
2017-09-17 18:46:01.068 INFO 8 --- [nio-8080-exec-1] com.kiwi.verification.Manager : verify, cost 452 ms
E0917 18:46:01.694819 30 Utils.cpp:30] ----face alignments(ms):0.001906
E0917 18:46:01.695945 30 Utils.cpp:30] ----face normalization(ms):0.924242
E0917 18:46:01.696065 30 Utils.cpp:30] --face1 detection/alignment/normalization(ms):43.9415
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f8c6542c8f7, pid=8, tid=0x00007f8c66153700
#
# JRE version: OpenJDK Runtime Environment (8.0_131-b11) (build 1.8.0_131-8u131-b11-0ubuntu1.16.04.2-b11)
2017-09-19 10:01:34.526 INFO 156 --- [nio-8080-exec-3] com.kiwi.verification.Manager : load model,cost 474 ms,load flag is -1311207808,current thread is http-nio-8080-exec-3
E0919 10:01:34.538735 198 Utils.cpp:36] ----face normalization(ms):0.504318
E0919 10:01:34.538795 198 Utils.cpp:36] --face1 detection/alignment/normalization(ms):11.4444
E0919 10:01:34.549595 198 Utils.cpp:36] ----face normalization(ms):0.509458
E0919 10:01:34.549649 198 Utils.cpp:36] --face2 detection/alignment/normalization(ms):10.8282
E0919 10:01:34.549991 198 Utils.cpp:36] ----init cnn feature(ms):0.308716
E0919 10:01:34.797881 198 Utils.cpp:36] ----test cnn feature(ms):247.855
E0919 10:01:34.797961 198 Utils.cpp:36] ----get result from cnn feature(ms):0.023087
E0919 10:01:34.797987 198 Utils.cpp:36] --generate cnn feature(ms):248.313
E0919 10:01:34.798049 198 Utils.cpp:234] Similarty is: 1
# 先调用一次接口,然后多线程跑
F0919 04:01:16.115725 65 blob.cpp:24] Check failed: shape.size() <= kMaxBlobAxes (18446744073709551488 vs. 32)
*** Check failure stack trace: ***
@ 0x7fb6b97f05cd google::LogMessage::Fail()
@ 0x7fb6b97f2433 google::LogMessage::SendToLog()
@ 0x7fb6b97f015b google::LogMessage::Flush()
@ 0x7fb6b97f2e1e google::LogMessageFatal::~LogMessageFatal()
@ 0x7fb6b9d2d01f caffe::Blob<>::Reshape()
@ 0x7fb6b9e26b99 caffe::BatchNormLayer<>::Reshape()