欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

DeepFace [部署 01]轻量级人脸识别与面部属性分析框架 deepface 安装与使用详解(网络磁盘共享模型文件) - 1.安装

最编程 2024-06-26 17:07:12
...

1.1 官方的三种方式

  1. The easiest way to install deepface is to download it from PyPI. It’s going to install the library itself and its prerequisites as well.
pip install deepface
  1. Secondly, DeepFace is also available at Conda. You can alternatively install the package via conda.
conda install -c conda-forge deepface
  1. Thirdly, you can install deepface from its source code.
$ git clone https://github.com/serengil/deepface.git
$ cd deepface
$ pip install -e .

1.2 使用的方式

我使用的是Anaconda+PyCharm的社区版。

  1. Anaconda操作

创建虚拟环境+deepface安装:

网络异常,图片无法展示
|

网络异常,图片无法展示
|

网络异常,图片无法展示
|

# 安装deepface
pip install deepface -i https://pypi.tuna.tsinghua.edu.cn/simple
# 安装deprecated
pip install deprecated==1.2.13
# 防止报错
ModuleNotFoundError: No module named 'deprecated'
  1. Pycharm操作

下载源码:https://github.com/serengil/deepface/tree/master

设置运行环境:File->Setting->Project->Python Interpreter->使用Anaconda创建的环境

网络异常,图片无法展示
|