tensorflow/tfjs-wechat

The images are not compatible with transfer learning models.

Closed this issue · 1 comments

To get help from the community, we encourage using Stack Overflow and the tensorflow.js tag.

Hi there!
I have trained a transfer learning mobilenet model with Keras and converted it to model.json with some bin files. When I try to load the model with tfl.loadLayersModel(), it throws this console:
TIM图片20200528200336
It seems like the images that camera collected are sent to the dense layer directly (they haven't gone through Conv layers at the top). Would you please to tell me how to fix it? Thank you very much!

TensorFlow.js version
tfjs-wechat plugin version 0.0.9
WeChat version
WeChat base API version
WeChat IDE version 2.10.4
Describe the problem or feature request
Code to reproduce the bug / link to feature request

are you using TensorFlow? you can convert the keras model to TFJS graph model and try again.