Handpose tfjs Error - No backend found in registry

前端 未结 2 1546
南笙
南笙 2021-01-23 09:30

When trying to run a demo project for Handpose tfjs, I get the below error.

My package.json file has below dependencies:

{
\"name\": \"tensorflo         


        
相关标签:
2条回答
  • 2021-01-23 10:04
    <script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-core"></script>
    <script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-converter"></script>
    <script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-webgl"></script>
    <script src="https://cdn.jsdelivr.net/npm/@tensorflow-models/handpose"></script>
    

    Tensorflow released 2.0.0, and now you must choose either tfjs-backend-webgl, tfjs-backend-cpu, or tfjs-backend-wasm to run your model. You're using handpose and for that you should use webgl.

    0 讨论(0)
  • 2021-01-23 10:23

    I was having the same error which "No backend found in registry" but in my case i was working with @tensorflow-models/blazeface model and a react app.I installed @tensorflow/tfjs-converter and @tensorflow/tfjs-core as the Readme link to the Github Readme was suggesting but i was still getting the error. Then i solved my problem by going to the index.html in the public folder of a react app and i added the following scripts at the bottom of the file.

    <script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-core"></script>
    <script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-converter"></script>
    <script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-webgl"></script>
    

    Good luck

    0 讨论(0)
提交回复
热议问题