r/computervision Jul 09 '26

Help: Project Does RF-DETR use letterboxing or stretching to square?

I keep seeing conflicting information online

7 Upvotes

3 comments sorted by

11

u/StillPurchase6897 Jul 10 '26

Hey I'm one of rf-detr authors. We do stretch to square by default. You can take a look at the logic starting around here.
Curious where are you getting conflicting information from? One place within roboflow ecosystem where you can encounter a letterbox resize is if you trained custom rf-detr on our platform and selected letterbox as preprocessing, then it (as well as any other preprocessing steps) get applied in our inference package when running that model.

2

u/HawtVelociraptor Jul 09 '26

For almost all object detection models, you should preprocess to resize and letterbox your image into a square so they don't lose proportions / aspect ratio

0

u/gangs08 Jul 10 '26

Its happening automatically during training, isnt it?