资源简介
我的环境:win10+python3.7+TensorFlow1.13.1gpu(conda的虚拟环境)
能成功匹配安装版本
代码片段和文件信息
“““setup for the dlib project
Copyright (C) 2015 Ehsan Azar (dashesy@linux.com)
License: Boost Software License See LICENSE.txt for the full license.
This file basically just uses CMake to compile the dlib python bindings project
located in the tools/python folder and then puts the outputs into standard
python packages.
To build the dlib:
python setup.py build
To build and install:
python setup.py install
To package the wheel (after pip installing twine and wheel):
python setup.py bdist_wheel
To upload the binary wheel to PyPi
twine upload dist/*.whl
To upload the source distribution to PyPi
python setup.py sdist
twine upload dist/dlib-*.tar.gz
To exclude certain options in the cmake config use --no:
for example:
--no USE_AVX_INSTRUCTIONS: will set -DUSE_AVX_INSTRUCTIONS=no
Additional options:
--compiler-flags: pass flags onto the compiler e.g. --compiler-flags “-Os -Wall“ passes -Os -Wall onto GCC.
-G: Set the CMake generator. E.g. -G “Visual Studio 14 2015“
--clean: delete any previous build folders and rebuild. You should do this if you change any build options
by setting --compiler-flags or --no since the last time you ran a build. This will
ensure the changes take effect.
--set: set arbitrary cmake options e.g. --set CUDA_HOST_COMPILER=/usr/bin/gcc-6.4.0
passes -DCUDA_HOST_COMPILER=/usr/bin/gcc-6.4.0 to CMake.
“““
import os
import re
import sys
import shutil
import platform
import subprocess
import multiprocessing
from distutils import log
from math import ceilfloor
from setuptools import setup Extension
from setuptools.command.build_ext import build_ext
from distutils.version import LooseVersion
def get_extra_cmake_options():
“““read --clean --no --set --compiler-flags and -G options from the command line and add them as cmake switches.
“““
_cmake_extra_options = []
_clean_build_folder = False
opt_key = None
argv = [arg for arg in sys.argv] # take a copy
# parse command line options and consume those we care about
for arg in argv:
if opt_key == ‘compiler-flags‘:
_cmake_extra_options.append(‘-DCMAKE_CXX_FLAGS={arg}‘.format(arg=arg.strip()))
elif opt_key == ‘G‘:
_cmake_extra_options += [‘-G‘ arg.strip()]
elif opt_key == ‘no‘:
_cmake_extra_options.append(‘-D{arg}=no‘.format(arg=arg.strip()))
elif opt_key == ‘set‘:
_cmake_extra_options.append(‘-D{arg}‘.format(arg=arg.strip()))
if opt_key:
sys.argv.remove(arg)
opt_key = None
continue
if arg == ‘--clean‘:
_clean_build_folder = True
sys.argv.remove(arg)
continue
if arg == ‘--yes‘:
print(“The --yes options to dlib‘s setup.py don‘t do anything since all these options “)
print(“are on
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-03-10 15:09 dlib-19.17\
文件 2509 2019-03-10 15:09 dlib-19.17\ISSUE_TEMPLATE.md
文件 256 2019-03-10 15:09 dlib-19.17\MANIFEST.in
目录 0 2019-03-10 15:09 dlib-19.17\dlib\
目录 0 2019-03-10 15:09 dlib-19.17\dlib\config_reader\
文件 12778 2019-03-10 15:09 dlib-19.17\dlib\config_reader\config_reader_thread_safe_1.h
文件 1414 2019-03-10 15:09 dlib-19.17\dlib\config_reader\config_reader_thread_safe_abstract.h
文件 22447 2019-03-10 15:09 dlib-19.17\dlib\config_reader\config_reader_kernel_1.h
文件 14778 2019-03-10 15:09 dlib-19.17\dlib\config_reader\config_reader_kernel_abstract.h
文件 976 2019-03-10 15:09 dlib-19.17\dlib\smart_pointers_thread_safe.h
文件 703 2019-03-10 15:09 dlib-19.17\dlib\reference_counter.h
文件 327 2019-03-10 15:09 dlib-19.17\dlib\bridge.h
目录 0 2019-03-10 15:09 dlib-19.17\dlib\image_keypoint\
文件 6460 2019-03-10 15:09 dlib-19.17\dlib\image_keypoint\build_separable_poly_filters.h
文件 891 2019-03-10 15:09 dlib-19.17\dlib\image_keypoint\draw_surf_points_abstract.h
文件 12131 2019-03-10 15:09 dlib-19.17\dlib\image_keypoint\fine_hog_image.h
文件 11084 2019-03-10 15:09 dlib-19.17\dlib\image_keypoint\nearest_neighbor_feature_image.h
文件 6440 2019-03-10 15:09 dlib-19.17\dlib\image_keypoint\surf_abstract.h
文件 8987 2019-03-10 15:09 dlib-19.17\dlib\image_keypoint\hessian_pyramid_abstract.h
文件 10608 2019-03-10 15:09 dlib-19.17\dlib\image_keypoint\surf.h
文件 11023 2019-03-10 15:09 dlib-19.17\dlib\image_keypoint\binned_vector_feature_image_abstract.h
文件 13386 2019-03-10 15:09 dlib-19.17\dlib\image_keypoint\hog_abstract.h
文件 22968 2019-03-10 15:09 dlib-19.17\dlib\image_keypoint\poly_image.h
文件 12174 2019-03-10 15:09 dlib-19.17\dlib\image_keypoint\poly_image_abstract.h
文件 10135 2019-03-10 15:09 dlib-19.17\dlib\image_keypoint\fine_hog_image_abstract.h
文件 19410 2019-03-10 15:09 dlib-19.17\dlib\image_keypoint\hessian_pyramid.h
文件 9191 2019-03-10 15:09 dlib-19.17\dlib\image_keypoint\nearest_neighbor_feature_image_abstract.h
文件 1413 2019-03-10 15:09 dlib-19.17\dlib\image_keypoint\draw_surf_points.h
文件 21101 2019-03-10 15:09 dlib-19.17\dlib\image_keypoint\hog.h
文件 12308 2019-03-10 15:09 dlib-19.17\dlib\image_keypoint\binned_vector_feature_image.h
文件 14593 2019-03-10 15:09 dlib-19.17\dlib\image_keypoint\hashed_feature_image.h
............此处省略3962个文件信息
相关资源
- 人脸识别python实现源码功能丰富
- opencv_python-4.1.2+contrib-cp38-cp38-win_amd6
- 利用Python实现的BP神经网络进行人脸识
- dlib_face_recognition_resnet_model_v1.dat人脸识
- 人脸识别理论和Python实现
- face.dat.zip
- 眨眼检测代码
- Python_Dlib_Face_Recognition.zip
- python dlib 人脸对齐代码
- 人脸识别源代码及模型
- dlib剪切人脸照片
- 人脸情绪识别VS2015python工程
- laview_and_python_face_recognition.zip
- python3版 40行代码的人脸识别实践
- dlib-19.19.0-cp38-cp38-win_amd64.whl
- shape_predictor_68_face_landmarks.dat
- OpenCV+Python+Dlib面部标定、眨眼和疲劳
- 基于Python的人脸识别系统
- python dlib+openCV 实现人脸融合
- Python+Dlib库实现人脸合成
- python dlib 换脸完整工程
- 基于人脸识别的课堂签到管理系统.
- faceReco.py
- Python+OpenCv实现AI人脸识别身份认证系
- 人脸识别pythonLBPH
- Dlib人脸特征标定.ipynb可直接运行
- 基于Haar+Adaboost人脸识别.ipynb
- 基于PCA的人脸识别系统-python版
- 基于OpenCV 3 LBPH 人脸识别 Python代码
- 基于face_recognition和OpenCV的人脸识别程
评论
共有 条评论