When resizing the video to match the screen size, if the video does not match the aspect ratio of the screen, it will be stretched:
|
RGB = torch.nn.functional.interpolate(RGB.permute(2,0,1)[None], |
The desired behaviour would be to adjust the target resolution so that the aspect ratio is preserved.