Error: Based on the provided shape, [1,1,16,32], the tensor should have 512 values but has 48
ApexcupDeveloper opened this issue · 2 comments
ApexcupDeveloper commented
Issue Description
Error: Based on the provided shape, [1,1,16,32], the tensor should have 512 values but has 48
The library works as well on localhost but in production, I am getting above error when loading models.
I tried everything from google/stackoverflow but nothing works.
**Environment
"react": "^18.0.0",
"@vladmandic/face-api": "^1.7.12",
vladmandic commented
this tells me nothing.
- deploy with non-minimized library backtrace can be read - this is currently pointless
- include longer backtrace, not just final error meesage - i need to see what leads to this
- check browser inspector network tab if model are actually served correctly and with correct mimetype (not just available, but also check if the type is correct, i've seen cases where web servers serve models as text instead of binary)
but at the end, if it works locally and not in production - its clearly a deployment issue - so what is different between the two?
vladmandic commented
no information provided, closing.