Closed
Description
# in colab
from deepface.commons import functions
import numpy as np
url = "https://upload.wikimedia.org/wikipedia/commons/thumb/4/45/MontreGousset001.jpg/440px-MontreGousset001.jpg"
file = "440px-MontreGousset001.jpg"
!wget {url} -O {file} -q
img_from_url = functions.load_image(url)
img_from_file = functions.load_image(file)
print(np.abs(img_from_url-img_from_file).mean())
# 98.4184350027692
deepface/deepface/commons/functions.py
Lines 85 to 92 in ba9f567
The reason is because you convert the image to RBG with url
And for file, you use cv2.imread, the default setting is rgb
Please align those two methods