tensorflow / tfjs

A WebGL accelerated JavaScript library for training and deploying ML models.
https://js.tensorflow.org
Apache License 2.0
18.52k stars 1.94k forks source link

TensorFlowJS fails reliably on Intel GPU running Windows, otherwise succeeds #8274

Open neurolabusc opened 6 months ago

neurolabusc commented 6 months ago

This issue is easy to replicate from the web browser by opening the niivue-brainchop live demo and choosing Extract the brain (High acc, slow) from the drop down menu.

Note that the web page crashes for machines running Intel GPUs on the Windows operating system. In contrast, the model succeeds using Intel GPUs on MacOS and Linux operating systems. Likewise, the model succeeds with Apple, NVidia and AMD GPUs regardless of operating system.

While the live demo is the easiest way to replicate this, you can also replicate the problem with a hot reloadable source code that allows you to edit JavaScript and immediately see the results.

git clone git@github.com:niivue/niivue-brainchop.git
cd niivue-brainchop
npm install
npm run dev

You can automatically run one of the failing models (model 10) by changing lines 200 and 201 to read:

     modelSelect.selectedIndex = 10
     modelSelect.onchange()

System information

gyagp commented 6 months ago

This looks like an Intel specific issue, so we'll investigate this.