Tensor size error
See original GitHub issueHi! I have a problem while loading the model with
faceapi.nets.faceLandmark68Net.loadFromUri('/public/models')
The model is available at the models
directory. But an error arises while loading the model selected. In this case face_landmark_68_model-shard1
and face_landmark_68_model-weights-manifest.json
are placed into the directory. But the following error appears:
Error: Based on the provided shape, [3,3,32,1], the tensor should have 288 values but has 64
Can someone help me please?
EDIT: This error appears if I my loading function is not async
, if I make it async
another error appears (regeneratorRuntime is not defined
)
Thanks for your info
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:13 (5 by maintainers)
Top Results From Across the Web
I am getting an Error: "The size of tensor a (10) must match the ...
It is almost always you will need the dimension when you use softmax function: x = F.softmax(x,dim=1) # or whatever dimension you choose....
Read more >Runtime Error, Tensor size problem · Issue #997 - GitHub
Bug To Reproduce I installed according to install.md, but when I try to train e2e_faster _rcnn, I encounterd following problem: RuntimeError: The size...
Read more >I got error for dimension of tensor - PyTorch Forums
labels seems to be a scalar and thus doesn't have dimensions: labels = torch.tensor(1.) print(labels.shape) > torch.Size([]) labels.size(0) ...
Read more >A Static Analyzer for Detecting Tensor Shape Errors in Deep ...
ABSTRACT. We present an automatic static analyzer PyTea that detects tensor- shape errors in PyTorch code. The tensor-shape error is ...
Read more >How to solve the error: The size of tensor a (16) must match ...
Seems that the tensor output is a resized and the shape of it is not matching with your sharp_image tensor. I would look...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I managed to solve it serving model files from a cdn Use https://gitcdn.xyz/repo/justadudewhohacks/face-api.js/master/weights/ as
MODEL_URL
This is a serious problem for using
parcel
to do development with this library:https://github.com/elwin013/parcel-plugin-static-files-copy/issues/37
https://github.com/parcel-bundler/parcel/issues/1098
https://github.com/tensorflow/tfjs/issues/924