Hi @ptrblck,
Thanks a lot for a quick reply.
Yes, I’ve tried this method and it is working. However, I need my image to be a square (416x416). When I use the method you suggested I am getting:
image1038×312 22.2 KB

If I am not mistakes, now I need to create a tensor of the shape I need and fill it with (126, 126, 126) colour and somehow combine with resized image. Is that correct? Could you please give me a hand with this or share I link where I could read how to do it?
Thanks in advance.
Eugene