server-json/node_modules/face-api.js/build/es6/mtcnn/normalize.js
2024-11-01 08:00:42 +00:00

5 lines
No EOL
222 B
JavaScript

import * as tf from '@tensorflow/tfjs-core';
export function normalize(x) {
return tf.tidy(function () { return tf.mul(tf.sub(x, tf.scalar(127.5)), tf.scalar(0.0078125)); });
}
//# sourceMappingURL=normalize.js.map