-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some bugs in WebGL and WebGPU #816
Comments
Sorry for late reply. I will investigate it. |
This bug also occur in train_mnist_chainer.py with
|
It broken in commit 56113b2. |
There seems to be three different bugs! Problems:
I put temporary fix to fix-816 branch (a686df1), so please try it to avoid this problem.
I found that graph descriptor for size 16384 works correctly.
Of course, it does not work devices which does not support texture size 16384. By these two workarounds, I managed to WebGL + 8bit compression model to work on Chrome. |
@milhidaka I re-implement your patch in e06f903, with some extra comments. Please review it. |
#816: Fix weight packing procedure in WebGL backend.
Codes and the model for reproducing can be found here, I am using webdnn with commit
f403a30da36b6741bc857c21c3ca1e65af8fbac9
For model conversion, please use
python convert_webdnn.py --chainer_model_path SmoothedGenerator_40000.npz --out models/resnet256
Also, there is a web interface in
webcode/webdnn
.However, it gives wrong answer.
Expected:
Got:
3. WebGPU model can be converted, however, it cannot be loaded by the browser.
Safari 11.0.3
This repo also contains a speed comparsion with tensorflow.js, webdnn with webgl is 1.5~2x faster than tfjs on my computer, except it gives a wrong anwser.
The text was updated successfully, but these errors were encountered: