1,598
questions
0
votes
0
answers
12
views
Tensorflow.js custom trained model issues
I created my own tensorflow model to detect only one object (trucks) in images. The model works perfectly in Python, it's a saved model (saved_model.pb), and I need to use it in the browser with ...
0
votes
0
answers
27
views
tfjs_binding.node is not available in node module when trying to use tensoflow.js in node
Solved: After running
node-gyp configure --verbose
I've noticed message about outdated of Visual Studio C++. After updating, I finally had a different error, code related at least. That means, ...
0
votes
0
answers
21
views
Error starting next js app with @tensorflow/tfjs-node-gpu on wsl
So i installed wsl, nvidia cuda, created next js project in linux subsystem, installed @tensorflow/tfjs-node-gpu and to this moment everything was fine, but while starting App i got this error
✓ ...
0
votes
0
answers
6
views
How can I convert a TFJS model to TFLite?
I'm attempting to convert a TFJS model which consists of a model.json and group1-shard1 - 7 files.
I'm trying to load the model in tfjs like this:
import tfjs_graph_converter.api as tfjs
tfjs....
0
votes
0
answers
12
views
Unable to resolve tensorflow model weight bin file in react native
`const loadModel = async () => {
const temperatureModel = await tf.loadLayersModel(
bundleResourceIO(temperatureLSTM, modelWeight)
).catch((e)=>{
console.log("error: ",e)
})
return ...
0
votes
0
answers
21
views
Firebase code is not loading model from storage
The code is calling file from firebase cloud storage and using that file to do stuff like image detection which is intended with model, but the function which was deployed using this code is giving an ...
0
votes
0
answers
16
views
How can I edit the contour colour in toBinaryMask in @tensorflow-models/body-segmentation?
I am using @tensorflow-models/body-segmentation and the contour colour always defaults to rgb(0,255,255). I'm using the toBinaryMask function to segment people from their background and I want the ...
0
votes
0
answers
36
views
Converted Model Using TensorFlow.JS Converter Not Working
I was following the TFJS WebML YT Course from Jason Mayes and following along to the TFJS Converter video, here's my notebook:
Google Colab Notebook
Basically it is an exact replica from the video and ...
0
votes
1
answer
25
views
Tensorflowjs keras model node weights aren't recognized
I'm facing an error when calling a pre-trained keras model in javascript for a simple web app on Heroku.
https://digit-predictor-6ba58c0cd85a.herokuapp.com
Unhandled Promise Rejection: Error: ...
1
vote
0
answers
41
views
TensorFlow.js with Expo Camera not processing frames in React Native
I have the following React Native App.js File where I'm trying to print nextImageTensor received, but the flow is not going inside loop(). As a matter of fact loop is not even getting called
App.js
...
1
vote
1
answer
22
views
TensorFlow JS : model.predict() provoke undefined on 'backend' because of an error within the library tensorflow : engine.ts:425 that cause undefined
Thanks for taking the time to read my problem 👍
System information
OS Platform and Distribution : Windows 10
TensorFlow.js installed from (npm or script link): npm
TensorFlow.js version (use command ...
2
votes
2
answers
174
views
different predictions on same data, TenserflowJS
I have saved a TFJS model to a document in cloud firestore, if I run this code straight from the browser:
const jsonObject = JSON.parse(TFModeljson);
loadedModel = await
tf.loadLayersModel(tf.io....
0
votes
0
answers
54
views
tensorflowjs_converter utility adds suffixes to variable names that cause errors
I am trying to use tensorflowjs_converter to convert a model that I am training in python (using tensorflow) to a JSON layers format so that I can run it on the web. I installed the latest version, ...
0
votes
0
answers
41
views
While importing a converted tensorflowjs model into react, having an error while using "loadLayersModel"
I am new to ML and tf. This is my first time trying to do a project on it. I have trained a siamese model in tensorflow and saved it with .h5 format. Then, I have used "tensorflowjs_converter&...
0
votes
0
answers
12
views
Can I package a pretrained tensorflowjs model within my ReactJs App
I am looking to use tensorflowjs on the browser as part of my ReactJS app. The model I am trying to use (as a proof of concept) is toxicity model. It is meant to detect overly toxic reviews and ...