tensorflow / tfjs-wechat

WeChat Mini-program plugin for TensorFlow.js
https://tensorflow.org/js
552 stars 104 forks source link

运行tensorflow object detection 训练的模型出错 #12

Closed yichuxue closed 5 years ago

yichuxue commented 5 years ago

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

TensorFlow.js version: 1.2.2 tfjs-wechat plugin version: 0.0.5 WeChat version: 7.0.5 WeChat base API version: 2.7.4 WeChat IDE version: v1.02.1907152 Describe the problem or feature request

model url: https://github.com/yichuxue/tf_model/blob/master/tf_cat_model/model.json

模型是通过tensorflow object detection 训练 再从saved_model 转过来,google之后没有找到对应的问题,就提了Issues

Code to reproduce the bug / link to feature request image

pyu10055 commented 5 years ago

@yichuxue Becuase this model contains async ops, you should use model.executeAsync() method instead of model.predict().

yichuxue commented 5 years ago

@pyu10055 Thank you