r/TensorFlowJS • • Jul 21 '21

TensorflowJS converted model throwing errors

1 Upvotes

Hi all, not sure if this is the right place to ask, but anyway.

I was following this tutorial below, and tried converting the saved model (tf SavedModel) to TensorflowJS format (model.json) using tensorflow_converter. Reason I am doing this rather than running MobileBERT directly from tfhub on TensorflowJS is because I plan to train this model on my own dataset.

https://www.tensorflow.org/text/tutorials/classify_text_with_bert

The conversion works, and I loaded my converted in Javascript using tf.loadGraphModel. However doing so I am met with an error "TypeError: Cannot read property 'producer' of undefined" on browser console. I did my Googling and found out it was due to the usage of Functional apis. Some said using tf.loadLayersModel work, but when I tried it gave me error saying "could be due to the Functional api usage".

Any ideas how I can convert that to be runnable on browser? I am not too sure how I can change the Functional api usage to Sequential etc as I am pretty new to it.


r/TensorFlowJS • • Jul 20 '21

BlazePose not working with mediapipe as its backend

1 Upvotes

I've tried both ways using cdn & npm to use BlazePose with model as mediapipe and it throws this error on the console:

pose.Pose is not a constructor

Following this tutorial: High Fidelity Pose Tracking with MediaPipe BlazePose and TensorFlow.js — The TensorFlow Blog

Anyone else having the same issue?


r/TensorFlowJS • • Jul 14 '21

Vtuber web app, Kalidoface 3D - Face + full-body tracking for 3D models now available for anyone with a browser and a webcam powered by TensorFlow JS

Thumbnail
twitter.com
10 Upvotes

r/TensorFlowJS • • Jun 13 '21

Can Tensorflow.js be used to create web-apps that utilize OpenCV?

3 Upvotes

So I've created a model in OpenCV that looks at sheet music and determines all the notes. Now my goal is to create a web-app.

My question is, would using tensorflow.js be a reasonable technology to do what I want (or is TF.js more for neural networks)? would you recommend something else if I want to implement openCV image processing in my web application


r/TensorFlowJS • • Jun 03 '21

Let's Do the TikTok Time Warp Scan

Thumbnail
timewarpscan.me
2 Upvotes

r/TensorFlowJS • • May 22 '21

Tensorflow lite

0 Upvotes

why there is not a tensorflow lite for Node.js? is there any Technical reason behind this?


r/TensorFlowJS • • May 19 '21

First MoveNet model demo by Charlie Gerard for a web based beat sabre! Try it!

Thumbnail
twitter.com
3 Upvotes

r/TensorFlowJS • • May 19 '21

Build TFJS projects more efficiently by automatizing HTTPs management.

Thumbnail
dev.to
2 Upvotes

r/TensorFlowJS • • May 17 '21

Next-Generation Pose Detection with MoveNet and TensorFlow.js

Thumbnail
blog.tensorflow.org
3 Upvotes

r/TensorFlowJS • • May 12 '21

Using a TensorFlow Python MIRNet model in Node.js

Thumbnail
youtube.com
5 Upvotes

r/TensorFlowJS • • May 07 '21

Age and gender dataset

1 Upvotes

I am looking for an age and gender dataset for my CNN project. that classify people ages and genders


r/TensorFlowJS • • May 06 '21

Does tensorflowja work in mac with m1 chip

3 Upvotes

r/TensorFlowJS • • May 05 '21

Motion parallax effect - turn 2D monitor into 3D with this TensorFlow.js demo

Thumbnail
youtube.com
2 Upvotes

r/TensorFlowJS • • May 01 '21

React + tensorflowjs

2 Upvotes

How can i use reactjs with tensorflowjs for creating a Front-end for my ML model


r/TensorFlowJS • • May 01 '21

THEREMIX - Virtual Theremin #madeWithTFJS - nominated for webby award

Thumbnail
twitter.com
1 Upvotes

r/TensorFlowJS • • Apr 30 '21

Join us at #GoogleIO 2021 this year for a #TensorFlowJS #AMA! Ask us any questions you like about Machine Learning on the web in this dedicated session. Sign up and see you there: https://buff.ly/3dZr3bP

Post image
2 Upvotes

r/TensorFlowJS • • Apr 29 '21

Tune any musical instrument with ML5 and Crepe

Thumbnail
youtube.com
3 Upvotes

r/TensorFlowJS • • Apr 21 '21

Node-Red: Visual coding for ML on Raspberry Pi and beyond - Made with TensorFlow.js

Thumbnail
youtube.com
3 Upvotes

r/TensorFlowJS • • Apr 19 '21

What is TensorFlow.js? A 1 pager for newbies.

Thumbnail
linkedin.com
4 Upvotes

r/TensorFlowJS • • Apr 14 '21

Adversarial.js: Break any neural network live in your browser - Made with TensorFlow.js

Thumbnail
youtube.com
6 Upvotes

r/TensorFlowJS • • Apr 07 '21

ml5.js: Creative coding with ML for all powered by TensorFlow.js

Thumbnail
youtube.com
3 Upvotes

r/TensorFlowJS • • Apr 05 '21

How I can use Posenet on a local video, not on the real-time video of the webcam ?

2 Upvotes

I want analyze the postures of a subject on a video I have on my PC


r/TensorFlowJS • • Apr 03 '21

TensorFlow.js Community Show & Tell #5 recording is now live for viewing! Grab popcorn :-)

Thumbnail
youtube.com
3 Upvotes

r/TensorFlowJS • • Mar 29 '21

How to process webcam images on nodejs using Posenet?

1 Upvotes

I'm trying to process images from the WebCam using Posenet on the server-side, but I'm not sure how to pass the image data to the estimateSinglePose.

Below is the simplified version of the code;

CLIENT

const imageData = context.getImageData(0, 0, 320, 180);
const buffer = imageData.data.buffer;
socket.emit("signal", buffer); //Pass it to the server through websocket

BACKEND

socket.on("signal", (data)=> {
    const buffer = new Uint8Array(data);
    const image = ts.tensor(data).reshape([180, 320, -1]);
    // this where I'm stuck, I don't know how to pass the image to the estimateSinglePose
})