tensorflow / tfjs-wechat

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

How to download model completely? #57

Closed jingsong-liu closed 4 years ago

jingsong-liu commented 4 years ago

Hello, I wanna download the model from mirror and load it locally. Here is what I have:

  1. https://www.gstaticcnapps.cn/tfjs-models/savedmodel/posenet/mobilenet/float/050/model-stride16.json

  2. https://www.gstaticcnapps.cn/tfjs-models/savedmodel/posenet/mobilenet/float/050/group1-shard1of1.bin

Then I put them in same folder of my local http server, when I load the model , it still reports error: the lenght of Float32Array must be mutiple of 4

So what should I do? do I missed some other files?

Thanks

pyu10055 commented 4 years ago

@jingsong-liu This error usually means the weight file failed to be loaded. can you check the network tab of browser, what is url the model is loading the weight file from? or maybe share a screen capture here. thanks

jingsong-liu commented 4 years ago

image image image

Request URL: https://7072-prod-10ake-1301624657.tcb.qcloud.la/group1-shard1of1.bin?sign=ebba5cf4a27c9dcf0daaa563b5be16d2&t=1584756888
Request Method: GET
Status Code: 200 OK
Remote Address: 180.153.100.151:443
Referrer Policy: no-referrer-when-downgrade

The url https://7072-prod-10ake-1301624657.tcb.qcloud.la is tencent cloud storage where I upload the model

pyu10055 commented 4 years ago

@jingsong-liu the size of the binary file seems to be wrong, it shows only 1918 bytes, can you make sure you have download the right .bin file.

jingsong-liu commented 4 years ago

Thank you so much, I downloaded the wrong .bin file. Problem solved now!