Closed Raza25 closed 6 years ago
It seems that the number of parameters "40 mil" is huge to run in the browser. Try reducing the params to at most "20 mil". The bidirectional layer with 24 mil params is huge.
@zaidalyafeai any # of elements in the matrix > 2000 results in popping up this message. Also elements < 2000 can't suffice to a deep learning seq to seq model. Do you have any other solution for the cause?
You could divide the model into two models. Load the first, save the activations then load the second.
This will take some time. The other alternative, is to look for smaller models with comparable accuracy.
I have reduced the parameters to 7,927,065. Still the issue prevails
Following warning comes up.
.
Send me the code. I will try to debug it.
Changing the tensorflowjs version from 0.12.0 to 0.13.0 solved the problem. However any such limitation with old versions is not listed on the site. So, there must be a way around this.
tensorflowjs version: 0.11.7 Keras version: 2.0.4
I am trying to run Keras converted model on browser. For conversion I have used tensorflowjs converter, the conversion went fine. However, at load time,
Orthogonal initializer is being called on a matrix with more than 2000 (1000000) elements: Slowness may result.
this message pops up and the memory blowup happens and lastly the browser stops working. Following is my keras model architecture:Is there a way to speed up the Orthogonal initialization process ? so the model gets loaded in less time and with less effort. Any help will be appreciated.