Open rychuelektryk opened 6 years ago
Maybe you should specify your model input to be (None, 299, 299, 3).
KerasJS doesn't support None, internally model with shape lets say (None, 299, 299, 3) would be represented as (299, 299, 3) or model with shape (None, None, None, 3) would be just (3)
Thanks,
Loading model in a following way did the trick:
inceptionModel = InceptionV3(weights="imagenet", include_top=False, input_shape=(299, 299, 3))
Hi,
When I try to load inceptionV3 model in keras-js I get following error:
The model is prepared in a following manner:
1: The model is loaded and then exported in keras using following code:
2: The model is than encoded using latest(see the commit below) keras-js encoder.py
The aforementioned error is generated when the model is loaded by keras-js using following code:
What I find peculiar is that the inceptionv3 model loaded in keras-js example differs than the one that I generate.
small part of configuration part of model generated by me:
full model configuration here -> https://www.dropbox.com/s/o42oc243huqqlbk/myModel.txt?dl=0
small part of configuration part of model used in example:
full model configuration here -> https://www.dropbox.com/s/7ld1pmbjsj5g8fo/exampleModel.txt?dl=0
Issue happens in following environment npm keras.js@1.0.3, keras@2.1.12, tf@1.6, python@3.5.2
I've spent whole day on this issue and couldnt find the solution. Any help would by greatly appreciated.