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
problem about predict #91
Comments
Hi, thank you for your question. Is it possible to get the whole stack trace of the error? Otherwise, it should work the way you're using the function. Thank you. |
Hi, thanks for your reply. I have used: |
Is it possible to have the code of your network? Also, to load your checkpoint, you should use the |
Sure, I have uploaded my code at https://github.com/azyslzp/LZP-Signal-recognition |
Hi, In your Dataset Thank you. |
Hi,
to load? But it seems not work for Thanks |
Hi, |
Hi, I have checked the
And I found it works in vtcnn model, but not in mrresnet model. So I think the problem may came from the model structure.
|
Hi, it seems that you are using Conv1d instead of Conv2d in MRResNet. Conv1d takes in 3d tensors. You also do |
Hi, I have solved this problem by input 192 samples a time for prediction( although it is not a good idea) |
Alright, I will close the issue. However, I will advise you to really look the shapes of your tensors everywhere in your networks (from input to output and in the middle) to make sure that the shapes you get are what you expect them to be. Let me know if you have any question related to Poutyne. |
due to lack of predict examples, I am unable to use the model.predict correctly, there also exists a bug as:
RuntimeError: Expected 4-dimensional input for 4-dimensional weight [256, 1, 1, 3], but got 3-dimensional input of size [31, 2, 132] instead
I used :output=model.predict_on_batch(Singledata)
and my Singledata is a array of size (31,2,128), float type
The text was updated successfully, but these errors were encountered: