Cannot load up a model with TensorFlow.js

Viewed 75

I'm trying to load this model and I found this tutorial

So far I came up with this, but I'm getting this error:

Error: Failed to link vertex and fragment shaders.

1 Answers

TensorFlow.js transforms the model into a bunch of GLSL shaders, small programs runnable on GPU.

This error means that the browser was unable to compile the GLSL code to run on your graphic card for some reason. Likely, the message does not come from TF, but from the in-browser WebGL implementation.

To ease identifying the exact cause of your issue, consider sharing your OS/hardware setup (namely, which browser you run and which GPU you have). The usual recommendation is to make sure your GPU is okay. Bear in mind that some low-end GPUs may be unable to run TensorFlow.js or some of its models at all. A good thing may be to try out the same code on a different machine (a desktop one with a good GPU).

A couple of related discussions (even though they do not point to a solution):

https://github.com/justadudewhohacks/face-api.js/issues/327

MS Edge: SCRIPT5022: Failed to link vertex and fragment shaders

Related