mirror of
https://github.com/serengil/deepface.git
synced 2025-06-06 11:35:21 +00:00
added exceptional handling
This commit is contained in:
parent
b8494b01a1
commit
fac74113ca
@ -22,7 +22,7 @@ class Buffalo_L(FacialRecognition):
|
||||
try:
|
||||
from insightface.model_zoo import get_model
|
||||
except Exception as err:
|
||||
raise Exception(
|
||||
raise ModuleNotFoundError(
|
||||
"InsightFace and its dependencies are optional for the Buffalo_L model. "
|
||||
"Please install them with: "
|
||||
"pip install insightface>=0.7.3 onnxruntime>=1.9.0 typing-extensions pydantic"
|
||||
|
Loading…
x
Reference in New Issue
Block a user