As suggested in tensorflowjs github, I post the question here. I am getting below error, in simplest example possible with tensorflow.
Error:
Code: A simple html snippet with just tfjs loading.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]/dist/tf.min.js"></script>
<title>Testing Tfjs</title>
</head>
<body>
<h2>Testing Tfjs</h2>
</body>
</html>
Browser: Chrome Version 72.0.3626.119
OS: Win 10, GPU: GT 740M, version 397.44.
Chrome gpu show says : (because I disabled hw acceleration to avoid chrome blacking out at times)
WebGL: Software only, hardware acceleration unavailable,
WebGL2: Software only, hardware acceleration unavailable
I have tried setting backend explicitly as cpu but it did not help. I have seen other posts in github talking about this error, but in vain.
sorry, my english is not good.
Same as my case. in my case... "WebGL is not supported on this device" and "tf.setBackend('webgl')" return false.
Tensorflow require hardware acceleration.
open chrome://gpu, then check your
Problems Detected.
Gpu compositing has been disabled, either via blocklist, about:flags or the command line. The browser will fall back to software compositing and hardware acceleration will be unavailable. Disabled Features: gpu_compositing
then goto chrome://flags/ search "Override software rendering list" > set enabled > restart browser
thx.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With