undefined is not an object (evaluating 'env().platform.fetch') for poseNet in React Native
See original GitHub issueSystem information
- OS : Windows 10
- Platform : Android
- TensorFlow.js installed from npm
- TensorFlow.js version:3.6.0
- @tensorflow-models/tfjs-react-native version:0.5.0
- @tensorflow-models/posenet version: 2.2.2
Describe the problem
I always get this response when I tried to load()
the posenet from @tensorflow-models/posenet
. I am using React Native CLI not Expo.
I installed and configured the packages as per the document.
Is TensorFlow supported for React Native CLI or just Expo projects?
Issue Analytics
- State:
- Created 2 years ago
- Comments:6
Top Results From Across the Web
In react native, on executing posenet.load() getting error ...
TypeError: undefined is not an object (evaluating 'env().platform.fetch'), on calling the posenet.load(). It used to work fine until last week.
Read more >Getting Error 'Undefined Is Not An Object' When Using ...
undefined is not an object evaluating 'env.platform.fetch' for poseNet in TensorFlow.js version:3.6.0; @tensorflowmodels/tfjsreactnative ...
Read more >Platform and environment | TensorFlow.js
When an operation is called, like tf.matMul(a, b), the resulting tf.Tensor is synchronously returned, however the computation of the matrix ...
Read more >How to resolve an ' [unhandled promise rejection: typeerror ...
Lets break it down bit by bit: [unhandled promise rejection: typeerror: undefined is not an object (evaluating '_expopermissions.permissions.getasync')].
Read more >Practical Machine Learning in JavaScript - DOKUMEN.PUB
in Node.js, Angular.js, and React.js. He currently develops applications in Scala and Python for deep learning neural networks using TensorFlow.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks again @rthadur
Sorry,I did not quite get it , are you trying to use tflite models in tfjs ? if yes please refer here https://github.com/tensorflow/tfjs/blob/master/tfjs-tflite/README.md cc @jinjingforever