mirror of
https://github.com/serengil/deepface.git
synced 2025-06-06 11:35:21 +00:00
Added command line interface via fire library
This commit is contained in:
parent
e28d900a88
commit
a7cbf6da63
@ -12,6 +12,8 @@ import pandas as pd
|
|||||||
from tqdm import tqdm
|
from tqdm import tqdm
|
||||||
import pickle
|
import pickle
|
||||||
|
|
||||||
|
import fire
|
||||||
|
|
||||||
from deepface.basemodels import VGGFace, OpenFace, Facenet, Facenet512, FbDeepFace, DeepID, DlibWrapper, ArcFace, Boosting
|
from deepface.basemodels import VGGFace, OpenFace, Facenet, Facenet512, FbDeepFace, DeepID, DlibWrapper, ArcFace, Boosting
|
||||||
from deepface.extendedmodels import Age, Gender, Race, Emotion
|
from deepface.extendedmodels import Age, Gender, Race, Emotion
|
||||||
from deepface.commons import functions, realtime, distance as dst
|
from deepface.commons import functions, realtime, distance as dst
|
||||||
@ -822,3 +824,4 @@ def detectFace(img_path, target_size = (224, 224), detector_backend = 'opencv',
|
|||||||
#main
|
#main
|
||||||
|
|
||||||
functions.initialize_folder()
|
functions.initialize_folder()
|
||||||
|
fire.Fire()
|
||||||
|
@ -13,3 +13,4 @@ lightgbm>=2.3.1
|
|||||||
dlib>=19.20.0
|
dlib>=19.20.0
|
||||||
retina-face>=0.0.1
|
retina-face>=0.0.1
|
||||||
mediapipe>=0.8.7.3
|
mediapipe>=0.8.7.3
|
||||||
|
fire>=0.4.0
|
||||||
|
6
setup.py
6
setup.py
@ -19,6 +19,10 @@ setuptools.setup(
|
|||||||
"License :: OSI Approved :: MIT License",
|
"License :: OSI Approved :: MIT License",
|
||||||
"Operating System :: OS Independent"
|
"Operating System :: OS Independent"
|
||||||
],
|
],
|
||||||
|
entry_points={
|
||||||
|
"console_scripts":
|
||||||
|
["DeepFace = deepface:DeepFace"],
|
||||||
|
},
|
||||||
python_requires='>=3.5.5',
|
python_requires='>=3.5.5',
|
||||||
install_requires=["numpy>=1.14.0", "pandas>=0.23.4", "tqdm>=4.30.0", "gdown>=3.10.1", "Pillow>=5.2.0", "opencv-python>=3.4.4", "tensorflow>=1.9.0", "keras>=2.2.0", "Flask>=1.1.2", "mtcnn>=0.1.0", "retina-face>=0.0.1"]
|
install_requires=["numpy>=1.14.0", "pandas>=0.23.4", "tqdm>=4.30.0", "gdown>=3.10.1", "Pillow>=5.2.0", "opencv-python>=3.4.4", "tensorflow>=1.9.0", "keras>=2.2.0", "Flask>=1.1.2", "mtcnn>=0.1.0", "retina-face>=0.0.1", "fire>=0.4.0"]
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user