mirror of
https://github.com/serengil/deepface.git
synced 2025-06-06 11:35:21 +00:00
fix: fp32 changes
This commit is contained in:
parent
9889356b7b
commit
cef09cbdca
@ -83,7 +83,7 @@ class FaceNet512dONNXClient(FacialRecognition):
|
||||
def forward(self, img: np.ndarray) -> List[float]:
|
||||
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.astype(np.float16)})
|
||||
result = self.model.run([output_name], {input_name: img})
|
||||
return result[0][0].tolist()
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user