forked from DebaucheryLibrarian/traxxx
Catching biometric tensor decode errors.
This commit is contained in:
@@ -75,9 +75,10 @@ async function getBiometrics(avatarEntry) {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const tensor = human.tf.node.decodeImage(buffer, 3);
|
let tensor;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
tensor = human.tf.node.decodeImage(buffer, 3);
|
||||||
const result = await human.detect(tensor);
|
const result = await human.detect(tensor);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Reference in New Issue
Block a user