mirror of
https://github.com/serengil/deepface.git
synced 2025-06-06 11:35:21 +00:00
Merge pull request #473 from onuratakan/adding_command_line_interface
Save Operation for CLI
This commit is contained in:
commit
951446185f
@ -12,6 +12,8 @@ import pandas as pd
|
||||
from tqdm import tqdm
|
||||
import pickle
|
||||
|
||||
import fire
|
||||
|
||||
from deepface.basemodels import VGGFace, OpenFace, Facenet, Facenet512, FbDeepFace, DeepID, DlibWrapper, ArcFace, Boosting
|
||||
from deepface.extendedmodels import Age, Gender, Race, Emotion
|
||||
from deepface.commons import functions, realtime, distance as dst
|
||||
@ -822,3 +824,6 @@ def detectFace(img_path, target_size = (224, 224), detector_backend = 'opencv',
|
||||
#main
|
||||
|
||||
functions.initialize_folder()
|
||||
|
||||
def cli():
|
||||
fire.Fire()
|
||||
|
@ -13,3 +13,4 @@ lightgbm>=2.3.1
|
||||
dlib>=19.20.0
|
||||
retina-face>=0.0.1
|
||||
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",
|
||||
"Operating System :: OS Independent"
|
||||
],
|
||||
entry_points={
|
||||
"console_scripts":
|
||||
["deepface = deepface:DeepFace.cli"],
|
||||
},
|
||||
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