Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Must provide as many biases as the channel dimension of the input tensor #54

Closed
murugeshmanthiramoorthi opened this issue May 5, 2020 · 1 comment

Comments

@murugeshmanthiramoorthi
Copy link

I have trained the model on my own data with same size 192 x 192. The whole training was completed without any errors. I saved my best fit model. But when I try to load the model for predicting, I get the following error.

InvalidArgumentError: Must provide as many biases as the channel dimension of the input tensor: [3] vs. 9 in [1,9,192,192]
[[node StackedDenseNet/StackedDenseNet/image_net_preprocess_1/BiasAdd (defined at /usr/local/lib/python3.6/dist-packages/deepposekit/models/layers/deeplabcut.py:86) ]] [Op:__inference_predict_function_341865]

Errors may have originated from an input operation.
Input Source operations connected to node StackedDenseNet/StackedDenseNet/image_net_preprocess_1/BiasAdd:
StackedDenseNet/StackedDenseNet/image_net_preprocess_1/truediv (defined at /usr/local/lib/python3.6/dist-packages/deepposekit/models/layers/deeplabcut.py:62)
StackedDenseNet/StackedDenseNet/image_net_preprocess_1/Const (defined at /usr/local/lib/python3.6/dist-packages/deepposekit/models/layers/deeplabcut.py:78)

Function call stack:
predict_function

@murugeshmanthiramoorthi
Copy link
Author

I think this would solve that issue.
#29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant