mirror of
https://github.com/serengil/deepface.git
synced 2025-06-06 11:35:21 +00:00
feat: np array
This commit is contained in:
parent
0037527fc3
commit
85da7a6320
@ -84,7 +84,9 @@ class FaceNet512dONNXClient(FacialRecognition):
|
||||
input_name = self.model.get_inputs()[0].name
|
||||
output_name = self.model.get_outputs()[0].name
|
||||
result = self.model.run([output_name], {input_name: img})
|
||||
return result[0][0]
|
||||
if isinstance(result[0][0], np.ndarray):
|
||||
return result[0][0].tolist()
|
||||
return list(result[0][0])
|
||||
|
||||
|
||||
def scaling(x, scale):
|
||||
|
Loading…
x
Reference in New Issue
Block a user