justadudewhohacks / face-api.js

JavaScript API for face detection and face recognition in the browser and nodejs with tensorflow.js
MIT License
16.56k stars 3.69k forks source link

Not able to load models properly in ionic #559

Open juny58 opened 4 years ago

juny58 commented 4 years ago

hi, I am not able to load the models successfully in ionic. However, there was no problem running it in broswer and serving in localhost. The errror is:

"Based on the provided shape, [3,3,32,1], the tensor should have 288 values but has 177"

justadudewhohacks commented 4 years ago

Inspect the network tab and make sure, that the shards are all loaded correctly and that they are not corrupted, e.g. the size of the fetched shards is unchanged.

juny58 commented 4 years ago

Thanks man. Solved it by file accessing process recommended in ionic, as it can not access local file. Thanks again.

pravinkumarputta commented 3 years ago

accessing

Hi @juny58 , I'm also facing a similar problem in ionic. Can you just brief me on how do you solve this?

ariverorigin commented 2 years ago

Thanks man. Solved it by file accessing process recommended in ionic, as it can not access local file. Thanks again.

How did you fix this issue on ionic? I'm facing same problem. Thanks!