Merge pull request #473 from onuratakan/adding_command_line_interface

Save Operation for CLI
This commit is contained in:
Sefik Ilkin Serengil 2022-05-09 21:29:45 +01:00 committed by GitHub
commit 951446185f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 1 deletions

View File

@ -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()

View File

@ -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

View File

@ -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"]
)