keras-js icon indicating copy to clipboard operation
keras-js copied to clipboard

Theano compatibility issue

Open forcecore opened this issue 8 years ago • 3 comments

I get this error message from weblas:

%cUnhandled rejection Error: Second dimension must be of same size for input Tensors (second Tensor is transposed).

Comparing the model.json in the working example and mine, I've noticed that dimension ordering in mine is Theano convention (3x64x64 instead of 64x64x3). I think this should be documented, at least.

forcecore avatar Oct 17 '16 02:10 forcecore

@forcecore Yeah, everything was written with tensorflow in mind. There are a few places where theano dimension ordering is handled, but not everywhere yet. Definitely something that will be addressed.

transcranial avatar Oct 24 '16 02:10 transcranial

I'm running into the same problem, @forcecore did you come up with a workaround?

lematt1991 avatar Dec 17 '16 03:12 lematt1991

Not really, I just re-trained my network in TF order for Keras-js.

forcecore avatar Dec 17 '16 03:12 forcecore