We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I preprocess imgData like this
const imgData = {data: new Uint8Array(frame.data), width: frame.width, height: frame.height} return tf.tidy(() => { var tensor = tf.browser.fromPixels(imgData, 1) const resized = tf.image.resizeBilinear(tensor, [28, 28]).toFloat() const offset = tf.scalar(255.0); const normalized = tf.scalar(1.0).sub(resized.div(offset)); const batched = normalized.expandDims(0) return batched }
but it doesn't work right. Did I make a mistake?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I preprocess imgData like this
but it doesn't work right.
Did I make a mistake?
The text was updated successfully, but these errors were encountered: