mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 03:55:21 +00:00
cleaner codes
This commit is contained in:
parent
e679c7206a
commit
8f42137113
@ -6,6 +6,8 @@ import pandas as pd
|
|||||||
import cv2
|
import cv2
|
||||||
from deepface import DeepFace
|
from deepface import DeepFace
|
||||||
|
|
||||||
|
# pylint: disable=consider-iterating-dictionary
|
||||||
|
|
||||||
print("-----------------------------------------")
|
print("-----------------------------------------")
|
||||||
|
|
||||||
warnings.filterwarnings("ignore")
|
warnings.filterwarnings("ignore")
|
||||||
@ -93,8 +95,7 @@ def test_cases():
|
|||||||
assert "h" in objs[0]["facial_area"].keys()
|
assert "h" in objs[0]["facial_area"].keys()
|
||||||
assert isinstance(objs[0]["embedding"], list)
|
assert isinstance(objs[0]["embedding"], list)
|
||||||
assert len(objs[0]["embedding"]) == 2622 # embedding of VGG-Face
|
assert len(objs[0]["embedding"]) == 2622 # embedding of VGG-Face
|
||||||
except Exception as err:
|
except:
|
||||||
print(str(err))
|
|
||||||
exception_thrown = True
|
exception_thrown = True
|
||||||
|
|
||||||
assert exception_thrown is False
|
assert exception_thrown is False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user