-
Notifications
You must be signed in to change notification settings - Fork 29
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
Operands could not be broadcast together with shapes (13, 128, 13) (13, 128, 128) #10
Comments
Hi @CatalinVulcan . Thanks for reporting the issue. I would suspect an issue where the dimensions are in the wrong order (the bands dimension being the third dimension instead of the first). Could you check the input shapes that you pass to the model Line 121 in 59e81ae
Is this line also still active in your code: Line 16 in 59e81ae
|
Thank you for your reply. It had to do with the version of Numpy. But in the end, I couldn't make it work due to library versioning and compatibility. Using
resulted in installing some package versions that gave errors when running the code. I tried changing the versions, but every time I changed one, other errors and incompatibilities appeared until I reached a point I simply couldn't solve. For input, I used images from the dataset mentioned in the README. It might help to include 3 images in the repository as well, along with the appropriate |
Ah, yeah. Unfortunately I have no means atm to try to update the code for newer package versions. If you ever get it running, feel free to open a PR or propose changes! Also, good point about the images.. |
@animecomico has reported in #6 (comment) that this works:
|
I'm trying to use the pre-trained model for prediction using the following command:
python dsen2cr_main.py --predict model_SARcarl.hdf5
But I'm getting the following error. Do you have any idea why this is?
The text was updated successfully, but these errors were encountered: