Skip to content
New issue

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

Unhandled Rejection (TypeError): Unknown op 'TensorListFromTensor' #4638

Closed
NSTiwari opened this issue Feb 4, 2021 · 7 comments
Closed

Unhandled Rejection (TypeError): Unknown op 'TensorListFromTensor' #4638

NSTiwari opened this issue Feb 4, 2021 · 7 comments
Assignees
Labels
type:support user support questions

Comments

@NSTiwari
Copy link
Contributor

NSTiwari commented Feb 4, 2021

Please make sure that this is a bug. As per our
GitHub Policy,
we only address code/doc bugs, performance issues, feature requests and
build/installation issues on GitHub. tag:bug_template

System information

  • Have I written custom code (as opposed to using a stock example script provided in TensorFlow.js): Yes, I referred the following GitHub repo: https://github.com/hugozanini/TFJS-object-detection/blob/master/src/index.js
  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10
  • Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: N/A
  • TensorFlow.js installed from (npm or script link): !pip install tensorflowjs[wizard]
  • TensorFlow.js version (use command below): 3.0.0
  • Browser version: Chrome 88.0.4
  • Tensorflow.js Converter Version: 3.0.0

Describe the current behavior
The web app crashes when the webcam turns ON.

Describe the expected behavior
The browser should be able to detect cartoon shown from the web cam.

Standalone code to reproduce the issue
https://github.com/NSTiwari/TFJS-Custom-Object-Detection/blob/main/src/index.js

tfjs

@NSTiwari NSTiwari added the type:bug Something isn't working label Feb 4, 2021
@rthadur
Copy link
Contributor

rthadur commented Feb 4, 2021

In the package.json it still uses 1.74 version of tfjs , can you try updating to latest version ? Thank you

@rthadur rthadur added type:support user support questions and removed type:bug Something isn't working labels Feb 4, 2021
@rthadur rthadur self-assigned this Feb 4, 2021
@rthadur
Copy link
Contributor

rthadur commented Feb 4, 2021

Also the above mentioned op is added in latest versions , please refer the PR here #3432

@NSTiwari NSTiwari closed this as completed Feb 6, 2021
@google-ml-butler
Copy link

Are you satisfied with the resolution of your issue?
Yes
No

@nimishdesai1989
Copy link

nimishdesai1989 commented Aug 24, 2021

Hello All. I have ensured I am using the latest version of the tfjs and tfsj-converter. I still get the same error.

below are my dependencies added

"dependencies": {
"@tensorflow/tfjs": "3.8.0",
"@tensorflow/tfjs-converter": "3.8.0",
"@tensorflow/tfjs-core": "3.8.0",
"@tensorflow/tfjs-node": "3.8.0",
"react": "16.5.2",
"react-dom": "16.5.2",
"react-magic-dropzone": "1.0.1",
"react-scripts": "2.0.3"
},

Is there any way I can solve this ? I have followed the tutorial from tensorflow blog https://blog.tensorflow.org/2021/01/custom-object-detection-in-browser.html and used the repository https://github.com/hugozanini/TFJS-object-detection/blob/master/src/index.js for my program

Any help is appreciated as I dont know what to do next. Completely stuck

@rthadur

@Amonsalvek
Copy link

Were you able to solve this?
I have the same exact problema, tried TensorFlow 2.4.0 as per Hugo Zanini's model.json shows but still the same error.
TensorListFromTensor is obsolete and will be removed, yet it should still be working to date....

@Amonsalvek
Copy link

Brief update, tried using TF converter 2.8.0, same exact error (2.8.0 is the one used in the tutorial).
Then updated to 3.18.0 (this time through Colab) and the error now change to

Unknown op 'TensorListReserve'

Same exact behaviour as NSTiwari, the web app crashes when the webcam turns ON, and the error occurs when the function model.executeAsync is called.

Please any help on this issue?

@mtrucc
Copy link

mtrucc commented Jul 19, 2022

Brief update, tried using TF converter 2.8.0, same exact error (2.8.0 is the one used in the tutorial). Then updated to 3.18.0 (this time through Colab) and the error now change to

Unknown op 'TensorListReserve'

Same exact behaviour as NSTiwari, the web app crashes when the webcam turns ON, and the error occurs when the function model.executeAsync is called.

Please any help on this issue?

I had the same problem, but I found that with other model files (before Jan 2021) it worked fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:support user support questions
Projects
None yet
Development

No branches or pull requests

5 participants