cleaner codes

This commit is contained in:
Sefik Ilkin Serengil 2023-01-29 23:46:39 +00:00
parent e679c7206a
commit 8f42137113

View File

@ -6,6 +6,8 @@ import pandas as pd
import cv2
from deepface import DeepFace
# pylint: disable=consider-iterating-dictionary
print("-----------------------------------------")
warnings.filterwarnings("ignore")
@ -93,8 +95,7 @@ def test_cases():
assert "h" in objs[0]["facial_area"].keys()
assert isinstance(objs[0]["embedding"], list)
assert len(objs[0]["embedding"]) == 2622 # embedding of VGG-Face
except Exception as err:
print(str(err))
except:
exception_thrown = True
assert exception_thrown is False