mirror of
https://github.com/serengil/deepface.git
synced 2025-06-08 12:35:22 +00:00
Look for string in string collection
This commit is contained in:
parent
4713572a24
commit
adf6328cd9
@ -40,7 +40,7 @@ def build_model(model_name: str) -> Any:
|
||||
if not "model_obj" in globals():
|
||||
model_obj = {}
|
||||
|
||||
if not model_name in model_obj:
|
||||
if not model_name in model_obj.keys():
|
||||
model = models.get(model_name)
|
||||
if model:
|
||||
model = model()
|
||||
|
Loading…
x
Reference in New Issue
Block a user