GithubHelp home page GithubHelp logo

menpo / conda-dlib Goto Github PK

View Code? Open in Web Editor NEW
9.0 8.0 6.0 977 KB

Conda recipe for the dlib pacakge

License: BSD 3-Clause "New" or "Revised" License

Shell 33.83% Batchfile 25.78% Python 40.39%

conda-dlib's Introduction

conda-dlib

This repository contains a conda recipe for automatically building the dlib Python package and uploading it to our anaconda repository, menpo. This recipe provides builds for Win32, Win64, OSX64 and Linux64 (Ubuntu 12.04 and above).

The automated builds are provided by:

  • Travis: Ubuntu 12.04 (x64)
  • Appveyor: Windows Server 2012 R2 (x64), Also provides x86 builds
  • Jenkins: OSX 10.10

Build Settings

The following dlib functionality is disabled for the automated builds:

  • SSE4 for 32-bit builds
  • AVX
  • GUI support
  • BLAS on Windows (otherwise MKL is assumed via Anaconda numpy)
  • LAPACK on Windows (otherwise MKL is assumed via Anaconda numpy)

This functionality is disabled in order to attempt to increase the probability that the automated builds will be useful for as large a range of people as possible.

If the lack of this functionality is impeding you, please attempt to build the project yourself by installing conda and following the instructions below:

$ conda install conda-build
$ git clone https://github.com/menpo/conda-dlib
$ cd conda-dlib
$ conda config --add channels menpo
$ conda build conda/
$ conda install /PATH/TO/DLIB/PACKAGE.tar.gz

If you wish to edit any settings, such as enabling AVX, please edit the build.sh or bld.bat files in order to enable (1) or disable (0) the required settings. Note that in the case where you wish to achieve something like linking an external BLAS library, this may be complicated. In this event, I am unable to provide any assistance. The primary reason for providing this package was to attempt to avoid this kind of hassle in the first place!

Known Issues

In the event that you install dlib and recieve an error that is not listed below, please create an issue here on Github.

ImportError: /lib/x86_64-linux-gnu/libc.so.6: version 'GLIBC_2.14' not found

This error stems from the fact that we build on Ubuntu 12.04, which uses GLIBC 2.14. Older versions of Linux use older versions of GLIBC which are not compatible with future versions. If we were to build using an older linux box (or the Linux Standard Base), we could remedy this issue as GLIBC is guaranteed to be backwards compatible. However, the convenience of Travis far outweighs the complexity of this. Therefore, we are currently only able to support GLIBC 2.14 and above. If this is an issue, please rebuild the project manually as described above.

conda-dlib's People

Contributors

jabooth avatar patricksnape avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

conda-dlib's Issues

Illegal Instruction: 4

Mac OS X 10.11.2, with anaconda.

>>> detector = dlib.get_frontal_face_detector()
Illegal instruction: 4

That usually means a binary used an instruction not supported by the CPU. My machine doesn't have AVX (its a MacPro 2008), but your distro says its built without AVX anyway.

Current conda install:

             platform : osx-64
        conda version : 3.19.0
  conda-build version : 1.18.2
       python version : 3.4.3.final.0
     requests version : 2.9.0
     root environment : /Volumes/home500/anaconda  (writable)
  default environment : /Volumes/home500/anaconda/envs/openface
     envs directories : /Volumes/home500/anaconda/envs
        package cache : /Volumes/home500/anaconda/pkgs
         channel URLs : https://conda.anaconda.org/menpo/osx-64/
                        https://conda.anaconda.org/menpo/noarch/
                        https://repo.continuum.io/pkgs/free/osx-64/
                        https://repo.continuum.io/pkgs/free/noarch/
                        https://repo.continuum.io/pkgs/pro/osx-64/
                        https://repo.continuum.io/pkgs/pro/noarch/
          config file : /Users/aelberg/.condarc
    is foreign system : False

# packages in environment at /Volumes/home500/anaconda/envs/openface:
#
boost                     1.56.0                   py27_2    menpo
bzip2                     1.0.6                         0    defaults
cycler                    0.9.0                    py27_0    defaults
decorator                 4.0.6                    py27_0    defaults
dlib                      18.16                    py27_3    menpo
freetype                  2.5.5                         0    defaults
jbig                      2.1                           0    defaults
jpeg                      8d                            1    <unknown>
libpng                    1.6.17                        0    <unknown>
libtiff                   4.0.6                         1    defaults
mako                      1.0.3                     <pip>
matplotlib                1.5.1               np110py27_0    defaults
networkx                  1.10                     py27_0    defaults
numpy                     1.10.2                   py27_0    defaults
opencv                    2.4.11                   py27_1    menpo
openssl                   1.0.2e                        0    defaults
pandas                    0.17.1              np110py27_0    defaults
pillow                    3.1.0                    py27_0    defaults
pip                       7.1.2                    py27_0    defaults
pygpu                     0.2.1                     <pip>
pyparsing                 2.0.3                    py27_0    defaults
pyqt                      4.11.4                   py27_1    defaults
python                    2.7.11                        0    defaults
python-dateutil           2.4.2                    py27_0    defaults
pytz                      2015.7                   py27_0    defaults
qt                        4.8.7                         1    defaults
readline                  6.2                           2    <unknown>
scikit-image              0.11.3              np110py27_0    defaults
scikit-learn              0.17                np110py27_1    defaults
scipy                     0.16.1              np110py27_0    defaults
setuptools                19.2                     py27_0    defaults
sip                       4.16.9                   py27_0    defaults
six                       1.10.0                   py27_0    defaults
sqlite                    3.8.4.1                       1    <unknown>
tbb                       4.3_20141023                  0    menpo
tk                        8.5.18                        0    <unknown>
wheel                     0.26.0                   py27_1    defaults
xz                        5.0.5                         0    <unknown>
zlib                      1.2.8                         0    <unknown>

Can you advise how to track this down?

The package isn't listed as a python package.

Hi Folks,

I want to use some libraries that are installed through pip and needs dlib.

The problem is: the dlib package installed through conda doesn't appear as a python package (at least not with pip freeze command) and for that, pip tries to install dlib again (even with dev libraries and cmake installed, it results in errors because many of the needed files exists because there were installed through conda).

Looks like that may be possible with a setup.py inside package, but I don't know yet.

PackageNotFoundError: Dlib

I have followed all the steps mentioned below,
$ conda install conda-build
$ git clone https://github.com/menpo/conda-dlib
$ cd conda-dlib
$ conda config --add channels menpo
$ conda build conda/
$ conda install /PATH/TO/DLIB/PACKAGE.tar.gz

##########################################
But I have faced following error

PackageNotFoundError: Package missing in current linux-64 channels:

  • dlib-19.4.0.tar.gz

Install on Windows

Hello,
I am trying to get this installed on windows and i am having an issue. Could you help?

(C:\ProgramData\Anaconda3) C:\ProgramData\Anaconda3>conda install conda-build
Fetching package metadata .............
Solving package specifications: .

Package plan for installation in environment C:\ProgramData\Anaconda3:

The following packages will be UPDATED:

conda:       4.3.30-py36h7e176b0_0 --> 4.3.31-py36_0
conda-build: 3.0.27-py36h309a530_0 --> 3.1.6-py36_0

Proceed ([y]/n)? y

conda-4.3.31-p 100% |###############################| Time: 0:00:00 3.36 MB/s
conda-build-3. 100% |###############################| Time: 0:00:00 5.46 MB/s

(C:\ProgramData\Anaconda3) C:\ProgramData\Anaconda3>git clone https://github.com/menpo/conda-dlib
Cloning into 'conda-dlib'...
remote: Counting objects: 301, done.
Receiving objects: 100% (301/301), 976.45 KiB | 0 bytes/s, done.

Resolving deltas: 100% (174/174), done.
Checking connectivity... done.

(C:\ProgramData\Anaconda3) C:\ProgramData\Anaconda3>cd conda-dlib

(C:\ProgramData\Anaconda3) C:\ProgramData\Anaconda3\conda-dlib>conda config --add channels menpo

(C:\ProgramData\Anaconda3) C:\ProgramData\Anaconda3\conda-dlib>conda build conda/
Attempting to finalize metadata for dlib
INFO:conda_build.metadata:Attempting to finalize metadata for dlib
BUILD START: ['dlib-19.4-py36_0.tar.bz2']

The following NEW packages will be INSTALLED:

boost:          1.59.0-py36_0            menpo
bzip2:          1.0.6-haa5b126_2
certifi:        2017.11.5-py36hb8ac631_0
cmake:          3.9.4-h4b83b1b_0
icc_rt:         2017.0.4-h97af966_0
intel-openmp:   2018.0.0-hd92c6cd_8
libpng:         1.6.32-h140d38e_4
mkl:            2018.0.1-h2108138_4
numpy:          1.11.3-py36hb60be0b_3
pip:            9.0.1-py36h226ae91_4
python:         3.6.3-h3b118a2_4
setuptools:     36.5.0-py36h65f9e6e_0
vc:             14-h2379b0c_2
vs2015_runtime: 14.0.25123-hd4c4e62_2
wheel:          0.30.0-py36h6c3ec14_1
wincertstore:   0.2-py36h7fe50ca_0
zlib:           1.2.11-h8395fce_2

Source cache directory is: C:\ProgramData\Anaconda3\conda-bld\src_cache
Downloading source to cache: v19.4_2bed9669f1.tar.gz
Downloading https://github.com/davisking/dlib/archive/v19.4.tar.gz
Success
Extracting download
Applying patch: 'C:\ProgramData\Anaconda3\conda-dlib\conda\win_boost.patch'
Error:
Cannot use 'git' (not a git repo and/or patch) and did not find 'patch' in: C:\ProgramData\Anaconda3\conda-bld\dlib_1513781840234_h_env\Scripts;C:\ProgramData\Anaconda3\conda-bld\dlib_1513781840234_h_env\Library\mingw-w64\bin;C:\ProgramData\Anaconda3\conda-bld\dlib_1513781840234_h_env\Library\usr\bin;C:\ProgramData\Anaconda3\conda-bld\dlib_1513781840234_h_env\Library\bin;C:\ProgramData\Anaconda3\Scripts;C:\ProgramData\Anaconda3\Library\mingw-w64\bin;C:\ProgramData\Anaconda3\Library\usr\bin;C:\ProgramData\Anaconda3\Library\bin;C:\ProgramData\Anaconda3\conda-bld\dlib_1513781840234_h_env;C:\ProgramData\Anaconda3\conda-bld\dlib_1513781840234_h_env\Library\mingw-w64\bin;C:\ProgramData\Anaconda3\conda-bld\dlib_1513781840234_h_env\Library\usr\bin;;C:\ProgramData\Anaconda3\conda-bld\dlib_1513781840234_h_env\Library\bin;C:\ProgramData\Anaconda3\conda-bld\dlib_1513781840234_h_env\Scripts;C:\ProgramData\Anaconda3\conda-bld\dlib_1513781840234_h_env\Scripts;C:\ProgramData\Anaconda3;C:\ProgramData\Anaconda3\Library\mingw-w64\bin;C:\ProgramData\Anaconda3\Library\usr\bin;C:\ProgramData\Anaconda3\Library\bin;C:\ProgramData\Anaconda3\Scripts;C:\Program Files (x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS Client;C:\Program Files (x86)\Embarcadero\Studio\19.0\bin;C:\Users\Public\Documents\Embarcadero\Studio\19.0\Bpl;C:\Program Files (x86)\Embarcadero\Studio\19.0\bin64;C:\Users\Public\Documents\Embarcadero\Studio\19.0\Bpl\Win64;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Embarcadero\Studio\18.0\bin;C:\Users\Public\Documents\Embarcadero\Studio\18.0\Bpl;C:\Program Files (x86)\Embarcadero\Studio\18.0\bin64;C:\Users\Public\Documents\Embarcadero\Studio\18.0\Bpl\Win64;C:\Program Files (x86)\CollabNet\Subversion Client;C:\Windows\Microsoft.NET\Framework\v1.1.4322;C:\Program Files (x86)\Borland\BDS\4.0\Bin;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit;C:\ProgramData\chocolatey\bin;C:\Program Files\Git\cmd;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn;C:\Program Files\Microsoft SQL Server\120\Tools\Binn;C:\Program Files\Microsoft SQL Server\120\DTS\Binn;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\ManagementStudio;C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn;C:\Program Files\dotnet;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Common Files\SigmaTEK Shared\RealDWGFonts;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Microsoft\Web Platform Installer;C:\Users\frank.breetz\Documents\Borland Studio Projects\Bpl;C:\Users\frank.breetz\AppData\Roaming\Boxstarter;C:\Users\frank.breetz\AppData\Local\Code\bin
You can install 'patch' using apt-get, yum (Linux), Xcode (MacOSX),
or conda, m2-patch (Windows),

dlib 19.0

Howdy!
Is there any plan on updating to the new dlib v19.0? It has some major improvements and manual compiling for me always fails on my Mac since there are some conflicts with the X11 libraries.
The conda recipe helped me out before and it would be great if you would find any chance to update :)
Thanks in advance.

Anaconda dlib package not linking png support

The error is:

Unable to load image in file lfpw/trainset/image_0457.png.
You must #define DLIB_PNG_SUPPORT and link to libpng to read PNG files.
Do this by following the instructions at http://dlib.net/compile.html.

When I try to execute the function shown in the image I get the above error, I thought libpng came inbuilt with anaconda?

screenshot from 2015-08-11 17 50 35

OSX: libpng16.16 hard-linked to /usr/local/lib/libpng16.16.dylib

Hi,

Thanks for creating and maintaining the dlib conda package.

If I install dlib and try to import it in OSX, I get the following error:

ImportError: dlopen(/Users/peter/anaconda/lib/python2.7/site-packages/dlib.so, 2): Library not loaded:     /usr/local/lib/libpng16.16.dylib
  Referenced from: /Users/peter/anaconda/lib/python2.7/site-packages/dlib.so
  Reason: image not found

If I get it right, libpng should come with conda (there is a pnglib package), so there might be a conflict in your configure when you compile dlib.

For reference:

I could work around this issue by compiling pnglib by following this tutorial: http://mac-dev-env.patrickbougie.com/libpng/

Plus creating the necessary softlink:

sudo ln -s /usr/local/libpng-1.6.16/lib/libpng16.16.dylib /usr/local/lib/libpng16.16.dylib

What does the last step of the installation mean?

What does conda install /PATH/TO/DLIB/PACKAGE.tar.gz mean? Does it mean that I would have to download my own dlib.tar.gz file? I've trying to cd to the path that TEST END: specifies and turned the dlib-19.4.0.tar.bz2 into a dlib-19.4.0.tar.gz then running conda install dlib-19.4.0.tar.gz but it still doesnt' work. Although, I can see that the test has passed and it has succesfully aligned an image. Anyone able to help me, I've spent the whole day trying to figure this out!

Version 19.* request for windows

I see only version 18.* is available on Windows while 19.* is available on Linux and macOS.

Could you provide an updated build for Windows ?

manual build with -DDLIB_NO_GUI_SUPPORT=0 giving weird bug

For some reason when I manually build, it's giving a weird bug.

Boost.Python.ArgumentError: Python argument types in
    simple_object_detector.save(simple_object_detector, str)
did not match C++ signature:
    save(dlib::simple_object_detector_py, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > detector_output_filename)

I'm not sure if it's something about my local env variables or what. When I do

conda install -c menpo dlib=18.18

It works fine, but I want to have the GUI enabled, so I'm trying to do a custom build.

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.