Skip to content

Commit

Permalink
singleton comment
Browse files Browse the repository at this point in the history
  • Loading branch information
serengil committed Jun 26, 2021
1 parent fa44651 commit 5e2c530
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deepface/DeepFace.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def build_model(model_name):
built deepface model
"""

global model_obj
global model_obj #singleton design pattern

models = {
'VGG-Face': VGGFace.loadModel,
Expand Down
2 changes: 1 addition & 1 deletion deepface/detectors/FaceDetector.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

def build_model(detector_backend):

global face_detector_obj
global face_detector_obj #singleton design pattern

backends = {
'opencv': OpenCvWrapper.build_model,
Expand Down

0 comments on commit 5e2c530

Please sign in to comment.