Skip to content

Conversation

haraschax
Copy link
Contributor

@haraschax haraschax commented Feb 16, 2024

When the camera points far enough up (true on many sedans), there is not enough FOV to show the image the model expects. So a part is out of bounds. During training this is padded, at runtime it is filled with zeros (in YUV so it looks green). This discrepancy causes some loss in performance, this PR implements the same border padding at runtime that we use at traintime.

Screenshot from 2024-02-16 14-33-56
Screenshot from 2024-02-16 14-30-55

@haraschax haraschax merged commit 900300a into master Feb 16, 2024
@haraschax haraschax deleted the border_pad_transform branch February 16, 2024 23:18
rchybicki pushed a commit to rchybicki/openpilot that referenced this pull request Feb 17, 2024
AlexandreSato pushed a commit to AlexandreSato/openpilot that referenced this pull request Feb 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants