duplicated import

This commit is contained in:
Sefik Ilkin Serengil 2020-04-20 09:03:00 +03:00 committed by GitHub
parent 975867accd
commit 32b9ee5369
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,4 @@
import os
from pathlib import Path
import numpy as np
import pandas as pd
from keras.preprocessing.image import load_img, save_img, img_to_array
@ -291,4 +290,4 @@ def detectFace(img, target_size=(224, 224), grayscale = False):
img_pixels /= 255
return img_pixels
else:
raise ValueError("Face could not be detected in ", img,". Please confirm that the picture is a face photo.")
raise ValueError("Face could not be detected in ", img,". Please confirm that the picture is a face photo.")