My code is not working, and it can’t find exactly where it goes wrong. The dimensions of the output are correct but the correct patches are not selected.
(Solution code removed, as posting it publicly is against the honour code of this community, regardless if it is correct or not)
It is against the honour code of this community to publish solution code, even if it is wrong. Instead, you can post the errors you get, and if a mentors believes there’s a need to look at your code, they’d direct message you themselves. This is why I have removed your code from above.
With that being said, let’s talk about your mistake. You have missed this very important hint
# hint: make sure to leave enough room for the output dimensions!
Please make sure you take care of the output dimensions and your code should work.
Oeps, sorry. Thank you for checking it out!