tensorflow / tfjs-wechat

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

Cannot load layers model completely in real machine debugging. #70

Closed zhaocc1106 closed 4 years ago

zhaocc1106 commented 4 years ago

tfjs-wechat plugin version: tfjs-backend-cpu": "2.0.1",tfjs-backend-webgl": "2.0.1",tfjs-core": "2.0.1",tfjs-layers": "2.0.1" WeChat version: IOS-7.0.13 WeChat base API version: 2.11.2 WeChat IDE version v1.02.1911180

The mini program can load layers model in pc-wechat-ide debugging but can't load completely in real machine debugging. I found the group-shard bin downloading is pending as follows: image And console log as follows: image

I load layers model as follows:

flowerModel = await tfLayers.loadLayersModel('https://6169-ai-painter-7q1db-1302478925.tcb.qcloud.la/model.json?sign=5908e48b1382d81a4f8fbc164d423593&t=1592962790');

I don't known if it's bug of wechat. Can you help me? thanks very much!

pyu10055 commented 4 years ago

If it is file loading issue, it could be related to your wechat domain whitelist. You can enable no domain check in project settings, and enable debugging on your real device.

zhaocc1106 commented 4 years ago

If it is file loading issue, it could be related to your wechat domain whitelist. You can enable no domain check in project settings, and enable debugging on your real device.

I had enabled no domain check, bug there is the same issue. I tried another model, one group bin is downloaded successfully. image

zhaocc1106 commented 4 years ago

It's a bug of wechat miniprogram ide.

GuaiYiHu commented 4 years ago

same issue

xiaochenFang commented 3 years ago

same issue,has anyone resolved this issue yet?

YifeiYang210 commented 3 years ago

same issue,has anyone resolved this issue yet?