Skip to content

Instantly share code, notes, and snippets.

View alexattia's full-sized avatar
🎯
Focusing

Alexandre Attia alexattia

🎯
Focusing
View GitHub Profile
Building wheels for collected packages: dlib
Running setup.py bdist_wheel for dlib ... error
Complete output from command /Users/alexandreattia/Desktop/Work/workenv/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/private/var/folders/1z/jrqz7zc90b54dh2qwb98jyfw0000gn/T/pip-build-17dcze_0/dlib/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /var/folders/1z/jrqz7zc90b54dh2qwb98jyfw0000gn/T/tmpxlr2990lpip-wheel- --python-tag cp35:
running bdist_wheel
running build
Detected Python architecture: 64bit
Detected platform: darwin
Configuring cmake ...
-- The C compiler identification is AppleClang 8.1.0.8020042
-- The CXX compiler identification is AppleClang 8.1.0.8020042
attia/FaceRecognition (master)$ pip install dlib
Collecting dlib
Using cached dlib-19.4.0.tar.gz
Building wheels for collected packages: dlib
Running setup.py bdist_wheel for dlib ... error
Complete output from command /Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/private/var/folders/1z/jrqz7zc90b54dh2qwb98jyfw0000gn/T/pip-build-ak8d7b7t/dlib/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /var/folders/1z/jrqz7zc90b54dh2qwb98jyfw0000gn/T/tmpmtwr0h82pip-wheel- --python-tag cp35:
running bdist_wheel
running build
Detected Python architecture: 64bit
Detected platform: darwin
/usr/local/Cellar/cmake/3.8.2/share/cmake/Modules/CMakeCInformation.cmake(209): mark_as_advanced(CMAKE_C_FLAGS CMAKE_C_FLAGS_DEBUG CMAKE_C_FLAGS_MINSIZEREL CMAKE_C_FLAGS_RELEASE CMAKE_C_FLAGS_RELWITHDEBINFO )
/usr/local/Cellar/cmake/3.8.2/share/cmake/Modules/CMakeCInformation.cmake(216): set(CMAKE_C_INFORMATION_LOADED 1 )
/usr/local/Cellar/cmake/3.8.2/share/cmake/Modules/CMakeTestCCompiler.cmake(5): if(CMAKE_C_COMPILER_FORCED )
/usr/local/Cellar/cmake/3.8.2/share/cmake/Modules/CMakeTestCCompiler.cmake(12): include(CMakeTestCompilerCommon )
/usr/local/Cellar/cmake/3.8.2/share/cmake/Modules/CMakeTestCompilerCommon.cmake(5): function(PrintTestCompilerStatus LANG MSG )
/usr/local/Cellar/cmake/3.8.2/share/cmake/Modules/CMakeTestCCompiler.cmake(16): unset(CMAKE_C_COMPILER_WORKS CACHE )
/usr/local/Cellar/cmake/3.8.2/share/cmake/Modules/CMakeTestCCompiler.cmake(23): if(NOT CMAKE_C_COMPILER_WORKS )
/usr/local/Cellar/cmake/3.8.2/share/cmake/Modules/CMakeTestCCompiler.cmake(24): PrintTestCompilerStatus(C )
/usr
Running with debug output on.
-- The C compiler identification is AppleClang 8.1.0.8020042
Called from: [3] /opt/local/share/cmake-3.9/Modules/CMakeDetermineCompilerId.cmake
[2] /opt/local/share/cmake-3.9/Modules/CMakeDetermineCCompiler.cmake
[1] /Users/alexandreattia/src/dlib-19.4/CMakeLists.txt
-- The CXX compiler identification is AppleClang 8.1.0.8020042
Called from: [3] /opt/local/share/cmake-3.9/Modules/CMakeDetermineCompilerId.cmake
[2] /opt/local/share/cmake-3.9/Modules/CMakeDetermineCXXCompiler.cmake
[1] /Users/alexandreattia/src/dlib-19.4/CMakeLists.txt
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
Running with expanded trace output on.
/Users/alexandreattia/src/dlib-19.4/CMakeLists.txt(0): PROJECT(Project )
/opt/local/share/cmake-3.9/Modules/CMakeUnixFindMake.cmake(5): find_program(CMAKE_MAKE_PROGRAM NAMES gmake make smake )
/opt/local/share/cmake-3.9/Modules/CMakeUnixFindMake.cmake(6): mark_as_advanced(CMAKE_MAKE_PROGRAM )
/opt/local/share/cmake-3.9/Modules/CMakeUnixFindMake.cmake(9): if(NOT CMAKE_MAKE_PROGRAM AND CMAKE_HOST_APPLE )
/opt/local/share/cmake-3.9/Modules/CMakeDetermineSystem.cmake(35): if(CMAKE_HOST_UNIX )
/opt/local/share/cmake-3.9/Modules/CMakeDetermineSystem.cmake(36): find_program(CMAKE_UNAME uname /bin /usr/bin /usr/local/bin )
/opt/local/share/cmake-3.9/Modules/CMakeDetermineSystem.cmake(37): if(CMAKE_UNAME )
/opt/local/share/cmake-3.9/Modules/CMakeDetermineSystem.cmake(38): if(CMAKE_HOST_SYSTEM_NAME STREQUAL AIX )
/opt/local/share/cmake-3.9/Modules/CMakeDetermineSystem.cmake(44): else()
@alexattia
alexattia / feature_vector_from_cnn.m
Created November 16, 2017 17:31
Image classification using CNN features and linear SVM
function feature_vector = feature_vector_from_cnn(net, names)
feature_vector = [];
for i = 1:length(names)
s = sprintf('../../TD2/practical-category-recognition-2015a/data/images/%s.jpg' , names{i});
im = imread(s);
im_ = single(im) ; % note: 255 range
im_ = imresize(im_, net.meta.normalization.imageSize(1:2)) ;
im_ = bsxfun(@minus,im_,net.meta.normalization.averageImage) ;
res = vl_simplenn(net, im_) ;
output_fc7 = res(19).x;