Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Train Yolov7 with non square images without padding and resizing #2083

Open
shokohigol opened this issue Sep 18, 2024 · 1 comment
Open

Train Yolov7 with non square images without padding and resizing #2083

shokohigol opened this issue Sep 18, 2024 · 1 comment

Comments

@shokohigol
Copy link

I want to use Yolov7 to train an object detection model with my custom dataset. Can the model be trained with rectangular images without padding? I have a dataset of FHD images, that I want to train Yolov7 with the original size (not the padded one) because, in the padded state, the model input images will be big. The padded part is not useful and inference time will increase. Consider I don't need any augmentation and all images in my dataset are the same size(1080x1920). So, I want to feed images with 1080x1920 size to model and inference with the same size.

@YannickGibson
Copy link

I think the only way is to change the source code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants