Merge pull request #1285 from ProgramadorArtificial/bugfix/fix_importError_menssage

Fix importError menssage
This commit is contained in:
Sefik Ilkin Serengil 2024-07-19 09:03:32 +01:00 committed by GitHub
commit f7db792ed4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 8 deletions

View File

@ -31,8 +31,8 @@ class YoloClient(Detector):
from ultralytics import YOLO from ultralytics import YOLO
except ModuleNotFoundError as e: except ModuleNotFoundError as e:
raise ImportError( raise ImportError(
"Yolo is an optional detector, ensure the library is installed. \ "Yolo is an optional detector, ensure the library is installed. "
Please install using 'pip install ultralytics' " "Please install using 'pip install ultralytics'"
) from e ) from e
weight_path = f"{folder_utils.get_deepface_home()}{PATH}" weight_path = f"{folder_utils.get_deepface_home()}{PATH}"