深度学习-卷积神经网络--MT CNN-人脸检测-推理-65


参考链接:人脸算法系列:MTCNN人脸检测详解

1. 下载代码

git clone https://github.com/YYuanAnyVision/mxnet_mtcnn_face_detection.git

2. 安装环境的准备

Python 3.7.5

pip install mxnet==1.5.0
pip install matplotlib==3.0.3
opencv-python                3.4.2.16
numpy                        1.16.6

其他安装包版本

(keras-yolo3) D:\05-learning\15-learning-ai\09-人脸识别\mxnet_mtcnn_face_detection>pip list
Package                      Version
---------------------------- -----------
absl-py                      2.1.0
anyio                        3.7.1
argon2-cffi                  23.1.0
argon2-cffi-bindings         21.2.0
astor                        0.8.1
astunparse                   1.6.3
attrs                        23.2.0
backcall                     0.2.0
beautifulsoup4               4.12.3
bleach                       6.0.0
cachetools                   5.3.3
certifi                      2024.2.2
cffi                         1.15.1
chardet                      3.0.4
charset-normalizer           3.3.2
colorama                     0.4.6
comm                         0.1.4
cycler                       0.11.0
Cython                       3.0.10
debugpy                      1.7.0
decorator                    5.1.1
defusedxml                   0.7.1
distro                       1.9.0
entrypoints                  0.4
exceptiongroup               1.2.0
fastjsonschema               2.19.1
flatbuffers                  24.3.7
fonttools                    4.38.0
gast                         0.2.2
google-auth                  2.28.2
google-auth-oauthlib         0.4.6
google-pasta                 0.2.0
graphviz                     0.8.4
grpcio                       1.62.1
h5py                         2.10.0
idna                         2.6
imageio                      2.31.2
imgaug                       0.4.0
importlib-metadata           6.7.0
importlib-resources          5.12.0
ipykernel                    6.16.2
ipython                      7.34.0
ipython-genutils             0.2.0
ipywidgets                   8.1.2
jedi                         0.19.1
Jinja2                       3.1.3
jsonschema                   4.17.3
jupyter                      1.0.0
jupyter_client               7.4.9
jupyter-console              6.6.3
jupyter_core                 4.12.0
jupyter-server               1.24.0
jupyterlab-pygments          0.2.2
jupyterlab_widgets           3.0.10
Keras                        2.1.6
Keras-Applications           1.0.8
Keras-Preprocessing          1.1.2
kiwisolver                   1.4.5
libclang                     18.1.1
Markdown                     3.4.4
MarkupSafe                   2.1.5
matplotlib                   3.0.3
matplotlib-inline            0.1.6
mistune                      3.0.2
mxnet                        1.5.0
nbclassic                    1.0.0
nbclient                     0.7.4
nbconvert                    7.6.0
nbformat                     5.8.0
nest-asyncio                 1.6.0
networkx                     2.6.3
notebook                     6.5.6
notebook_shim                0.2.4
numpy                        1.16.6
oauthlib                     3.2.2
opencv-python                3.4.2.16
opt-einsum                   3.3.0
packaging                    24.0
pandocfilters                1.5.1
parso                        0.8.3
pickleshare                  0.7.5
Pillow                       9.5.0
pip                          24.0
pkgutil_resolve_name         1.3.10
prometheus-client            0.17.1
prompt-toolkit               3.0.43
protobuf                     3.19.6
psutil                       5.9.8
pyasn1                       0.5.1
pyasn1-modules               0.3.0
pycocotools                  2.0
pycparser                    2.21
Pygments                     2.17.2
pyparsing                    3.1.2
pyrsistent                   0.19.3
python-dateutil              2.9.0.post0
PyWavelets                   1.4.0
pywin32                      306
pywinpty                     2.0.10
PyYAML                       6.0.1
pyzmq                        24.0.1
qtconsole                    5.4.4
QtPy                         2.4.1
requests                     2.18.4
requests-oauthlib            1.4.0
rsa                          4.9
scikit-build                 0.17.6
scikit-image                 0.19.3
scipy                        1.7.3
Send2Trash                   1.8.2
setuptools                   68.0.0
shapely                      2.0.3
six                          1.16.0
sniffio                      1.3.1
soupsieve                    2.4.1
tensorboard                  1.15.0
tensorboard-data-server      0.6.1
tensorboard-plugin-wit       1.8.1
tensorflow                   1.15.0
tensorflow-estimator         1.15.1
tensorflow-intel             2.11.0
tensorflow-io-gcs-filesystem 0.31.0
termcolor                    2.3.0
terminado                    0.17.1
tifffile                     2021.11.2
tinycss2                     1.2.1
tomli                        2.0.1
tornado                      6.2
traitlets                    5.9.0
typing_extensions            4.7.1
urllib3                      1.22
wcwidth                      0.2.13
webencodings                 0.5.1
websocket-client             1.6.1
Werkzeug                     2.2.3
wheel                        0.42.0
widgetsnbextension           4.0.10
wrapt                        1.16.0
zipp                         3.15.0

3. 代码修改

main.py 核心逻辑 放入if name == 'main':

4. mtcnn_detector

izip 用zip替换
/用 //替换

效果:

posted @ 2024-04-03 14:25  jack-chen666  阅读(11)  评论(0编辑  收藏  举报