transcranial / keras-js

Run Keras models in the browser, with GPU support using WebGL
https://transcranial.github.io/keras-js
MIT License
4.96k stars 501 forks source link

Nested Model Support #100

Open kmader opened 6 years ago

kmader commented 6 years ago

I have tried to use a nested model and get a JavaScript exception when loading the model

 Error: [Model] Layer Sequential specified in model configuration is not implemented!

The model is made of a layer prepended to another model. Unfortunately it is quite a bit trickier to prepend than append layers. Will this be supported soon, or should we work on a python-based way for unraveling nested models

_________________________________________________________________
Layer (type)                 Output Shape              Param #   
=================================================================
conv2d_18 (Conv2D)           (None, 512, 512, 1)       4         
_________________________________________________________________
sequential_6 (Sequential)    (None, 2)                 726057    
=================================================================
Total params: 726,061
Trainable params: 726,059
Non-trainable params: 2
_________________________________________________________________