I am not as familiar with the state of the art; are there NN frameworks that export the NN model such that it can be run within WASM?
Here's a cool project that does something like this (though I believe it's basically superseded by torchscript): https://github.com/podgorskiy/tensor4 Here it is running stylegan in the browser (via wasm): http://podgorskiy.com/static/stylegan/stylegan.html